Admin Users Settings post Javascript not working

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Admin Users Settings post Javascript not working

Camo
Im the admin of

http://camos-mailing-list-post-by-email-newsletter.1051106.n5.nabble.com/Camo-s-Mailing-List-Archive-and-Post-By-Email-Newsletter-1-tp4407351p4407351.html

and I have setting> custom> Post Anything including Javascript >Admin only

But I cant post Javascript , There dosent seem to be an option. I want to add A 'like' button onto important posts....

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>      <fb:like></fb:like>
Camo's Classifieds! © Camo's Reptiles
Reply | Threaded
Open this post in threaded view
|

Re: Admin Users Settings post Javascript not working

Peter <Nabble>
It's working fine.
Maybe you can check:
1- If you saved the settings.
2- If you are logged in as admin (sometimes ppl create a user to test and forget to relog as admin).
3- If there are no javascript errors on your site that may lead to a conflicting javascript code preventing it to work correclty.
Nabble staff. We never ask for passwords.
Reply | Threaded
Open this post in threaded view
|

Re: Admin Users Settings post Javascript not working

Camo
This post was updated on .
Still not working for me??? see under black tshirt pic. What should be ticked? just admin yes?

http://classifieds.1047537.n5.nabble.com/Subscribe-To-Our-Newsletter-Post-By-Email-List-tp4407502p4407502.html

Logged in as Admin, settings saved, browser cleared, page source debugged.

Can you see any errors?
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
 
 
<head> 
 
<meta name="google-site-verification" content="hyGI5Q7su5Y8Zl0JR8hfC8csVk1qhemSjtYI_9Ibbus" /> 
 
  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> 
 
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Camo's Reptiles. classifieds</title> 
 
 
 
 
 
<style type="text/css"> 
 
body  {
	font: 100% Verdana, Arial, Helvetica, sans-serif;
	
background-image:url(scales.jpg);background-attachment:fixed;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color: #000000; }
 
</style> 
</head> 
 
<body> 
 
         
<center> 
<a id="nabblelink" href="http://camo-s-classifieds.1047537.n5.nabble.com/">Camo's Classifieds</a> 
<script src="http://camo-s-classifieds.1047537.n5.nabble.com/embed/f4307920"></script> 
</center> 
 
 
<p align="center"><a href="http://www.camosreptiles.com.au"><b>Return To Home Page</b></a>&nbsp;<a href="http://www.reptile.com.au/index.php"target='_blank'><img src="http://i14.photobucket.com/albums/a345/Instar/australia.gif"/> www.reptile.com.au/ Classifieds</a>&nbsp;
</p> 
<center><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> 
      <fb:like></fb:like></center> 
<p align="center"><a href="Reveiws.php"><img src="oie_testbutton6.gif"border='0px' alt="Camo's Reptiles" width="110" height="30"/></a>&nbsp<a href="/videos.php"><img src="vids.gif"border='0px' alt="Camo's Reptiles" width="110" height="30"/></a>&nbsp<a href="janpg1.php"><img src="jan.gif" border='0px' alt='camos reptiles' width='110' height='30'/></a>&nbsp<a href="kidscorner.php"><img src="kids.gif" border='0px' alt='camos reptiles' width='110' height='30'/></a>&nbsp<a href="forum.php"><img src="forum.gif" width='110' height='30'border='0px'/></p> 
<p align="center"> 
<a href="about_us.php"><img src="oie_greenpython_button1.gif"border='0px' alt="Camo's Reptiles" width="110" height="30" /></a>&nbsp<a href="new_about_camo.php"><img src="oie_testbutton2.gif"border='0px' alt="Camo's Reptiles" width="110" height="30" /></a>&nbsp<a href="Our_reptiles.php"><img src="australiaourreptiles.gif"border='0px' alt="Camo's Reptiles" width="110" height="30" /></a>&nbsp<a href="new_gallery.php"><img src="oie_testbutton4.gif"border='0px' alt="Camo's Reptiles" width="110" height="30" /></a>&nbsp<a href="new_contactus.php"><img src="oie_testbutton5.gif"border='0px' alt="Camo's Reptiles" width="110" height="30" /></a> 
</p> 
 
 
<center><b>Don't See The Classifieds Here? Click Server Status Icon</b><a href="http://www.camosreptiles.com.au/ServerStatus.php"target='_blank'><img src="http://www.camosreptiles.com.au/serverstatus.png"/></a></center> 
 
 
 
 
 
 
<p align="left">&nbsp;</p> 
 
<p align="center"><IMG SRC="/cgi-bin/Count.cgi?df=camosreptiles-9.dat&ft=0"><b>Visits</b> &nbsp<IMG SRC="/cgi-bin/Count.cgi?df=camosreptiles.dat&display=date&timezone=GMT+1000"><b>Date</b> 
&nbsp<IMG SRC="/cgi-bin/Count.cgi?df=camosreptiles.dat&display=clock"><b>Local Time Sydney</b></p> 
</body> 
</html>
Camo's Classifieds! © Camo's Reptiles
Reply | Threaded
Open this post in threaded view
|

Re: Admin Users Settings post Javascript not working

Peter <Nabble>
First, select the checkbox above the text area which says "Message is in HTML Format"
Second, don't use html entities like ">" because it will not be understood as >, it will be saved as it is and when displayed it will be decoded into > to be displayed. It will not be understood as the html >.
Third, paste only the body part of your html. Remember the forum itself is html and the page already gets it's head tag, favicon, etc... so what you are writing will already be shown inside <body></body>. Try the content's only.
Nabble staff. We never ask for passwords.
Reply | Threaded
Open this post in threaded view
|

Re: Admin Users Settings post Javascript not working

Camo
I just dont get it im afraid, I dont think its doing anything, if I turn off javascript posting, the whole code displays as text. When I turn it on, it hides the script src but dosent display.
I dont think it can be done with the facebook like code, I even tried the Iframe version.
I dont understand how javascript can be posted and function, The pointy brackes or angle brackets, are the div into which the script writes the button, you cant leave them out.
If I post the code raw to a JS testbed, it works flawlessly.
Are you sure it can work at all?
I also tried another javascript, and it failed too, just displayed  the markup.
Can you show me a nabble forum with a functioning like button embedded in the post? and how you rewrote it please?
what are examples of javascripts that can be posted and function in posts?
Im sure im missing something fundamental here, when the setting says 'including javascript', does it just mean html markup, not actual script?
How can I put the script src in the head when its in a post, If i can only add in JS body tag part, (contents only) where do I put the script src itself? Its no good in the head of my page is it, its another domain, yes?
Very Very confused. :)
Camo's Classifieds! © Camo's Reptiles
Reply | Threaded
Open this post in threaded view
|

Re: Admin Users Settings post Javascript not working

Camo
It's Working Now...Shrug..

Requirement for ticking HTML box is unfortunate though, messes your post layout or you need to do it all manually.
Camo's Classifieds! © Camo's Reptiles