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: 587
  • Total: 588
  • @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

#10
oooo ok thats what happened before when i did it lol.....knew something was missing....i dont mind bugs as long as site dont crash

which has less bugs currently?


IchBin


esber

ok new problem when i add the tab for forum on the 1.0.6 it puts the tab right under the search tab......what other edit must i make?

Ken.

#13
QuoteIn this topic http://docs.tinyportal.co.uk/index.php?topic=139  it shows you all the edits that are made for TP to work with a theme. The page is a little screwed up, so you have to horizontally scroll to see the file name. You only need to follow the instructions for the index.template.php file.

What browser are you using IchBinâ,,¢?
The page looks OK for me in FF, but if it's a problem I can do an edit to make the edit title show on the left side.

EDIT: Just looked at the page using IE7 and the display is off so I'll edit the titles.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

IchBin

Quoteok new problem when i add the tab for forum on the 1.0.6 it puts the tab right under the search tab......what other edit must i make?

Post your code so we can see what the problem is please.

esber

ok heres the code....it puts help and forum right on each other



// Start the main menu.
   echo '
            <ul class="mainnav">';
            
   // Show the [home] button.
   echo '
               <li><a href="', $scripturl, '">' , $txt[103] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';
               
   if($settings['TPortal_front_type']!='boardindex')
   // Show the [forum] button.
   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['tp-forum'].'</a>
            </td>' , $current_action=='forum' ? '<td class="maintab_active_last">&nbsp;</td>' : '';
   
   // Show the [help] button.
   echo '
               <li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';



// How about the [search] button?
   if ($context['allow_search'])
      echo '
               <li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>'

IchBin

Make sure when you post code that you use the code BBC so that the formatting of your code doesn't get changed.  If you look at the other buttons you'll notice they are not using the same code that you are. The code you have is for the default theme only. You need to copy one of the other buttons and change the appropriate things to make it work.

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

esber

i tried ur code this is what i get


Template Parse Error!
There was a problem loading the /Themes/Aa_New_Damage_v2/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

IchBin

Well you need to post what you have above and below the code you put in so we can see the error in your code.

esber

#19
// Start the main menu.
   echo '
            <ul class="mainnav">';
            
   // Show the [home] button.
   echo '
               <li><a href="', $scripturl, '">' , $txt[103] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';
               
   // Show the [forum] button
        echo '                                 
                                        <li><a href="', $scripturl, '?action=forum">' , $txt['tp-forum] , '</a></li>
   
   // Show the [help] button.
   echo '
               <li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';



// How about the [search] button?
   if ($context['allow_search'])
      echo '
               <li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

updated but still same error

This website is proudly hosted on Crocweb Cloud Website Hosting.