New Module: about
floridave
Joined: 2003-12-22
Posts: 27300 |
Posted: Sun, 2010-01-17 07:30 |
http://codex.gallery2.org/Gallery3:Modules:about Dave |
|
floridave
Joined: 2003-12-22
Posts: 27300 |
Posted: Sun, 2010-01-17 07:30 |
http://codex.gallery2.org/Gallery3:Modules:about Dave |
|
Posts: 79
I changed the module so. This is allowed?
Posts: 27300
Sure it is allowed.
You should start a new thread with your module and add a codex page as well.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 180
"About" is a very welcome addition. Great, Thanks.
Would it be a good extension of the module ( or even possible) to allow every registered album owner the opportunity to use it for adding their details as well as the site owner. I'm afraid I've no idea how to do this. Willing to try but would probably take a few months for me. Ken
Posts: 27300
Can you give a user story? And some moc-ups how the UI should work?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 2
Bug: As of 3.0 Beta 3, every time you click save in admin, it double escapes all special characters. The first time you save, a ' becomes \' , the second becomes \\\' , the third becomes \\\\\\\' ... and so on and so forth.
Posts: 27300
Try a recent git version. It was never tested with Beta3.
Test site:
http://www.langleycom.com/gallery3/index.php/about
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
Updated the module to remove data from the var table on deactivation.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 573
Dave: is it possible for you to make this not display in the top menu? same as for home in menu links...?
Wether this is done in this module or in menu links matters less to me.
Maybe even create a standalone module where you have the option to deactivate any userviewed links in the menu.
Even better - integrate this module in menu_links and add the don't display about hatch
An idea for this module - expand it to create any number of html page. Examples: about, copyright, contact
Let the user define the title for each page
Let the user deactivate the link at top menu per page basis
Let the user set permission to these pages: anonymous, registered user, admin etc
all the best
HB - http://www.image.agentura.dk
Posts: 573
Could you expand the text field where you html code, maybe double height what you have now? For better overview...
all the best
HB - http://www.image.agentura.dk
Posts: 573
Dang something went wrong and site crashed
I had something in the field of this module. Removed that and added this
<div id="g-image-block" class="g-block">
for testing. Sites crashed and I can not recover? removed the module from intall and site is still dead???
What to do?
all the best
HB - http://www.image.agentura.dk
Posts: 573
I ran the upgrader with success
site is still dead???
all the best
HB - http://www.image.agentura.dk
Posts: 573
get this error:
SYSPATH/core/Kohana.php[ 812 ]
807 if ($found === NULL)
808 {
809 if ($required === TRUE)
810 {
811 // If the file is required, throw an exception
812 throw new Kohana_Exception('The requested :resource:, :file:, could not be found', array(':resource:' => __($directory), ':file:' =>$filename));
813 }
814 else
815 {
816 // Nothing was found, return FALSE
817 $found = FALSE;
all the best
HB - http://www.image.agentura.dk
Posts: 27300
Should be easy for the community to copy this module to come up with all the pages they want.
This is an about page. It is translatable and if you want a different page then you can copy this module to create a copyright, or contact page.
I will make this a global setting but will not make it a per page type option. Will post an update later.
I want to keep it simple so that modules don't become the X_Treme theme of G2 where there was every option in the world and every option was added making it hard to work with. G3s aim is to be simple, fast, intuitive and cater to 80% of the users. Adding more options adds complexity, and has the possibility of impacting performance.
I will consider making another module to full-fill some of your needs.
This is controlled with css. Look for
And adjust the height.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
I tried to reproduce your other error but can't.
[img]http://gallery.menalto.com/files/About_admin.png[/img]
Is what I tried.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 573
What happens if you enter only the opening div and leave out the closing div?
I guess thats what I did..
Thanks on the other issues. I'll wait for your upgrade
all the best
HB - http://www.image.agentura.dk
Posts: 27300
Could give different results for different browsers I suspect.
I don't think it is withing the scope of this module to validate HTML.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 573
That wasn't the idea to validate.... As mentioned this code was added:
without the end tag. Where will the code go, and can I get to it? Is it in mySQL DB or is it hardcoded into a file in the module?
Or can I through a backdoor add the end tag?
Somehow I have a feeling this is causing it
Site is crashed in both Chrome and IE8...
all the best
HB - http://www.image.agentura.dk
Posts: 27300
Module data is stored in the var table.
You will need some form of DB admin tool, like phpMyAdmin or phpMinAdmin
You can delete or edit the appropriate rows in the DB. You will see the module name and variable name and value in each row.
I don't think that is your issue, as I just tried it and I still get a page displayed.
What is your URL?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 573
url is www.skunk.agentura.dk
Can you talk me through php myadmin, never used it and hoped it wouldn't be necessary
all the best
HB - http://www.image.agentura.dk
Posts: 573
This was in the content field x 100, and I am not kidding - something generates the backslash on every save.... hmm scary
Code added and later deleted in the field, is that removed from the DB Table??? There was a lot in there that I actually removed from the module field.
Table should be empty now. Will I have to remove the about code entirely or?
all the best
HB - http://www.image.agentura.dk
Posts: 573
In Vars I find two tables for about module
In Modules there is no about module... Not displayed at all.
Should I delete the tables in vars entirely? Do I need to run upgrader?
all the best
HB - http://www.image.agentura.dk
Posts: 27300
we know there is a ticket open for this. You have mentioned this in another thread as well. It is related to security. We will address it in time.
There is only one table called vars.
is has for columns in the table:
Under the module name look for about and there will be 2 rows.
Then you can delete those rows.
No need to run the upgrader.
But As I said before I don't think this is related at all to this module.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 573
The two tables for about are removed in Vars and yes only one
as mentioned I don't see about in the modules table. I wanted to set not active, but can not find
I removed all code for about, upgrade, but no change in my browser... May not be related here - only thing, this happened when I hit save from this module
all the best
HB - http://www.image.agentura.dk
Posts: 573
Btw before crash I added HTML source code including SWF. I copy pasted code for the Photo Widget blocks including divs. Didn't work
I also copy pasted code for random_photo_block
all the best
HB - http://www.image.agentura.dk
Posts: 573
Weird - I collect my findings here for now to keep things together.
I turned to phpmyadmin again. I guess I deactivated your photo widget at some time, set to 0 from phpmyadmin. Now I activated it again from php myadmin. Site still crashed.
I ran the upgrader and it til me there was an upgrade for photowidget. Site has now recovered..
Not sure what to conclude here, maybe you do...
If this is a bug it should be adressed ofcourse...
all the best
HB - http://www.image.agentura.dk
Posts: 27300
I have tried to reproduce but can't. If you can give me the steps to reproduce I will try my best.
I don't see how an about page should contain the photowidget.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 573
I tried deactivating the widget and activate again, doesn't work. I can not reproduce at this time...
all the best
HB - http://www.image.agentura.dk
Posts: 573
As mentioned I am making a copy of this module. I renamed everything. Files,Folders and all about inside code.
Module is there. Acitvates nicely, shows in menu. both as "home2" next to home and in admin menu.
When accessing the admin home2 link only this shows in sourcecode:
<h1></h1>
and page does not load.... No html, no head, no body, no scripts no anything. What am I missing and in which file?
all the best
HB - http://www.image.agentura.dk
Posts: 27300
Start a new thread, as this is related to the About theme.
Post your module as an attachment to the other thread.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
Just wanted to point out that it's pretty easy to use this module to create more pages. I just changed all occurrences of and references to the word "about" to "links" and I now have a Links page.
Very cool!
Posts: 27300
Now you can consider yourself a module developer.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
It's just what I was looking for and I got it installed nicely but it didn't add a link next to home but it actually created a new sidebar box with the text I entered?
Did I miss understood something or did I do something wrong?
Posts: 27300
works for me and others. URL? Are you using the most recent experimental version not RC1?
You can remove the side block if you want through the user interface.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
yeah doh... now I got what was wrong.
I removed the HOME button before and that's why it didn't show up. My bad
Thank you
Posts: 27300
Added the ability to remove the link via a admin setting.
Fixed the sidebar duplication.
See first post.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 2
Hello,
I am trying to put some script code from Google Absense on the about page. I get no result.
Is this possible?
Posts: 27300
Why not try the proper module:
http://codex.gallery2.org/Gallery3:Modules:adsense
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 2
Ok, thanks. This module works great
Posts: 57
i want to change "about" to anything i like and have it 4 times on the page. so i can create pages with information about anything so i have a complete website in the gallery. is this making sence?
Posts: 27300
You should be able to create your own module similar to this one as I did with with:
http://codex.gallery2.org/Gallery3:Modules:services
use winmerge to see how the two modules are different. You will see that only the name in some places is different.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 43
Hi there, When adding your module (it works great) but the sidebar disappears in the dark canvas theme - any thoughts - can you point me in the right direction to fix this - it also happens with the
basket module too - must be something to to with the theme...thanks
Posts: 35
Hi floridave,
for all the german users (who are forced by law to display an "Impressum" Page on every (even private) website I changed your "about" Page to generate an Impressum-Module.
Hope I was allowed to share that (I guess I even must share ;-) ). Please contact me if anything is wrong and I should change (coz of license).
It´s to be found here (till now an english discription is missing but probably non german people dont need that):
http://gallery.menalto.com/node/100532
Greetings,
Sammy
*** http://www.kramann.net
Posts: 27300
Great! Thanks for your contribution.
Care to make a codex page for it? If you need a hand let me know.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 304
Why do you put up with that Gestapo crap?
--
http://inposure.se/
Posts: 35
@floridave: In fact I dont know how to do that but I will take a look at it Thank you!
@inposure: What are you talking about? I cant get your point! Is there a problem - something to be changed? What?
Or are you kidding or even to badmouth me?
*** http://www.kramann.net
Posts: 304
That ”Impressum” stuff.
--
http://inposure.se/
Posts: 35
Whats up with it? Unfortunately some things are not arbitrary - we (dont know if other countries have same or similar guidelines) have to use an "Impressum".
I am sure anyone who does not need it will simply not use it ;-)
The bondage to use it (in germany) is no thing to cheer for but nevertheless no need to call it "gestapo crap" ?!
Please stay businesslike
*** http://www.kramann.net
Posts: 693
Every country has some sort of disclosure law, and some are stricter than others, but I am surprised that in Germany it applies to non-commercial, non-political sites. From Wikipedia:
"The Telemediengesetz requires that German websites must have an Impressum disclosing information about the publisher, including their name and address, telephone number or e-mail address, trade registry number, VAT number, and other information depending on the type of company. German websites are defined as being published by individuals or organisations that are based in Germany, so an Impressum is required regardless of whether a site is in the .de domain.".
Not something that I'd want to have to do myself, but I guess every country has some laws you like and some you don't.
Posts: 67
very happy with this module!!
could you please help me though? I'd like to hide the sidebar only on this About page but have it show on every other page
tnx in advance
Posts: 27300
Add
to the css that ships with the module.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team