Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: beau1943 on May 06, 2012, 10:09:49 PM

Title: Lost my Boards
Post by: beau1943 on May 06, 2012, 10:09:49 PM
I made a terrible mistake...........on one of my boards "Leon and Bo Obama"  I tried to modify by adding a share script  in the board discription.........I lost everything after this........all other boards etc.......site is http://usworldpolitics.com  please help.........on the main page I lost everything after Leon and Bo...

Ray Beaufait
Title: Re: Lost my Boards
Post by: Colin on May 06, 2012, 10:11:12 PM
Sorry to hear that. Do you have a back up?
Title: Re: Lost my Boards
Post by: beau1943 on May 06, 2012, 10:25:59 PM
Yes but not a current......I made a lot of changes today and when I added the share script I lost everything from this point on.........if I knew where to go to fix the board page I could find the error and and undo the script.........I hope I am making some sense.........

ENTERTAINMENT - FUN - LEON GUNNER - ETC.
  LEON GUNNER AND BO OBAMA -   

I lost everything from this point on.......
Title: Re: Lost my Boards
Post by: beau1943 on May 06, 2012, 10:34:19 PM
This is the script I put in when trying to change or modify  the board appearance in Admin.........

<!-- AddThis Button BEGIN -->
&nbsp; &nbsp; &nbsp; &nbsp;<div class="addthis_toolbox addthis_default_style">
&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=orvisphotocontest" class="addthis_button_compact">Share</a>
&nbsp; &nbsp; &nbsp; &nbsp;<span class="addthis_separator">|</span>
&nbsp; &nbsp; &nbsp; &nbsp;<a class="addthis_button_facebook"></a>
&nbsp; &nbsp; &nbsp; &nbsp;<a class="addthis_button_myspace"></a>
&nbsp; &nbsp; &nbsp; &nbsp;<a class="addthis_button_google"></a>
&nbsp; &nbsp; &nbsp; &nbsp;<a class="addthis_button_twitter"></a>
&nbsp; &nbsp; &nbsp; &nbsp;</div>
&nbsp; &nbsp; &nbsp; &nbsp;<script type="text/javascript" src="https://secure.addthis.com/js/250/addthis_widget.js#username=orvisphotocontest"></script>
&nbsp; &nbsp; &nbsp; &nbsp;<!-- AddThis Button END -->
Title: Re: Lost my Boards
Post by: Colin on May 06, 2012, 10:43:34 PM
I am a little confused what you did, but have you restored the edited template file to its original state and seen if that resolves the issue?
Title: Re: Lost my Boards
Post by: Kays on May 06, 2012, 10:46:39 PM
Hi, how or what did you edit. Is it the board description in the admin CP?

If so, and you can't get into the Admin section to change the edit you made. If you have phpMyAdmin access, look in the boards table and remove the description there.
Title: Re: Lost my Boards
Post by: TheListener on May 06, 2012, 10:47:30 PM
I'm wondering if this is related to a mod judging by the code used?

???
Title: Re: Lost my Boards
Post by: beau1943 on May 06, 2012, 10:54:03 PM
I am sorry for the confusion......but I think I know how to fix if you can tell me where to go........I need to get rid of  <!-- AddThis     ..........note the bold in source code  _______________________________________________________________________-\

<td style="padding-left: 5px;"><a href="http://beauproductions.com/usworld/forum/index.php/topic,1271.msg2875.html#msg2875">LEON GUNNER AND BO OBAMA - <img src="http://beauproductions.com/LEONANDBO2.jpg" name="img.913"  id="img.913" alt="" border="0" align="middle"  /></a>  [b]<!-- AddThis [/b] </td>

