Navigation

Pligg Support

Hey all,
I was wondering if its possible to add a badge or icon, similar to twitters verify check mark (see attached). Anyone have any idea how this could be done? Thanks in advance!

Possible Answers

    if you haven't done it yet, here is the solution:

    [link] http://discretefeed.com/test/add-badge-to-verified-users.html [/link]

    I posted it on my server.

    I'm sorry I'm having trouble uploading a zip file and it seems I'm not familiar with how to show html code in the answer here! Any help?

    | Posted 78 days ago | Permalink | Hide Replies

    UPDATE: I was able to create a new user level called "verified". I updated the database and it reflects correctly in my admin panel.

    Now I'm wondering what code I need and where to put it, to display a badge next to everyone with user level "verified".

    Also does any new user level such as this "verfied" on that I created, have the same power as a "normal" user?

    Thanks!

    | Posted 83 days ago | Permalink | Hide Replies

    There are many sections in Pligg where the users appear, i.e. below the news title, the main user profile page, top users page, etc. Where or what section do you want the badge to display?

    So for example you want the badge to display below the news title, you can use the variable/code:

    {if $user_extra_fields.user_level eq "verified"}SPECIAL BADGE HERE{/if}

    | Posted 82 days ago | Permalink | Hide Replies

    Bingo OxyThemes!

    I was able to use that code in link_summary.tpl and have it display next to the username, which is exactly what I wanted now how can I have it display everywhere that user may appear?

    Essentially I only need it to display at the bottom of the story, in that specific users profile page, and next to the verified users names in search results.

    I tried the code about in user_naviagtion.tpl but it wasnt wokring.

    Any ideas?

    Thanks!

    | Posted 82 days ago | Permalink | Hide Replies

    For Top Users page (members list), open topusers_data.tpl and at the very top, add:

    {php}

    global $main_smarty, $user;

    $main_smarty->assign('userLevel', $user->level);

    {/php}

    On the same file, add the code below where you want the badge to appear:

    {if $userLevel "verified"}SPECIAL BADGE HERE{/if}

    | Posted 78 days ago | Permalink | Hide Replies

    Well there's two user levels for posters.... Admin and Normal. Shouldn't be too hard to add an icon to represent them. And that code could be in the templates. Extending the user types might be a little more challenging but not much.

    Also, you might use the Karma system to add an icon within the templates according to karma level.

    Reminds me of running a web board that was originally coded by Albert Fong. That cgi (in perl) had five user levels with military looking badges when released by the CyberArmy.

    The Admin level user(s) would get a generals badge, stars or something and the users would get stripes added according to karma level.

    Just my thoughts.

    | Posted 83 days ago | Permalink | Hide Replies

    Thanks for the reply jhawkin,

    I thought of just setting them as "Mod" user level but I don't want to give them access to deleting etc.

    Any idea how to create a new user level, to have the same power as a normal user but with an icon by the name?

    | Posted 83 days ago | Permalink | Hide Replies

Who Upvoted this Story

Pligg.com's Support area is where you can ask questions and get answers. Just getting started with the Support area? This section describes tips for participating.

Submitting a Question or Comment

By taking a minute to research previous posts you may receive an answer much faster than waiting for a response to a new question. Begin by searching the support section for an answer. Sometimes you may even want to extend your search to the entire pligg.com domain.

If you are unable to find a relevant answer, submit a new question or comment here. Please provide a detailed description and, when necessary, debugging information such as your server environment (a link to a <?php phypinfo(); ?> .php page would be very helpful), your web browser, and any steps necessary to reproduce your issue.

Submitting an Answer

If you have an answer or useful response that you would like to add to a post, you can submit it as a comment which other users will then vote on. Answers are sorted by most popular to least, allowing the best information to climb to the top of the page.

Please read and vote for existing answers before submitting your own, as there may already be an acceptable answer provided. You can use the "Reply" link found within an answer to submit a response to it, in case you want to expand or comment on someone else's contribution.

Including Files or Code

Sometimes it is necessary for you to attach a file or include a snippet of code for others to reference in your response. In most cases, you can .zip up files and attach them to a question or answer using Pligg's file manager. At times though this may fail, and in these circumstances we recommend using a third party host. Below we are including a list of recommended websites where you can share easily share file uploads (or snippets of code) through the web.