Coinbase

Author Topic: I added this line in insert code box and my forum broke, please help will PAYPAL  (Read 3207 times)

0 Members and 1 Guest are viewing this topic.

Offline Epoman

  • Newbie
  • *
  • Posts: 2
    • Email
I have smf 1.0.8 and using the ad mod for my version and in the text box (where you enter your ad code) I entered this line of code:

<script language="JavaScript" type="text/javascript" src="rotation-script.js">

and now my forum is broke. Here is the site http://www.ihatedialysis.com/forum take a look try to go to a section and you will see it's broke. I can't access my admin section to delete that line of code.


Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
I'm getting 404 errors and database erors all over your site. This can't be from that one line of code. Lets see what Jerm has to say.

Offline Epoman

  • Newbie
  • *
  • Posts: 2
    • Email
I'm getting 404 errors and database erors all over your site. This can't be from that one line of code. Lets see what Jerm has to say.

Well the 404 errors was me doing a restore of the forums directory  :) But I figured the problem out, I had to remove that line from the SQL DB.  It was in the "table `smf_settings`" I had to delete the entire line:

<script language="JavaScript" type="text/javascript" src="rotation-script.js">

from the DB I was shitting bricks, luckily I was able to find the code and have a wonderful support tech help me. If I had to do a restore I would have lost about 200 posts on my forum.

So for those who this happens to anything you type in the text box (your ad code) it goes in the SQL DB in the table called `smf_settings`

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Thank you for posting the solution to your problem and it's great you got it figured out. :)

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
You didn't put all the code in:
<script language="JavaScript" type="text/javascript" src="rotation-script.js">
that is only part of the code needed.

SMF Ads Support Forum


 

.