Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MARCO1 BBCODE Hide Tags [ hide] [/ hide] Details »»
MARCO1 BBCODE Hide Tags [ hide] [/ hide]
Version: 2.00, by MARCO1 MARCO1 is offline
Developer Last Online: Jan 2022 Show Printable Version Email this Page

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 :
HTML Code:
<vb:if condition="!$show['basicbbcodeonly']">
Add Above :
HTML Code:
<img src="images/buttons/hide.gif" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_hide" width="20" height="20" alt="Insert Hide Tags" />

Screenshots & Download :

In Attachments.

If you want more Hide Images ?
TimberFloorAu Has Made very very very Good images in this post : https://vborg.vbsupport.ru/showpost....6&postcount=49
PSD Images : https://vborg.vbsupport.ru/showpost....1&postcount=52
Many thanks to him for his time.


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
Fix : Check this post, https://vborg.vbsupport.ru/showpost....&postcount=280
I'm sorry But I really don't have much time to update any of my free mods at this time.

DON'T FORGET TO SUPPORT ME

Download Now

File Type: zip MARCO1 Hide BBCODE.zip (26.8 KB, 2757 views)

Screenshots

File Type: jpg admincp.jpg (71.2 KB, 0 views)
File Type: jpg forum1.jpg (58.2 KB, 0 views)
File Type: jpg FORUM2.jpg (48.2 KB, 0 views)
File Type: jpg FORUM3.jpg (43.5 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
8 благодарности(ей) от:
Babis 92, blue7, ChiNa, josner, mohammadxxx, smsma.net, sweetpotato, vBarsiv

Comments
  #302  
Old 07-29-2011, 11:10 AM
Noerenberg Noerenberg is offline
 
Join Date: Mar 2009
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lestat_ View Post
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
Reply With Quote
  #303  
Old 07-29-2011, 11:36 AM
Lestat_ Lestat_ is offline
 
Join Date: Apr 2011
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Noerenberg : did you adjusted the settings in admin for usergroup permissions (should be 0 not 6,7) :

Reply With Quote
  #304  
Old 08-01-2011, 07:29 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any integration fix in editor since vB 4.1.4?
Reply With Quote
  #305  
Old 08-04-2011, 09:06 PM
Sworm Sworm is offline
 
Join Date: Feb 2008
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm receiving this error when i try to send a message with or without hide content:
Quote:
Unable to add cookies, header already sent. File:/home/site/public_html/forum/includes/class_core.php
Line: 5463

At very top of the forum i have:

Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(340) : eval()'d code on line 97
If i disable the hack, the posts are sended without problems. Any idea to fix this?
Reply With Quote
  #306  
Old 08-09-2011, 04:57 AM
HiPhone HiPhone is offline
 
Join Date: Sep 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Marco1 ! First Thank You for This Hack! Ive read, that you are building a version of this hack with the Post Thank to Unlock Content.

I need it :-)

How log will it take?
Reply With Quote
  #307  
Old 08-12-2011, 11:13 AM
angelimnot angelimnot is offline
 
Join Date: Feb 2010
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any fix for this hack??
Reply With Quote
  #308  
Old 08-13-2011, 01:17 PM
james7zt james7zt is offline
 
Join Date: Jul 2011
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone please point out where is the editor_toolbar_on template...

I searched in templates... and can not find it.

thanks for help. appreciate it.

-----------------------------------
Require 1 Template edit :
In editor_toolbar_on template find :

.................
Reply With Quote
  #309  
Old 08-15-2011, 01:06 AM
Prisoner Prisoner is offline
 
Join Date: Aug 2005
Location: Central Texas
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm wondering the same thing.
Reply With Quote
  #310  
Old 08-25-2011, 07:44 PM
hoodoola hoodoola is offline
 
Join Date: Sep 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work for 4.1.5 ? if not, then i won't download it.
Reply With Quote
  #311  
Old 08-27-2011, 01:34 AM
Ichigo88's Avatar
Ichigo88 Ichigo88 is offline
 
Join Date: Nov 2009
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by james7zt View Post
can someone please point out where is the editor_toolbar_on template...

I searched in templates... and can not find it.

thanks for help. appreciate it.

-----------------------------------
Require 1 Template edit :
In editor_toolbar_on template find :

.................
i have the same problem help please!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05648 seconds
  • Memory Usage 2,353KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (8)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete