[2.0.12] Hide BBcode MOD

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
42
72%
Very Good
3
5%
Good
8
14%
Fair
0
No votes
Poor
5
9%
 
Total votes: 58

emerjay
Registered User
Posts: 8
Joined: Tue Feb 27, 2007 7:45 pm
Contact:

Post by emerjay »

Therefore bospgna to create one new mod?
you do not know if already it exists?
thanks
dj-of-e
Registered User
Posts: 2
Joined: Fri Nov 26, 2004 3:15 am

Re: [2.0.12] Hide BBcode MOD

Post by dj-of-e »

Can someone re-upload this mod again? It seems that with the new update to phpBB site, this file seems missing.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28617
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [2.0.12] Hide BBcode MOD

Post by Paul »

dj-of-e wrote: Can someone re-upload this mod again? It seems that with the new update to phpBB site, this file seems missing.

Please read the announcments in this forum ;)
iaminmd
Registered User
Posts: 21
Joined: Tue Apr 10, 2007 3:21 pm

Re: [2.0.12] Hide BBcode MOD

Post by iaminmd »

I install the "multi_bbcode-140c" and then install the "hide_bbcode_1.3.0".

But nothing happened...I did not see tag "Hide"...why..?
And I already tried twice.....
Twister263
Registered User
Posts: 13
Joined: Fri May 04, 2007 1:08 am

Re: [2.0.12] Hide BBcode MOD

Post by Twister263 »

I just installed BB Code 1.4 then went to install Hide Code..did everything fine..the button shows up..but when I do the [hide][/hide] and put the stuff in between...it just shows the stuff in between to everyone else..anyone know whats wrong?
Murty
Registered User
Posts: 6
Joined: Sat May 27, 2006 11:52 am
Contact:

Re: [2.0.12] Hide BBcode MOD

Post by Murty »

I like the mod alot :D
but my friends has a mod where u must post a message to see the hidden text
I need that, not to be clicked but must post a message to see the hidden text
somebody?

ty
Ithildin
Registered User
Posts: 2
Joined: Sun May 13, 2007 11:04 pm

Re: [2.0.12] Hide BBcode MOD

Post by Ithildin »

Twister263 wrote: I just installed BB Code 1.4 then went to install Hide Code..did everything fine..the button shows up..but when I do the [hide][/hide] and put the stuff in between...it just shows the stuff in between to everyone else..anyone know whats wrong?


I have the same problem ;/
I have phpBB 2.0.22 ... maybe this is the problem ? :/
Eh, I really LOVE this mod (I'm addicted to it ^^') but I can't have it's not working on my forum :cry:
Maybe somebody can help with that?
tribalismo
Registered User
Posts: 34
Joined: Sun Mar 25, 2007 5:36 pm

Re: [2.0.12] Hide BBcode MOD

Post by tribalismo »

Would it be possible to only show the hidden content AFTER the poster ha sbeen thanked?
User avatar
Tom C
Registered User
Posts: 23
Joined: Sun Jul 08, 2007 3:05 am
Location: Cleveland, OH (USA)

Re: [2.0.12] Hide BBcode MOD

Post by Tom C »

Nice Mod. Thank you. Installed with EasyMod -- no problem.
dynamok
Registered User
Posts: 21
Joined: Tue Oct 31, 2006 10:54 pm
Location: Minneapolis
Contact:

Re: [2.0.12] Hide BBcode MOD

Post by dynamok »

Here is what I did with phpBB 2.0.2

Code: Select all

