Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   A silly little question (http://www.mysidiaadoptables.com/forum/showthread.php?t=3521)

SilverDragonTears 03-23-2012 04:58 PM

Parse error: syntax error, unexpected T_CLASS in /home/taleofdr/public_html/sort.php on line 62

???

SilverDragonTears 03-23-2012 06:15 PM

Ok I figured out that problem... there was
Code:

tent .= "
that in there, lol which must have been part of article_content that was meant to be removed. But now it says:

Parse error: syntax error, unexpected T_ELSE in /home/taleofdr/public_html/sort.php on line 68

!Alive 03-24-2012 01:06 AM

Try changing the while to a if.

this:
while($row = $stmt->fetchObject())

to this:
if($row = $stmt->fetchObject())

SilverDragonTears 03-24-2012 01:13 AM

Ohhh yay :) Now instead of it switching the places... how do I make it just move to where I put it? Without moving the other one to where the one I'm moving is?

!Alive 03-24-2012 01:48 AM

XD

In the HTML javascript,
Change this
Code:

$('.sortable_adoptables')
                    .css('background-color', '#FFFF66')
                    .animate({ backgroundColor: realBg },  'slow' )
                    .sortable({
                        cursor: 'pointer', connectWith: ".sortable_adoptables", receive: function(event, ui) {
                            var $this = $(this);
                            if ($this.children('table').length > 1) {
                                    $this.children('table').not(ui.item).appendTo(ui.sender);
                                }
                        }
                    });

to This
Code:

$('.sortable_adoptables').css('background-color', '#FFFF66').animate({ backgroundColor: realBg },  'slow' ).sortable({ cursor: 'pointer', connectWith: ".sortable_adoptables" });
And it should just move them.

SilverDragonTears 03-24-2012 01:51 AM

It does and works but it literally puts the adopt on top of the other in the same <td> lol. That might get confusing...

!Alive 03-24-2012 02:01 AM

Yeah I know. Which is why I had them switch places. Though once submitted(and page has been refreshed) the adoptables will snap into the proper places. *actually had to get someone else to help me with the Javascript* I don't really know how to make it do what I would ideally like. I'll let you know if/when I figure out anything new that would fix the issue.

SilverDragonTears 03-24-2012 02:03 AM

Thanks :) For now it's fine how it is... I'm just so relieved to have the other part working. I saw you signed up, lol. Easier to actually see the problem. Is your site up? If so I'd love to take a look if you want to PM it to me.

SilverDragonTears 03-24-2012 02:13 AM

Darnit. I was trying to do the same rows thing in the profile and it's not working... minus the sortable stuff. Just wanted the rows like in the sort page.

!Alive 03-24-2012 02:14 PM

Yeah it is.
:usedusedused:
*sent you the link to my site*

Do you need columns on the profile? It already shows them in lines. Though you should be able to add the column formatting to them...


All times are GMT -5. The time now is 11:30 PM.

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