TinyPortal

Development => Support => Topic started by: ahrasis on April 02, 2008, 01:53:11 PM

Title: How to turn off userinfo/news in TP1.0.5
Post by: ahrasis on April 02, 2008, 01:53:11 PM
Try everything but seems not working. Please advise.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: G6Cad on April 02, 2008, 01:55:12 PM
Depends on what theme you have installed, but Settings/current theme should hold that if it's an option in the theme.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: ahrasis on April 02, 2008, 04:59:21 PM
Quote from: G6 on April 02, 2008, 01:55:12 PM
Depends on what theme you have installed, but Settings/current theme should hold that if it's an option in the theme.
Default. And I am not talking about theme capability. Previous version of TP has the capability to turn it off. From what I have tried the frontpage setting in TP 1.0.5 seems like having the same function but turn it off there does not work. Hope Bloc can look into this.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: IchBin on April 02, 2008, 05:56:54 PM
That options IS a theme dependant option. With TP 0.9.8 it added the code to the index.template.php file to make this possible. With TP 1.0 this code is NOT added to the template file. I think the option should just be removed and added as a theme option by the theme designers.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: ahrasis on April 05, 2008, 11:07:23 PM
Quote from: IchBinâ,,¢ on April 02, 2008, 05:56:54 PM
That options IS a theme dependant option. With TP 0.9.8 it added the code to the index.template.php file to make this possible. With TP 1.0 this code is NOT added to the template file. I think the option should just be removed and added as a theme option by the theme designers.
Well I guess it has been removed or it is not functioning any longer as it used to be before. Anyway, as it can be done manually, I will do it manually then.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: Dynotrick on April 08, 2008, 10:37:27 PM
how to do this manually?  i'm disapointed that this option is removed.  if it's too complicated to do manually then there is no point in the existance of the user block i guess.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: IchBin on April 09, 2008, 03:34:21 AM
You put this code around the portion of code that you want to hide.
// TinyPortal
     if($context['TPortal']['showtop']==1)
     {
// TinyPortal end


And
// TinyPortal
       }
//  end
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: ahrasis on April 09, 2008, 10:58:41 PM
Quote from: IchBinâ,,¢ on April 09, 2008, 03:34:21 AM
You put this code around the portion of code that you want to hide.
// TinyPortal
     if($context['TPortal']['showtop']==1)
     {
// TinyPortal end


And
// TinyPortal
       }
//  end

A nice advice but with no direction IchBinâ,,¢. The reason is, IMHO, there is just no button to turn it off in the TP 1.0.5 setting page. As I remember, normally there is a button where we can check in TP setting page to make it appears or dissappears. So I really believe using the above will not turn off userinfo/news.

As I said until Bloc put it back in his TP code, it will have to be done manually. How? Simply edit index.template.php. This is for default theme only. I do not know how to edit other themes until I see them. But normally they are almost the same.

Find:

</head>
<body>';

Add after that:

/*


And find:

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>';

Add after that:

*/


That is it. Hope it can help you Dynotrick or anyone else who need to turn off userinfo/news for the time being.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: IchBin on April 10, 2008, 03:52:23 AM
Not true, look in your frontpage settings in TP 1.0. There is an option to display userinfo/news on that page.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: ahrasis on April 11, 2008, 02:26:37 PM
Quote from: IchBinâ,,¢ on April 10, 2008, 03:52:23 AM
Not true, look in your frontpage settings in TP 1.0. There is an option to display userinfo/news on that page.
Yes you are right. In fact, I already mentioned that earlier.
Quote from: ahrasis on April 02, 2008, 04:59:21 PM
Quote from: G6 on April 02, 2008, 01:55:12 PM
Depends on what theme you have installed, but Settings/current theme should hold that if it's an option in the theme.
Default. And I am not talking about theme capability. Previous version of TP has the capability to turn it off. From what I have tried the frontpage setting in TP 1.0.5 seems like having the same function but turn it off there does not work. Hope Bloc can look into this.
Anyway, your code will only turn off the userinfo/news for the frontpage only, not in the other pages (as the button is meant for the frontpage setting only). Thus, IMHO it will turn not the userinfo/news entirely on everpage except for the frontpage. Please guide me if I am wrong or misleading on this. I am just a newbie here anyway. ;)
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: IchBin on April 11, 2008, 02:39:51 PM
You are right, but the setting to shrink it permanently is a theme dependent option as said before. It was pulled out from TP 1.0.5 because not all themes support the option. So why not make it a theme option? You might be able to set $context['TPortal']['showtop'] = 1 in the index.template before that code to make it permanently stay that way.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: Akina on May 15, 2008, 08:56:31 AM
Hello :)

I am use this for make showtop invisible only in forum bat subforum (board,topic .. ) is off  ....

if($context['TPortal']['showtop']==1 && $context['current_action'] == 'forum' )

how can fix this ?


sory for me very lol english  :-X
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: IchBin on May 15, 2008, 03:27:55 PM
Akina, can you please follow the posting guidelines. First thing I want you to do is start your own topic so that this topic doesn't go off topic. Please read the guidelines that are linked in my signature.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: Akina on May 16, 2008, 09:12:43 PM
Sory i make me post on error topic  :( :(

sory agen  :( delete me post

i am search agen for True topic
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: ahrasis on May 17, 2008, 04:34:40 PM
Quote from: Akina on May 16, 2008, 09:12:43 PM
Sory i make me post on error topic  :( :(

sory agen  :( delete me post

i am search agen for True topic
Hi Akina. There is nothing wrong to ask. Just refer to the thread/topic so that you can know whether you are in the right place. If not, just create your own new thread/topic as suggested. Somebody will guide you along the way. Wishing you a good luck and success.
Title: Re: How to turn off userinfo/news in TP1.0.5
Post by: mc on July 28, 2009, 08:12:27 PM
Sorry for dragging this topic back up, but I don't think a new topic would be justified.

After doing a fresh install of SMF1.1.10 & TP1.0B4 onto my computer (via wampserver), and copying a new theme (modified version of an existing babylon theme) I'd been working on from a site that I updated from TP0.98 a few months ago, the userinfo box reappeared at the top.

On the original 0.98 site, I had selected that the userinfo was not shown within settings, and this setting has obviously been kept during the update to 1.0b4 as the userinfo box doesn't appear anywhere except in downloads (known issue from what I remember).

I'll workaround this, but obviously it is something that people may need to be aware of when they update from 0.98 to 1.0.
I spent well over an hour last night trying to figure out why the userinfo had suddenly reappeared, and how I couldn't remove it.