View unanswered posts | View active topics
| Author |
Message |
|
steet
|
Post subject: Re: Norclick option. Posted: Mon Aug 11, 2008 6:13 am |
|
|
| Animation Source is my home! |
 |
 |
Joined: Fri Dec 31, 2004 2:14 am Posts: 5743 Location: France
Gender: Male
|
|
Well, there is nothing to prevent right click on the forums, true. I tried adding a custom BBCode with your code, but it doesn't work as it requires valid HTML code (and this is javascript) Where exactly did you get it?
_________________ Webmaster of Animation Source, and more
|
|
| Top |
|
 |
|
Conay
|
Post subject: Re: Norclick option. Posted: Mon Aug 11, 2008 7:13 am |
|
|
| Animation Source is my home! |
 |
Joined: Tue Jan 08, 2008 11:39 am Posts: 5603 Location: Dartford, Kent, England, United Kingdom of Great Britain and Nothern Ireland, Europe, Planet Earth.
Gender: Male
|
steet wrote: Well, there is nothing to prevent right click on the forums, true. I tried adding a custom BBCode with your code, but it doesn't work as it requires valid HTML code (and this is javascript) Where exactly did you get it? From the support forum: http://forum.phpbb3now.com/viewtopic.ph ... a&start=20And it worked on my site. Anyway if you scroll down that page, you'll find it.
_________________ Here's to the crazy ones...
|
|
| Top |
|
 |
|
steet
|
Post subject: Re: Norclick option. Posted: Tue Aug 12, 2008 1:33 am |
|
|
| Animation Source is my home! |
 |
 |
Joined: Fri Dec 31, 2004 2:14 am Posts: 5743 Location: France
Gender: Male
|
|
Well, it's working now, but only with Internet explorer. It would be better to use a cross-platform script. I tried finding one, but couldn't get one that would disallow right clicking from only a part of the page (I don't want to prevent right clicking from a whole topic!) So for now, I reject the idea. I have added other BBCode though, that seemed interesting.
_________________ Webmaster of Animation Source, and more
|
|
| Top |
|
 |
|
steet
|
Post subject: Re: Norclick option. Posted: Tue Aug 12, 2008 1:39 am |
|
|
| Animation Source is my home! |
 |
 |
Joined: Fri Dec 31, 2004 2:14 am Posts: 5743 Location: France
Gender: Male
|
Horizontal bar
Hidden text : click to show
_________________ Webmaster of Animation Source, and more
|
|
| Top |
|
 |
|
Conay
|
Post subject: Re: Norclick option. Posted: Tue Aug 12, 2008 3:12 am |
|
|
| Animation Source is my home! |
 |
Joined: Tue Jan 08, 2008 11:39 am Posts: 5603 Location: Dartford, Kent, England, United Kingdom of Great Britain and Nothern Ireland, Europe, Planet Earth.
Gender: Male
|
|
Oh yes, I wasn't sure about the line, but I have the spoiler on my site, but anyway, if your not sure, here is how the No right click option works:
You have the option on the bar (Where it has center, HR and Spoiler) if you where to click on it, a BBCode will come up ([norclick][/norclick]) and than you would say put your Image or what ever you didn't want copied there.
_________________ Here's to the crazy ones...
|
|
| Top |
|
 |
|
Conay
|
Post subject: Re: Norclick option. Posted: Tue Aug 12, 2008 8:24 am |
|
|
| Animation Source is my home! |
 |
Joined: Tue Jan 08, 2008 11:39 am Posts: 5603 Location: Dartford, Kent, England, United Kingdom of Great Britain and Nothern Ireland, Europe, Planet Earth.
Gender: Male
|
Sorry just want too add to that, for the line code, maybe you should change the BBCode usage from - Code: Select all
[hr][/hr]
Too - Code: Select all
[line][/line]
So insted of it coming up "hr" on the text editor and the button at the top, it would come up "Line" in both BBCode script, and on the key ^.
_________________ Here's to the crazy ones...
|
|
| Top |
|
 |
|
steet
|
Post subject: Re: Norclick option. Posted: Tue Aug 12, 2008 3:58 pm |
|
|
| Animation Source is my home! |
 |
 |
Joined: Fri Dec 31, 2004 2:14 am Posts: 5743 Location: France
Gender: Male
|
|
Well for those who are familiar with HTML, they know what hr is. And for the others, the "tip" line is there for a reason...
_________________ Webmaster of Animation Source, and more
|
|
| Top |
|
 |
|
Conay
|
Post subject: Re: Norclick option. Posted: Tue Aug 12, 2008 4:01 pm |
|
|
| Animation Source is my home! |
 |
Joined: Tue Jan 08, 2008 11:39 am Posts: 5603 Location: Dartford, Kent, England, United Kingdom of Great Britain and Nothern Ireland, Europe, Planet Earth.
Gender: Male
|
|
Steet may I ask, could I have the HTML script for your spoiler code, it seems completely diffrent too mine, and I wanna sheck out the diffrences, is yours HTML or Java though?
_________________ Here's to the crazy ones...
|
|
| Top |
|
 |
|
steet
|
Post subject: Re: Norclick option. Posted: Wed Aug 13, 2008 8:29 am |
|
|
| Animation Source is my home! |
 |
 |
Joined: Fri Dec 31, 2004 2:14 am Posts: 5743 Location: France
Gender: Male
|
Not java, but javascript. - Code: Select all
<style type="text/css"> .spoiler { font-size:10px; padding:5px; border:1px solid #999999; width:75%; } .spoilertexte { font-weight:bold; font-size:10px; } </style>
<script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { // v2.0 window.open(theURL,winName,features); } function decision(message, url) { if(confirm(message)) location.href = url; } //--> function switch_spoiler(div2) { var divs = div2.getElementsByTagName('div'); var div3 = divs[0]; if (div3.style.visibility == 'visible') div3.style.visibility = 'hidden'; else div3.style.visibility = 'visible'; return true; } </script> <span class="spoilertexte">Hidden text : click to show</span> <div class="spoiler" onclick="switch_spoiler(this)"><div style="visibility: hidden;" class="spoiler3">{TEXT}</div></div>
_________________ Webmaster of Animation Source, and more
|
|
| Top |
|
 |
|
Conay
|
Post subject: Re: Norclick option. Posted: Wed Aug 13, 2008 9:22 am |
|
|
| Animation Source is my home! |
 |
Joined: Tue Jan 08, 2008 11:39 am Posts: 5603 Location: Dartford, Kent, England, United Kingdom of Great Britain and Nothern Ireland, Europe, Planet Earth.
Gender: Male
|
Same thing xD Um, well i'll just give you my one just too compair the diffrences xD (Why I don't know) - Code: Select all
<dl class="codebox" style="cursor: pointer;" onclick="this.getElementsByTagName('div')[0].style.display=((this.getElementsByTagName('div')[0].style.display=='none')?'':'none');"> <dt>This users has written a spoiler, click here to view it!</dt> <dd> <div style="display:none;">{TEXT}</div> </dd> </dl>
Butteh did you program your Spoiler option yourself? (I bet we're here talking about HTML and JavaScripts and some members are looking at us and saying "What are they on about?" Lol)
_________________ Here's to the crazy ones...
|
|
| Top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|