Help With Moving Recent Clicks

Forum
Last Post
Threads / Messages

KittHaven

Member
Member
Joined
May 21, 2013
Messages
478
Points
28
Age
25
Location
Devon, UK
Mysidian Dollar
8,292
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

25507930_10208223196577909_6935784994072960669_n.jpg


  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.

25398940_10208223196457906_5241488810638764086_n.jpg


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

25396214_10208223196497907_7777641738430055410_n.jpg


Thanks for the help!!
 
You should be able to use this:
PHP:
$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);
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Top