Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
vFCoders - Hide Hack v4 Details »»
vFCoders - Hide Hack v4
Version: 4.0, by Badshah93 Badshah93 is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.1.x Rating:
Released: 05-01-2012 Last Update: 07-05-2012 Installs: 245
DB Changes Uses Plugins Auto-Templates
Code Changes Additional Files Translations  
No support by the author.

.::vFCoders - Hide Hack::.

This MOD gives users in selected forums the ability to hide their content by using any of the 7 BBCode. ([HIDE], [HIDE-REPLY], [HIDE-THANKS], [HIDE-REPLY-THANKS], [HIDE-POSTS], [SHOWTOGROUPS], [STG])

1. Features
  1. Seven different BBCode to Hide Contents.
    • [HIDE-REPLY] -> Content within this tag is not shown to user until he/she replies in that thread.
    • [HIDE-POSTS] -> Content within this tag can only be seen by people's who have more posts than defined number of posts.
    • [HIDE-THANKS] -> Content within can only be seen after the user says thank you by pressing Thanks Button. Requires: Abe1 [AJAX] Post Thank You Hack / vBSeo Like System.
    • [HIDE-REPLY-THANKS] -> Content within this tag is not shown to user until he/she either reply or press "Thank You" button.
    • [SHOWTOGROUPS] -> Content within this tag is only shown to defined usergroups.
    • [STG] -> Content within this tag is only shown to defined users.
    • [HIDE] -> This tag can be mapped to any of the above BBCodes. (Default - [HIDE-REPLY])
  2. Fully Compatible with Source and Wysiwyg Editor.
  3. No Template or File Edits. (optional - one file edit if you have rss enabled)
  4. Uses vBulletin easy Product installer/updater/uninstaller
  5. Uses AJAX technology so your users don't have to refresh to see hidden content.
  6. Content within Tags are completely hidden, there is no way to bypass hide tags. Contents are hidden everywhere including
    • Showthread
    • Threadbit
    • Archive
    • Search
    • Subscribed Threads in USERCP
    • Email
    • Print Page
    • RSS
    • Meta Description
    • Quote
  7. Usergroup permissions for each tag, including option to select usergroups which can always see Hidden Content.
  8. Global and Per-Forum Basis vBulletin settings for each tag.
  9. Option to turn on Hide Button's in quick reply and quick edit Editor.
  10. Uses Phrases
  11. Dialog Box for selecting Usergroup's when user clicks [SHOWTOGROUPS] Tag.


2. Installation
  • Download and unzip vFCoders_hide_hack.zip file from this thread.
  • Upload all the files inside "UPLOAD" folder into your vBulletin installation directory. (where forum.php file is located)
  • Import product-vfc_hide_hack.xml file through Product Manager in admincp.
  • Note: [HIDE-THANKS] and [HIDE-REPLY-THANKS] Tag will not work if you don't have Abe1 [AJAX] Post Thank You Hack or vBSEO Like System installed in your forum.
  • Optional - If you have RSS enabled in your forum, then open install.txt file and do the edit's which is mention in that file.

    Installation Complete..


3. Settings
  1. Global Settings: Admincp -> Settings -> Options -> vFCoders - Hide Hack
  2. Usergroup Settings: Admincp -> Usergroups -> Usergroup Manager -> Edit Usergroup -> vFCoders - Hide Hack Permissions
  3. Forum Settings: Admincp -> Forum Manager -> Edit Forum -> vFCoders - Hide Hack [Options]

4. DEMO

http://screencast-o-matic.com/watch/clhnrr5e9

5. Support

Support will be provided to those who have my copyright link in their sites.


Mod History:
v1.0 : 3 May 2012 : First Release.
v1.01 : 3 May 2012 : Fixed Thanks Bug.
v1.1 : 3 May 2012 : Added vBSEO Like System Integration Function
v1.2 : 4 May 2012 : Now compatible with vB < 4.1.4 also.
v1.3 : 4 May 2012 : Fixed PM Bug.
v2.0 (RC) : 4 May 2012 : Optimized Codes and fixed a minor bug.
v2.1 (RC) : 13 May 2012 : Fixed a minor bug.
v2.2 (RC) : 23 May 2012 : Changed Ajax Request Method, Added 1 new Plugin and also removed few.
v3.0 (GOLD) : 10 June 2012 : Added STU tag, Optimize Codes, Fix [SHOWTOGROUPS] Tag Bug, Added Hide/Unhide Box
v3.1 : 13 June 2012 : Fix Hide tag mapped issue.
v4.0 : 7 July 2012 : Now mod uses YUI for ajax requests and fixed some minor bugs.

-> Click On Mark As Installed If You Have Installed This Mod.
-> You Can Nominate it also for Mod Of The Month.
-> If u like my work, you can Donate me also.

Download Now

File Type: zip vFcoders - Hide Hack v4 [vB 4.1.10+=].zip (32.9 KB, 2619 views)

Screenshots

File Type: png 1.png (30.0 KB, 0 views)
File Type: jpg 2.jpg (29.9 KB, 0 views)
File Type: jpg admin panel.jpg (95.6 KB, 0 views)
File Type: jpg Hidden.jpg (54.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #132  
Old 05-28-2012, 06:52 PM
faraz_hamza faraz_hamza is offline
 
Join Date: Jun 2011
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

**Hidden Content: Reply to see the content**

how can we change the color and font size of this Text... how can we change this text to blinking. like Cursor blink?

is there any way to make prominant these words like to change color or blinking style???
Reply With Quote
  #133  
Old 05-28-2012, 07:15 PM
faraz_hamza faraz_hamza is offline
 
Join Date: Jun 2011
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

**Hidden Content: Reply to see the content**

how can we change the color and font size of this Text... how can we change this text to blinking. like Cursor blink?

is there any way to make prominant these words like to change color or blinking style???
Reply With Quote
Благодарность от:
blueperspective
  #134  
Old 05-29-2012, 03:31 AM
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Location: India
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by faraz_hamza View Post
**Hidden Content: Reply to see the content**

how can we change the color and font size of this Text... how can we change this text to blinking. like Cursor blink?

is there any way to make prominant these words like to change color or blinking style???
Edit vfc_hide_hack_bbcode_reply template

Find:
Code:
{vb:rawphrase vfc_hidden_content_reply_ntml}
Replace With:
Code:
<blink>{vb:rawphrase vfc_hidden_content_reply_ntml}</blink>
Reply With Quote
  #135  
Old 05-29-2012, 05:37 AM
blueperspective blueperspective is offline
 
Join Date: Sep 2011
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a question on the same field: Where can I change "** Hidden Content: You don't have sufficient privileges to see this hidden data **" ?
Thanks in advance!
Till now, the mod works wonderful!
Reply With Quote
  #136  
Old 05-29-2012, 05:52 AM
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Location: India
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blueperspective View Post
I have a question on the same field: Where can I change "** Hidden Content: You don't have sufficient privileges to see this hidden data **" ?
Thanks in advance!
Till now, the mod works wonderful!
edit this phrase

Code:
vfc_hidden_content_stg_ntml
Reply With Quote
  #137  
Old 05-29-2012, 06:06 PM
faraz_hamza faraz_hamza is offline
 
Join Date: Jun 2011
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you just
Is it possible to display an image instead of displaying that text

**Hidden Content: Reply to see the content**

image which designed by me and showing the message to reply or press thanks?
Reply With Quote
  #138  
Old 05-29-2012, 09:27 PM
Eosian Eosian is offline
 
Join Date: Feb 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems obvious, but you need a [HIDE-VOTE] option as well so that people can say things in a thread thats hidden to people who haven't already voted.

Approximately this;

Code:
	/**
    * Callback function for Parsing [HIDE-VOTE] Tag
    *
    * @param	string	Message text
    *
    * @return	Message (Parsed)
    */

function p_bb_code_hv($message) 
{
  global $vbphrase;
  $message = str_replace('\"', '"', $message);
  // Checking if user can view the message
  if (!$this->_registry->owner) 
  {   
		if ($this->_registry->threadid)
		{
			$creply = $this->_vbulletin->db->query_first("
								SELECT p.pollid, p.votedate 
								FROM " . TABLE_PREFIX . "thread t 
								left join " . TABLE_PREFIX . "pollvote p on t.pollid = p.pollid
								WHERE 
									p.userid = " . $this->_vbulletin->userinfo[userid] . "
									AND t.threadid = " . $this->_registry->threadid . "
									AND userid > 0 LIMIT 1 ");  

			if ($creply['pollid'] > 0 AND $creply['votedate'] > 0)  
				$this->_registry->hvote = true;
		}	
		if ($this->_registry->dohtml) 
		{
			if ($this->_registry->owner OR $this->_registry->hvote) 
			{  $usercansee = true; }	
			$templater = vB_Template::create('vfc_hide_hack_bbcode_vote');
			$templater->register('usercansee', $usercansee);
			$templater->register('postid', $this->_registry->postid);
			$templater->register('message', $message);
			$message = $templater->render();
			return $message;
		} 
		else 
		{
			if ($this->_registry->owner OR $this->_registry->hvote) 
			{  
				return $message;
			}
			else
			{
				return $vbphrase[vfc_hidden_content_reply_vote];;
			}
		}
	}
	return $message;
}
Plus the associated vfc_hide_hack_bbcode_vote template.

And adding this

'HIDE-VOTE' => 'p_bb_code_hv',
to $taglist

etc.

You could go one step more complex and make a hide-vote-option that's only visible to people who selected a specific vote option, but seems unnecessarily complex for most usage.

Otherwise very good mod.
Reply With Quote
  #139  
Old 05-30-2012, 05:23 AM
faraz_hamza faraz_hamza is offline
 
Join Date: Jun 2011
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think you failed to Got my point.

i just Want to Display Image(jpg banner) instead of the text hiddent content
Reply With Quote
  #140  
Old 05-30-2012, 05:47 AM
faraz_hamza faraz_hamza is offline
 
Join Date: Jun 2011
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How Can we hide Attachments???

Cuz when i do attachment then there is nothing displayed in text editor . and after submiting it displayed attached file in thread.
Reply With Quote
  #141  
Old 05-30-2012, 08:25 PM
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Location: India
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by faraz_hamza View Post
you just
Is it possible to display an image instead of displaying that text

**Hidden Content: Reply to see the content**

image which designed by me and showing the message to reply or press thanks?
Edit vfc_hide_hack_bbcode_reply template

Replace
PHP Code:
{vb:rawphrase vfc_hidden_content_reply_ntml
With Your Img Code
Code:
<img src="yourimgurl" alt="{vb:rawphrase vfc_hidden_content_reply_ntml}">
Reply With Quote
Reply

Thread Tools

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 01:50 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.07328 seconds
  • Memory Usage 2,371KB
  • Queries Executed 28 (?)
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
  • (5)bbcode_code
  • (1)bbcode_php
  • (3)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (22)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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