vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Moderators Functions - Force Users to Read a Thread (https://vborg.vbsupport.ru/showthread.php?t=151737)

amroawad 03-18-2008 05:47 AM

Quote:

Originally Posted by Shawn Yue (Post 1467529)
Like I Imported The System Then I Go Vbulletion Option Force To read Thread

Then I Never Do AnyThing

Then I Go to HomePage

I Click On The Thread Why Never Force Me Read Thread

And I Running On vb 3.6.8

And I gO TO The Thread And Moderation I Click on the Thread icon And I force To read Thread When I Save Nothing Appear....

Same to me too.

Abe1 03-18-2008 11:20 AM

Quote:

Originally Posted by amroawad (Post 1467708)
Same to me too.

Do you have vbSEO installed?

mariocaz 03-18-2008 03:50 PM

It is strange I thought that I don?t have problems with this great mod.

But yesterday I received by email this error:

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

            SELECT *
            FROM vbthread AS thread
            LEFT JOIN vbforce_read_users AS force_read_users ON (thread.threadid = force_read_users.force_read_threadid AND force_read_users.force_read_userid = '741')
            WHERE thread.force_read = '1' AND (thread.force_read_expire_date = '0' OR thread.force_read_expire_date > '1205821298') AND (force_read_usergroups = '' OR force_read_usergroups LIKE '%-2-%') AND (force_read_forums = '') AND force_read_users.force_read_userid IS NULL
            ORDER BY force_read_order ASC;

MySQL Error  : Sort aborted
Error Number : 1028
Date        : Tuesday, March 18th 2008 @ 12:21:38 AM
Script      : http://www.all-reefs.com/inicio/index.php
Referrer    : http://www.all-reefs.com/inicio/showthread.php?t=3929
IP Address  : 189.146.183.17
Username    : jpluna
Classname    : vb_database

Please help !!

AbercrombieAron 03-19-2008 04:30 AM

Outstanding mod this. Great work ;)

Abe1 03-19-2008 04:51 AM

Quote:

Originally Posted by mariocaz (Post 1467982)
It is strange I thought that I don?t have problems with this great mod.

But yesterday I received by email this error:

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

            SELECT *
            FROM vbthread AS thread
            LEFT JOIN vbforce_read_users AS force_read_users ON (thread.threadid = force_read_users.force_read_threadid AND force_read_users.force_read_userid = '741')
            WHERE thread.force_read = '1' AND (thread.force_read_expire_date = '0' OR thread.force_read_expire_date > '1205821298') AND (force_read_usergroups = '' OR force_read_usergroups LIKE '%-2-%') AND (force_read_forums = '') AND force_read_users.force_read_userid IS NULL
            ORDER BY force_read_order ASC;

MySQL Error  : Sort aborted
Error Number : 1028
Date        : Tuesday, March 18th 2008 @ 12:21:38 AM
Script      : http://www.all-reefs.com/inicio/index.php
Referrer    : http://www.all-reefs.com/inicio/showthread.php?t=3929
IP Address  : 189.146.183.17
Username    : jpluna
Classname    : vb_database

Please help !!

Can you run this query in mysql and see if you still get the error. It's a select query so it wont affect anything.

mariocaz 03-19-2008 05:10 AM

Hi Abe1,

What query I have to run in myphpadmin ?

Abe1 03-19-2008 05:31 AM

Quote:

Originally Posted by mariocaz (Post 1468454)
Hi Abe1,

What query I have to run in myphpadmin ?

PHP Code:

SELECT *
            
FROM vbthread AS thread
            LEFT JOIN vbforce_read_users 
AS force_read_users ON (thread.threadid force_read_users.force_read_threadid AND force_read_users.force_read_userid '741')
            
WHERE thread.force_read '1' AND (thread.force_read_expire_date '0' OR thread.force_read_expire_date '1205821298') AND (force_read_usergroups '' OR force_read_usergroups LIKE '%-2-%') AND (force_read_forums '') AND force_read_users.force_read_userid IS NULL
            ORDER BY force_read_order ASC



mariocaz 03-19-2008 05:39 AM

ok let me try that

BlackRabbit1971 03-19-2008 03:10 PM

Does anyone have the older version of this, so I can uninstall it removing the edits.

DannyITR 03-19-2008 07:06 PM

Quote:

Originally Posted by BlackRabbit1971 (Post 1468751)
Does anyone have the older version of this, so I can uninstall it removing the edits.

Here you go:

Quote:

Force Users to Read a Thread version 1.2

FOR UPGRADE AND FRESH INSTALLATIONS!

1) Import product-abe1_forceusersreadthread into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

2) Do the template edits

in SHOWTHREAD:

find:
--------------------------------------------------------------------
<div><label for="ao_rrd"><input type="radio" name="do" id="ao_rrd" value="removeredirect" />$vbphrase[remove_redirects]</label></div>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Abe1 Force Users to Read a Thread -->
<div><label for="ao_mfr"><input type="radio" name="do" id="ao_mfr" value="forceread" />$vbphrase[manage_force_thread_reading]</label></div>
<!-- End Abe1 Force Users to Read a Thread -->
--------------------------------------------------------------------



find:
--------------------------------------------------------------------
<option value="removeredirect">$vbphrase[remove_redirects]</option>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Abe1 Force Users to Read a Thread -->
<option value="forceread">$vbphrase[manage_force_thread_reading]</option>
<!-- End Abe1 Force Users to Read a Thread -->
--------------------------------------------------------------------

Done.

Click 'install' in the thread you downloaded this from.

Done


All times are GMT. The time now is 08:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01618 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete