Page Index Toggle Pages: [1] 2  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) Must View Topic (Read 9337 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Must View Topic
Sep 10th, 2014 at 7:17pm
Mark & QuoteQuote  
Must View Topic for YaBB 2.6.11
Version:
0.1.5

Description
-----------
This Mod will allow you to force users to view a specified topic before any other topics can be viewed. (Whether or not the member has viewed the topic is saved in a cookie.)

Installation
------------
1) Modify YaBB files using BoardMod or manually.
2) Upload modified files to your server in ASCII mode.
3) Upload 'must_view_topics.template' to Templates/default/Mods/
4) Go into Admin Center => Forum Settings => Members tab => Must View Topic to configure the settings.

Files to edit
-------------
Admin/ModList.pm
Admin/NewSettings.pm
Admin/Settings_Main.pm
Languages/English/Admin.lng
Languages/English/Display.lng
Languages/English/Post.lng
Sources/Display.pm
Sources/ModifyMessage.pm
Sources/Post.pm
Sources/System.pm
Templates/default/Post.template
« Last Edit: Feb 22nd, 2015 at 3:47pm by Dandello » 
Reason: New German files 

must_view_topic_2611.zip ( 5 KB | 301 Downloads )
must_view_topic_german_a.zip ( 4 KB | 298 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Must View Topic
Reply #1 - Sep 14th, 2014 at 2:05pm
Mark & QuoteQuote  
Corrected German Files
  

Must_View_Topic_German_261_001.zip ( 1 KB | 303 Downloads )

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Must View Topic
Reply #2 - Sep 14th, 2014 at 2:17pm
Mark & QuoteQuote  
Smiley Thank You.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Must View Topic
Reply #3 - Dec 6th, 2014 at 7:55am
Mark & QuoteQuote  
fit for build 1611. No change necessary.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Must View Topic
Reply #4 - Jan 2nd, 2015 at 3:10am
Mark & QuoteQuote  
New zips in 1st post - new template file.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Must View Topic
Reply #5 - Jan 13th, 2015 at 7:57pm
Mark & QuoteQuote  
Minor fix for empty expire field. (new zip in 1st post)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Must View Topic
Reply #6 - Feb 22nd, 2015 at 11:00am
Mark & QuoteQuote  
German Files faulty. Please change through this.
  

Must_View_Topic_German_files_001.zip ( 2 KB | 229 Downloads )

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Must View Topic
Reply #7 - Feb 22nd, 2015 at 3:47pm
Mark & QuoteQuote  
New German zip in 1st post (includes UTF-8 versions)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Must View Topic
Reply #8 - Mar 21st, 2016 at 11:38pm
Mark & QuoteQuote  
For 2.6.12 (changes in Post.template)
  

must_view_topic_2612.zip ( 5 KB | 230 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Must View Topic
Reply #9 - Nov 4th, 2016 at 1:34pm
Mark & QuoteQuote  
Must View Topic 2 for 2.6.12
Includes a 'confirm you have viewed' link in the topic itself and a set-able timer.
  

must_view_topic_1_7.zip ( 6 KB | 230 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Must View Topic
Reply #10 - Nov 5th, 2016 at 5:46am
Mark & QuoteQuote  
@ Dandello

Unfortunately, the mod does not work.
After entering the time, this jumps back to 0 after saving.
Even a manual input in the Settings.pm brought no success.

Naturally, I had previously deleted the entry "mustviewtopic" in the profile and also all cookies.


Code
Select All
########## Must View Topic configuration ##########
 $mustViewEnabled = 1;                             # Set to 1 to enable Must View Topic
 $mustViewID = "1264357835\~admin";                # Set the thread ID of topic which users must view
 $mustViewGroups = "";                             # Member groups which must view the topic, '' == all members
 $mustViewGuests = 0;                              # Force guests to view the topic
 $mustViewBoards = "";                             # Boards which won't be viewable until the topic has been viewed, '' == all boards
 $mustViewInfo = "";                               # Additional information for the Must View Topic notice
 $mustViewexpire = "0";                            # expire date for Must View Topic (set to 0 to disable)
 $mustViewdelay = 0;                               # delay time for link (set to 0 to disable) 



  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Must View Topic
Reply #11 - Nov 5th, 2016 at 12:19pm
Mark & QuoteQuote  
Smiley In Admin/NewSettings.pm find
Code (Perl)
Select All
\$mustViewdelay = $mustViewexpire;          # delay time for link (set to 0 to disable) 

and replace it with
Code (Perl)
Select All
\$mustViewdelay = $mustViewdelay;          # delay time for link (set to 0 to disable) 



I'll get a new zip shortly.
  

must_view_topic_1_8.zip ( 6 KB | 233 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Must View Topic
Reply #12 - Nov 5th, 2016 at 5:02pm
Mark & QuoteQuote  
So far so good. But where can I find the link (or button) for confirmation?
After waiting for the given time this does not appear and one does not go further. This should actually appear or be present automatically in the topic that has to be viewed.

I've seen this once in a PHP forum. There is in the contribution, which one must read a button, in this runs a timer backwards. Only when this is 0, you can click on it.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Must View Topic
Reply #13 - Nov 5th, 2016 at 5:57pm
Mark & QuoteQuote  
Sounds like you didn't find these:
Code
Select All
$display_txt{'confirm_view'} = 'Please confirm that you have viewed this topic';
 $display_txt{'confirm_view2'} = 'You will need to confirm that you have viewed this topic when the link appears'; 


in Display.lng.

I didn't do a count down timer (yet).

Edited:
One of the reasons for going to the strict pragma with warnings - Perl will complain when things are missing.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Must View Topic
Reply #14 - Nov 6th, 2016 at 3:43am
Mark & QuoteQuote  
@ Dandello



I checked again, also in the English language setting.
It is in the language files everything there where it must be. I have times the confirmation to 0 posed. If you try it, you are in an endless loop. You are always asked to read the post first and you will not go further. Only if the Mod is completely switched off, then it goes.


  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Must View Topic

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry