We are holding a contest and want to be able to find out which registered user submitted the X link (as in you submitted the 1,000th link. Congrats!), etc.
I've checked in mysql, etc. but I just can't find a way to do it. Is there something I am missing?
Also, we want to be able to show the amount of published links on the front page. Try to modify the "logged in user" code but that didnot turn out so well.
Any help?
Thanks!
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| |
| |||
| Quote:
Go into mysql admin click on yourtable_links then browse scroll down to the 1,000 entry (insert duh here!) look in the "link_author" field for the author number go to yourtable_users and find the "author number" in "user_id Presto you have found your 1,000 submitor. Still need help with getting the amount of published stories on the front page though |
| ||||
|
Have you looked at admin_main_center.tpl? There are already smarty variables created such as: {$members} = total number of members {$total} = total number of stories submitted {$published} = number of stories published {$queued} = number of stories in the queue {$votes} = total combined votes of all stories {$comments} = total number of comments made on the site So for example lets say you want to show the total number of published stories on the home page. Open index.php and add Code: $published = $db->get_var('SELECT count(*) from ' . table_links . ' where link_status = "published";');
$main_smarty->assign('published', $published);
Code: {$published} total published stories
__________________ Visit PliggPro the official Pligg Mods & Template Shop! |
| The Following User Says Thank You to chuckroast For This Useful Post: | ||
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stopping duplicate submissions | web20guy | General Help | 0 | 12-16-2007 06:32 PM |
| anon submissions for moogld.com | lumpen5 | Installation and Upgrade Help | 1 | 05-31-2007 08:37 PM |
| [Request] Expandable submissions on front page | Xenos | Modification Tutorials | 0 | 02-01-2007 09:27 PM |
| Parent shows children submissions? | kaustic | Modification Tutorials | 1 | 01-24-2007 04:04 PM |





Linear Mode

