TinyPortal

Development => Support => Topic started by: shadrach on December 21, 2006, 08:19:34 PM

Title: Dumb question
Post by: shadrach on December 21, 2006, 08:19:34 PM
I'm trying to get rid of the folder icon and link here on my front page. How do I do that?

http://distorted-logic.com/index.php (http://distorted-logic.com/index.php)
Title: Re: Dumb question
Post by: JPDeni on December 21, 2006, 08:25:30 PM
Open TPortal.template.php in your theme directory. If you don't find it in your theme directory, look in Themes/default/.

Look for

// show the linktree
if((isset($context['TPortal']['boardnews'][0]['options']['linktree']) && $context['TPortal']['front_type']!='frontblock') || $context['TPortal']['front_type']=='frontblock')
echo '
<div style="margin-bottom: 4px;">', theme_linktree() , '</div>';


Delete that code.

Basically, you want to get rid of the call to theme_linktree().
Title: Re: Dumb question
Post by: shadrach on December 21, 2006, 08:56:09 PM
There is no TPortal.template.php in there. Its the Blue101 theme
Title: Re: Dumb question
Post by: G6Cad on December 21, 2006, 09:21:33 PM
If you dont have the files in the themes, the themes will use the files from the default theme, so look for the file in your themes/default directory and make the edits there as JPDeni described :)
Title: Re: Dumb question
Post by: shadrach on December 21, 2006, 10:03:44 PM
Aha, got it, thanks :-)
Title: Re: Dumb question
Post by: iwyen on December 22, 2006, 04:37:52 AM
Make a copy of TPortal.template.php to Blue101 and amend that copy. Saves you some problem in the long run when TP needs to update TPortal.template.php
Title: Re: Dumb question
Post by: G6Cad on December 22, 2006, 09:28:13 AM
Good call there iwyen  :up:
Title: Re: Dumb question
Post by: EERocket on January 03, 2007, 06:20:45 AM
Hey guys, got another dumb one for ya. Just got smf1.1.1 and TP 97 updated and running great. I was in the proccess of reinstalling my mods and wound up with what looks like my mods script running at the top of my indexs.

Im not needing mod help, but the mod was Users online today 1.4.0
I made sure I was in the default theme before starting th install and the mod actualy worked corectly. Its just this blasted text that I cant seem to locate. Below is the text appearing at the top of the pages and a link if anyone would like to glance at it.

$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden'; $txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';  

Any advice, greatly appreciated.    http:theconcordiaunderground.org/forums

Title: Re: Dumb question
Post by: Nokonium on January 03, 2007, 06:31:15 AM
You have code in the wrong place in your index template. The users on line mod, uol, has caused it. Do you have the correct version installed?
Title: Re: Dumb question
Post by: EERocket on January 03, 2007, 07:02:44 AM
As far as I know its the correct version. I never saw any errors and I used the package handler. Everything tested fine. Can I uninstall the mod and manualy edit the text from the index template or is it not going to be that simple.

Title: Re: Dumb question
Post by: Assistance on January 03, 2007, 11:22:38 AM
could be simple

grab a program like winmerge.org

have ur current file beside the orignal
grab the manual install edits and search from there

real simple on that route

or easier?
remove installed mods, drop the orignal php that the code was edited too

my guess would be themedir/BoardIndex.template.php
Title: Re: Dumb question
Post by: EERocket on January 03, 2007, 11:49:07 AM
Second option worked just fine, thanks man , im back on track. O0
Title: Re: Dumb question
Post by: Assistance on January 04, 2007, 06:23:37 AM
glad I could be of ....assistance
Title: Re: Dumb question
Post by: Zetan on January 20, 2007, 11:08:44 AM
The same thing happened to me when I upgrad
Quote from: EERocket on January 03, 2007, 06:20:45 AM
Hey guys, got another dumb one for ya. Just got smf1.1.1 and TP 97 updated and running great. I was in the proccess of reinstalling my mods and wound up with what looks like my mods script running at the top of my indexs.

Im not needing mod help, but the mod was Users online today 1.4.0
I made sure I was in the default theme before starting th install and the mod actualy worked corectly. Its just this blasted text that I cant seem to locate. Below is the text appearing at the top of the pages and a link if anyone would like to glance at it.

$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden'; $txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';  

Any advice, greatly appreciated.    http:theconcordiaunderground.org/forums



The same thing happened to my forum when I upgraded.
I did a CTRL F5 and cleared the cache, and that seemed to fix it.
Might be cookies too?!?