Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2004
Posts: 87
J
journeyman
journeyman
J Offline
Joined: Jul 2004
Posts: 87
Allow Toggle of Markup/HTML in Posts?
HTML may only be used if enabled in the forum.
Admins and Moderators can always toggle.


WHAT DOES TOGGLE MEAN IN THIS SITUATION?

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
It simply means that you can switch between HTML only, HTML & UBBCode, UBB code or nothing.

What is available depends upon how the admin sets up the permissions of the user.

Joined: Jul 2004
Posts: 87
J
journeyman
journeyman
J Offline
Joined: Jul 2004
Posts: 87
thanks

Joined: Jul 2004
Posts: 87
J
journeyman
journeyman
J Offline
Joined: Jul 2004
Posts: 87
As html appaears to be such a dangerous feature to enable - is it possible to allow only mods to use this?

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
By default only mods & admins can use this, so yes.

You have to enable it in the forum settings if you wish users to post in html.

Joined: Jul 2004
Posts: 87
J
journeyman
journeyman
J Offline
Joined: Jul 2004
Posts: 87
I am logged in as admin
and when I go to the Mods area (forum) I see this text at the top where you would post

Posting form. HTML is disabled. UBBCode is enabled.

If I enable it in the forum - does this mean everyone can use html?

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Yes - that is correct, if you enable it everyone can use it - you should still be able to post in html as an admin.


Joined: Jul 2004
Posts: 87
J
journeyman
journeyman
J Offline
Joined: Jul 2004
Posts: 87
although I can select html from the drop down option
when I post the code in (its for a no-rght click) it does not work - image can still be copied via right click.

If i use exact same code in via say dreamweaver page and dispaly and try to right click - then it prevents me.

Am i missing something?

Joined: Jul 2004
Posts: 87
J
journeyman
journeyman
J Offline
Joined: Jul 2004
Posts: 87
This is the code btw

=====================

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>A Web Page</title>
</head>

<body>
<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
</body>

</html>
 <img border="0" src="http://www.awebsite.co.uk/BANNER_HOME_041207.jpg" width="1024" height="44">

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
What has these got to do with HTML / UBB code etc.?

Unless I have missed something LOL

Joined: Jul 2004
Posts: 87
J
journeyman
journeyman
J Offline
Joined: Jul 2004
Posts: 87
The code above (if posted into a normal blank webpage and uploaded to a server) means user cannot right click.

I assumed that using some code in a post by admin would acheive same result?

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Any right click code should be put into the template, so that it is included throughput the page.

I would suggest adding it to the header file.

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
And if you do put it into your header leave off the html head and body tags. Go with just the script tags.

<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>


Not that this is actually going to do much of anything for you. It's a javascript that prevents right clicking.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
yes, and please check your html at http://validator.w3.org afterwards - if you paste the above html into just anywhere you are going to have issues in some browsers not displaying well.

BTW, disabling right-click only keeps internet dummies from saving/copying images, if that's your goal. It's an irritant, but easily by-passed.


- Allen
- ThreadsDev | PraiseCafe
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
ooo.. sniped by navaho smile


- Allen
- ThreadsDev | PraiseCafe
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
\o/


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Yes, but unless it has been fixed in 7.3 once posted in a specific format, not even an Admin can come back and edit it as another format type.

Would really like to see that fixed.

Joined: Jun 2006
Posts: 16,300
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,300
Likes: 116
Much better, non irratating, ways of implimenting anti right clicking, but quite simple to subvert any method wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Originally Posted by David Dreezer
And if you do put it into your header leave off the html head and body tags. Go with just the script tags.

Thanks - meant to mention that, but forgot frown

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Got you covered. wink


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Thanks buddy smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
3 members (Stovebolt, ahmed047, Gizmo), 931 guests, and 151 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)