<td width="10%" align="right"></td>
<td width="10%" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;move=48">move</a></td>
<td width="10%" style="padding-right: 1ex;" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=board;boardid=48">modify</a></td>
</tr>
<tr class="windowbg2">
<td style="padding-left: 5px;"><A HREF="http://beauproductions.com/usworld/forum/index.php/topic,399.msg1507.html#msg1507">MARGARET AND HELEN</A></td>
<td width="10%" align="right"></td>
<td width="10%" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;move=35">move</a></td>
<td width="10%" style="padding-right: 1ex;" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=board;boardid=35">modify</a></td>
</tr>
<tr class="windowbg">
<td style="padding-left: 5px;">ENTERTAINMENT</td>
<td width="10%" align="right"></td>
<td width="10%" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;move=24">move</a></td>
<td width="10%" style="padding-right: 1ex;" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=board;boardid=24">modify</a></td>
</tr>
<tr>
<td colspan="4" align="right"><br /><input type="submit" value="Add Board" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="b132131abcdff1fe73bf2459c4fd46e7" />
</form>
</td>
</tr>
<tr>
<td class="catbg" height="18">
<a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=cat;cat=13">THE BRW SHOW - VIDEOS - HUMOR - EDUCATION</a> <a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=cat;cat=13">(modify)</a>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%" valign="top">
<form action="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=newboard;cat=13" method="post" accept-charset="ISO-8859-1">
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<td style="padding-left: 1ex;" colspan="4"><b>Name</b></td>
</tr>
<tr class="windowbg">
<td style="padding-left: 5px;">THE BRW SHOW - BUTCH/RAY'S WORLD - <IMG SRC="http://beauproductions.com/usworld/forum/images/filmstrip5.jpg" ALIGN="Absmiddle" BORDER="0" /> </td>
<td width="10%" align="right"></td>
<td width="10%" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;move=25">move</a></td>
<td width="10%" style="padding-right: 1ex;" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=board;boardid=25">modify</a></td>
</tr>
<tr>
<td colspan="4" align="right"><br /><input type="submit" value="Add Board" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="b132131abcdff1fe73bf2459c4fd46e7" />
</form>
</td>
</tr>
<tr>
<td class="catbg" height="18">
<a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=cat;cat=14">SOUTHERN INDIANA </a> <a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=cat;cat=14">(modify)</a>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%" valign="top">
<form action="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=newboard;cat=14" method="post" accept-charset="ISO-8859-1">
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<td style="padding-left: 1ex;" colspan="4"><b>Name</b></td>
</tr>
<tr>
<td colspan="4" align="right"><br /><input type="submit" value="Add Board" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="b132131abcdff1fe73bf2459c4fd46e7" />
</form>
</td>
</tr>
<tr>
<td class="catbg" height="18">
<a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=cat;cat=20">BUTCH AND RAY'S HOME </a> <a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=cat;cat=20">(modify)</a>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%" valign="top">
<form action="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=newboard;cat=20" method="post" accept-charset="ISO-8859-1">
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<td style="padding-left: 1ex;" colspan="4"><b>Name</b></td>
</tr>
<tr class="windowbg">
<td style="padding-left: 5px;">BUTCH RAGLAND OF THE BRW SHOW - <IMG SRC="http://beauproductions.com/usworld/forum/images/butchsmall.jpg" ALIGN="Absmiddle"  BORDER="0" /></A></td>
<td width="10%" align="right"></td>
<td width="10%" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;move=32">move</a></td>
<td width="10%" style="padding-right: 1ex;" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=board;boardid=32">modify</a></td>
</tr>
<tr class="windowbg2">
<td style="padding-left: 5px;">RAY BEAUFAIT OF THE BRW SHOW - <IMG SRC="http://beauproductions.com/usworld/forum/images/raysmall.jpg" ALIGN="Absmiddle"  BORDER="0" /> </td>
<td width="10%" align="right"></td>
<td width="10%" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;move=31">move</a></td>
<td width="10%" style="padding-right: 1ex;" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=board;boardid=31">modify</a></td>
</tr>
<tr>
<td colspan="4" align="right"><br /><input type="submit" value="Add Board" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="b132131abcdff1fe73bf2459c4fd46e7" />
</form>
</td>
</tr>
<tr>
<td class="catbg" height="18">
<a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=cat;cat=15">USWORLD FORUMS ACHIEVES</a> <a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=cat;cat=15">(modify)</a>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%" valign="top">
<form action="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=newboard;cat=15" method="post" accept-charset="ISO-8859-1">
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<td style="padding-left: 1ex;" colspan="4"><b>Name</b></td>
</tr>
<tr class="windowbg">
<td style="padding-left: 5px;">Deleted and old topics</td>
<td width="10%" align="right"></td>
<td width="10%" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;move=43">move</a></td>
<td width="10%" style="padding-right: 1ex;" align="right"><a href="http://beauproductions.com/usworld/forum/index.php?action=manageboards;sa=board;boardid=43">modify</a></td>
</tr>
<tr>
<td colspan="4" align="right"><br /><input type="submit" value="Add Board" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="b132131abcdff1fe73bf2459c4fd46e7" />
</form>
</td>
</tr>
</table><!--Footers--><!--End Footers-->
</td>
</tr>
</table>
</div>

