![]() |
Quote:
Code:
$subscribed=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE userid='$subuserid' LIMIT 1"); |
Same issue. It is something in the query for if I // that out, no error.
|
Ok, did the fresh functions.php and got the same thing. Even if I made the query something like...
Code:
$subscribed=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE threadid='353631' AND userid='1' LIMIT 1"); If I test the query in PHPMyAdmin it runs without issue. So, do I need to do something with $subscribed first to set it to work or something. Weird all the same. |
It was missing "global $DB_site;" right about the query call. All good now.
|
Glad ya got it working.
|
To wrap this up, for those that would like to have the hack 1) So that the QuickEdit shows for Admins, Mods, and Super mods on all posts, and 2) To have it check for the status of the thread to see if it is subscribed to or not...here is the code for the template and the /admin/functions.php to use...
Template code... Code:
<form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post" onSubmit="return validate(this)"> /admin/functions.php code to use... Code:
if (($bbuserinfo[usergroupid] ==5) || ($bbuserinfo[usergroupid] ==6) || ($bbuserinfo[usergroupid] ==7) or ($post[username] == $bbuserinfo[username])) { |
Excellent hack! I'm loving it!
|
All times are GMT. The time now is 11:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|