Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-05-2014, 07:07 PM
TLT96's Avatar
TLT96 TLT96 is offline
Member
 
Join Date: May 2014
Posts: 3
Gender: Male
Credits: 2,094
TLT96 is on a distinguished road
Default Two links or more + images in 1 row

Well, i want to edit a lot of mysidia, i have some changes but i get stuck in this part....

I want to put two links with images in one row... Here the code (I tried but i cant...)

PHP Code:
public function index(){
        
$mysidia Registry::get("mysidia");
        
$document $this->document;
        
$document->setTitle($this->lang->title);

        
$pagination $this->getField("pagination");
        
$stmt $this->getField("stmt")->get();
        if(
$stmt->rowCount() == 0){
            
$document->addLangvar($this->lang->empty);
            return;
        }

        
$adoptTable = new TableBuilder("adopttable"650);
        
$adoptTable->setAlign(new Align("center""middle"));
        
$adoptTable->buildHeaders("First""Second""Third""Fourth");

        while(
$aid $stmt->fetchColumn()){
            
$adopt = new OwnedAdoptable($aid);
            
$cells = new LinkedList;
            
$STATS=new Link("myadopts/stats/{$aid}", new Image("templates/icons/stats.gif"));
            
$FEEDEAR=new Link("levelup/click/{$aid}", new Image("templates/icons/add.gif"));
            
$cells->add($STATS);
            
$cells->add(new TCell(new Link("myadopts/manage/{$aid}"$adopt->getImage("gui"))));
            
$cells->add(new TCell($adopt->getTotalClicks()));
            
$cells->add(new TCell($adopt->getNivel()));
            
$adoptTable->buildRow($cells);
        }
        
$document->add($adoptTable);
        
$document->addLangvar($pagination->showPage());
    } 
I have two variables called: STATS and FEEDEAR, they have links with images (Using codes from mysidia), but i cant put in just 1 row (I know how to put sepparated in two rows) but i want to show two images with links in the same row....

Php/Html knowledge = 2/10
Reply With Quote
 

Tags
farm, monster, myadoptsview, mysidia, table


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
Changing the links under Member's Links. LucasA33 Questions and Supports 1 12-24-2013 08:04 PM
:Links Bar: AlkseeyaKC Questions and Supports 9 06-23-2011 04:20 PM
Flash Links Tip PTGigi Tutorials and Tips 2 01-31-2011 02:03 PM
links zhiichiro Questions and Supports 10 06-15-2009 04:10 PM
Links SJC Questions and Supports 2 04-17-2009 06:46 PM


All times are GMT -5. The time now is 08:35 AM.

Currently Active Users: 966 (0 members and 966 guests)
Threads: 4,081, Posts: 32,025, 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