Force Topic Read on Login

Started by SMFHacks.com Team, August 28, 2008, 05:43:20 PM

Previous topic - Next topic

SMFHacks.com Team

Link to the mod

Force Topic Read On Login v2.1





Current Version: 2.1
Compatibility: SMF 1.1.x, SMF 2.0 RC2
Link to Mod | Comments | Donate                          

Homepage: SMFHacks
Type: New Feature

Languages:




Features
Force new users to read a topic on first login.

Disclaimer: I give no guarantee that your users will actually read and comprehend the information you direct them to. In fact, I can't even guarantee that they'll look at the topic. The word 'read' in my mod refers to SMF's definition, that is, to view the page. Apart from that, this mod cannot and will not do anything further to ensure that your users actually know anything about what you redirect them to.




Installation
To upgrade, simply install the new package and the upgrade script will run. Once done, remove the old package.

If your theme has its own versions of the language files Modifications.english.php and/or Modifications.english-utf8.php, OR if your using a language other than those supported (listed above) by the mod then you will need to copy the language strings into each custom version of those files.

Useful Links
Manual Installation Of Mods
How Do I Modify Files?




Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)




Changelog
Legend:
! = Bugfix
- = Removed
+ = New Feature
o = Update
> = New Language
^ = Initial/New Release

7/29/09 - v2.1
! Fixed a small bug that threw a DB error on SMF 2.0 RC1.2

7/28/09 - v2.0
o Added support for SMF 2.0 RC1.2

8/27/08 - v1.0
^ Initial release.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

SgtMic

Just installed. Haven't tested it yet. :)

Is it possible to also make this for a Board?
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Adish - (F.L.A.M.E.R)

#2
Awsome mod..  I actually wanted something as such to redirect the users to read the rules as they login. Thanks alot..!! WOuld inform you about bugs or problems if i have any. Rock on...

EDIT:-
Tested and all working great. Just a question.

What if I want the user to see this message ID ?

http://yoursite.com/index.php/topic,9.msg9.html#msg9

I mean just direct to the message and like skipping up the header or anything above the message ?

Can be done ?

jossanaijr


ccbtimewiz


[SiNaN]

Great mod Eliana. Good luck with it.

SgtMic:

Have a look at this tip:

http://www.simplemachines.org/community/index.php?topic=257308.0

F.L.A.M.E.R:

No, you can redirect to the topic only.

Maybe Eliana will include these two features in the further releases.
Former SMF Core Developer | My Mods | SimplePortal

Adish - (F.L.A.M.E.R)

hmm ok.. try it if you can... its actually a very useful mod... Thank you Eliana for this wonderful mod.

Kimmie

#7
Once the topic has been read by someone, will they keep getting redirected to it every time they log in? If so, maybe it can be incorporated to make it to where once someone has "replied" to the topic they will no longer have to be redirected to it - such as a Rules topic. 

And does this exclude staff?


Edit: I saw the note on the features and options page where it indicates "if they haven't read it before" so that answered my above questions - However - I installed this, set it up for a specific topic, logged in with a test account that has not read that topic yet, and it did not redirect me. It went straight to the Main page (which is TP). I tried adding the ".0" at the end thinking that was the problem, however when I saved the setting, it just reverted back the topic # without the .0.

Is there some place else it has to be turned on?

Adish - (F.L.A.M.E.R)

Hey just one more addition in this if possbile. Can you keep some setting that the users should be redirect or have a popup page (flash Message which owner wants) to be displayed for the 1st some days... (like 3-7) would be a kool thing to do...

Eliana Tamerin

Wow, lots of comments.

@SgtMic
Will keep that in mind for a future version. Until then, you can use [SiNaN]'s trick.

@F.L.A.M.E.R
To a specific message: No it doesn't. I could do that in the future, possibly.
Repeated redirect: I think that would probably get annoying. It's probably possible, but once they've read it, why do they need to read it again?

@Kimmie
Nope, it will check if the person has read it and only redirect if they have not yet read it. It also checks if a user has access to the topic, so users won't get redirected to a topic they can't see.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

jossanaijr

Did not install it yet but does it consider permissions?  I mean if I enter a topic in a restricted board only members that have permissions to this board will be redirected or all members will be redirected and those members without permission will have an error message?

Adish - (F.L.A.M.E.R)

you know there are some diff types of people in the world who donot read the message for once ? A better idea for that maybe, if any user doesnt stay on the page for more than 1 minute time, they should be free from redirection, and if the user goes to some other page before the limit of 1 minute then he should be brought back to that page during next login... thats probably a better idea i think...


also if you can add something as in permissions that the staff members can make some annoying users read rules every time they login and just have a page in there which shows the list and a remove option with it in there which would allow user to be free from redirection....

these type of features would probably be good for continues rule brackers which we probably ban them but its better to annoy them like this....

Kimmie

#12
Quote from: Eliana Tamerin on August 28, 2008, 08:30:54 PM

@Kimmie
Nope, it will check if the person has read it and only redirect if they have not yet read it. It also checks if a user has access to the topic, so users won't get redirected to a topic they can't see.

Thats why I tested it with a new test account I made (specifically for testing out this mod). This account has not yet read the topic and they are able to see it.

The redirection didnt work.

Edit I just tried to test it out on 2 other topics and the redirect wouldnt work with either of them.

[SiNaN]

Are you sure about the topic IDs?
Former SMF Core Developer | My Mods | SimplePortal

Eliana Tamerin

@FLAMER
Quote from: First post of topic, also in readmeDisclaimer: I give no guarantee that your users will actually read and comprehend the information you direct them to. In fact, I can't even guarantee that they'll look at the topic. The word 'read' in my mod refers to SMF's definition, that is, to view the page. Apart from that, this mod cannot and will not do anything further to ensure that your users actually know anything about what you redirect them to.

That's just not what this mod was intended to do. It'll redirect them once, but I don't want it to be an admin spamming tool.

@Kimmie
Did you have the mod enabled?

@jossanaijr
I just answered that in the above post. It will account for permissions, so that users aren't redirected to topics they can't see.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Nathaniel

Very nice mod Eliana! :D

Waiting for a SMF 2 version. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

DirtRider

Well done Eliana very nice mod I have been looking for something like this. It now gives my new members a bit of direction when they first login taking them to a thread with a few pointers  :D

http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

jossanaijr

OK, thanks.
Can I setup one topic for each membergroup?

Eliana Tamerin

Quote from: jossanaijr on August 29, 2008, 07:35:01 AM
OK, thanks.
Can I setup one topic for each membergroup?

Added to future feature list.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

L.G.S

This mod looks SO GOOD.

But its not for 2.0 :(
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Advertisement: