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,231
  • Total Topics: 21,353
  • Online today: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 228
  • Total: 228

recent topics help for guest

Started by mikedown, April 23, 2008, 05:54:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mikedown

hey gurus i need your expertise

how do i set the recent forum topics in the main homepage for everyone view BUT when they click on the recent topic links they should be registered/logged in users to view it?
is it possible? im lost right now.



G6Cad

You have a setting for that

Allow gusest to see the news even if they are not allowed to wiew the board.

That leads automaticly to a registration page

mikedown

#2
bro i think your talking about TinyPortal - Front page settings

"Allow guests to see news from the news board - even if guest are not allowed to see the board"?

what i meant was

recent forum topics blocks.  how do i let it show for guest  and they log in when they click on it

my current settings are:

Allow guests to see news from the news board - even if guest are not allowed to see the board: YES
Allow guests to browse the forum: is unticked
recent topics block is: ticked to all


but in my front block is a login replacing the recent topic block



IchBin

I have not seen any block codes that will do this.

JPDeni

If you are absolutely sure you will always want to do this, you can edit the SSI.php file to do what you want. I think. :) Be really careful and be sure that you can put it back in case it doesn't do what you want.

In SSI.php, look for


function ssi_recentTopics


Down a little bit further, you'll see


$request = db_query("


This is the beginning of the code that does the search. Part of the search is


AND $user_info[query_see_board]


Take out that line.

Be aware that this will cause the script to do absolutely no permissions checking, which means that if you have any admin-only or staff-only boards, recent topics from those will show up, too. If you have any boards that you don't want everyone to see, it would probably be better to use the ssi function directly, instead of using the TP recentbox.

mikedown


mikedown

it doesnt do the thing i want to do :(
any suggestions?

JPDeni

What does it do?

I'm not exactly sure what you're wanting anyway. Is this the "canned" recenttopics TP block? Or an SSI block? Or a php block?


mikedown

uhmmm nothing as far as i know....

im using the recent topics TP block

i want the recent topics TP block to be shown to everyone in the homepage but when you click on the recent topics you need to be registered to view it (the forum).

JPDeni

And what version of TP are you using?

This website is proudly hosted on Crocweb Cloud Website Hosting.