Mysidia Adoptables Support Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2017, 08:42 AM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 312
Gender: Female
Credits: 8,751
parayna is on a distinguished road
Default Help With Moving Recent Clicks

Hello! :) I've been trying for a while now to move the Recent Clicks table from the /stats page to the /manage page. How would I do this? I've tinkered with moving and rewriting code but just got error after error... so I've put it back as it was before. Basically I've rewritten the adoptable manage profile (and will do the same on the public profile) to have a bunch of tabs. It looks much better than it was before, and so instead of having links to all the individual pages, I'd like everything to just display on this one page, the manage page (and for the public profile the levelup/click page).

Images are below:
  Spoiler: New profile 

Please ignore the tab labelled 'Tokyo' as that is just a placeholder XD



  Spoiler: New Stats tab 

This is the new statistics tab, and I want the Recent Clicks table to be displayed where the italic 'Recent Clicks' is written.



  Spoiler: Current stats page 

This is the current stats page, but to see it I would need to link to it, which I don't really want...



Thanks for the help!!
__________________

Examples from my in-progress adoptable site's 7 available starters
My personal favourite designs, in fact!
Reply With Quote
  #2  
Old 12-20-2017, 03:19 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 508
Gender: Unknown/Other
Credits: 20,759
Dinocanid is on a distinguished road
Default

You should be able to use this:
PHP Code:
$voters $mysidia->db->select("vote_voters", array(), "adoptableid='{$this->adopt->getAdoptID()}' ORDER BY date DESC LIMIT 10");
$fields = new LinkedHashMap;
        
$fields->put(new String("username"), new String("getUsername"));
        
$fields->put(new String("date"), NULL);
        
$fields->put(new String("username::profile"), new String("getProfileImage"));
        
$fields->put(new String("username::message"), new String("getPMImage"));
        
        
$voterTable = new TableBuilder("voters"500);
        
$voterTable->setAlign(new Align("center"));
        
$voterTable->buildHeaders("User""Date Voted""Profile""PM");
        
$voterTable->setHelper(new UserTableHelper);
        
$voterTable->buildTable($voters$fields);
        
$document->add($voterTable); 
__________________
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


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

Currently Active Users: 169 (2 members and 167 guests)
Threads: 3,943, Posts: 31,409, Members: 15,530
Welcome to our newest members, ancrsbys01.
BER





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636