SimplePortal

Customization => Themes and Graphics => Topic started by: Dream12 on April 10, 2009, 12:30:40 PM

Title: The Fourm button!!
Post by: Dream12 on April 10, 2009, 12:30:40 PM
Sorry Guys!!!

have been trying for a few weeks and can not get this to work.

Here is what i have typed for the fourm button:
// Forum button
          if(!empty($context['portalactive']))
   $context['menubox'][]=array(
            'title' => $txt['sp-forum'],
            'link' => $scripturl.'?action=forum',
            'chosen' => 'Forum',
            'memberonly' => false,
            'guestonly' => false,
            'permission' => '',
            );

Have atached the entire buttons but if you want to look at it.
thanks.

Am using SMF 1.8 and Simple Portal 2.2 on Front Page Mode
Title: Re: The Fourm button!!
Post by: Nathaniel on April 11, 2009, 04:36:38 AM
That theme is doing setting up its code differently to most SMF 1.1.x themes, could you please post the 'template_menu_render()' function as well, or your entire '/themes/{themename}/index.template.php' file. So that I can check over that functions code as well, its likely that code from that function will also need changing.
Title: Re: The Fourm button!!
Post by: Dream12 on April 11, 2009, 07:24:38 AM
Here you go.

Thanks!!! :D
Title: Re: The Fourm button!!
Post by: Nathaniel on April 11, 2009, 09:52:49 AM
The attached file should work, wasn't able to test it though because I don't know exactly which theme that is.
Title: Re: The Fourm button!!
Post by: Dream12 on April 11, 2009, 09:58:56 AM
Thanks

Just out of intrest what have u chnaged???

just wondering if i need to update the whole file of just the foumr button part????

thanks again1!!!
Title: Re: The Fourm button!!
Post by: Nathaniel on April 11, 2009, 10:03:03 AM
I made changes in the 'template_menu' and 'template_menu_render' functions.
Title: Re: The Fourm button!!
Post by: Dream12 on April 11, 2009, 10:46:54 AM
have just updated that file and it looks like it has fixed the problem but now whole layout hac changed.
Title: Re: The Fourm button!!
Post by: Dream12 on April 11, 2009, 10:52:02 AM
Dont Worry!! lol

My mistake
Title: Re: The Fourm button!!
Post by: Dream12 on April 11, 2009, 10:58:59 AM
still not wokring :(

its not showing a fourm button
Title: Re: The Fourm button!!
Post by: Nathaniel on April 11, 2009, 10:01:37 PM
Which theme are you using? If I know which theme and can test it then that should help. :)
Title: Re: The Fourm button!!
Post by: Dream12 on April 12, 2009, 06:00:19 AM
Yeah thats cool :D Thanks!!

The Theme is Called Halloween.

Good Luck!! :D
Title: Re: The Fourm button!!
Post by: Dream12 on April 12, 2009, 11:09:25 AM
His Is the link: http://custom.simplemachines.org/themes/index.php?lemma=376

Title: Re: The Fourm button!!
Post by: Nathaniel on April 12, 2009, 09:03:41 PM
Attached file should work.

The only changes are in the 'template_menu' and 'template_menu_render' functions .
Title: Re: The Fourm button!!
Post by: Dream12 on April 14, 2009, 08:42:08 AM
It still didnt work.

Doesnt seem to show a button what so ever,
Here is a screenshot with the new template.
Title: Re: The Fourm button!!
Post by: Nathaniel on April 14, 2009, 07:07:31 PM
Are you running 2.1.1? The edits I made were for SP 2.2.

Also, which mode do you have SimplePortal set to?
Title: Re: The Fourm button!!
Post by: Eliana Tamerin on April 14, 2009, 08:09:45 PM
He's running SP 2.2: http://www.swampys-swamp.co.uk/simplemachine/index.php

And he appears to be running it in Frontpage mode.
Title: Re: The Fourm button!!
Post by: Nathaniel on April 14, 2009, 08:20:20 PM
Whoops, sorry
It appears you actually posted that in your first post anyway.

Try the attached '.php' file, make sure that it overwrites your old '\Themes\halloween2007_11\index.template.php' file.
Title: Re: The Fourm button!!
Post by: Dream12 on April 15, 2009, 04:58:35 AM
ahhhhhhhhhhhhhhhhh thanks!!!!!!!!!!!! :D

its all working!!!! thanks

again thanks to everyone!!!!!

Special Thanks To LHVWB!!! 
SimplePortal 2.3.8 © 2008-2024, SimplePortal