TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 11, 2024, 11:43:37 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,187
  • Total Topics: 21,220
  • Online today: 104
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 86
  • Total: 86

Making Static Pages Mod work with buttons

Started by SundayNiagara, August 25, 2005, 03:36:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SundayNiagara

I previously stated that I am using the helios_multi_tp theme .  I have 6 different buttons ready. helios_links , helios_gallery , helios_nascar , helios_news , helios_races , helios_reunions and helios_webservices .  I want this mod to work from the main menu, just like my sites do now.
Mark

IchBin

#11
My apologies, I read so many threads here I didn't remember you telling me that.

Anyway, here we go. Search for this line in the helios index.template.php.

echo '<td><a href="">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="Forum" style="margin: 0px 0;" border="0" />' : 'Forum'), '</a></td>';

What you can do is copy that line and paste it after that line. Then edit it each time you need for each link you're going to put in.
Here's and example of what you would do:

echo '<td><a href="link to your file (links.html?)">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/name of your image here(helios_links.gif)" alt="Links" style="margin: 0px 0;" border="0" />' : 'Links'), '</a></td>';

SundayNiagara

Normally this code is in a section after // ????????????????????????????????????? .  Can you tell me where?  I can get close, but there appears to be more code than you are showing.
Mark

IchBin

Its towards the bottom of the index.template.php file where it says.
// Show the [home] and [help] buttons.

SundayNiagara

echo '<td><a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="Forum" style="margin: 0px 0;" border="0" />' : 'Forum'), '</a></td>';

This is as close as I can get.  Is this it?

Bjørn


SundayNiagara

What do I name this page, links.php?
Mark

Bjørn

No..you just use the same index.template.php. I assume you want extra buttons? Then you need to add that code bit for every extra button you want to show.

SundayNiagara

No, the static page, what do i call that?
Mark

IchBin

What type of page is it? Is it a php or html page? If it has any php code in it you must name it .php. You can name it whatever you want as long as it's the right filetype. Then, in your link you must use the same name to call it.