Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Scipt Code Doesn't Work...

Asked Modified Viewed 2,134 times
I
ItsJustMe
I
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Junior Member

Hey,

I'm having a problem with posting a certain script code into my website. If I post it on the panel or in the footer of the site it deletes the <script> part once it's saved. I really really need for this code to work though! So can someone tell me what I can do to make that possible? It works on custom pages but not the main page where I need it to show. :o

Thanks in advance to anyone who can help.
PLEASEEEEEE DO!!!
- ItsJustMe
0 replies

9 posts

K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

Can you show us the code you are trying to use?
0 replies
I
ItsJustMe
I
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Sorry, it's below.

Thanks!

<!--/* Fatvine Ad Network Javascript Tag v2.4.3 */-->
<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'http://ads.fatvine.com/essence/www/delivery/ajs.php':'http://ads.fatvine.com/essence/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=267");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script>
0 replies
S
satikas
S
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 31 threads in the forums
answered
Member

Did you delete openside, content and closeside parts?
You should try putting the <script type='text/javascript'> and <script> tags into echo.
TRY this:
<!--/* Fatvine Ad Network Javascript Tag v2.4.3 */-->
[color=#ff0000]echo '[/color]<script type='text/javascript'>[color=#ff0000]';[/color]<!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'http://ads.fatvine.com/essence/www/delivery/ajs.php':'http://ads.fatvine.com/essence/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=267");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>-->[color=#ff3300]echo '[/color]</script>[color=#ff0000]';[/color]



OR try echo-ing the whole script. It helped me with similar tagging and stuff.
0 replies
I
ItsJustMe
I
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks. I tried this ^ but it did not work either. :( The code works fine on personal pages and news but not where I need it (Panels and Footer)... any other suggestions? Does the footer not allow script tags?
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

Try this in a center panel:

openside("Ads");
?>
<center>
<!--/* Fatvine Ad Network Javascript Tag v2.4.3 */-->
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'http://ads.fatvine.com/essence/www/delivery/ajs.php':'http://ads.fatvine.com/essence/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=267");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script>
</center>
<?php
closeside();
0 replies
I
ItsJustMe
I
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Great, thanks Ken! It worked :) It's too wide for a center panel though, it stretches the site... is it impossible to add it to the footer? I like to have one there. If not, it's fine I've added one to the side.

Thanks again for your help!
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

You can add it to the bottom of the footer.php but this would maybe not look nice on all of the themes:

<?php
/*---------------------------------------------------+
| PHPFusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }

render_footer(false);

echo "</body>\n</html>\n";

if (iADMIN) {
$result = dbquery("DELETE FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time()-360)."'");
$result = dbquery("DELETE FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time()-1209600)."'");
$result = dbquery("DELETE FROM ".$db_prefix."captcha WHERE captcha_datestamp < '".(time()-360)."'");
$result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time()-86400)."'");
}

mysql_close();

ob_end_flush();
?>

<center>
<!--/* Fatvine Ad Network Javascript Tag v2.4.3 */-->
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'http://ads.fatvine.com/essence/www/delivery/ajs.php':'http://ads.fatvine.com/essence/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=267");
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script>
</center>

If you want it just before the "PHPFusion Copyright" note instead, I think you have to edit the theme.php file for each theme.
0 replies
I
ItsJustMe
I
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you so much again Ken!!! :D
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

test
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 9 posts
  • Votes 0 votes
  • Topic users 3 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet