Author Topic: Add new box to navbar  (Read 5451 times)

0 Members and 1 Guest are viewing this topic.

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Add new box to navbar
« on: December 27, 2005, 11:35:32 PM »
Hello everybody!

IŽve got a question.

When I create a new box e.g. called "Partner" to my navbar, I have to add this box to all template files like: postcard_create.html, search.html, home.html, lightbox.html, top.html...... much more

Now when IŽll change links in this box, I have to repeat this again in every *.html file  8O

Is there another way to do this easier?

like:
Code: [Select]
<table border="0" cellpadding="0" cellspacing="0" width="150">
<tbody>
<tr>
<td background="{template_url}/images/top-in-tab.gif" width="150" height="28">&nbsp; {lang_partner_box}</td>
</tr>
<tr>
<td background="{template_url}/images/in-tab.gif" width="150">

{partner_box}

</td>
</tr>
<tr>
<td width="150" height="9" background="{template_url}/images/bot-in-tab.gif"></td>
</tr>
</tbody>
</table>

So I only must change my partner_box.html and this will take effect to all *.html files :?:

Project offline

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Add new box to navbar
« Reply #1 on: December 27, 2005, 11:41:25 PM »
Quote

{partner_box}


May I ask from which PHP file this array comes from ? ;)

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
Re: Add new box to navbar
« Reply #2 on: December 28, 2005, 02:28:22 AM »
The only way you can do this is to add your code into user_loginform.html (for guests) and user_logininfo.html (for members) templates
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 Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: Add new box to navbar
« Reply #3 on: December 28, 2005, 11:30:12 AM »
Quote

{partner_box}


May I ask from which PHP file this array comes from ? ;)
I know that tag doesnŽt exist. It was an example  :)

The only way you can do this is to add your code into user_loginform.html (for guests) and user_logininfo.html (for members) templates
Thanks! IŽve allready defined this two html-files!

The cause of my question is that IŽve seen a 4images gallery with a tag for google-promotion called {werbung} (<- in german=promotion) on the left navigation.

When I remember this page, I will post or ask the webmaster how he had do this...

Project offline