View Full Version : Code issues
Abronsyth
08-29-2011, 05:43 PM
No, not the script, but when I go to get a pet's BBC codes and such, I must manually fill in the id of the pet, as, otherwise, it has the id portion saying "id=", no ID number for that pet, which, of course, doesn't allow the code to work. does this for all three codes.
Anyone know how to fix this? As I bet I'd end up with a lot of confused members...
fadillzzz
08-29-2011, 05:48 PM
Open myadopts.php and look for the following code (around line 240-250)
$altbb = grabanysetting("usealtbbcode");
// Adoptable exists, so show the BBCode:
$article_title = "Codes for {$name}";
$article_content = "{$lang_bbcode_explain}<br />
<p><u>Forum Codes / BBCode: </u></p>
<p>
<textarea name='textarea' cols='50' rows='4'>
http://www.{$domain}{$scriptpath}/siggy.php?id={$aid} (http://www.{$domain}{$scriptpath}/levelup.php?id={$aid})
</textarea>
</p>";
if($altbb == "yes")
{
// Use the seo friendly alternate bbcodes...
$article_content .= "
<p><u>Alternate BBCodes (Use if the above do not work on a forum): </u></p>
<p>
<textarea name='textarea' cols='50' rows='4'>
http://www.{$domain}{$scriptpath}/get/{$aid}.gif\" (http://www.{$domain}{$scriptpath}/levelup.php?id={$aid})
</textarea>
</p>";
}
$article_content .= "<p><u>HTML Code</u>:</p>
<p>
<textarea name='textarea' cols='50' rows='4'>
<a href=\"http://www.{$domain}{$scriptpath}/levelup.php?id={$aid}\" target=\"_blank\">
<img src=\"http://www.{$domain}{$scriptpath}/siggy.php?id={$aid}\" border=0>
</a>
</textarea>
</p>";
Replace them with this
$altbb = grabanysetting("usealtbbcode");
// Adoptable exists, so show the BBCode:
$article_title = "Codes for {$row['name']}";
$article_content = "{$lang_bbcode_explain}<br />
<p><u>Forum Codes / BBCode: </u></p>
<p>
<textarea name='textarea' cols='50' rows='4'>
}]http://www.{$domain}{$scriptpath}/siggy.php?id={$row['aid']} (http://www.{$domain}{$scriptpath}/levelup.php?id={$row['aid')
</textarea>
</p>";
if($altbb == "yes")
{
// Use the seo friendly alternate bbcodes...
$article_content .= "
<p><u>Alternate BBCodes (Use if the above do not work on a forum): </u></p>
<p>
<textarea name='textarea' cols='50' rows='4'>
}]http://www.{$domain}{$scriptpath}/get/{$row['aid']}.gif\" (http://www.{$domain}{$scriptpath}/levelup.php?id={$row['aid')
</textarea>
</p>";
}
$article_content .= "<p><u>HTML Code</u>:</p>
<p>
<textarea name='textarea' cols='50' rows='4'>
<a href=\"http://www.{$domain}{$scriptpath}/levelup.php?id={$row['aid']}\" target=\"_blank\">
<img src=\"http://www.{$domain}{$scriptpath}/siggy.php?id={$row['aid']}\" border=0>
</a>
</textarea>
</p>";
Hall of Famer
08-29-2011, 05:55 PM
Oh my, I didnt realize there was such a bug in myadopts.php file... *sigh* I apologize for this and will upload the new myadopts.php file soon for you guys/gals to download.
And btw, was this glitch present starting from Mys v1.2.0? As far as I know, we did not modify the script in myadopts.php while optimizing codes for Mys v1.2.3, since Arianna was the one who made new myadopts.php for Mys v1.2.x and the while loop issue was already fixed.
Hall of Famer
Abronsyth
08-29-2011, 07:11 PM
Haha, this is a little embarrassing, I'm not sure how to get to myadopts.php
The host is 99webs? Any idea of how'd I get to myadopts.php?
(Sorry, I'm completly new at this, and Nemesis installed the script for me ^-^')
Never mind! I managed...
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.