The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
I'm talking about all plugins whose hook location is "threaddata_presave."
|
#22
|
||||
|
||||
Quote:
So let me walk through this one more time. First I create a plugin hooked at "threaddata_presave" with the code: global $vbulletin; if ($vbulletin->GPC['threadid'] == XXX) { $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "post SET title = '" . $vbulletin->db->escape_string($vbulletin->GPC['title']) . "' WHERE threadid = " . $vbulletin->GPC['threadid'] . " AND parentid != 0 "); } Using my ID number which is 10573 in the XXX Next, I go to the thread and update the title and hit save. The title changes, but only the main one which is my issue, not all the rest of the posts. Is that correct sir? |
#23
|
||||
|
||||
For whatever reason that plugin is not executing...have no idea why...it works perfectly for me.
|
#24
|
||||
|
||||
I have an idea, brb.
--------------- Added [DATE]1519059557[/DATE] at [TIME]1519059557[/TIME] --------------- GOT IT! Thank you!!! |
#25
|
||||
|
||||
Quote:
Anyway, what was causing the plugin not to execute? |
#26
|
||||
|
||||
Our server was on fast CGI and we kept hitting limits which cause errors and issues.
Once I changed us back to just regular CGI my errors went away and everything worked. Thanks, friend, JJ |
Благодарность от: | ||
Stratis |
#27
|
||||
|
||||
I tested this plugin in my dev site, to work I disabled the "fast CGI"
Is there a way Mark... to the second post title and so on until last post to have the word "Re" before the title or what else we use? Thanks |
#28
|
||||
|
||||
Just change the query to this:
PHP Code:
|
Благодарность от: | ||
Stratis |
#29
|
||||
|
||||
Ok thanks Mark , some times i get an error
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; modpm_checker has a deprecated constructor... |
#30
|
||||
|
||||
That has nothing to do with the query I posted...sounds like an add-on.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|