Author Topic: Adding more menu items to {userbox}  (Read 6021 times)

0 Members and 1 Guest are viewing this topic.

Offline Bodyworks

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.digitalfotos-online.de
Adding more menu items to {userbox}
« 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.
Regards
Bodyworks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Adding more menu items to {userbox}
« Reply #1 on: April 10, 2003, 03:03:04 AM »
{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
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Bodyworks

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.digitalfotos-online.de
How do add more menu items in user_logininfo.html
« Reply #2 on: April 10, 2003, 03:14:45 AM »
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
Regards
Bodyworks

Offline Neo1

  • Full Member
  • ***
  • Posts: 202
    • View Profile
    • http://www.terradreams.de/
Adding more menu items to {userbox}
« Reply #3 on: April 10, 2003, 03:59:27 AM »
Your templates (part with links) look like this:

Code: [Select]
&raquo; <a href="{url_new_images}">{lang_new_images}</a><br />
&raquo; <a href="{url_lightbox}">{lang_lightbox}</a><br />
&raquo; <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
Quote
&raquo; <a href="{url_new_images}">{lang_new_images}</a><br />
&raquo; <a href="{url_lightbox}">{lang_lightbox}</a><br />
&raquo; <a href="{url_control_panel}">{lang_control_panel}</a><br />
&raquo; <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.

Offline Bodyworks

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.digitalfotos-online.de
New Menus in Link Section
« Reply #4 on: April 10, 2003, 04:05:07 AM »
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:

  &raquo; <a href="{url_uebermich}">Über mich</a><br />
  &raquo; <a href="{url_equipment}">Equipment</a><br />
  &raquo; <a href="{url_diashows}">Diashows</a><br />
Regards
Bodyworks