![]() |
A silly little question
When I'm trying to show the adopts in a table... how can I make it so there is a break say every 6 adopts or so?
|
If your adopts are in a table you should just be able to insert a blank row/cell to create a break in the adoptables.
I could give you better example/code if I had your code snipit. Though I'm still pretty new to this, so I'm not sure how much help I can be. |
I'm trying to get just a certain number of adopt images per row for the sort thing so that people can sort easier with smaller images.
|
So your wanting columns of adoptables so that you have more than one on each row?
|
Yep that is what I need :)
|
In that case I should be able to help you, since I just reccently added columns adoptables to my site. Though you'll have to convert it to fit the new 1.3 version cause I haven't touched that yet.
Have you made any changes to the original code? Like adding the ajax sortable feature or anything? |
Yea I have the sort completing working... Just need to make it so I have rows of adopts instead of one on top of the other.
|
Alright then. Your going to need to change both the javascript in the HTML and the formatting in the myadopts.php. Do you mind showing me your code. It will make it easier for me to tell you what and where to put the code. If not I can just pull/edit my code.
|
K Here is my sort script. I have it separate from the my adopts
Code:
<?php Code:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> |
I made the chages to your php and the javascript. This should work. You might also want to change or remove the table that has the text for name, type, ect.
Let me know how it goes. ;3 PHP Code:
HTML Code:
<script type="text/javascript"> |
Parse error: syntax error, unexpected T_CLASS in /home/taleofdr/public_html/sort.php on line 62
??? |
Ok I figured out that problem... there was
Code:
tent .= " Parse error: syntax error, unexpected T_ELSE in /home/taleofdr/public_html/sort.php on line 68 |
Try changing the while to a if.
this: while($row = $stmt->fetchObject()) to this: if($row = $stmt->fetchObject()) |
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?
|
XD
In the HTML javascript, Change this Code:
$('.sortable_adoptables') Code:
$('.sortable_adoptables').css('background-color', '#FFFF66').animate({ backgroundColor: realBg }, 'slow' ).sortable({ cursor: 'pointer', connectWith: ".sortable_adoptables" }); |
It does and works but it literally puts the adopt on top of the other in the same <td> lol. That might get confusing...
|
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.
|
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.
|
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.
|
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... |
I figured it out for the profiles :)
|
Oh! That's good. ^_^
|
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.