[2.0.12] Hide BBcode MOD

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

Rating:

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

User avatar
Merri
Registered User
Posts: 255
Joined: Mon Nov 25, 2002 1:08 pm
Location: Riihimäki, Finland
Contact:

Post by Merri »

Lacks support for scandinavian alphabets: [hide=tästä] doesn't work, for example. Pretty nasty, because most "click here" variation texts in Finnish use the Ä letter in one of the words.

Achirio
Registered User
Posts: 2
Joined: Wed Jan 05, 2005 7:42 am

Post by Achirio »

Hello.
Well, I tried installing this cool mod on a forum I work on but, for some reason, the mod will not work.
Here you can see the test topic I made:
Click here
I reviewed the installation step by step and all seems to be in the correct place. Also, notice that these forums have TONS of mods in it (including a center bbcode and a slap bbcode... the later one I was mad when they added it), so I was wondering if anyone here could pinpoint the problem, and hopefully, help me out a bit.
Thanks in advance.

EGIS
Registered User
Posts: 60
Joined: Sat Apr 24, 2004 3:37 am
Location: Norway
Contact:

Post by EGIS »

Code: Select all

<!##
//Rain/Snow effect- By Craig Blanchette Craiga.topcities.com
//Script featured on Dynamic Drive
//Visit http://www.dynamicdrive.com for this script and more
Remove this line in overall_header.tpl.
My mod: [Hide BBcode MOD]

Achirio
Registered User
Posts: 2
Joined: Wed Jan 05, 2005 7:42 am

Post by Achirio »

That worked like a charm, MANY thanks ^^

/Freya
Registered User
Posts: 3
Joined: Thu Jan 06, 2005 8:36 pm
Location: Belgium
Contact:

Post by /Freya »

Hmm... I tried to install this but it didn't work for me. The hidden text just showed up, and no link or anything. Just thought I'd say it. I uninstalled it now, it's not such a big deal... I did think it was a cool idea =D

[omega]
Registered User
Posts: 7
Joined: Tue Jan 11, 2005 11:47 pm

Post by [omega] »

I got the mod installed and thik its great but I was wondering if there was a way to make the txt visable only if a person responds to the topic insted of just clicking some text.

mkot
Registered User
Posts: 13
Joined: Sat Feb 15, 2003 2:08 am

Post by mkot »


[omega]
Registered User
Posts: 7
Joined: Tue Jan 11, 2005 11:47 pm

Post by [omega] »

to bad the author's site is dead and so is the download link. PLuss from reading the post replied in the topics seemed to be a lot of bugs found in the mod. Is there another mod that is the same or some alteration to this mod???

ripthesystem
Registered User
Posts: 21
Joined: Tue Dec 14, 2004 5:21 am

Post by ripthesystem »

Any way to remove the extra line break?

I'm not exactly sure where the problem is. I've installed this mod and it works perfectly and as it should so thx in advance. My problem comes with the output.

For example:
Welcome to the board [hide=click here for more]hidden content[/hide]


Shows:
Welcome to the board
click here for more


and it works on my board. It hides the content, shows it when clicked etc.. however I don't want the line break that it puts in. How do I get rid of that?

EGIS
Registered User
Posts: 60
Joined: Sat Apr 24, 2004 3:37 am
Location: Norway
Contact:

Post by EGIS »

Open:
templates/hidebbcode.js

Find:

Code: Select all

s += '<div><a class="postlink" href="javascript:hideBBCode.showHide(\'' + randomId + '\');" onmouseover="top.status=\'\';" onfocus="this.blur();">' + l_hide + '</a><div>';
Replace with:

Code: Select all

s += '<a class="postlink" href="javascript:hideBBCode.showHide(\'' + randomId + '\');" onmouseover="top.status=\'\';" onfocus="this.blur();">' + l_hide + '</a>';
My mod: [Hide BBcode MOD]

ripthesystem
Registered User
Posts: 21
Joined: Tue Dec 14, 2004 5:21 am

Post by ripthesystem »

Rockin! Thanks for the awesome quick support!

Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati »

EGIS,
is there a simple way to strip special characters, so that when people post something like

[hide="uncle Ned's camping trip"]text about camping trip here[/hide]

The Hide link text will just say
uncle Neds camping trip
and still work as intended..?

I was trying to simply add to your patterns and replace arrays in bbcode.php but I couldn't make it work properly....

EGIS
Registered User
Posts: 60
Joined: Sat Apr 24, 2004 3:37 am
Location: Norway
Contact:

Post by EGIS »

You can't use single quotes in the tag because of the security risk with javascript. ([hide=');alert('I can execute JavaScript !!!');document.write('test])
My mod: [Hide BBcode MOD]

Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati »

Howabout colon and other special characters..?

EGIS
Registered User
Posts: 60
Joined: Sat Apr 24, 2004 3:37 am
Location: Norway
Contact:

Post by EGIS »

Colons are possible, but at the time I wrote the mod I forgot to add many characters, and my knowledge of php was not very good.
My mod: [Hide BBcode MOD]

Post Reply

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