Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Suggestions and Feature Requests

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2009, 05:34 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,157
Quillink
Default A 2-column table?

Does anyone know how to display the user's adoptables in a two-column table? What I was after was something like this:

[Name and image][Stats/manage link]
[Name and image][Stats/manage link]
[Name and image][Stats/manage link]
[Name and image][Stats/manage link]
...And so on

Could anyone write me a script for this? I can edit the contents of each column myself. :)
Reply With Quote
  #2  
Old 06-04-2009, 06:51 AM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 9,948
Ashje
Default RE: A 2-column table?

It's quite simple, in myadopts.php, find:
PHP Code:
$article_content $article_content."<td><div align='center'><p><p>".$name."</p><a href='myadopts.php?act=manage&id=".$aid."'><img src='".$image."' border=0></a></p><p>
<b><a href='myadopts.php?act=manage&id="
.$aid."'>Manage</a></b></p></div></td>"
and replace it with:
PHP Code:
$article_content $article_content."<td><div align='center'><p><p>".$name."</p><a href='myadopts.php?act=manage&id=".$aid."'><img src='".$image."' border=0></a></p><p>
<td><div align='center'><b><a href='myadopts.php?act=manage&id="
.$aid."'>Manage</a></b></p></div></td>"
Reply With Quote
  #3  
Old 06-04-2009, 08:25 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,157
Quillink
Default RE: A 2-column table?

Thanks Ashje, with your help I managed to piece together just what I wanted. :D
Now, for the next step - how hard exactly would it be to work together something like this, anyone?


I'm not looking for the actual coding for the content - I worked that out myself - just the tabular layout.
Thanks in advance ^ ^
Reply With Quote
  #4  
Old 06-04-2009, 10:33 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,382
Seapyramid
Default RE: A 2-column table?

If you look in the donator forum there is a mod for the my adopts page. It is not the 2 per line.. it is still only one, but it has all the info. you could use the above info and modify it to 2 column :)
Reply With Quote
  #5  
Old 06-05-2009, 04:05 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,157
Quillink
Default RE: A 2-column table?

Thanks, but I've already sorted that part out. :)

I've managed to create two (4) columns, but the right hand one is just a replica of the left one. Is there any way to stagger them?
This is what I've got at the moment:
PHP Code:
// Our code to determine if we show the table or not...

$article_content $article_content."<table width='530' border='1' bordercolor='#CCCCCC' rules=rows frame=hsides><tr>";

// Output the table information...
// Get the current adoptable's image

$image getcurrentimage($aid);

$article_content $article_content."<td width=110 height=110><div align='center'><a href=levelup.php?id=".$aid."'><img src='".$image."' border=0></a>
<td width=115><div align='left'>
<b> - "
.$name."</b><br>
<i>Current Level:</i> "
.$currentlevel."<br>
<i>Total Clicks:</i> "
.$totalclicks."<br>
<b><a href='myadopts.php?act=manage&id="
.$aid."'>More info</a></b>
<td><div align='left'>
</div></td></div></td>"


$article_content $article_content."<td width=110 height=110><div align='center'><a href=levelup.php?id=".$aid."'><img src='".$image."' border=0></a>
<td width=115><div align='left'>
<b> - "
.$name."</b><br>
<i>Current Level:</i> "
.$currentlevel."<br>
<i>Total Clicks:</i> "
.$totalclicks."<br>
<b><a href='myadopts.php?act=manage&id="
.$aid."'>More info</a></b>
<td><div align='left'>
</div></td></div></td>"
;

$article_content $article_content."</tr></table>"
As you can see, all I've done is copy/paste another two columns in..
Thanks in advance. :)
Reply With Quote
  #6  
Old 06-05-2009, 05:07 AM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 9,948
Ashje
Default RE: A 2-column table?

Here's where it gets confusing, and beyond my knowledge of html tables. Try PMing/asking Bloodrun or Brandon, because they know what they're doing. Sorry =(
Reply With Quote
  #7  
Old 06-12-2009, 05:26 AM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,623
zhiichiro
Default RE: A 2-column table?

can i ask something??

what ashje said is working fine on myadopts.php..

how to apply it on adopt.php? or is it possible?
Reply With Quote
  #8  
Old 10-06-2009, 10:29 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,015
SieghartZeke
Default RE: A 2-column table?

I have used the second code of quicklink but...i need to delete the multiple character!!!!
Here can show have happened.
Srry but is much Big...
Ok...i have risolved this problem..but i dont have 2 column!
Reply With Quote
  #9  
Old 09-23-2010, 02:26 PM
vexel vexel is offline
Member
 
Join Date: Aug 2010
Posts: 23
Credits: 2,550
vexel
Default RE: A 2-column table?

hot to delete multiple characters?
please help me ;D
Reply With Quote
Reply

Thread Tools
Display Modes

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
Item 'Rarity' Column Kyttias Questions and Supports 3 11-08-2014 05:51 PM
Anyone Know How to Fix a Table Hwona Questions and Supports 0 07-28-2014 10:31 AM
Admin Cp (Table) Alaric Questions and Supports 14 04-24-2012 06:23 AM
Adding a column to owned_adoptables? Tkrules Questions and Supports 1 01-22-2010 10:02 PM
Table Prefix fadillzzz Questions and Supports 5 01-21-2010 11:17 AM


All times are GMT -5. The time now is 02:10 PM.

Currently Active Users: 442 (0 members and 442 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