Advertisement:

Author Topic: Force Topic Read on Login  (Read 71538 times)

Offline SMFHacks.com Team

  • Jr. Member
  • **
  • Posts: 334
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Force Topic Read on Login
« on: August 28, 2008, 05:43:20 PM »
Link to 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

Code: [Select]
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.
« Last Edit: March 08, 2010, 09:16:36 PM by vbgamer45 »
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline SgtMic

  • Sophist Member
  • *****
  • Posts: 1,083
  • Gender: Male
    • -{FAST}- Squad
Re: Force Topic Read on Login
« Reply #1 on: August 28, 2008, 06:06:22 PM »
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)

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

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Force Topic Read on Login
« Reply #2 on: August 28, 2008, 06:20:46 PM »
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 ?
« Last Edit: August 28, 2008, 06:31:47 PM by F.L.A.M.E.R »

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: Force Topic Read on Login
« Reply #3 on: August 28, 2008, 06:30:23 PM »
Great.  I will test it.

Offline ccbtimewiz

  • SMF Hero
  • ******
  • Posts: 5,300
  • Gender: Male
  • OXEN
Re: Force Topic Read on Login
« Reply #4 on: August 28, 2008, 06:38:22 PM »
Congrats on the mod, Eliana.  :)

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Force Topic Read on Login
« Reply #5 on: August 28, 2008, 06:42:47 PM »
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

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

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Force Topic Read on Login
« Reply #6 on: August 28, 2008, 06:58:30 PM »
hmm ok.. try it if you can... its actually a very useful mod... Thank you Eliana for this wonderful mod.

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: Force Topic Read on Login
« Reply #7 on: August 28, 2008, 08:15:45 PM »
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?
« Last Edit: August 28, 2008, 08:37:44 PM by Kimmie »

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

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Force Topic Read on Login
« Reply #8 on: August 28, 2008, 08:20:33 PM »
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...

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Force Topic Read on Login
« Reply #9 on: August 28, 2008, 08:30:54 PM »
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!

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: Force Topic Read on Login
« Reply #10 on: August 28, 2008, 08:32:52 PM »
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?

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

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,614
  • Gender: Male
  • I am a ninja!
    • adishpatel on Facebook
    • https://www.linkedin.com/in/adishpatel on LinkedIn
Re: Force Topic Read on Login
« Reply #11 on: August 28, 2008, 08:43:07 PM »
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....

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: Force Topic Read on Login
« Reply #12 on: August 28, 2008, 08:46:41 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.
« Last Edit: August 28, 2008, 08:57:24 PM by Kimmie »

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Force Topic Read on Login
« Reply #13 on: August 28, 2008, 09:17:14 PM »
Are you sure about the topic IDs?
Former SMF Core Developer | My Mods | SimplePortal

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Force Topic Read on Login
« Reply #14 on: August 28, 2008, 09:18:32 PM »
@FLAMER
Quote from: First post of topic, also in readme
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.

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!

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Force Topic Read on Login
« Reply #15 on: August 29, 2008, 02:43:47 AM »
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.

Offline DirtRider

  • SMF Hero
  • ******
  • Posts: 1,415
  • Gender: Male
  • Just Looking
    • TriumphTalk
Re: Force Topic Read on Login
« Reply #16 on: August 29, 2008, 07:22:10 AM »
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. "

Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: Force Topic Read on Login
« Reply #17 on: August 29, 2008, 07:35:01 AM »
OK, thanks.
Can I setup one topic for each membergroup?

Offline Eliana Tamerin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,611
  • Gender: Female
Re: Force Topic Read on Login
« Reply #18 on: August 29, 2008, 07:51:06 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!

Offline L.G.S

  • SMF Hero
  • ******
  • Posts: 2,658
  • Gender: Male
  • RuthlessIntent.com !
    • GamesandGoals.com
Re: Force Topic Read on Login
« Reply #19 on: August 29, 2008, 07:54:48 AM »
This mod looks SO GOOD.

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

www.gamesandgoals.com