SimplePortal
Customization => Themes and Graphics => Topic started 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
-
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.
-
Here you go.
Thanks!!! :D
-
The attached file should work, wasn't able to test it though because I don't know exactly which theme that is.
-
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!!!
-
I made changes in the 'template_menu' and 'template_menu_render' functions.
-
have just updated that file and it looks like it has fixed the problem but now whole layout hac changed.
-
Dont Worry!! lol
My mistake
-
still not wokring :(
its not showing a fourm button
-
Which theme are you using? If I know which theme and can test it then that should help. :)
-
Yeah thats cool :D Thanks!!
The Theme is Called Halloween.
Good Luck!! :D
-
His Is the link: http://custom.simplemachines.org/themes/index.php?lemma=376
-
Attached file should work.
The only changes are in the 'template_menu' and 'template_menu_render' functions .
-
It still didnt work.
Doesnt seem to show a button what so ever,
Here is a screenshot with the new template.
-
Are you running 2.1.1? The edits I made were for SP 2.2.
Also, which mode do you have SimplePortal set to?
-
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.
-
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.
-
ahhhhhhhhhhhhhhhhh thanks!!!!!!!!!!!! :D
its all working!!!! thanks
again thanks to everyone!!!!!
Special Thanks To LHVWB!!!