Mysidia Adoptables Support Forum  

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

Thread Tools Display Modes
Old 12-19-2017, 08:42 AM
parayna's Avatar
parayna parayna is offline
Join Date: May 2013
Location: Devon, UK
Posts: 312
Gender: Female
Credits: 9,448
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
Old 12-20-2017, 03:19 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Join Date: Aug 2016
Location: Maryland, USA
Posts: 515
Gender: Unknown/Other
Credits: 23,274
Dinocanid is on a distinguished road

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);
Reply With Quote

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 08:17 PM.

Currently Active Users: 205 (1 members and 204 guests)
Threads: 3,954, Posts: 31,472, Members: 15,571
Welcome to our newest members, Demona.

What's New?

What's Hot?

What's Popular?

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