4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Bodyworks on April 10, 2003, 02:58:09 AM
-
Hi together,
i'm a newbie concerning 4images. I searched the whole code for the definition of {userbox} which is used in the templates. I'd like to ad some more menu items like V@no did on his HP.
Where can i find it?
http://web1.p15125279.pureserver.info/4images/index.php
I put in an external script but that does not please me because it looks completely different.
Thanks for your help.
-
{userbox} generates in /includes/page_header.php and it uses one of two templates: /templates/<yourtemplate>/user_loginform.html or /templates/<yourtemplate>/user_logininfo.html
-
Hi V@no,
thanks for your help.
I found the userbox entry in mytemplate/user_logininfo.html.
The URLs of the links are registered somewhere. How did you add your other Links and can i register completely different sections?
I my case i will integrate a guestbook, a section of tipps and tricks concerning photography and so on.
Thank you
-
Your templates (part with links) look like this:
» <a href="{url_new_images}">{lang_new_images}</a><br />
» <a href="{url_lightbox}">{lang_lightbox}</a><br />
» <a href="{url_control_panel}">{lang_control_panel}</a><br />
If you like to add a new page in your 4images folder you have to create a new template. Best way is to open a template like home.html
Save it as tippsandtricks.html
Now you can delete all things from this template that you don´t need and write your text to this page. Save.
Now you have to add the link to your new page in the user_logininfo.html & User_loginform.html
» <a href="{url_new_images}">{lang_new_images}</a><br />
» <a href="{url_lightbox}">{lang_lightbox}</a><br />
» <a href="{url_control_panel}">{lang_control_panel}</a><br />
» <a href="http://www.your_domain.com/4images/index.php?template=tippsandtricks">Tipps and Tricks</a><br />
sorry for my bad english...i hope you understand it ;)
You can see it here: http://www.terradreams.de/gallery/ I have done this with my FAQ page.
-
I found out to easily add some more menu items to the {userbox}.
Define your own URL's in page_header.php, where the other URL's are defined. I.E.
"url_uebermich" => $site_sess->url(ROOT_PATH."de_uebermich.php"),
"url_diashows" => $site_sess->url(ROOT_PATH."diashows.php"),
"url_equipment" => $site_sess->url(ROOT_PATH."de_equipment.php")
Next step:
Edit in your Template Dir the files:
userlogininfo.html and userloginform.html
If you want that all your own links come up (whether your users are logged in or not)
add source like that:
» <a href="{url_uebermich}">Über mich</a><br />
» <a href="{url_equipment}">Equipment</a><br />
» <a href="{url_diashows}">Diashows</a><br />