Forum HTML weird
4 posters
Page 1 of 1
Forum HTML weird
This happened with the cribble as well, but the html on my forum seems to be messed up.
For example this code:
Marc diagnosed the problem and found
So can anybody enlighten me?
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>
Marc diagnosed the problem and found
Marc wrote:I've did some research, and this is a problem with your forum itself,
It's not the code to create the floating menu,
You'll need to go to the forumotion's support forum for more assistance about this,
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,
Sorry,
So can anybody enlighten me?
WhatIf- Forumember
- Posts : 411
Reputation : 1
Language : Morse Code
Re: Forum HTML weird
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.
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- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Forum HTML weird
@ WhatIf,
First, I did not use those smileys in my message,
Second, to Kirk.
That was supposed to be a secret,
But, I think I got a solution to this problem, but am not 100% sure it would work,
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,
>> Master Marc
First, I did not use those smileys in my message,
Second, to Kirk.
That was supposed to be a secret,
But, I think I got a solution to this problem, but am not 100% sure it would work,
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,
Both wrong,kirk wrote:which mark is that. is that mastermark
>> Master Marc
Master Marc- Hyperactive
- Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: Forum HTML weird
Master Marc wrote:@ WhatIf,
First, I did not use those smileys in my message,
Second, to Kirk.
That was supposed to be a secret,
But, I think I got a solution to this problem, but am not 100% sure it would work,
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,Both wrong,kirk wrote:which mark is that. is that mastermark
>> 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.
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: (for basic posting)
CTOP TO RONO!!!!
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Forum HTML weird
try this in your welcome message just add the links instead of "Your Link"
I Hope it works
Regards
Goku
- 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
Similar topics
» My forum looks weird...
» Weird Blank Space When Using HTML
» forum all weird
» Forum is all weird
» Why does my forum look so weird?
» Weird Blank Space When Using HTML
» forum all weird
» Forum is all weird
» Why does my forum look so weird?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum