Customizing SMF > Tips and Tricks

[Trick] Redirect guests to the login page when trying to view a topic

<< < (3/3)

phantomm:
thanks ;)

shubha:
Thanks but already a mod is there.  "Look but no read".

fifacluborg:

--- Quote from: 医生唱片骑师 on April 15, 2012, 12:17:18 PM ---And change

--- Code: ---global $modSettings, $settings, $user_info, $board, $topic, $board_info, $maintenance, $sourcedir
--- End code ---
To

--- Code: ---global $modSettings, $settings, $user_info, $board, $topic, $board_info, $maintenance, $sourcedir, $context
--- End code ---
Not heavily tested but should work :) Actually it shows the login page rather than redirecting, but it has the same effect.

--- End quote ---
I not find this line! Can anyone tell me what file I find?
I did have searched in index.php and I not found nothing there... :(

Doctor Deejay:
You can find that in the index.php in the root of your forum (there are multiple index.php, each directory has one :P). ;) Also, I'm planning to release an updated version soon (Thanks Labradoodle :) ). ;D

Navigation

[0] Message Index

[*] Previous page

Go to full version