Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Help With Moving Recent Clicks (http://www.mysidiaadoptables.com/forum/showthread.php?t=5539)

parayna 12-19-2017 07:42 AM

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

https://scontent-lht6-1.xx.fbcdn.net...bb&oe=5AC6C03E


  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.

https://scontent-lht6-1.xx.fbcdn.net...23&oe=5ACE9C73


  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...

https://scontent-lht6-1.xx.fbcdn.net...2e&oe=5AB6629D


Thanks for the help!!

Dinocanid 12-20-2017 02:19 PM

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); 



All times are GMT -5. The time now is 04:54 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.