TinyPortal

Development => Support => Installation => Topic started by: esber on November 14, 2008, 07:21:13 PM

Title: Add Theme for tiny portal to show on
Post by: esber on November 14, 2008, 07:21:13 PM
i use a theme on my forum which is obviously not defaulyt i see when tiny portal installs it only installs for babylon and default....what do i have to edit in order for it to install on the theme im using.....im running s,f 1.1.5
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 14, 2008, 08:05:16 PM
Its different for each version of TinyPortal. If you could provide us with the information from the
Posting Guidelines (http://www.tinyportal.net/index.php?topic=581) that would be great.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 14, 2008, 08:16:40 PM
tp version 0.9.8 and i dont have any mods in stalled other then tiny portal
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 14, 2008, 08:20:38 PM
In 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.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 14, 2008, 08:22:00 PM
ok so install tp 1st then add those edits to my themese index.templete.php file?
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 14, 2008, 08:23:51 PM
Yep. There are several files explained on that page, so make sure you follow only the instructions for the one file.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 14, 2008, 08:27:29 PM
wish there was a way to edit the tp install for to cvhange it from istalling from babylon to ______ whatever theme you would like...prolly would be much easier that way
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 14, 2008, 08:29:11 PM
Thats the beauty of TP 1.x. You don't have to make those edits to themes anymore. :)
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 14, 2008, 08:41:44 PM
oh so then ill try to use that because i cant find some of those edits


do i need to make any edits how do i do it this way
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 14, 2008, 08:46:59 PM
Before you do, make sure you read up on the bugs in the support board and bugtracker to see if you are able to put up with the quirky things in it. Until Bloc fixes them anyway. :)

I should also note, that what I said isn't 100% correct on editing the theme. You do have to add a forum button. But thats it.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 14, 2008, 08:50:21 PM
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?

Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 14, 2008, 09:13:52 PM
TP 0.9.8 is the most stable.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 14, 2008, 09:33:52 PM
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?
Title: Re: Add Theme for tiny portal to show on
Post by: Ken. on November 14, 2008, 09:38:10 PM
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.
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 14, 2008, 10:19:37 PM
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.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 14, 2008, 10:57:45 PM
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>'
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 15, 2008, 12:06:47 AM
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>';
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 15, 2008, 04:09:51 AM
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.
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 15, 2008, 04:47:25 PM
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.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 15, 2008, 05:00:04 PM
// 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
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 15, 2008, 05:43:19 PM
even tried this

// 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>
                                   <li class="mainnavDivider"><!-- /--></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>';
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 15, 2008, 07:32:33 PM
You need to post your code within the code tags as I stated. Otherwise your code gets output wrong in your post. As you can see any </ a > tag gets turned into [/ url]. It would probably be better if you just attached your file.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 17, 2008, 03:21:40 PM
http://rapidshare.com/files/164666588/New_Compressed__zipped__Folder.zip.html


this file contains my index templete php with screen shots of how it leaves the forum button blank and another issue i get when i click on profile if someone can look thru this and help me it would be much appreciated
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 17, 2008, 03:24:26 PM
Please, just attache the file directly to the post, it's tiresome to have to install things on our local machines just to be able to help you.
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 17, 2008, 03:51:52 PM
As G6  said it is easier if you just attach the file to your post. I downloaded it though. Your $txt string is wrong.

$txt[forum] needs to be $txt['tp-forum']
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 17, 2008, 03:55:24 PM
sorry didnt see anything to attach file so i did it that way also were u able to notice anyhting about why the profile doesnt work?
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 17, 2008, 04:06:01 PM
when you click the reply button, you get to the page where you type in what you want to say, under that frame you type in, you have a link called "Additional Options..."
There you have attachments options
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 17, 2008, 05:38:20 PM
ok here it is....alo i dont know if i shgould start new topic bout profile issue or just attach another file here
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 17, 2008, 05:53:27 PM
Try this
You forgot to add the forum to the arrary and also the output for the forum text was wrong, it needed to be ['tp-forum'] and not just [tp-forum]

For your profile, you are missing out on the tp code in the profile.php and profile.template.php

Follow the code guide here
Modification Instructions (http://docs.tinyportal.co.uk/index.php?topic=140)
And add in the missing code for tp
Title: Re: Add Theme for tiny portal to show on
Post by: Crip on November 17, 2008, 06:04:14 PM
G6  :)
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 18, 2008, 03:54:56 PM
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
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 18, 2008, 04:54:55 PM
just copy the forum button code and change the link to your chat instead
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 21, 2008, 08:33:44 PM
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>';


Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 21, 2008, 08:51:48 PM
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>';
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 21, 2008, 09:19:54 PM
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
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 21, 2008, 09:28:00 PM
try this instead
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 21, 2008, 09:29:55 PM
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. :)
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 21, 2008, 09:30:46 PM
Just did what you said IchBin ;)
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 21, 2008, 09:41:29 PM
well its still the same i dont know whats going on im really lost
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 21, 2008, 09:48:02 PM
at this point im just about ready to pay someone to fix this lol anyone wanna help?
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 21, 2008, 09:48:45 PM
I think you are better off asking the theme creator to help you, it's free to  :D
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 21, 2008, 09:53:14 PM
well to be honest i dont htink its a theme problem i think its deeper then that......is there anyway i can talk to u on msn or a messenger?
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 21, 2008, 10:08:03 PM
I'd bet some money that you're file didn't get updated or replaced properly.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 22, 2008, 02:16:26 PM
looks fine to me so i dont know but this is also not the only issue i needed help with imean the other 2 issues should be easy which is why i said id be willing to pay to fix this because ive been going through this for months i just want to be done with it..............attached the current file
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 22, 2008, 03:07:25 PM
You have to ask the theme creator to help you as they know the code in their themes.
Title: Re: Add Theme for tiny portal to show on
Post by: esber on November 22, 2008, 03:18:12 PM
ive tried im getting no resposnse :(
Title: Re: Add Theme for tiny portal to show on
Post by: G6Cad on November 22, 2008, 03:35:23 PM
You have to wait for them to respond, they dont get paid for support just like we dont on this site, so giving support on issues are on free will and free time.
You have to give them time  :)
Title: Re: Add Theme for tiny portal to show on
Post by: IchBin on November 22, 2008, 06:04:00 PM
Your file is still not updated on your site. PM me if you'd like some help on this. Please reference this topic and give me details on what you need done. I get a lot of PM's so I'll probably be wondering why you're PM'ing me. :)