################################################################# 
## MOD Title: Hide BBcode MOD 
## MOD Author: EGIS < [email protected] > (Mathias Jшrgensen) http://www.mj2k.com 
## MOD Description: Adds a Hide BBcode to your forum, which reveals the hidden 
##     code (images too) when some text is clicked. Great if you want other users to agree 
##     before viewing information about for example the ending of a book. Also great for hiding 
##     screenshots and big images so they don't screw up the page layout. 
##     Usage: [hide]Hidden code here[/hide] or [hide=Text to be clicked]Hidden code here[/hide] 
## 
## MOD Version: 1.3.0 
## 
## Installation Level: Easy 
## Installation Time: ~10 Minutes 
## Files To Edit: includes/bbcode.php, 
##		  language/lang_english/lang_main.php, 
##                language/lang_english/lang_bbcode.php, 
##                templates/subSilver/bbcode.tpl, 
##		  templates/subSilver/overall_header.tpl, 
##		  templates/subSilver/simple_header.tpl, 
##		  templates/subSilver/posting_body.tpl
## Included Files: hidebbcode.js
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## Tested without problems in Opera 7.53, Opera 6.0, Internet Explorer 6.0 and Netscape 7.2 on phpBB v. 2.0.10
## Installed successful with Easymod.
## Visual problem in Netscape 4.77.
## Thanks to markus_petrux for the javascript.
##
## IMPORTANT: you MUST first have already installed the Multi BBCode MOD 1.4.0
##    available at http://www.phpbb.com/mods/ 
## 
############################################################## 
## MOD History: 
## 
##   2004-07-31 - Version 1.0.0 
##   - First Beta 
## 
##   2004-07-31 - Version 1.1.0 
##   - Added [hide=Your link text here] 
## 
##   2004-08-09 - Version 1.2.0 
##   - Changed the MOD name from 'Expanding DIV Spoiler BBcode MOD' to 'Hide BBcode MOD' 
##   - Changed the bbcode from [spoiler] to [hide] 
##   - Added FAQ entry 
## 
##   2004-08-25 - Version 1.2.1
##   - Added support for legacy browsers (thanks to markus-petrux):
##     - For NS4, Hotjava and Opera5/6 uses the visibility attribute instead of display. 
##     - It also uses an <a href> tag (a link), adding support for browsers that 
##       do NOT support the onclick event for a DIV element. 
##   - Fixed problem when javascript is disabled. The end bbcode shouldn't write the </div>. 
##   - Rewritten so all the code lies behind just one global object. Avoids collision 
##     between other possible JS code present on the page.
##   - Fixed security issue where users could run javascript code.
##
##   2004-08-26 - Version 1.2.2
##   - Fixed javascript errors in simple_header.tpl.
##
##   2004-09-20 - Version 1.2.3
##   - Fixed issue with javascript ending up on one line. (Thanks again to markus-petrux)
##
##   2004-10-03 - Version 1.2.4
##   - Updated to work with Multi BBcode 1.4.0
##
##   2004-11-28 - Version 1.2.5
##   - Fixed small bug with the Hide button having no hint.
##
##   2005-01-13 - Version 1.2.6
##   - Fixed typo in hidebbcode.js
##
##   2005-02-27 - Version 1.3.0
##   - All characters (except single quote, backslash, new line and right square bracket)
##     are now supported in the hide text.
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
# IMPORTANT: you MUST first have already installed the Multi BBCode MOD 1.4.0
#    available at http://www.phpbb.com/mods/ 
# 

# 
#-----[ COPY ]------------------------------------------ 
#
copy hidebbcode.js to templates/hidebbcode.js

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/bbcode.php


# 
#-----[ FIND ]------------------------------------------ 
# 
define("BBCODE_TPL_READY", true); 


# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
   $bbcode_tpl['hide_open'] = str_replace('{L_HIDE}', $lang['Hide'], $bbcode_tpl['hide_open']); 
   $bbcode_tpl['hide_owntext_open'] = str_replace('{L_HIDE}', '\\1', $bbcode_tpl['hide_owntext_open']); 
   $patterns = array('<!--', '//-->'); 
   $replacements = array("\r<!--\r", "\r//-->\r"); 
   $bbcode_tpl['hide_open']  = str_replace($patterns, $replacements, $bbcode_tpl['hide_open']); 
   $bbcode_tpl['hide_owntext_open']  = str_replace($patterns, $replacements, $bbcode_tpl['hide_owntext_open']); 
   $bbcode_tpl['hide_close']  = str_replace($patterns, $replacements, $bbcode_tpl['hide_close']);

# 
#-----[ FIND ]------------------------------------------ 
# 
// colours 


# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// Begin 'Hide BBcode MOD' 
   // [hide] Hidden code [/hide] 
   $text = str_replace("[hide:$uid]", $bbcode_tpl['hide_open'], $text); 
   $text = str_replace("[/hide:$uid]", $bbcode_tpl['hide_close'], $text); 
   $text = preg_replace("/\[hide:$uid=([^\'\]\n\\\]+)\]/si", $bbcode_tpl['hide_owntext_open'], $text); 
// End 'Hide BBcode MOD' 

# 
#-----[ FIND ]------------------------------------------ 
# 
// [color] and [/color] for setting text color 


# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

// Begin 'Hide BBcode MOD' 
   // [hide] and [/hide] for hiding text or code 
   $text = bbencode_first_pass_pda($text, $uid, '[hide]', '[/hide]', '', false, ''); 
   $text = bbencode_first_pass_pda($text, $uid, '/\[hide=([^\'\]\n\\\]+)\]/is', '[/hide]', '', false, '', "[hide:$uid=\\1]"); 
// End 'Hide BBcode MOD' 

# 
#-----[ OPEN ]------------------------------------------ 
# NOTE: You need to do this for all installed languages 
# 
language/lang_english/lang_main.php 


# 
#-----[ FIND ]------------------------------------------ 
# NOTE: Full line in English is: 
# $lang['Code'] = 'Code'; // comes before bbcode code output. 
# 
$lang['Code'] = 


# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
$lang['Hide'] = 'Click to reveal hidden content'; 

# 
#-----[ FIND ]------------------------------------------ 
# NOTE: Full line in English is: 
# $lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]'; 
# 
$lang['bbcode_f_help'] = 


# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
$lang['bbcode_help']['hide'] = 'Hide code: [hide]code[/hide] or [hide=click text]code[/hide] (alt+%s)';


