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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 446
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 185
  • Total: 185

How to turn off userinfo/news in TP1.0.5

Started by ahrasis, April 02, 2008, 01:53:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ahrasis

Try everything but seems not working. Please advise.

G6Cad

Depends on what theme you have installed, but Settings/current theme should hold that if it's an option in the theme.

ahrasis

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.

IchBin

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.

ahrasis

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.

Dynotrick

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.

IchBin

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

ahrasis

#7
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.

IchBin

Not true, look in your frontpage settings in TP 1.0. There is an option to display userinfo/news on that page.

ahrasis

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. ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.