vb.org Archive

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

kjdj 05-18-2009 12:58 PM

Well it came back for a few minutes, I got back in with no plugins working.
I disabled this plugin, (removed the disable plugins code ) then I get a database error, then I just get a blank page when going to the forum page.

Any idea what file will still have remnants of the botched install?

Thanks

Total666 05-18-2009 03:38 PM

Quote:

Originally Posted by kjdj (Post 1812908)
Well it came back for a few minutes, I got back in with no plugins working.
I disabled this plugin, (removed the disable plugins code ) then I get a database error, then I just get a blank page when going to the forum page.

Any idea what file will still have remnants of the botched install?

Thanks

disable all the plugins ( with the code ) . then uninstall the force thread from the plug in manager ..

then re-enable the plugins (with the code )

then start again ..

Total666 05-18-2009 03:39 PM

Quote:

Originally Posted by kjdj (Post 1812688)
I imported the xml through the admin panel, and then I went to FTP the files over, but I get an sql error, and I can't access the adminpanel or the site forums either.

Is there some way to reverse what I have done, or should we restore the latest backup (which is fairly old)

I guess what happened is the xml executed before the 2 folders were uploaded by FTP, so it didn't quite complete itself.

Is there a way to make the xml run again?

Thx



you should of ftped the files FIRST , then run the xml ...

HossMon 05-19-2009 01:30 PM

It may have altered a table and currupted it on uninstall,
SSH into your server and run

mysqladmin flush-hosts
mysqladmin flush-tables
mysqladmin flush-threads

Then Stop mysqld
/etc/rc.d/init.d/mysql stop (may not be same on your server)

CD to your database dir
cd /var/lib/mysql/(yourdb)

And run
myisamchk -m *.MYI

Repair any tables that need so
myisamchk -B -r force_read_users.MYI

ExtremeDarkness 05-23-2009 11:42 PM

I need a 3.8.2 version of this please, since this won't work on my forum's version.

yamahapaul 05-24-2009 10:01 AM

Quote:

Originally Posted by ExtremeDarkness (Post 1816019)
I need a 3.8.2 version of this please, since this won't work on my forum's version.

me too please :up: :)

marshal_ramdev 05-31-2009 08:00 AM

awesome :)

SVTCobraLTD 05-31-2009 12:25 PM

Had this installed on 3.6.11 but members could no longer log into the site. Some could login but most could not. Anyone else have this issue?

GraphiX2004 06-01-2009 10:14 PM

is this mod going to be updated for 3.8.1 or 3.8.2, it really anoys me how such a feature is an essential one but is not built into the stock build already

we have to now hope and wait the coder updates this otherwise it's useless from what i see
on a v3.8 board, what do these people at vbulletin think when they are designing it at all..

"i know lets add an option to the stock files where the admin's can make someone
read an important post from another admin before they continue great this sound like common sense, i know since this is a great idea and should be included but for the hell of it we wont that is just making it too easy for our customers and actually adding value to the cost of the licence for once.

Please can we have an update on this we got over 1,000 + members coming back
to our new forums and i now find out i can't make em read the new thread about changes.

Kobra Khan 06-03-2009 07:29 PM

i have seen it on one site working on 3.8.2 version
wondering wut he did to make it work ??

Loki12 06-08-2009 04:57 PM

Quote:

Originally Posted by Kobra Khan (Post 1822942)
i have seen it on one site working on 3.8.2 version
wondering wut he did to make it work ??

It works on my 3.8.1.

RichieBoy67 06-09-2009 03:21 AM

I am upgrading a 3.6.8 version of this mod--Will a simple product overwrite upgrade this or will it cause problems?

Thanks

adamskiii 06-11-2009 12:30 AM

not working for 3.8.2. Does not save the thread you specify.

Bro_Joey_Gowdy 06-12-2009 04:18 AM

This needs updated to 3.8.x with an added feature "force users to read and reply to a thread".

captainbohica 06-19-2009 06:13 AM

Quote:

Originally Posted by kjdj (Post 1812688)
I imported the xml through the admin panel, and then I went to FTP the files over, but I get an sql error, and I can't access the adminpanel or the site forums either.

Is there some way to reverse what I have done, or should we restore the latest backup (which is fairly old)

