Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.2.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=38)
-   -   [Updated] AJAX Sortable Adoptables on "myadopts.php" Page (http://www.mysidiaadoptables.com/forum/showthread.php?t=2357)

Hall of Famer 08-29-2011 05:20 PM

Well Fadillzzz, I have a suggestion for your script. Why dont you modify these lines a bit by replacing one-time loop with mysql_fetch_array()? All programming flaws such as the one below have been fixed in Mys v1.2.3:

PHP Code:

$i=0;
while (
$i 1) {

$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
$tradestatus=@mysql_result($result,$i,"tradestatus");
$father=@mysql_result($result,$i,"father");
$mother=@mysql_result($result,$i,"mother");
$lastbred=@mysql_result($result,$i,"lastbred");
$adultdescription=@mysql_result($result,$i,"adultdescription");


$i++;



fadillzzz 08-29-2011 05:24 PM

Hmm...that actually is not part of the mod...
That code is inside SDT's myadopts.php file. I think I'll just let her decide what to do with it.

SilverDragonTears 08-29-2011 05:30 PM

yea i'll pm you my info, since that didn't work either

fadillzzz 08-29-2011 05:38 PM

Still? But I just tried it and it works... :coloness:
The only thing that you need to work on now, is probably some styling for better looking

BTW, You did click on the 'Click here to sort your adoptables' first right? before actually trying to sort the adoptables?

Hall of Famer 08-29-2011 05:40 PM

Again Id recommend SDT to give ftp access to Fadillzzz so he can fix the glitch much more easily. It is difficult to help with someone using a heavily customized site.

SilverDragonTears 08-29-2011 05:41 PM

OMG. I bet it's worked this whole time. I thought there would be an underline link.

*smacks self*

fadillzzz 08-29-2011 05:43 PM

Finally :madO:
I was beginning to worry that my mod is only working on my development site XD

SilverDragonTears 08-29-2011 05:44 PM

I'm so blond. Literally. Sorry fadillzz =( LOL

Any way to make the sort images smaller?

Hall of Famer 08-29-2011 05:45 PM

Well if a Mod works on your development site, it is safe to assume it is fine on a standard Mysidia site. I am assuming SDT has a customized site already since she modified some of the script herself. This is probably why your Mod wont work on her site at the very beginning.

fadillzzz 08-29-2011 05:56 PM

Quote:

Originally Posted by SilverDragonTears (Post 18325)
Any way to make the sort images smaller?

You mean make the item smaller when we're dragging it?


All times are GMT -5. The time now is 05:36 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.