The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Forum HTML weird

4 posters

Go down

Forum HTML weird Empty Forum HTML weird

Post by WhatIf November 9th 2009, 5:40 am

This happened with the cribble as well, but the html on my forum seems to be messed up.
For example this code:
Code:
<head><style type="text/css">

#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: black;
width: 87px;
visibility: hidden;
z-index: 100;
}

</style>

<script type="text/javascript">

/***********************************************
* Floating Top Bar script- ©️ Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document·cookie.length > 0) {
offset = document·cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document·cookie.indexOf(";", offset);
if (end == -1) end = document·cookie.length;
returnvalue=unescape(document·cookie.substring(offset, end))
}
}
return returnvalue;
}

function closebar(){
if (persistclose)
document·cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}

function staticbar(){
  barheight=document.getElementById("topbar").offsetHeight
  var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
  var d = document;
  function ml(id){
      var el=d.getElementById(id);
      if (!persistclose || persistclose && get_cookie("remainclosed")=="")
      el.style.visibility="visible"
      if(d.layers)el.style=el;
      el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
      el.x = startX;
      if (verticalpos=="fromtop")
      el.y = startY;
      else{
      el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
      el.y -= startY;
      }
      return el;
  }
  window.stayTopLeft=function(){
      if (verticalpos=="fromtop"){
      var pY = ns ? pageYOffset : iecompattest().scrollTop;
      ftlObj.y += (pY + startY - ftlObj.y)/8;
      }
      else{
      var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
      ftlObj.y += (pY - startY - ftlObj.y)/8;
      }
      ftlObj.sP(ftlObj.x, ftlObj.y);
      setTimeout("stayTopLeft()", 10);
  }
  ftlObj = ml("topbar");
  stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script></head>
<body>
<div id="topbar">
<a
href="" onClick="closebar(); return false"><img
src="http://img.photobucket.com/albums/v328/stardragon588/x.jpg"
border="0" /></a>
<font color="white"><table
border="1"><tr></tr><th rowspan="2">Home
<hr> Portal <hr>Members <hr> Groups</th><th
colspan="2">Navigation
Bar</th></tr><tr><td>Text
Here</td><td>Other
Text</td></tr></table></font>
</div>
Does not work on my homepage message, it just stays as is. I made sure HTML was activated.

Marc diagnosed the problem and found
Marc wrote:I've did some research, and this is a problem with your forum itself, Evil or Very Mad

It's not the code to create the floating menu, affraid

You'll need to go to the forumotion's support forum for more assistance about this, albino

What's happening?
Extra code tags have been displayed in your source, making the scripts disabled, but displayed in code form.

I don't really know what's making this happen if your not doing it yourself, clown

Sorry, Forum HTML weird Guish2

So can anybody enlighten me?
WhatIf
WhatIf
Forumember

Posts : 411
Reputation : 1
Language : Morse Code

Back to top Go down

Forum HTML weird Empty Re: Forum HTML weird

Post by kirk November 10th 2009, 1:58 am

do you have your html on in your profile preferences too.

profile>profile preferences.
scroll down to always allow html and hit save.

which mark is that. is that mastermark.
if so it's probably what i said because he forgot to do that on his new forum and the same thing happen. so once he did that everthing was fine.

so i am hopping thats all it is if not we'll have to troubleshoot a lil more then if nothing we'll have to put a request in for a tech.

ok i am almost certain thats all the problem is. i tested the code on my forum and it worked.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Forum HTML weird Empty Re: Forum HTML weird

Post by Master Marc November 10th 2009, 2:58 am

@ WhatIf,

First, I did not use those smileys in my message, tongue

Second, to Kirk.

That was supposed to be a secret, Wink

But, I think I got a solution to this problem, but am not 100% sure it would work, TT

Go to your administration panel : ( Navigate )

General Tab=>Forum=>Configuration=>Misc options=>Resynchronize your forum=>mark the box and press save

Then, paste the script again and cross your fingers, Very good

kirk wrote:which mark is that. is that mastermark
Both wrong, Mr. Green

>> Master Marc
Master Marc
Master Marc
Hyperactive

Male Posts : 3661
Reputation : 47
Language : English and Spanish.

Back to top Go down

Forum HTML weird Empty Re: Forum HTML weird

Post by kirk November 10th 2009, 4:36 am

Master Marc wrote:@ WhatIf,

First, I did not use those smileys in my message, tongue

Second, to Kirk.

That was supposed to be a secret, Wink

But, I think I got a solution to this problem, but am not 100% sure it would work, TT

Go to your administration panel : ( Navigate )

General Tab=>Forum=>Configuration=>Misc options=>Resynchronize your forum=>mark the box and press save

Then, paste the script again and cross your fingers, Very good

kirk wrote:which mark is that. is that mastermark
Both wrong, Mr. Green

>> Master Marc

hahaha

ok well it figures it cant be as somthing as simple as i said.
but a lot times it is that. you have to have the html enabled in both the admin panel and your profile.

but it's not that.. so i'll let yous try to figure it out because i am unsure?
but here is a quote from rono in another post thats simular to this problem.
so try to give this a shot. Cool

RoNo wrote:Try turning off the wysiwyg editor to avoid "submitting code" issues.

Admin Panel > General > Configuration >
Activate the WYSIWYG mode by default in the posts : No

Use this button to turn it on when desired: Forum HTML weird Switch_wysiwyg (for basic posting)

CTOP TO RONO!!!! Hello
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Forum HTML weird Empty Re: Forum HTML weird

Post by Goku93 November 10th 2009, 1:49 pm

try this in your welcome message just add the links instead of "Your Link"

Code:
<head><style type="text/css">

#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: black;
width: 88px;
visibility: hidden;
z-index: 100;
}

</style>

<script type="text/javascript">

/***********************************************
* Floating Top Bar script- ©️ Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document·cookie.length > 0) {
offset = document·cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document·cookie.indexOf(";", offset);
if (end == -1) end = document·cookie.length;
returnvalue=unescape(document·cookie.substring(offset, end))
}
}
return returnvalue;
}

function closebar(){
if (persistclose)
document·cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}

function staticbar(){
   barheight=document.getElementById("topbar").offsetHeight
   var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
   var d = document;
   function ml(id){
      var el=d.getElementById(id);
      if (!persistclose || persistclose && get_cookie("remainclosed")=="")
      el.style.visibility="visible"
      if(d.layers)el.style=el;
      el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
      el.x = startX;
      if (verticalpos=="fromtop")
      el.y = startY;
      else{
      el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
      el.y -= startY;
      }
      return el;
   }
   window.stayTopLeft=function(){
      if (verticalpos=="fromtop"){
      var pY = ns ? pageYOffset : iecompattest().scrollTop;
      ftlObj.y += (pY + startY - ftlObj.y)/8;
      }
      else{
      var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
      ftlObj.y += (pY - startY - ftlObj.y)/8;
      }
      ftlObj.sP(ftlObj.x, ftlObj.y);
      setTimeout("stayTopLeft()", 10);
   }
   ftlObj = ml("topbar");
   stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script></head>
<body>
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="http://img.photobucket.com/albums/v328/stardragon588/x.jpg" border="0" /></a>
<table border="0"><tr></tr><th rowspan="2"><font color="white"><a href="Your Link">Home</font> <hr> <font color="white"><a href="Your Link">Forums</font> <hr><font color="white"><a href="Your Link">Information</font> <hr> <font color="white"><a href="Your Link">Contact Us</font></th></table></font>

</div>

I Hope it works

Regards
Goku
Goku93
Goku93
Forumember

Male Posts : 255
Reputation : 1
Language : English,Urdu,HTML,CSS,Coding,C++,Hacking
Location : Pakistan

http://www.zamboadvertising.net/forum.htm

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum