Coinbase

Author Topic: need help asap....  (Read 2742 times)

0 Members and 1 Guest are viewing this topic.

Offline mprayii

  • Newbie
  • *
  • Posts: 3
need help asap....
« on: November 10, 2007, 02:28:59 pm »
I tried to make an ad for my Jeep clubs own store...

I copied this into the ad box...


Code: [Select]
<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
var how_many_ads = 1;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {

txt="Shop at NEJ's Online Store!!";
url="http://newenglandjeepz.org/3store.htm";
alt="newenglandjeepz.org";
banner="http://newenglandjeepz.org/images/banners/nej_store.gif";
width="468";
height="60";
}

Needless to say it broke my forum, I think because I forgot to close the SCRIPT </script>

It basically eliminates all the forums, it leaves the "home" "admin" "help" "search" etc. bar there, and it leaves the copywrites at the bottom, but all the stuff in the middle is gone. Luckily it allowed me to go to the admin panel, where I was able to disable ad's. This allows my forum to be functional again.

I still have a problem though, see screen shot....




As you see, I am missing alot of things in there...... including save and delete.

I tried looking through what files I could for the code but I couldnt find anything, I am a noob so please help!

Also, It appears to have automatically appended this to the bottom of the above code (I dont know why, but it did.)

Code: [Select]
</textarea></td>
</tr>
<tr class="windowbg2">
<td colspan="2">
<table border="0" width="80%" cellspacing="1" cellpadding="4">
<tr class="windowbg2">
<td align="left" width="55%"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_boards" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Which boards should this ad display in</td>
<td><input type="text" name="boards" value="" /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_posts" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads within posts</td>
<td><input type="text" name="posts" value="" /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_category" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads after categories</td>
<td><input type="text" name="category" value="" /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_type" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Type</td>
<td>
<select name="type">
<option value="0" selected=selected>HTML</option>
<option value="1" >PHP</option>
</select></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_index" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads on every page right below the menu</td>
<td><input type="checkbox" name="show_index" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_board" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads on board index</td>
<td><input type="checkbox" name="show_board" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_threadindex" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads on message index</td>
<td><input type="checkbox" name="show_threadindex" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_thread" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads on the post page</td>
<td><input type="checkbox" name="show_thread" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_lastpost" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads after the last post</td>
<td><input type="checkbox" name="show_lastpost" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_topofpage" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads on every page on the top of the page</td>
<td><input type="checkbox" name="show_topofpage" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_welcome" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads in the welcome user area</td>
<td><input type="checkbox" name="show_welcome" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_bottom" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads on the bottom of the page</td>
<td><input type="checkbox" name="show_bottom" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_towerleft" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads on every page as a tower on the left side</td>
<td><input type="checkbox" name="show_towerleft" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_towerright" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads on every page as a tower on the right side</td>
<td><input type="checkbox" name="show_towerright" checked=checked /></td>
</tr>
<tr class="windowbg2">
<td align="left"><a href="http://newenglandjeepz.org/forum/index.php?action=admod;sa=help;help=ad_manage_underchildren" onclick="return reqWin(this.href);" class="help"><img src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/helptopics.gif" alt="Help" align="top" /></a> Display ads under child boards</td>
<td><input type="checkbox" name="show_underchildren" checked=checked /></td>
</tr>
</table>
</td>
</tr>
<tr class="windowbg2">
<td colspan="2" align="right" style="padding-top: 1ex;">
<input type="submit" name="save" value="Save" />
<input type="submit" name="delete" value="Delete" />
</td>
</tr>
</table></form></div><br /><div align="center"><a href="http://www.smfads.com">smfads v2.3 jerm</a></div>
</td>
</tr>
</table></td></tr></table>

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="right">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/powered-mysql.gif" alt="Powered by MySQL" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/powered-php.gif" alt="Powered by PHP" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"><a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by SMF 1.1.4</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF 2006-2007, Simple Machines LLC</a>
</span> | TinyPortal v0.9.8 <a href="http://www.tinyportal.net" target="_blank">Bloc</a><br /><span class="smalltext">SMF Theme <a href="http://unstablefears.com">Gaia</a></span>
  </td>
<td width="28%" valign="middle" align="left">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/valid-xhtml10.gif" alt="Valid XHTML 1.0!" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="http://newenglandjeepz.org/forum/Themes/SullenMadness1/images/valid-css.gif" alt="Valid CSS!" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}
// ]]></script>
</div>
<div id="ajax_in_progress" style="display: none;">Loading...</div>

</body></html>

« Last Edit: November 10, 2007, 02:32:15 pm by mprayii »

Offline mprayii

  • Newbie
  • *
  • Posts: 3
Re: need help asap....
« Reply #1 on: November 10, 2007, 02:30:20 pm »
Also, if I enable ads, it screws it all up again...  :'(
« Last Edit: November 10, 2007, 02:37:17 pm by mprayii »

Offline mprayii

  • Newbie
  • *
  • Posts: 3
Re: need help asap....
« Reply #2 on: November 10, 2007, 03:07:22 pm »
Fixed it myself...

Deleted the screwed up ad from the database.

Thanks for looking!

SMF Ads Support Forum

Re: need help asap....
« Reply #2 on: November 10, 2007, 03:07:22 pm »
.

 

.