Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Must View Topic (Read 24304 times)
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #17 - Nov 7th, 2016 at 11:17am
Print Post  
Excellent.  Smiley
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Must View Topic
Reply #16 - Nov 7th, 2016 at 8:59am
Print Post  
perfect.........!!!!!!!!

This is what such a mod must have.
Here the german files.
  

Must_View_Topic_German_files_001_002.zip (Attachment deleted | 21 Downloads )

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #15 - Nov 6th, 2016 at 12:02pm
Print Post  
This is why bug testers are so valuable. New zip - this one has a timer (different language for it in Display.lng.)
  

must_view_topic_1_9.zip (Attachment deleted | 22 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Must View Topic
Reply #14 - Nov 6th, 2016 at 3:43am
Print Post  
@ 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.


  

Must_View_Topic_German_files_001_001.zip (Attachment deleted | 19 Downloads )

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #13 - Nov 5th, 2016 at 5:57pm
Print Post  
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
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Must View Topic
Reply #12 - Nov 5th, 2016 at 5:02pm
Print Post  
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.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #11 - Nov 5th, 2016 at 12:19pm
Print Post  
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 (Attachment deleted | 23 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Must View Topic
Reply #10 - Nov 5th, 2016 at 5:46am
Print Post  
@ 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) 



  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #9 - Nov 4th, 2016 at 1:34pm
Print Post  
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 (Attachment deleted | 21 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #8 - Mar 21st, 2016 at 11:38pm
Print Post  
For 2.6.12 (changes in Post.template)
  

must_view_topic_2612.zip (Attachment deleted | 41 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #7 - Feb 22nd, 2015 at 3:47pm
Print Post  
New German zip in 1st post (includes UTF-8 versions)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Must View Topic
Reply #6 - Feb 22nd, 2015 at 11:00am
Print Post  
German Files faulty. Please change through this.
  

Must_View_Topic_German_files_001.zip (Attachment deleted | 48 Downloads )

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #5 - Jan 13th, 2015 at 7:57pm
Print Post  
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
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Must View Topic
Reply #4 - Jan 2nd, 2015 at 3:10am
Print Post  
New zips in 1st post - new template file.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Must View Topic
Reply #3 - Dec 6th, 2014 at 7:55am
Print Post  
fit for build 1611. No change necessary.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint