TinyPortal

Development => Feedback => Topic started by: Xarcell on October 28, 2005, 05:04:27 AM

Title: Adding TP To My Theme {problem}
Post by: Xarcell on October 28, 2005, 05:04:27 AM
I've tried adding TP my to my but I keep getting a parse error, and I cannot figure out how to fix it.

Test site: http://feyorin.com/smf/index.php

I think it might have something to do with this code:



}

// TinyPortal
         echo '</div>';
     if($context['TPortal']['fixed_width']!=0)
             echo '</td></tr></table>';
// end

echo '

</td>
<td style="background-color: #3C3C3C; background-image: url(http://www.veoclan.com/smf/Themes/veo-default/images/railbar_right.gif);" width="10" valign="top"></td>
</tr></table>

</body>
</html>';
}



Any suggestions?

-X
Title: Re: Adding TP To My Theme {problem}
Post by: IchBin on October 28, 2005, 03:25:41 PM
Is there any reason you've added the forum link at the bottom and the variable? It's already there above where you put it in. I can't see any immediate errors, but I'll keep looking. Is this the default theme?
Title: Re: Adding TP To My Theme {problem}
Post by: Xarcell on October 28, 2005, 04:31:21 PM
No it's an old 1.0 theme that I worked with to get it working for rc1. It was working, but to get it working I had to keep tampering with that area of code I suggested in the first post.
It gave me teh same problems...

I don't know php, but I kept adding and removing stuff till it worked, lol. I used the default theme to try and compare to update the code. It was working though...

I didn't notice the forum link, I removed it. It was from when I installed simpleportal, and I wanted a button link directly to the forum.

-Xarcell
Title: Re: Adding TP To My Theme {problem}
Post by: Xarcell on October 28, 2005, 04:35:47 PM
I added another } before ?>.

Now it loads, but carries this error:

Fatal error: Call to undefined function: template_menu() in /home/.abigaildryer/xarcell/feyorin.com/smf/Sources/Load.php(1598) : eval()'d code on line 417

EDIT: I think I have one too many { somewhere...
Title: Re: Adding TP To My Theme {problem}
Post by: Xarcell on October 28, 2005, 04:47:53 PM
Ok, I found my extra { it comes from:



// TinyPortal
     if($context['TPortal']['showtop']==1)
     {
// TinyPortal end




So when I remove it, the theme works without errors, but I know I need that code. Any suggestions as to where I should place my }  after that code to fix it?

EDIT: I left teh tp code, and just removed the { part of it. It works now, but everything seems to be outta whack.

-Xarcell
Title: Re: Adding TP To My Theme {problem}
Post by: Xarcell on October 28, 2005, 05:20:05 PM
I got everything working, but I just don't think this theme can be saved. Everything isn't showing up (images) because the width on the admin.news is too long. I try to change the settings "show user/news at top = no" it kills the theme and the news block still shows.

I think the theme is beyond saving.

-Xarcell
Title: Re: Adding TP To My Theme {problem}
Post by: IchBin on October 28, 2005, 06:09:54 PM
Might be better to just start fresh. :)
Title: Re: Adding TP To My Theme {problem}
Post by: Xarcell on October 29, 2005, 04:51:56 AM
Ya, I guess I'll jhust try another theme. I can't make themes, only alter them. I really liked that one.
Title: Re: Adding TP To My Theme {problem}
Post by: Xarcell on November 02, 2005, 07:28:04 PM
Man I just can't let go of this theme. I still been working on it and been trying to work out the kinks in it.

Anyone wanna update the original to 1.1rc1, then update for tp? Then everyone can use it.

It's the grey daze skin for smf 1.0



-Xarcell