Forums

Need help with code... (6 posts)

  1. Felix J
    Member
    Posted 3 years ago #

    Hello

    I got this in a file:

    <div class="tabbertab">
    <h2>Arkiv</h2>

      <?php wp_get_archives('type=monthly'); ?>

    <div style="clear:both;"></div>
    </div>

    <?php if (function_exists('get_most_rated')): ?>
    <div class="tabbertab">
    <h2>Flest Röster</h2>

      <?php get_most_rated('post', 10); ?>

    <div style="clear:both;"></div>
    </div>
    <?php endif; ?>

    But the "most rated" function doesn't work. Anyone know why?

    Also if I want to show 10 most visited posts what code would then work?

    Thanks for any help.

  2. Felix J
    Member
    Posted 3 years ago #

    To see the "problem" please go to the site http://xn--bokmrken-3za.net/

    and click on the tab "Flest röster" under "Sponsorer"

    It just shows "N/A"

  3. Felix J
    Member
    Posted 3 years ago #

    Comon anyone help me please.

  4. crayoncrisis
    Member
    Posted 3 years ago #

    get_most_rated isn't a template tag like wp_get_archives

    Did you install the plug-in WP-PostRatings?

  5. Felix J
    Member
    Posted 3 years ago #

    Hello!

    Ok, The code come together with the theme design inside a file.

    Do you or anyone else know how to get it working?

    The problem is... The template has no widget compatible sidebar (it just got a sidebar) and I haven't understood how to make it widget compatible and in the same time keep the sidebar design even after reading the tutorial....

    So I cant use any sidebar widgets until I have made it widget compatible.

    Maybe if I post the sidebar code here anyone can help me in making it widget compatible so I can use the plugin instead?

    Here is the sidebar code

    <div class="sidebar">
    <?php include (TEMPLATEPATH."/searchform.php");?>
    <?php include(TEMPLATEPATH."/tabber.php");?>
    <?php include(TEMPLATEPATH."/ads.php");?>
    <br />
    <?php include(TEMPLATEPATH."/blogtab.php");?>
    </div>

    If anyone could remake this code to widget compatible I would highly appreciate it...

    Thank you!

  6. crayoncrisis
    Member
    Posted 3 years ago #

    I don't know the theme you are using or this plugin, but check out Managing Plugins and Widgetizing Themes.

    Lycka till.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.