<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://beauproductions.com/usworld/forum/Themes/default/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://beauproductions.com/usworld/forum/Themes/default/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;">

<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.16</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2011, Simple Machines</a>
</span>
<div id="copyright_2by2" style="display: block; visibility: visible; clear: both; width: 100%; font-family: Verdana,Arial,sans-serif;" class="smalltext">Menu Buttons by <a href="http://2by2host.com/">2by2host.com</a> <a href="http://2by2host.com/">web hosting</a> company</div>
<script type="text/javascript">
        //<![CDATA[
var me = document.getElementById("copyright_2by2");
if (me && typeof(me.parentNode) != "undefined" && typeof(me.parentNode.tagName) != "undefined" && me.parentNode.tagName == "LI" && typeof(me.parentNode.className) != "undefined" && me.parentNode.className == "copywrite")
{
me.parentNode.style.lineHeight = "normal";
}
        //]]>
</script>
</td>
<td width="28%" valign="middle" align="left">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="http://beauproductions.com/usworld/forum/Themes/default/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://beauproductions.com/usworld/forum/Themes/default/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>
Title: Re: Lost my Boards
Post by: beau1943 on May 06, 2012, 11:00:21 PM
What I am trying to say is I lost everything after <!-- AddThis   on this page and admin lost it also..........I can get into my ftp account and find the php file I need to correct.......my problems is I don't know what page it is..........sorry to be ignorant///
Title: Re: Lost my Boards
Post by: beau1943 on May 06, 2012, 11:09:11 PM
This is the php page I need........how do I find it,,,,,,,

http://beauproductions.com/usworld/forum/index.php?action=manageboards
Title: Re: Lost my Boards
Post by: Kays on May 06, 2012, 11:14:56 PM
Where or how did you add that code in the first place? ???

BTW, please use [code] tags when adding code. Makes it easier to follow. :)
Title: Re: Lost my Boards
Post by: beau1943 on May 06, 2012, 11:21:27 PM
It is a code you can use in html when posting in topics,,,,,,,,,I was trying to put into the board.......I am in myphp but I have no idea where to go from here......
Title: Re: Lost my Boards
Post by: Kays on May 06, 2012, 11:29:21 PM
Did you enter that code into the board description?
Title: Re: Lost my Boards
Post by: beau1943 on May 06, 2012, 11:31:50 PM
Yes........
Title: Re: Lost my Boards
Post by: Kays on May 06, 2012, 11:42:15 PM
Then you need to look in the database to fix this. If you have phpMyAdmin access to the database look in the Boards table for that board and edit the description to remove it all.

Do backup your database first just in case. (How do I backup my database? (http://wiki.simplemachines.org/smf/How_do_I_save_the_database_data))
Title: Re: Lost my Boards
Post by: beau1943 on May 06, 2012, 11:42:36 PM
Kays........I can get to myphp in my server but I really don't know anything about sql........ what I need to do is remove <!-- AddThis   on the boards page after the small photo..... because it is an incomplete code...If I could get to the right page and remove this I will be fixed...

<td style="padding-left: 5px;"><a href="http://beauproductions.com/usworld/forum/index.php/topic,1271.msg2875.html#msg2875">LEON GUNNER AND BO OBAMA - <img src="http://beauproductions.com/LEONANDBO2.jpg" name="img.913"  id="img.913" alt="" border="0" align="middle"  /></a>  [b]<!-- AddThis [/b] </td>
Title: Re: Lost my Boards
Post by: Kays on May 06, 2012, 11:56:37 PM
You need to edit the board description in the database. What's happening is that there's a character limit for the board description and the code you added is probably cut of and incomplete. Which is what is messing up the display on the pages you are viewing this on.

If you go into phpMyAdmin to the "boards" table. Change the view to "Browse" and locate that board. Then click on the "Edit" link and remove all of the text in the "description" field for that board. You can always re-add the description in the Admin CP.
Title: Re: Lost my Boards
Post by: beau1943 on May 07, 2012, 12:14:12 AM
Kays..........fixed............thank you.......do you have a donate paypal
Title: Re: Lost my Boards
Post by: Kays on May 07, 2012, 12:23:46 AM
That's cool, glad you got it fixed. :)