Forums

popularity-contest 1.3b2 not showing up in sidebar (2 posts)

  1. butterflyzdream
    Member
    Posted 1 year ago #

    Installed the popularity-contest, worked fine every where except on the sidebar. I can see the posting popularity rating,and the report etc, but the text widget with the following code, showed nothing, not sure if there is any error either (maybe I don't know where to look)...

    • <?php akpc_most_popular(); ?>
  2. seems like popularity-contest php is just doing simple SQL query, judging from the fact that report/posting p-rating showed up ok, the database tables must be all right... not sure why the top postings just won't show up in the sidebar.

    I tried different parameters in the call, for example:

    • <?php akpc_most_popular(7, '
    • ', '
    • '); ?>
  3. No joy. Is there a way to dump the SQL statement and testing the query directly? Or there is a simpler solution to get it working on the sidebar?

  4. butterflyzdream
    Member
    Posted 1 year ago #

    sorry that was my first forum posting, the coding didn't come out right, one more try... the 2 coding blocks should read:

    <li>
        <ul><?php akpc_most_popular(); ?></ul>
    </li>

    and

    <li>
        <ul><?php akpc_most_popular(7, '<li>', '</li>'); ?></ul>
    </li>

Topic Closed

This topic has been closed to new replies.

About this Topic