Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2013
Posts: 5
P
stranger
stranger
P Offline
Joined: Mar 2013
Posts: 5
hi! I am the part of pondboss magazine and we have used ubb for years as its forum.. it has grown to be the goto place for help for Lakes and Ponds. Thank you..

http://forums.pondboss.com/ubbthreads.php

I have to be truthfull I am relativily new at this position and before me the forum just ran ..pretty much the same as it was the day it was set up for years.. For being a nitche forum i feel we are doing well and i want to put some rotating adds 160x600 sky scraper adds on the left hand side to help increase subscribers to our magazine.

ok here is what I did:
went to open add 2.0 (our add software)
got the code:

/* PHP CODE HERE */



/* BODY HERE */

$body = <<<EOF



<center>



<script language='JavaScript' type='text/javascript' src='http://www.pondboss.com/asr/adx.js'></script>

<script language='JavaScript' type='text/javascript'>

<!--

if (!document.phpAds_used) document.phpAds_used = ',';



<center/>



EOF;


plugged it into the island
plugged in my ads in openads

turned it on and bamm!!!

all may content disapeared.. after picking my self off the floor and writing my will.... returned the add to "hide" and everything went back to normal...

is there anyone that can help me .. do have bad code??


i need some help please
Joined: Jun 2006
Posts: 16,354
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,354
Likes: 125
Code
/* PHP CODE HERE */
/* BODY HERE */
$body = <<<EOF
<div align="center">
<script language='JavaScript' type='text/javascript' src='http://www.pondboss.com/asr/adx.js'></script>

<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
-->
</div>
EOF;

Two issues, you started a comment (<!--) but never closed it (-->). Also, you started a center tag, but never properly closed it either (you had center/ vs /center), I prefer using a div.


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: Mar 2013
Posts: 5
P
stranger
stranger
P Offline
Joined: Mar 2013
Posts: 5
dag-gone Gizmo... ur great ...now all i have to do is get a dose of courage and plug it back in



i need some help please
Joined: Mar 2013
Posts: 5
P
stranger
stranger
P Offline
Joined: Mar 2013
Posts: 5
I am kind of like pluging this thing into that thing... what is the worst thing that could happen if I plug the new code into the Island?


i need some help please
Joined: Jun 2006
Posts: 16,354
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,354
Likes: 125
The worst thing that could happen is that it'll work... Your previous code didn't work for the two reasons I mentioned...

Worst case scenario you go to the cp and remove the new code...


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: Mar 2013
Posts: 5
P
stranger
stranger
P Offline
Joined: Mar 2013
Posts: 5
Gizmo,

I put in the code...and it did the samething...any suggestions that I need to look at or try?


i need some help please
Joined: Dec 2003
Posts: 6,624
Likes: 84
Joined: Dec 2003
Posts: 6,624
Likes: 84
Does the script in question work on a regular html page?
I tried the script placing the script in html includes and it does not display anything in the header.
So I am assuming something in the initial code is not correct.
And there is no data to dsplay

Try posting a example that works on a regular html page.
So we can dissect it to work in a island.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,624
Likes: 84
Joined: Dec 2003
Posts: 6,624
Likes: 84
Okay the only way I could get this to work at all was to hijack your site with all the code.
Code
/* PHP CODE HERE, IF NECESSARY */

/* DO NOT CHANGE THE LINE BELOW */
$body = <<<EOF

<script language='JavaScript' type='text/javascript' src='http://www.pondboss.com/asr/adx.js'></script>

<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.pondboss.com/asr/adjs.php?n=" + phpAds_random);
document.write ("&amp;what=zone:1&amp;target=_blank");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.pondboss.com/asr/adclick.php?n=a466a609' target='_blank'><img src='http://www.pondboss.com/asr/adview.php?what=zone:1&amp;n=a466a609' border='0' alt=''></a></noscript>

EOF;
/* DO NOT CHANGE THE LINE ABOVE */

However the images are so large that it skews the forum so the layout looks bad.
Might be better to try using them in:

Custom Island Insert
This will show up between the 1st and 2nd post of a topic. Usually the most effective place to put ads.



Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Mar 2013
Posts: 5
P
stranger
stranger
P Offline
Joined: Mar 2013
Posts: 5
Awesome ... I have been traveling so I have not been able to read your post..
I am going to be in the office tomorrow.. Can wait to give that a try.. Standby
May have a bunch of questions thanks Ruben ...


i need some help please
Joined: Dec 2003
Posts: 6,624
Likes: 84
Joined: Dec 2003
Posts: 6,624
Likes: 84
I don't know anything about the ad software you are using.
But I also found that I can just place the noscript section and it works just as well.
So I am not sure why you have all the other code in the ad in your header.
Possibly some tracking database?
Anyway:
Code
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
<a href='http://www.pondboss.com/asr/adclick.php?n=a466a609' target='_blank'><img src='http://www.pondboss.com/asr/adview.php?what=zone:1&amp;n=a466a609' border='0' alt=''></a>
EOF;
It still has the issue of the images are to wide and pushes the forum content to the right.
So I still suggest the custom island content feature. and skip trying to place it on the left or right unless you re-size the images.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Is this a cookie usse?
by Baldeagle - 10/05/2024 2:01 PM
Search button not there
by ehill - 10/02/2024 2:56 PM
Change the Order of the buttons in a post
by Unixspot - 09/19/2024 10:04 PM
How do I get rid of this?
by Baldeagle - 09/12/2024 6:30 PM
Purging logs does not work
by Baldeagle - 09/12/2024 5:16 PM
Who's Online Now
4 members (Gizmo, Ravenfreak, Ruben, Baldeagle), 308 guests, and 71 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.1
(Snapshot build 20240918)