TinyPortal

Development => Support => Topic started by: Smoky on January 16, 2008, 09:26:29 AM

Title: Code button help please!
Post by: Smoky on January 16, 2008, 09:26:29 AM
I am trying to make a button out of a url, and its not showing up.. i want it to show in the area of the forum, gallery etc., and the code that i am using, it isn't showing up..

maybe i have a space or typo or??

here it is:



    // the [Tutorials] button
if ($context['allow_tutorials_view'])
echo ($current_action == 'tutorials' || $context['browser']['is_ie4']) ? '<td                class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'tutorials' ? 'active_back' : 'back' , '">
<a href="http://www.twistedgraffix.com/tutorial/">Tutorials</a>
</td>' , $current_action == 'tutorials' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
         


would apperciate it if someone could go over it for me.. thanks..  ;)
Title: Re: Code button help please!
Post by: G6Cad on January 16, 2008, 09:30:10 AM
remove this bit of code and try again
if ($context['allow_tutorials_view'])
Title: Re: Code button help please!
Post by: Smoky on January 16, 2008, 09:34:19 AM
ok G6.. thanks..  :D

that did work, just wrong button on it lmao!! is happy again.. more coffee.. almost done.. whipping out my photoshop and time to doodle!! woohooo!!!   :D ;)
Title: Re: Code button help please!
Post by: IchBin on January 17, 2008, 02:33:35 AM
Smoky, 500+ posts and you still haven't read the sticky posts in here?..../me sighs...
Title: Re: Code button help please!
Post by: Smoky on January 17, 2008, 03:15:19 AM
rofl umm ICH.. i think my eyes were alergic to coding at what time I posted  :2funny: heck im still messing with code  :knuppel2: mmm.. i need kleenex.. im eyes are swollen, and i feel like i been on a 3 day spin.. and this is just for my main part of my site /me bangs head on floor repeatedly

next i get to re theme a wordpress theme, and code it too.. why oh why.. do we do these things??   :buck2: :2funny: