Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2017, 07:42 AM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,088
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!!
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.

Reply With Quote
  #2  
Old 12-20-2017, 02:19 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 63,631
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 10:47 AM.

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