# 
#-----[ OPEN ]------------------------------------------ 
# NOTE: You need to do this for all installed languages 
# 
language/lang_english/lang_bbcode.php 


# 
#-----[ FIND ]------------------------------------------ 
# 
?> 


# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
$faq[] = array('Hiding parts of a post', "The HIDE BBCode hides parts of your post so that the readers have to click a link to view it. Use the Hide BBCode when you want to hide big images from taking up the whole screen, or when you want to hide information about for example the ending of a book, so that your readers have to confirm they want to see the hidden information.<br /><br /><b>[hide=Clickable text]</b>Hidden text<b>[/hide]</b><br /><br />will generate the following:<br /><br />\n<script language=\"javascript1.2\" type=\"text/javascript\">\n<!--\n   hideBBCode.open('Clickable text');\n//-->\n</script>\nHidden text\n<script language=\"javascript1.2\" type=\"text/javascript\">\n<!--\n   hideBBCode.close();\n//-->\n</script>\n<br />"); 

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/bbcode.tpl 


# 
#-----[ FIND ]------------------------------------------ 
# NOTE: Full line to look for is: 
# <!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open --> 
# 
<!-- BEGIN b_open --> 


# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
<!-- BEGIN hide_open --> 
<script language="javascript1.2" type="text/javascript"> 
<!-- 
   hideBBCode.open('{L_HIDE}'); 
//--> 
</script> 
<!-- END hide_open --> 
<!-- BEGIN hide_owntext_open --> 
<script language="javascript1.2" type="text/javascript"> 
<!-- 
   hideBBCode.open('{L_HIDE}'); 
//--> 
</script> 
<!-- END hide_owntext_open --> 
<!-- BEGIN hide_close --> 
<script language="javascript1.2" type="text/javascript"> 
<!-- 
   hideBBCode.close(); 
//--> 
</script> 
<!-- END hide_close --> 

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/overall_header.tpl 


# 
#-----[ FIND ]------------------------------------------ 
# 
</head> 


# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
<script language="javascript1.2" type="text/javascript" src="templates/hidebbcode.js"></script>

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/simple_header.tpl 


# 
#-----[ FIND ]------------------------------------------ 
# 
</head> 


# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
<script language="javascript1.2" type="text/javascript" src="templates/hidebbcode.js"></script>

# 
#-----[ OPEN ]------------------------------------------ 
# NOTE: You need to do this for all of your installed template styles 
# 
templates/subSilver/posting_body.tpl

# 
#-----[ FIND ]--------------------------------- 
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags 
# 
<input class="button" type="button" value="URL" name="codeUrl" title="URL (Ctrl+W)"


# 
#-----[ IN-LINE AFTER, ADD ]--------------------------------- 
# 
<input class="button" type="button" value="Hide" name="codeHide" title="Hide" style="width: 40px; text-decoration: underline" /><input type="hidden" name="codeUrl2" />&nbsp;


# 
#-----[ FIND ]--------------------------------- 
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags 
# 
bbcode.addTag("codeUrl", "url", "/url", "", ctrl); 


# 
#-----[ IN-LINE AFTER, ADD ]--------------------------------- 
# 
bbcode.addTag("codeHide", "hide", "/hide", "", ctrl); 


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
Dhz-
Registered User
Posts: 2
Joined: Sat Sep 15, 2007 7:13 pm

Re: [2.0.12] Hide BBcode MOD

Post by Dhz- »

can

admin mod and special groups don't post

but show hiden post ?
Daz wilde
Registered User
Posts: 147
Joined: Mon Mar 20, 2006 7:01 pm

Re: [2.0.12] Hide BBcode MOD

Post by Daz wilde »

Right i changed servers and it seems as though something strange has happened to my hide mod...

I now have 2! the last one is fine but the circled i want to get rid of...

How would i do this???

Image


https://camo.phpbb.com/f41e9fd1e304dad98bdfb86e48a47c621cefc7e6/687474703a2f2f696d673231302e696d616765736861636b2e75732f696d673231302f393335392f686964656572727970382e6a7067
pinky42
Registered User
Posts: 2
Joined: Sun Apr 01, 2007 9:01 am

Re: [2.0.12] Hide BBcode MOD

Post by pinky42 »

oke thnx alot will give it a try :P
lanouvelle
Registered User
Posts: 11
Joined: Tue Oct 30, 2007 3:20 pm
Contact:

Re: [2.0.12] Hide BBcode MOD

Post by lanouvelle »

I there away to make this so people have to reply to the post before they can see the content in the [hide] [/hide] tags?
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [2.0.12] Hide BBcode MOD

Post by Raimon »

lanouvelle wrote:I there away to make this so people have to reply to the post before they can see the content in the [hide] [/hide] tags?
You can better use this mod http://www.philiweb.com/accueil.php?pn= ... /4hide.php
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me @ www.raimon.nl for fair prices and good service!
Post Reply

Return to “[2.0.x] MOD Database Cleanup”