I guess what happened is the xml executed before the 2 folders were uploaded by FTP, so it didn't quite complete itself.

Is there a way to make the xml run again?

Thx

Quote:

Originally Posted by Total666 (Post 1812714)
Do this

disable all plugins.

in includes / config.php

Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

then you can disable the force thread in plug in manager ..

then remove the define('DISABLE_HOOKS', true);

Quote:

Originally Posted by kjdj (Post 1812908)
Well it came back for a few minutes, I got back in with no plugins working.
I disabled this plugin, (removed the disable plugins code ) then I get a database error, then I just get a blank page when going to the forum page.

Any idea what file will still have remnants of the botched install?

Thanks

Quote:

Originally Posted by Total666 (Post 1812994)
disable all the plugins ( with the code ) . then uninstall the force thread from the plug in manager ..

then re-enable the plugins (with the code )

then start again ..

I had a similar error and was able to disable the plugins through the config file, disabled/uninstalled the force read plugin....

but when I logged in again, im back to square one with my error msg:

Warning: Unknown([path]/madp/detection.php): failed to open stream: No such file or directory in [path]/includes/functions_login.php(185) : eval()'d code on line 3

any other ideas how I can fix this?

captainbohica 06-19-2009 09:11 AM

Quote:

Originally Posted by HossMon (Post 1813484)
It may have altered a table and currupted it on uninstall,
SSH into your server and run

mysqladmin flush-hosts
mysqladmin flush-tables
mysqladmin flush-threads

Then Stop mysqld
/etc/rc.d/init.d/mysql stop (may not be same on your server)

CD to your database dir
cd /var/lib/mysql/(yourdb)

And run
myisamchk -m *.MYI

Repair any tables that need so
myisamchk -B -r force_read_users.MYI

help a n00b out.. what does all this mean ? lol

The Donkey Farm 07-05-2009 03:52 PM

Works great for me in 3.8.1! Didn't work at first till I read replies made here and then made sure to enter in the thread ID. I was entering the post ID before. For any still having trouble make sure to just mouse over the thread title in your subforum and then use the last set of numbers shown in the url to enter into the first field of the force read then make sure to have your usergroups plus location highlighted then click save.

spillage 07-21-2009 10:27 AM

Can you use an Announcement ID in place of a Thread ID for the Force Read?

ruger 08-10-2009 05:56 AM

Had to remove since it was interfering with AWC Donations system.

bluej 08-20-2009 12:53 AM

