Results 1 to 2 of 2
  1. #1
    New Pligger visine's Avatar
    Joined
    May 2008
    Posts
    7

    Display number of published stories not only at profile

    I would like to display the user's number of published stories anywhere at my pligg site.

    I tried to copy&paste the variable given at user_center.tpl {$user_published_links} but it doesn't show up at any other site than user_center.tpl.

    Is there another (global) variable to display the number?

  2. #2
    Casual Pligger vwdw's Avatar
    Joined
    Apr 2010
    Posts
    81
    No, but you can set it. Open libs/smartyvariables.php and insert the following in the end
    PHP Code:
    if ($current_user->authenticated) {
    $qty "SELECT count(*) FROM " table_links " WHERE link_author = ".$current_user->user_id." AND link_status = 'published'";
    $user_published_links $db->get_var($qty);
    $main_smarty->assign('user_published_links'$user_published_links);

    Just do a backup

Similar Threads

  1. Different number of stories per page (upcoming vs published)
    By Valver in forum Questions & Comments
    Replies: 3
    Last Post: 12-05-2011, 01:17 AM
  2. How to Display User's Stories on his Profile?
    By buzzerman in forum Questions & Comments
    Replies: 9
    Last Post: 05-05-2011, 11:21 AM
  3. How to NOT display published in sidebar and display unpubl?
    By mwwoj in forum Questions & Comments
    Replies: 3
    Last Post: 10-18-2009, 03:01 PM
  4. Display number of members
    By mightyb in forum Questions & Comments
    Replies: 3
    Last Post: 01-21-2007, 06:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting