News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Stars and Badges

Started by Bulakbol, February 29, 2008, 11:59:19 PM

Previous topic - Next topic

X3neizes

Quote from: luismanson on May 28, 2010, 08:32:51 AM
thanks @X3neizes

Are you from Argentina?

Si amigo! tu tambien?  :)

chinaren

Quote from: X3neizes on May 26, 2010, 09:55:50 PM
I attached a modified version tested and running in SMF 2.0 RC3  ;)

Awesome job!  Great stuff, many thanks!
The Opus Path - The Next Generation of the Written Word

tRu3_sKiTz0

Hey all! First off, thanks for this mod, this is a feature that I have been wanting on my forum because we have three different companies that are using the forum and I wanted to be able to identify who is with what company. Now my problem is that if I am using more than one member group, I end up with doubled images for the extra groups. So as an admin I have the five red stars but when I add a member group I end up with the five red stars and a double image of the second group. If I add a third it show this:

  • Admin stars
  • 2nd group badge
  • 3rd group badge
  • 2nd group badge
  • 3rd group badge

I just want to get rid of the double images so it only shows each badge once. Let me know what files you need me to upload. Thanks in advance.

FYI: I'm using 2.0 RC3 with my own variation of the default curve theme.

bobbart

Thank for the MOD, and thanks to the Editor for RC3.

I have made the display of stars into names.  I also moved it to be just under the Primary Group and still not for guest view.
I would now like to know if I can get the group colors to reflect in the post view.  Admin is RED and others have there own colors.

tRu3_sKiTz0

And I'm still having trouble with duplicate badges. Please help.^^^^^

C4G-TK

Quote from: tRu3_sKiTz0 on July 19, 2010, 09:02:11 AM
And I'm still having trouble with duplicate badges. Please help.^^^^^

Did you by chance install the mod twice?  Check your template edits to make sure that they were only done one time and not duplicated.

-img removed-

tRu3_sKiTz0

Okay here is what I found in load.php:

Quote from: Load.php

'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),

Does this have anything to do with the dupe badges? So far I haven't found any stings that were doubled.

bobbart

So does anyone know how I can get the group names to show up in there selected colors?  I have the names showing but would like them to be color coded.

RuneCrafter

Ok i got the edit for 2.0 rc3 (thanks btw) but when i add new membergroups it
  • 's out the second memberbroup badge.


    Help? I can post a pic if neccecary. oh heres my profile : hxxp:irune.org/index.php?action=profile [nonactive]

RuneCrafter


dekay

Quote from: RuneCrafter on August 04, 2010, 03:44:52 PM
Please help :D

I'm not sure if I understood what your problem is, please give more information.

syphergaming

im getting a error when i click on my members list
here is error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1)' at line 3
File: /forums/Sources/Load.php
Line: 1281

richie80

I installed the mod on my server and did not have any issues.  I put in what membergroups I wanted to show, but no images show.  I am running SMF 2.0 RC3.  Can anyone help?

dekay

You made the configuration in "Features & Options" (don't know how it's called in english, thats the german title).

The is a line "Arrange additional group id to be displayed."

richie80

Did that.  I added the groups I wanted.  Still nothing showing

TheListener

Quote from: richie80 on August 24, 2010, 11:46:52 AM
Did that.  I added the groups I wanted.  Still nothing showing

Are you using the default theme?

If not make sure the images are also in the images folder of the theme you use.

richie80

#776
I am using a custom theme.  Which folder should the images be in?  Right now they are in the public_html / ranks

TheListener

Have a look at the default theme folder and see which one the images are in.

richie80

I added the images to the folder and still nothing shows up.

Lord991

I have one problem, i need to set up a <div class="frankie"></div> because of look in styles.css 
but i cant i get an error.

I open Display.template.php
and i find the code:

if (!empty($context['badges']['ownline']))
{
foreach($context['badges']['ownline'] AS $key)
for ($i = 0; $i < count($message['member']['additional_groups']['id']); $i++)
if ($message['member']['additional_groups']['id'][$i] == $key)
echo  $message['member']['additional_groups']['stars'][$i], '<br />';
}
elseif (!empty($message['member']['additional_groups']['id']))
for ($i = 0; $i < count($message['member']['additional_groups']['id']); $i++)
echo $message['member']['additional_groups']['stars'][$i], '<br />';




Can some one fix this problem for me pls. I just need to put that div class somehow.

If anyone help me he deserved to be called a GENUIS.  :-[ ;)

btw I am using 1.1.11, Mystic Jade theme

Advertisement: