Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2011, 05:43 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,991
Abronsyth is on a distinguished road
Default Code issues

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...
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #2  
Old 08-29-2011, 05:48 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,966
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
  #3  
Old 08-29-2011, 05:55 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 339,078
Hall of Famer is on a distinguished road
Default

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
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 08-29-2011, 07:11 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,991
Abronsyth is on a distinguished road
Default

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...
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 08-30-2011 at 06:15 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
theme issues chinchillapals Questions and Supports 4 04-20-2012 04:09 PM
Oh look more issues Abronsyth Questions and Supports 2 10-20-2011 06:35 AM
Invite Code/Alpha Code Shex Questions and Supports 0 03-07-2011 04:08 AM
2 Issues Breakdown Questions and Supports 8 03-01-2009 02:48 PM
Having Setup Issues fritchie Questions and Supports 2 02-07-2009 01:28 PM


All times are GMT -5. The time now is 09:30 AM.

Currently Active Users: 9635 (0 members and 9635 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636