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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 572
  • Total: 573
  • @rjen

Add Theme for tiny portal to show on

Started by esber, November 14, 2008, 07:21:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

esber

#30
ok well this may not be something you can help me with but i fifugre since you have all been 100% accurate so far maybe you can help me get the job done. im trying to add a chat tab to my theme and also change the profile to user cp. now the chat code i figure should be easy its the user cp that may be a little harder. after installing user cp the code in my deafult templete changes to this .edit ive figured the user cp issue out.....



im trying to figure how to edo the code in the format that my theme is done if no1 can help i understand.

also just for future refrences the actual problem with my profiles not working was for some odd reason tiny portal seems to have duplicated codes in alot of diff files into my profile php and index templete for other themes by searching for the add on in your modification thread i was able to find and delete the duplicates. thnx everyone fo all the help so far.  ;D

G6Cad

just copy the forum button code and change the link to your chat instead

esber

ok i have something retarded going on if im logged in i can see the forum button but if i log out or if anyone else is logged on the site the button is not there .

this is code im using for the button




[  // Show the [forum] button.
   echo '
               <li><a href="', $scripturl, '?action=forum">' , $txt['tp-forum'] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';



G6Cad

Try this code instead.
And also, the code you posted have this [ infront, remove that part

if($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
   echo '
               <li><a href="', $scripturl, '?action=forum">' , $txt['tp-forum'] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

esber

wow this is driving me crazy its till doing the same thing and people are having issues logging and to try to see if they can log out then back in to see if its works i have attached my file below i dont know where to go from here


my site is wearesik.com/forum

G6Cad


IchBin

Remove the "if" statement that G6 gave you. It won't work that way, and is really not necessary.

Your button is actually there, but is not showing because the ' , $txt['tp-forum'] , ' is probably not defined in TP .0.9.8. Remove the code (including single quotes and commas), and just add the word Forum in there.

--edit

exactly what G6 did. :)

G6Cad


esber

well its still the same i dont know whats going on im really lost

esber

at this point im just about ready to pay someone to fix this lol anyone wanna help?

This website is proudly hosted on Crocweb Cloud Website Hosting.