Paul
Customers
Post Count:33
 |
| 24 Jan 2010 03:53 PM |
|
Hi! i want to be able to use spoilers on the active forum. the spoiler should work like the BBcode [spoiler]not visibletext intil the link is clicked here[/spoiler] i know i can create a textcolor version, but thats not what i want. I should look like spoiler: "hidden text" when you click on "hidden text" it shows the full text enclosed real sample: http://pbphouse.com/forum/index.php...9#msg97909 i should be able to add pictures, text and hyperlinks etc... anyone an idea how to proceed? my next question will be how to add it as a button to the fckeditor (like the Quote button. |
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Paul
Customers
Post Count:33
 |
| 26 Jan 2010 12:23 PM |
|
hmm. or it is harder to create a spoiler then i would imagine (how dos that work when a PhPBB import contains spoilers?? or ... spoiler is so easy that i should be ashamed of myself? :-P or ... nobody understands what i mean with a spoiler :-/
|
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Dan Ball
Customers
Post Count:582
 |
| 26 Jan 2010 12:34 PM |
|
I'm sure most of us know what it is, it is just that this functionality is not built into the software (that I know of) and it becomes a feature request.
|
|
|
|
|
Paul
Customers
Post Count:33
 |
| 26 Jan 2010 01:25 PM |
|
:-) thanks... so it seems i didn't miss it. (im not going nuts  hehe) i just was annoyed becasue i see 10.000.000 sites talking about the spoiler in BBcode. i have tried about 20 different codings, edits etcetera using filters in the forum, but all i get is script removed, (even when i have script "on" ) i'll keep searching and feature requesting. thanks for clearing that up for me.  |
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Dan Ball
Customers
Post Count:582
 |
| 26 Jan 2010 01:57 PM |
|
You could create your own filter to set the font to the same color as the background, I just tried it here and it works. Not exactly what you were looking for, but it might do for now. |
|
|
|
|
Paul
Customers
Post Count:33
 |
| 26 Jan 2010 03:01 PM |
|
I am trying to create a regex filter: input: [spoiler={option}]{param}[/spoiler] sample: http://www.theadminzone.com/forums/...hp?t=24586 ((if i add the code here i get a script removed error)) if i have figured it out how it works and how i can avoid the remove error.. then i will add it here... |
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Dan Ball
Customers
Post Count:582
 |
| 26 Jan 2010 03:29 PM |
|
I entered it as two markup filters:
[spoiler]
Spoiler:
and
[/spoiler]
|
|
|
|
|
Paul
Customers
Post Count:33
 |
| 26 Jan 2010 04:48 PM |
|
Hi Dan, That works also and is in fact a valid spoiler. however, i want to have a spoiler that is hidden behind a button or link. i have several options that i don't understand because i dont have a clue where to put any part of code :-/ this site tells me about using jquery (included in dnn 5+) http://blog.theaccidentalgeek.com/p...tNuke.aspx i have added something from this site: http://www.wanderinghorse.net/compu.../demo.html it works only partial. the tags i use are: (repace X with < and >) [spoiler] Xspan class='jqSpoilerClick'XXspanX [/spoiler] X/spanX X/spanX the code is visible as replacement in the source, but the text isn't hidden. this is maybe because the picture that the spoiler uses isn't in the right location or because the jscript isn't working. i won't give up. regex, jquery something has to work. otherwise i cant start running games on my website. btw. thanks for you help and input. i appreciate it |
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Dan Ball
Customers
Post Count:582
 |
| 26 Jan 2010 07:03 PM |
|
No problem, I'm afraid the regex portion is still a mystery to me, I've never sat down to try to figure out how to use it so I cannot be a whole lot of help with it.
|
|
|
|
|
Paul
Customers
Post Count:33
 |
| 27 Jan 2010 10:31 AM |
|
i'm progressing, but only small steps... learning on the job :-) i am now trying to find out if the visibilitywidget.js can help me... lots of info, lots of testing, experimenting etc... |
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Paul
Customers
Post Count:33
 |
| 27 Jan 2010 06:49 PM |
|
i have a spoiler, bad thing though. if i add more then one they all open at once etc. so i need something to make it work with the correct spoiler. second problem is that the spoiler breaks if i edit the textbox with the quick editor (not going into source...) so... more to fiddle.... http://www.it-pro.nl/Forums.aspx has the half working spoiler. (it should also dipslay a box around the text. but somehow it doesn't work yet :-) the spoiler as it is now, works with jQuery and the default library. (visibleWidget) samples i took from this site: http://www.learningjquery.com/2006/...w-and-hide demo 1 shows a fixed size square area and a red rectangle with the text in it. (not handy if you dont know how big the spoiler is as text.) somehow i don't get the rectangle. oh well. i'll continue tomorrow. |
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Paul
Customers
Post Count:33
 |
| 28 Jan 2010 11:19 AM |
|
i found one that works as a decent spoiler. create a filter [spoiler] and replace with Spoiler! [script removed] create a second filter [/spoiler] with only and youre done. you can now create a text and hide a portion of it by doing this: [spoiler] your text to hide, links, url's, images [/spoiler] when you save the text it will look like a spoiler. respond to open and close click and when you open the message again for editing it will be editable. just dont use the enter key for a new line, but alt-enter. always room to improve things  |
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Paul
Customers
Post Count:33
 |
| 28 Jan 2010 11:21 AM |
|
i added the script with the same text as above, but with the needed code. |
script.txt
|
Paul Fijma Digital Funwork Amsterdam |
|
|
Dan Ball
Customers
Post Count:582
 |
| 28 Jan 2010 03:33 PM |
|
Awesome! I'll try it out later... |
|
|
|
|
Paul
Customers
Post Count:33
 |
| 28 Jan 2010 06:03 PM |
|
you need to enable scripts in the forum to make it work.! |
|
Paul Fijma Digital Funwork Amsterdam |
|
|