another great mod with no support, what a shame :(

turbosatan 08-21-2009 03:10 PM

i have a strange issue.

i want all users to be forced to read a thread when they join.

so i added this and it seems to work fine most of the time. however if someone clicks on the link through to VBadvanced link directory then it just goes to that page. after that the user cannot login unless i reset the password.

Any ideas?

TheInsaneManiac 08-22-2009 09:56 AM

Just got this email:
Invalid SQL:

INSERT INTO vb_force_read_users
(force_read_userid, force_read_threadid)
VALUES
('19096', '7639');

MySQL Error : Duplicate entry '19096-7639' for key 1
Error Number : 1062
Request Date : Saturday, August 22nd 2009 @ 03:48:47 AM
Error Date : Saturday, August 22nd 2009 @ 03:48:47 AM
Script :
Referrer :
IP Address :
Username : hellsingdeath
Classname : vB_Database
MySQL Version :

pablete 08-24-2009 02:54 PM

can i force to read my forum rules before to continuo reading th forum?

what i have tu put in the AdCP that or i have to create a new thead with the rules and after i put the id of this thread?

Thank's

bluej 08-25-2009 08:49 AM

Quote:

Originally Posted by pablete (Post 1873431)
can i force to read my forum rules before to continuo reading th forum?

what i have tu put in the AdCP that or i have to create a new thead with the rules and after i put the id of this thread?

Thank's

you could try this
https://vborg.vbsupport.ru/showthread.php?t=177559

timberball 08-26-2009 05:47 AM

can i use this for a 3.8.x forum?

MikeWarner 08-29-2009 04:54 PM

Great hack - I'll be using it soon as we are implementing new classifieds ads rules.

sat2006 08-29-2009 07:19 PM

this products no working on vb3.8.3
why?

Nokia Tech 08-30-2009 11:00 AM

Hi, Many thanks for this, Its great. Just installed and works perfect.

I have a small query, i am hoping you could help me with,
When you get the prompt saying you have to read the thread, i have noticed that its showing my older forum name, Would you possibly know where i can change this title.

I have searched through the ACP but cant find anything, Below is a pic of the problem.

Thanks for your help.
http://www.crazynokia.co.uk/AA.jpg

aleinside 09-01-2009 06:59 AM

thanks you. it works fine for me with 3.8.4

goshalim 09-07-2009 06:05 AM

This is an exellent mod !!!! I was waiting for that for a long time.

I have only one question .

Making someone to read something is very good , but do you thing that there is a option to force someone to accept or reject the post that he is reading ?

Like for exable o force someone to read one of my posts. But after reaning the post i give him the opriton like when he is first registering to accept it.

Awaiting for ideas please

s810car 09-11-2009 12:16 AM

Just some friendly developer advice, you can chose to look at this and implement or not, but I would suggest either following what I did or the developer may have a better solution I didn't think of. I ran an EXPLAIN query on this SELECT query since it showed up in my slow queries log
PHP Code:

$force_thread $db->query_first("
            SELECT *
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "force_read_users AS force_read_users ON (thread.threadid = force_read_users.force_read_threadid AND force_read_users.force_read_userid = '".$vbulletin->userinfo['userid']."')
            WHERE thread.force_read = '1' AND (thread.force_read_expire_date = '0' OR thread.force_read_expire_date > '"
.TIMENOW."') AND ("implode(' OR '$where_usergroups) .") AND ("implode(' OR '$where_forums) .") AND force_read_users.force_read_userid IS NULL
            ORDER BY force_read_order ASC
        "
); 

Obviously I entered in some values into it to make the variables work in phpMyAdmin. Here's what i found with my relatively small forum:
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE thread ALL NULL NULL NULL NULL 11877 Using where; Using filesort
1 SIMPLE force_read_users eq_ref PRIMARY PRIMARY 8 const,temp1.thread.threadid 1 Using where; Using index; Not exists

I added a index to the 'thread.force_read' row (since its boolean and a super small length) and heres the improvement

id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE thread ref force_read force_read 1 const 18 Using where; Using filesort
1 SIMPLE force_read_users eq_ref PRIMARY PRIMARY 8 const,temp1.thread.threadid 1 Using where; Using index; Not exists

Should give you a MUCH more efficient query, I only have a few threads in my forum that we use the force read for (like for new rules), so I would think a site that uses this all the time with a lot more threads would see a substantial improvement

PS apologize for the terrible formatting of the exlpain query, never could line up columns easy on vbulletin :(

socalsoccer 09-26-2009 03:26 PM

3.8.1 error XML Error: Empty document at Line 1 when importing product.

JohnBee 10-03-2009 02:00 AM

I found the original message could be a little dry.

Alisa Lindsay 10-03-2009 11:51 AM

Downloaded, but not used yet. Looks like a great mod though.

RomainVL 10-17-2009 04:25 AM

DL and in use now. It works perfectly on 3.8.4 ;)

griffinzx10 11-02-2009 01:09 PM

does anyone know if this will also work on version 3.8.3?

griffinzx10 11-02-2009 01:10 PM

Quote:

Originally Posted by RomainVL (Post 1901197)
DL and in use now. It works perfectly on 3.8.4 ;)

Quote:

Originally Posted by griffinzx10 (Post 1909399)
does anyone know if this will also work on version 3.8.3?

never mind, saw the last post...

griffinzx10 11-02-2009 01:27 PM

ok just installed and it isnt working, when i put the info in the fields, and it says saving, the list that should show the threads i want to be viewed keeps showing as empty. Not sure what i did wrong, any help would be appreciated.

griffinzx10 11-03-2009 07:47 AM

nevermind again, got it working, great hack, thanks

bluej 11-14-2009 05:50 PM

Quote:

Originally Posted by griffinzx10 (Post 1909721)
nevermind again, got it working, great hack, thanks

i am having the same problem, do you mind sharing what you did to fix it?


All times are GMT. The time now is 11:34 AM.

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.03060 seconds
  • Memory Usage 1,840KB
  • 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
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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