Thread: Code issues
View Single Post
  #2  
Old 08-29-2011, 05:48 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 41,120
fadillzzz is an unknown quantity at this point
Default

Open myadopts.php and look for the following code (around line 240-250)
PHP Code:
                $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'>
                                            [url=http://www.
{$domain}{$scriptpath}/levelup.php?id={$aid}][img]http://www.{$domain}{$scriptpath}/siggy.php?id={$aid}[/img][/url]
                                        </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'>
                                            [url=http://www.
{$domain}{$scriptpath}/levelup.php?id={$aid}][img]http://www.{$domain}{$scriptpath}/get/{$aid}.gif\"[/img][/url]
                                        </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

PHP Code:
                $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'>
                                            [url=http://www.
{$domain}{$scriptpath}/levelup.php?id={$row['aid']}][img]http://www.{$domain}{$scriptpath}/siggy.php?id={$row['aid']}[/img][/url]
                                        </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'>
                                            [url=http://www.
{$domain}{$scriptpath}/levelup.php?id={$row['aid']}][img]http://www.{$domain}{$scriptpath}/get/{$row['aid']}.gif\"[/img][/url]
                                        </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>"

Reply With Quote