New module: AboutPage
dazza
Joined: 2005-04-24
Posts: 21 |
Posted: Fri, 2006-04-28 22:29 | |||
Hi, Attached is a zip file for a module I have written that allows a seperate page for misc details etc. Very simple to install/use: Unpack in the modules directory, go to the site admin modules screen and install the module, configure it by putting your details in the "user message" edit box, save it and activate the module. There will then be a "About" link in the top right links area that will display your message. The message itself can contain BBCode or HTML formatting, but it needs the overall site settings to be set to BBCode or HTML in the General settings page. I have tested it with G2.1 Matrix theme and PGThemes. Hope it is of use to somebody...
|
||||
Posts: 48
Wow again!!!
This is exactly what I need. Now I have no need for Joomla.
I can now have my nice site with an about page.
Thank you so much for you hard work.
Posts: 35
thanks veryu much
Posts: 5
This is exactly what I need too!! Thanks, Dazza! Great work, much appreciated!!
Posts: 21
you are all very welcome.
d.
Posts: 7
This sounds interesting, but I'm not quite picturing it. Is there a place I can see it up and working?
Gallery version = 2.0.4 core 1.0.0.4
PHP version = 4.4.2 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.0.25-standard-log
Toolkits = Gd, NetPBM, ArchiveUpload
Operating system = Linux Hosted by 1and1
Posts: 60
Dazza, you are a genius. Small things often run the world. You just seem to know what realy matters in live!
© qwenc
I've just installed it if you want to have a look. It's not finished yet, but you can see what is ment by it.
"http://www.swissphoto.net/galerie/main.php?g2_view=core.UserAdmin&g2_subView=aboutpage.About&g2_return=%2Fgalerie%2Fmain.php&g2_returnName=Album"
gadulia
Posts: 21
qwenc,
the basic use for the module is a simple way for the gallery administrator to have a static page displaying information about the gallery.
clicking on a link in the top right called About will display the static page.
I wrote the module so I could have a static page with an introduction and general information about myself / my pictures.
gadulia's link above (thanks) shows their static page.
d.
Posts: 7
Thank you dazza and gadulia. You have both been very helpful.
Gallery version = 2.0.4 core 1.0.0.4
PHP version = 4.4.2 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.0.25-standard-log
Toolkits = Gd, NetPBM, ArchiveUpload
Operating system = Linux Hosted by 1and1
Posts: 22
gwenc, sadly, it doesn't work with G2.0.n
Regards
Tony
Posts: 9
Hi
Where can I translate the name "about" which appears in the up/right corner???
Daniel
Posts: 8601
http://codex.gallery2.org/index.php/Gallery2:Localization
Posts: 6
Don't we need the po file for that? Or do i miss someting.
I use poEdit windows.
Posts: 8601
oh, if the module doesn't have a po dir already then just create it and copy a GNUmakefile from any other module.
Posts: 6
aboutpage has a po dir and an GNUmakefile in it. But when i run make nl.po a got a error can't find tools/po.
Posts: 8601
please recheck the instructions i linked above.. do you have a developer install or svn or nightly snapshot?
Posts: 9
How do I edit the text or image link?
Posts: 57
thank you, that is just what i needed!
Posts: 6
Hi and thank you for your great modules about and contact owner! How can i rewrite the very long URL "main.php?g2_view=core.UserAdmin&g2_subView=aboutpage.About&g2_return=main.php%3F&&g2_returnName=Album" eg. into "about.html"? Can you implement the Gallery2 Rewriting API?
This Question is also for the great Contact Owner module...
Greetings
Michael
EDIT: Find it. Simply add to module.inc:
Thanks for your great modules ;)
Posts: 2
Now that i've installed the module, how can i edit the text block?
Theren't links in the module admin page, nor in the about page.
Any ideas?
Lka
Posts: 8601
site admin / About page
there's textbox there to fill in your text.
Posts: 2
thanks for the great the great module @@
Posts: 18
Here's a tip for everyone:
I wanted another static page which did exactly the same thing, but with a different title, so I copied the aboutpage folder (before module install), and then went through each file replacing "about" or "About" with my own title. Then, I had my own custom static page module. You can do this as many times as will fit in the links bar.
Posts: 18
Hey Dazza,
This is a great module, and thanks for all your hard work. Do you think you could fix a couple of things? The title says "Gallery User Administration", and the sidebar has a login link and stuff. Do you think you could fix all that? I don't want my users to have to see that stuff.
Also, it would be nice to be able to do the stuff I described in the above post a little more cleanly, with text boxes to choose the titles, etc. Maybe have a "static pages" module, and be able to add new static pages, all in one module. Just a thought.
Thanks again.
-Nathan
Posts: 15
Perfect. Easiest mod to install and configure ever.
10/10
Posts: 2
I love the modules you have created. Thanks. Can you tell me how I can increase the font size to say 14 in the AboutPage module. I have managed it with the HTML setting on the general tab but cannot seem to be able to get it to work with the recommended BBcode. My Narrative Where am I going wrong. I enter from the site admin about link.
Posts: 154
Excuse for my bad english .
I used this great module with PGtheme.
Can i view "Contact:" section in the whole page, without sidebar section in the left ?
This is my test page http://tinyurl.com/2dseh6
Tnx in advance
Posts: 22
I also would like to increase the font size of the AboutPage module. Does anybody know?
Posts: 22
Does anybody know how the font and size can be changed on the AboutPage module?
Been through all the files for this module, but no luck.
Posts: 72
This is exactly what I need. The only catch is that I need the new link to direct to a pre-existing "About" page on my main site, without having to remake the page. Instead of making a new page, can I use this module to just link to a page already in existance?
It seems like it would actually be easier, but I'm not sure how to do it.
Thank you for any help! :D
Posts: 71
http://www.w3schools.com/html/html_formatting.asp
or
http://gallery.menalto.com/filter/tips/5
Posts: 71
I was wondering how to make the text go around the right of the inserted image. BBCode [float=left] image formating doesn't seem to work to make the image float left of a paragraph.
Posts: 17
OK. I like this. It works well.
But..... How hard would it be to add an item in the URL Rewrite admin page? So you can change the URL to http://somesite.com/about instead of the lengthy URL it creates.
EDIT: Let me reword that question so it makes sense. How can I get the module to change the ABOUT link to use the short URL from the rewrite as well. I saw the above comment where it added the rewrite rules, but the link in the menus still goes to the long URL.
Posts: 17
OK... I kind of got it figured out. But I need to still see if I can get it to remove the info for the BACK link.
If I use the following code in the module.inc, I can get it to change the LINK url to the correct rewritten form. But now I need to figure out how to get it to stop putting in the querystring of about.html?g2_return=%2Fabout.html&g2_navId=xfb5f57da
Posts: 8601
to remove those, remove
, 'return' => 1
in function getSystemLinks in module.incPosts: 88
Hello,
I have the same problem as Taps7734 for the function getRewriteRules
My Link is www.mysite.de/impressum?g2_return=%2Ftestbilder%2Fgallery2%2Fmain.php%3Fg2_view%3Dcore.UserAdmin%26g2_subView%3Dcore.UserLogin%26
and I wish www.mysite.de/impressum
Mindless: what do you mean with
here is module.inc
Posts: 8601
i mean remove the text
'return' => 1
and the comma before it in the function called getSystemLinks. this answers the question above about how to omit the g2_return and g2_navId values in the URL.Posts: 88
Sorry, I just see now your answer.
I change
into
Posts: 88
GREAT
I just have try this change: It works!!!!
another question: how / where can I change the HTML TITLE:
I alway have the same title as the login
I wish something like that: <title>about page</title>
Posts: 5
I'm wondering if its possible to have a different about page for separate users?
Posts: 14
Bit late but decided to post so someone else didn't spend half the night working this out ;) (Yes, I really should get a life!)
In theme.tpl:
find
replace
with:
* Assumes your theme includes {g->head} (I'm using matrix)
* Assumes you are using URL_Rewrite to get a url of /main.php/aboutpage - otherwise replace with your own URL.
* Don't forget to create a folder named local in the directory you found theme.tpl and save the amended version there, rather than overwrite your original theme.tpl
I only installed Gallery2 less than a week ago, so feel free to shout up if this is crackers but after umpteen coffee's, this is the best I got :D
Cheers
Posts: 8601
Another thing to try: edit aboutpage/module.inc, function getSystemLinks and change
'view' => 'core.UserAdmin', 'subView' => 'aboutpage.About'
to just'view' => 'aboutpage.About'
. Then the title should be 'Contact :: About', which you can edit in About.incPosts: 14
Cool, thats much easier actually! I'll create a new module and edit it appropriately.
Thanks
P.S This also solves the sidebar issue if that's been giving anyone a headache.
Posts: 88
@mindless:
I change in the module module.inc the function getSystemLinks into
Now, as you wrote, I see the Title "Contact::About"
I suppose the title comes from module About.inc
Now I have two new issues:
* The title ("Contact::About") is now better as before but not perfect. I want to change it to my German translation. I mean the title muss supports the normal translation process [with g->text or something like that].
I read the help (http://gallery.menalto.com/apidoc/GalleryCore/Classes/Gallery.html#methodi18n, http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryPlugin.html#methodtranslate, ...) an try a lot but I not found the right answer.
Can you help me?
* the RewriteRules does not work after this last change (see above):
Before the change I have www.mysite.de/.../impressum (I set in the URL Rewrite "Impressum").
After the chane of the view I become www.mysite.de/.../main.php?g2_view=aboutpage.About
What can I do to fix the two issues?
thanks
Eric
PS: I take the same change for the module contactowner and become the same issues
Posts: 8601
2) remove core.UserAdmin in the getRewriteRules function of module.inc too.. you may need to then reactivate URL rewrite module and/or about module.
1) change the $gallery->i18n to $module->translate in About.inc. then just above that line add:
Posts: 43
Not sure if it has anything to do with the plugin, but I installed it, configured it, and then.. my plugin page will not show again.
I went back with the browser and lukily the page was in cache, and uninstalled it, but now, my plugin page will not show - all else is working fine and this is the only plugin that I installed before and after this issue..
Have you heard of anything like that? and if so, what do I need to do to fix this issue?
-- Skidpics
Posts: 57
Is there a way the about page could just display preexisting html pages in its window, without putting the html code in there, just telling it the location of the page to display.
Sort of like frames in html. Or is there any other plugin that is able to do so?
Posts: 314
use htmlitem module. you can edit files and then display them.
serbanc - www.e-poze.ro
Posts: 57
I dont think this is what i'm realy looking for.
I would like the option to add links to the space where the Login Option is, just as the AboutPage-Plugin and then i would want it to open a external link, a Guestbook.php, an allready existing aboutme.html page. But it should open in the gallery environment, as the AboutPage-Plugin does.
Posts: 314
like here ?
http://www.e-poze.ro/gallery2/ - entry page
http://www.e-poze.ro/gallery2/file/site-ro-AllArticles.html - html file
serbanc - www.e-poze.ro
Posts: 57
I think so yes, how do i do that with your that plugin you mentioned?