News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Hide Topics from Guests

Started by Suki, January 22, 2010, 09:56:02 AM

Previous topic - Next topic

OCJ

The mod works ...Im using it now. Even older mods will work if you set install emulate to that version.

Arantor

It really depends on the mod as to whether it'll work, some will, some won't.

-=[Vyorel]=-

My mods for SMF - [6].

Suki

sorry, I have no plans to make a 1.1.x version, however, the mod is pretty simple, you can follow the parser and adapt it for 1.1.x:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2380;attach=167502;smf_version=2.0_RC4
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Fair-Go

I would like to uninstall the "Hide Topics from Guests" v 1.0 mod but there is no "uninstall" option. My SMF is 1.1.13

Could you please help?

Regards, John

Fair-Go

Hi all... I worked out how to remove it (without any uninstaller), just follow these instructions:

In:

./Sources/Display.php

Just find:

if ($context['user']['is_guest']) redirectexit ('action=login');

And add "// ".. like this:

// if ($context['user']['is_guest']) redirectexit ('action=login');

In my version (1.1.13) the mod had not changed "Recent.php" (so I didn't need to do the following), but if your was changed, in :

./Sources/Recent.php

Find:

if (empty($messages) || $context['user']['is_guest'])

and replace with:

if (empty($messages))

As a newby to the back end, I thought I did quite well!

Regards, John

gigashiga

I am using smf 1.1.3

I installed it in packages bu there is no link to install it ( apply mod) :(
wont it work with 1.1.13 ?   :'(




OCJ

3 messages above you ...

Quotesorry, I have no plans to make a 1.1.x version, however, the mod is pretty simple, you can follow the parser and adapt it for 1.1.x:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2380;attach=167502;smf_version=2.0_RC4

gigashiga

#88
yes so sad that is why I was  :'(

Quote from: Miss All Sunday on March 08, 2011, 12:02:00 PM
sorry, I have no plans to make a 1.1.x version, however, the mod is pretty simple, you can follow the parser and adapt it for 1.1.x:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2380;attach=167502;smf_version=2.0_RC4

follow the parser?
please direct me what I need to do so that I can do it...

Suki

go to this link:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2380;attach=167502;smf_version=2.0_RC4


there you will find some instructions, such as find  x on your X file, replace with this.    you only need to follow those instructions on your files, make a back up first.


I may add support for 1.1.x but it will only after 2.0 is out and I start to update all my mods, bigger mods will have priority.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gigashiga

Hi thanks this has worked...wonderfully thankyou very much

i hope you wont mind If i add some suggestions
Like I would like to switch it on and off depending upon different forum(subforum) and events

I wont like to do it for all forums/subforums... on my board
it depends upon events

I had webwiz forum with permission set for each forum that guest cant view that forum( even topics) were not accessible to guests
this code was modified to
allows guests to see topics, but if they click a topic it redirects them to the login page.


thanks again this mod is very essential specially if you have some traffic and you want to convert them to join your forum.

Suki

based on what kind of events?   I can add an option to limit this only to certain boards and/or categories for sure.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

OCJ

QuoteLike I would like to switch it on and off depending upon different forum(subforum) and events

I wont like to do it for all forums/subforums... on my board
it depends upon events

I had webwiz forum with permission set for each forum that guest cant view that forum( even topics) were not accessible to guests
this code was modified to
allows guests to see topics, but if they click a topic it redirects them to the login page.


An SMF mod does this - Im using it... 'Look But No Read'

http://custom.simplemachines.org/mods/index.php?mod=1332

Works fine on  RC5

gigashiga

events in my case is offline events ... or keyword traffic for a particular forum


cebu

hopefully a support can be added to 1.1.14  :(
www.toyotaautoclubcebu.com
www.club4efte.com
www.autopartsph.com

desibees

You might wana fix your link "Link to mod" as it doesn't redirect it to the right place.


I'm the.. Help abuser


smtek

Will it work on smf 2.0 . Please tell
http://thetekwar.com

^ Your entry to the best tech community

Suki

This mod is now updated for SMF 2.0
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Adrek

Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Suki

./Sources/Display.php

find


      if ($context['user']['is_guest']) redirectexit ('action=login');


replace with:


      if ($context['user']['is_guest']) redirectexit ('action=profile;u=1');


keep in mind this will redirect all  guest to that user's profile.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: