Version: 2.00, by MARCO1
Developer Last Online: Jan 2022
Category: Show Thread Enhancements -
Version: 4.0.x
Rating:
Released: 02-08-2010
Last Update: 02-09-2010
Installs: 305
Uses Plugins Auto-Templates
No support by the author.
MARCO1 BBCODE Hide Tags
vB4.x.x
By
Marco Mamdouh
Please Note that : I'm keeping update my products and codes without any money simply support me in vb.org to continue this work
Support Me! Mark As Installed - Nominate For MOTM
What's this ?
This Mod Hide X Area in the threads By Using HIDE BBCODE Tags With Powerful control via AdminCp with very nice button in your editor to automatically enter Hide tags when you click on it, More info and pictures in Attachments.
Features :
Compatible with All vBulletin 4 Versions.
No conflict with any other Mods to hide links.
Full Control via vBulletin Admincp.
Auto Template And Core Functions Edit.
Can Control the Hide message from Admincp.
Admin Can see hidden content without reply.
Moderators Can see hidden content without reply.
Super Moderators Can see hidden content without reply.
Thread Author Can see hidden content without reply.
Usergroups permissions : If you have any additional usergroup like VIP To See hidden content without reply.
Excluding X Forum To BBCODE Hide : You can disable the Mod in any sub-forum via Admincp.
Full Optimized to make your forum very fast when you using it
0 Query Which Make the forum fast because there is no DB Query In This Mod Coding.
Installation :
Upload images folder in your forum root directory.
Import the .xml file from your AdminCp.
Require 1 Template edit :
In editor_toolbar_on template find :
Translations :
You can translate this Mod and publish it in your forum however you can't do that without take permissions from Me via PM's This Mod Is Also Available in Arabic Thanks to DR.Osama : https://vborg.vbsupport.ru/showpost....6&postcount=42
English Version in Attachments.
BUGS :
Quote:
Warning: Cannot use a scalar value as an array in [path]\includes\class_postbit.php(314) : eval()'d code on line 186
I altered the xml import a little bit and added this line of code
Code:
union SELECT count(userid) as count FROM vb_user WHERE usergroupid in (6,7) and userid='$bbuserinfo[userid]'"
to all the
Code:
$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]');
so after adding the code you get :
Code:
$hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]' union SELECT count(userid) as count FROM vb_user WHERE usergroupid in (6,7) and userid='$bbuserinfo[userid]');
It is a bit of hardcoding because of the (6,7) but can easily be extended with parameters i guess, so basically I added one more count to the sql select which checks if the current user is in group 6 or 7 (mods or admins) and if so, it raises the count, which causes the hidden text being visible regardless the current user replied or not.
this little adjustment fixes the "scalar value" error
when i do this i got this error in over 20 rows in me header
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /includes/class_postbit.php(340) : eval()'d code on line 195