SimplePortal

Customization => Themes and Graphics => Topic started by: aQSteve on January 26, 2009, 04:37:05 AM

Title: Forum Link?
Post by: aQSteve on January 26, 2009, 04:37:05 AM
I've just installed simple portal for the first time and it looks interesting.

However when I enable it theres no link to my forum, Is this a problem with my theme or is there an option I have yet to turn on?


Cheers


Edit:

From another post I think you may need this info

Forum Version   1.1.7

Portal version  2.1.1

Theme Vegabond   (can't seem to locate on SMF site anymore)


www.aq-clan.co.uk  forums here

http://www.aq-clan.co.uk/files/inde.templetphp.rar

Title: Re: Forum Link?
Post by: Tiribulus on January 30, 2009, 01:22:14 PM
I've just installed simple portal for the first time and it looks interesting.

However when I enable it theres no link to my forum, Is this a problem with my theme or is there an option I have yet to turn on?


Cheers


Edit:

From another post I think you may need this info

Forum Version   1.1.7

Portal version  2.1.1

Theme Vegabond   (can't seem to locate on SMF site anymore)


www.aq-clan.co.uk  forums here

http://www.aq-clan.co.uk/files/inde.templetphp.rar

USE AT YOUR OWN RISK!!!!!!!

This worked for me, but I am VERY new to this so take it for what it;s worth.

I started by taking this:

Code: [Select]
// Show the [forum] button.
if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">' . $txt['sp-forum'] . '</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

From the index.template.php file from the default theme and pasting it into the index.template.php file for the theme I was using. I put it in the same section between the home button and the help button. I have been doing this totally by intuition and surmised that it was probably important that the spacing and everything was important, though the honchos here may correct me.

For my theme (bright forest I wound up copying the entire section for the button bar from the index.template.php for the default theme matching it as exactly as I could tell, into the one for that theme.

That made everything work like I wanted. I am not positive, but it's possible this produced some of the errors in my log though everything was working perfectly. The errors were fixed in about 2 minutes with the help of one of the guys at the SMF forums.

Like I say, I am a novice though a reasonably smart guy so your fate is in your hands.

BACK UP YOUR INDEX.TEMPLATE.PHP FILE FROM THE OTHER THEME FIRST!!!!!

If it OD's just copy the original file back.
Title: Re: Forum Link?
Post by: Nathaniel on February 04, 2009, 03:02:03 AM
@aQSteve,
Tiribulus is on the right track, you need to add a new forum button by editing that file.

The tutorial below should help you to do that:
http://simpleportal.net/index.php?topic=148.0
Title: Re: Forum Link?
Post by: aQSteve on February 10, 2009, 06:02:03 PM
Thanks for the help after MANY trials and errors I managed to replace the help button with a forum button.
SimplePortal 2.3.8 © 2008-2024, SimplePortal