Stars and Badges

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

Previous topic - Next topic

ceylankral

can anyone show me smf rc5 codes?

Biology Forums

Quote from: shuban on August 13, 2011, 01:36:53 AM
How many badges could you give someone before it starts crashing. For some reason, after 5 badges, the user's stars (which signify post count membergroup) disappear >:( :( Could some explain why this is?

I find that when the member has "moderator" status, their post-count membergroup image (stars), disappears.

hcfwesker

Quote from: shuban on August 14, 2011, 08:59:51 PM

I find that when the member has "moderator" status, their post-count membergroup image (stars), disappears.

That's not from this MOd, I believe thats a setting under Admin > Themes >  Theme Settings

Hide post group titles for grouped members:
Enabling this will not display a member's post group title on the message view if they are assigned to a non-post based group.

uncheck the box for that option and see if it works.

Biology Forums

Quote from: hcfwesker on September 01, 2011, 04:24:31 PM
Quote from: shuban on August 14, 2011, 08:59:51 PM

I find that when the member has "moderator" status, their post-count membergroup image (stars), disappears.

That's not from this MOd, I believe thats a setting under Admin > Themes >  Theme Settings

Hide post group titles for grouped members:
Enabling this will not display a member's post group title on the message view if they are assigned to a non-post based group.

uncheck the box for that option and see if it works.

It was unchecked... Checking it removes the post group title and image. I find that only when a person is a "moderator" do the stars disappear:

See here, the first user, http://biology-forums.com/index.php?topic=3945.0

But on other posts, where the user is not a moderator, the star image is there.

H3lioz

#864
Quote from: jeronij on August 06, 2011, 11:15:51 AM
Quote from: strafe on August 06, 2011, 10:22:09 AM
Anyone that can make this for 2.0 final for 8$-10$.

You can try this if you want, at your own risk  ;)

If you get any errors when you go to install it, dont do it, and post here the code that is giving the error. I have a somehow customized installation but this should work in a clean as well. Only 2.0

If it works and you still want to give these 8-10$, just pay a visit here:  http://sc4devotion.com/forums/index.php?page=5 and support my site  8)   (<-- if it is not allowed to post this sort of links,  I am sorry. Please a mod delete it :) )

Hope this helps
Hey man i downloaded the mod and its perfect but.. I got one question, can u tell me how i can make all the stars/ranks show in profile comments too?

Should be like this:


But is like this:


Same problem in private messages would been gratefull if u replyed :) I havnt been on in a while so i havnt answered to ur post before now.. If u help me with this ill give u the 8$ :)

hcfwesker

Quote from: strafe on September 07, 2011, 08:12:01 AM
Hey man i downloaded the mod and its perfect but.. I got one question, can u tell me how i can make all the stars/ranks show in profile comments too?

Are you using Ultimate Profiles MOD or regular Profile Comments MOD to have comments on profile.

The personal messages shouldn't be too hard, just need to know what MOD you have for profile comments to be allowed.


Quote
Same problem in private messages would been gratefull if u replyed :) I havnt been on in a while so i havnt answered to ur post before now.. If u help me with this ill give u the 8$ :)

Try this, remember to make a backup of the file in case of an errors, but I got this to work on my site.


Themes/default/PersonalMessage.template.php

Find
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<li class="postgroup">', $message['member']['post_group'], '</li>';
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';



REPLACE with
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';

if (!empty($context['badges']['ownline']) && !allowedTo('moderate_forum'))
{
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 '
<li class="postgroup">', $message['member']['additional_groups']['stars'][$i], '</li>';
}
elseif (!empty($message['member']['additional_groups']['id']))
for ($i = 0; $i < count($message['member']['additional_groups']['id']); $i++)
echo '
<li class="postgroup">', $message['member']['additional_groups']['stars'][$i], '</li>';

lolmao2

I tried this, with no luck unfortunately.
I have the exact same problem as Strafe has and I tried changing the Themes/default/PersonalMessage.template.php, as you said.
Did not work for me.
Probably something with the MODs your talking about. Thanks for the above comments though, really helped me. Just have the same single problem as Strafe.
Hope you guys can make it work somehow  :laugh:

hcfwesker

Strange, cause I made the same exact edits after I seen strafe ask, so i can test, and got them to work.   And actually leaving it like this on my own forum.  Not ure what else to do,  you sure you made the edits correctly, and sure your're not using a custom theme with it's own PersonalMessage.template.php file

lolmao2

ahhhh sorry I'm still new to this coding and style things.
Well, I actually made it work on the default theme. But I hoped that it would work on the core theme aswell, since I've spend hours changing it's design.
I tried entering the codes in the PersonalMessage.template in "core" folder, but did not seem to work, only on default.
Is there any small tricks that will make it work on core too? I would really appreciate that! Right now I'm just sitting and reading about this coding to try and find out myself, but it seems really confusing if you haven't worked with it before :-)
I hope it's not as hard as it looks and that you have time to help me!
Thanks very much in advance!

/lolmao2

hcfwesker

Quote from: lolmao2 on September 11, 2011, 10:14:11 AM
ahhhh sorry I'm still new to this coding and style things.
Well, I actually made it work on the default theme. But I hoped that it would work on the core theme aswell, since I've spend hours changing it's design.
I tried entering the codes in the PersonalMessage.template in "core" folder, but did not seem to work, only on default.
Is there any small tricks that will make it work on core too? I would really appreciate that! Right now I'm just sitting and reading about this coding to try and find out myself, but it seems really confusing if you haven't worked with it before :-)
I hope it's not as hard as it looks and that you have time to help me!
Thanks very much in advance!

/lolmao2

make the SAME EXACT edits on the core theme's PersonalMessage.template.php  just like you did on the default's theme.

lolmao2

#870
Quote from: hcfwesker on September 11, 2011, 03:20:58 PM
Quote from: lolmao2 on September 11, 2011, 10:14:11 AM
ahhhh sorry I'm still new to this coding and style things.
Well, I actually made it work on the default theme. But I hoped that it would work on the core theme aswell, since I've spend hours changing it's design.
I tried entering the codes in the PersonalMessage.template in "core" folder, but did not seem to work, only on default.
Is there any small tricks that will make it work on core too? I would really appreciate that! Right now I'm just sitting and reading about this coding to try and find out myself, but it seems really confusing if you haven't worked with it before :-)
I hope it's not as hard as it looks and that you have time to help me!
Thanks very much in advance!

/lolmao2

make the SAME EXACT edits on the core theme's PersonalMessage.template.php  just like you did on the default's theme.

I have tried that 10 times now :/ Does not work. I'm going: ftp://[mywebaddress]/forum/Themes/core/PersonalMessage.template.php
Changing
         // Don't show these things for guests.
         if (!$message['member']['is_guest'])
         {
            // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
            if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
               echo '
            <li class="postgroup">', $message['member']['post_group'], '</li>';
            echo '
            <li class="stars">', $message['member']['group_stars'], '</li>';

to

         // Don't show these things for guests.
         if (!$message['member']['is_guest'])
         {
            // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
         echo '
                        <li class="stars">', $message['member']['group_stars'], '</li>';

         if (!empty($context['badges']['ownline']) && !allowedTo('moderate_forum'))
      {
         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 '
                     <li class="postgroup">', $message['member']['additional_groups']['stars'][$i], '</li>';
      }          
      elseif (!empty($message['member']['additional_groups']['id']))
         for ($i = 0; $i < count($message['member']['additional_groups']['id']); $i++)   
            echo '
               <li class="postgroup">', $message['member']['additional_groups']['stars'][$i], '</li>';

But it doesn't make any changes at all.
ONLY when I do it here:
ftp://[myadress]/forum/Themes/default/PersonalMessage.template.php.

But I have to make it work on the core theme. It makes no sense... I've double checked everything.. Hmmm

I can still see that I've got more groups under my profile. But not in comments hmm

lolmao2

Sorry for double-posting.
Conclusion is this so far:
I can see more groups in comments if I use default theme.
but I can't when I use core theme.
I do the exact same changes in both of the themes. (triple-checked)
If anyone can make this work on their core theme, could they possible attach their "PersonalMessage.template" file to me?
I feel like I've been trying everything, and I can't seem to find a solution yet.
Thanks!

//lolmao2

hcfwesker

Try this ...


core/PersonalMessage.template.php

Find
// Is karma display enabled? Total or +/-?

Add BEFORE
if (!empty($context['badges']['ownline']) && !allowedTo('moderate_forum'))
{
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 />';

// Is karma display enabled? Total or +/-?


If that don't work then I really don't know what to do.

lolmao2

YESS.... It worked Hcfwesker! Thanks so much for your time! Finally! Feels like a three days war that I've finally won! And I could never have won it without you! Thanks! woo!:)

H3lioz

Quote from: hcfwesker on September 09, 2011, 10:07:22 PM
Quote from: strafe on September 07, 2011, 08:12:01 AM
Hey man i downloaded the mod and its perfect but.. I got one question, can u tell me how i can make all the stars/ranks show in profile comments too?

Are you using Ultimate Profiles MOD or regular Profile Comments MOD to have comments on profile.

The personal messages shouldn't be too hard, just need to know what MOD you have for profile comments to be allowed.


Quote
Same problem in private messages would been gratefull if u replyed :) I havnt been on in a while so i havnt answered to ur post before now.. If u help me with this ill give u the 8$ :)

Try this, remember to make a backup of the file in case of an errors, but I got this to work on my site.


Themes/default/PersonalMessage.template.php

Find
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<li class="postgroup">', $message['member']['post_group'], '</li>';
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';



REPLACE with
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';

if (!empty($context['badges']['ownline']) && !allowedTo('moderate_forum'))
{
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 '
<li class="postgroup">', $message['member']['additional_groups']['stars'][$i], '</li>';
}
elseif (!empty($message['member']['additional_groups']['id']))
for ($i = 0; $i < count($message['member']['additional_groups']['id']); $i++)
echo '
<li class="postgroup">', $message['member']['additional_groups']['stars'][$i], '</li>';


Thanks.

Im using Regular Profile Comments MOD :)

asdqwezxc1

Can anyone help me set this up for me ? my forum is SMF 2.0 i'll pay them a fee for it.

Add me on msn : [email protected]

hcfwesker

Quote from: strafe on September 12, 2011, 04:08:09 AM
Im using Regular Profile Comments MOD :)

I can't install and test it, cause i use Ultimate Profile MOD for comments.  And it's too heavily customized on my forum to uninstall.  Sorry, I could guess at it all day, but rather only post up fixes I know will work after testing them.

H3lioz

Quote from: hcfwesker on September 13, 2011, 11:21:42 PM
Quote from: strafe on September 12, 2011, 04:08:09 AM
Im using Regular Profile Comments MOD :)

I can't install and test it, cause i use Ultimate Profile MOD for comments.  And it's too heavily customized on my forum to uninstall.  Sorry, I could guess at it all day, but rather only post up fixes I know will work after testing them.
Ah, well thanks anyways :)


hctez

Hi, im using 2.0 RC5 and i want to use this mod  but when i try to install it with the package manager i get a lot of errors, can anyone tell me if it still works with my version? and if it does, how do i install it?.

Another question, is there a way to show the avatar BEFORE de stars/badges?

Thanks!!

Advertisement: