Advertisement:

Author Topic: Regular Groups with both Post Count Based Groups  (Read 15057 times)

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,927
  • Gender: Male
Regular Groups with both Post Count Based Groups
« on: April 11, 2009, 02:22:46 AM »
Link to Mod

Regular Groups with Post Count Based Groups

the Regular groups and the Post count based groups have their badges, but, my regular groups can't have the badge of the post count group, i created a badges for all, and it will be cool if the moderators/global-mods and admin could see the badge for level and the badge for his post level too.

made by www.smfmod.com
Version: 1.0 Date 2009-03-22
Compatibility: SMF  1.1.x

Version: 1.0 Date 2009-05-24
Compatibility: SMF  1.1.x & 2.x
« Last Edit: May 24, 2009, 03:18:59 PM by hhy89 »

Offline minos

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
  • metalminos.net
    • Metal Minos Foro
Re: Badges Team with both Post Count Based Groups
« Reply #1 on: April 11, 2009, 10:30:29 PM »
good mood --- can you make it compatible with smf 2 rc1 ?

Offline ʟink

  • Jr. Member
  • **
  • Posts: 130
  • Gender: Male
  • Hyrule's Defender
    • The Ninja's Hideout
Re: Badges Team with both Post Count Based Groups
« Reply #2 on: April 12, 2009, 12:57:12 AM »
good mood --- can you make it compatible with smf 2 rc1 ?
I second this request. You'd be solving a request here, as well as making me very happy. ;D Can you please make a 2.0 RC1 compatable version?
Obedire est vivere, Vivere est obedire


Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Re: Regular Groups with both Post Count Based Groups
« Reply #3 on: April 12, 2009, 06:10:07 AM »
ok i do it ;)

its name changed "Regular Groups with Post Count Based Groups"
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Offline minos

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
  • metalminos.net
    • Metal Minos Foro
Re: Regular Groups with both Post Count Based Groups
« Reply #4 on: April 12, 2009, 11:08:10 PM »
thanks

Offline sombra

  • Full Member
  • ***
  • Posts: 596
Re: Regular Groups with both Post Count Based Groups
« Reply #5 on: April 25, 2009, 09:43:50 PM »
mm update for rc1?

Offline Neverhurry

  • Sophist Member
  • *****
  • Posts: 1,019
  • Life is compromise.
    • We love Slovakia!
Re: Regular Groups with both Post Count Based Groups
« Reply #6 on: May 21, 2009, 04:35:19 PM »
hello hhy89,

i need such mod very much, but after i install the mod, i found out that the second regular group title nor the badge can show. can you help? Thank you!
I am using SMF 2.0.1, curve themes.

Offline ʟink

  • Jr. Member
  • **
  • Posts: 130
  • Gender: Male
  • Hyrule's Defender
    • The Ninja's Hideout
Re: Regular Groups with both Post Count Based Groups
« Reply #7 on: May 24, 2009, 08:21:54 AM »
good mood --- can you make it compatible with smf 2 rc1 ?
good mood --- can you make it compatible with smf 2 rc1 ?
I second this request. You'd be solving a request here, as well as making me very happy. ;D Can you please make a 2.0 RC1 compatable version?
mm update for rc1?
Please?
* linkgamer3 looks up at hhy89 with large, round puppy dog eyes.
Obedire est vivere, Vivere est obedire


Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Re: Regular Groups with both Post Count Based Groups
« Reply #8 on: May 24, 2009, 03:20:04 PM »
sorry about that

i upgraded it
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Offline minos

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
  • metalminos.net
    • Metal Minos Foro
Re: Regular Groups with both Post Count Based Groups
« Reply #9 on: May 24, 2009, 09:13:55 PM »
thanks alot  hhy89  ... i'm 'bout to install it


edit:

there's a restriction about  aditional member gropus?  because  only shows two badges and some of my user have 3 or 4 ranks


« Last Edit: May 24, 2009, 09:32:06 PM by minos »

Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Re: Regular Groups with both Post Count Based Groups
« Reply #10 on: May 24, 2009, 09:46:43 PM »
it is a automatic
Regular Groups with both Post Count Based Groups
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Offline ʟink

  • Jr. Member
  • **
  • Posts: 130
  • Gender: Male
  • Hyrule's Defender
    • The Ninja's Hideout
Re: Regular Groups with both Post Count Based Groups
« Reply #11 on: May 24, 2009, 11:22:58 PM »
Well, it works like a charm for me! Thanks so much for making it compatable with 2.x!
Obedire est vivere, Vivere est obedire


Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Re: Regular Groups with both Post Count Based Groups
« Reply #12 on: May 25, 2009, 06:46:24 AM »
welcome ;D
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Offline minos

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
  • metalminos.net
    • Metal Minos Foro
Re: Regular Groups with both Post Count Based Groups
« Reply #13 on: May 25, 2009, 02:47:45 PM »
so..
it is a automatic
Regular Groups with both Post Count Based Groups


yeah but only show two groups 1 special and 1n post count based 

Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Re: Regular Groups with both Post Count Based Groups
« Reply #14 on: May 25, 2009, 04:28:37 PM »
it is automatic
r u ok?
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Offline minos

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
  • metalminos.net
    • Metal Minos Foro
Re: Regular Groups with both Post Count Based Groups
« Reply #15 on: May 25, 2009, 07:12:33 PM »
mmm  yes are automatic, but in my forum doesn't show ALL member ranks  .. just show two ranks and i have 4 other members in my forum have 3

just looking for support here,  but ,,, if you cant or want... just say it..............

Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Offline TurtleKicker

  • Full Member
  • ***
  • Posts: 418
Re: Regular Groups with both Post Count Based Groups
« Reply #17 on: November 12, 2009, 04:21:19 PM »
Does this work with SMF2 RC2?

Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Re: Regular Groups with both Post Count Based Groups
« Reply #18 on: November 13, 2009, 04:25:01 AM »
ok i upgrade it

Regular_Groups_with_Post_Count_Based_Groups_rc2.zip is for smf 2 rc2
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Offline PalmBeachPreps

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
    • Palm Beach Preps
Re: Regular Groups with both Post Count Based Groups
« Reply #19 on: November 15, 2009, 02:20:06 AM »
Doesn't work in my forum.   :(

Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Re: Regular Groups with both Post Count Based Groups
« Reply #20 on: November 15, 2009, 05:38:06 PM »
why not?
where is your forum
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com


Offline SuperZambezi

  • Jr. Member
  • **
  • Posts: 122
    • The Super Mario Party Site
Re: Regular Groups with both Post Count Based Groups
« Reply #22 on: November 16, 2009, 01:32:08 AM »
I am running RC 1-1 and after I installed it the only thing that happened was all the post count images disappeared. Am I supposed to go anywhere after I install it or does it work as soon as its installed. Thanks. :)


Offline hhy89

  • Full Member
  • ***
  • Posts: 486
Re: Regular Groups with both Post Count Based Groups
« Reply #24 on: November 19, 2009, 01:06:21 AM »
do u use this mod ?
or do u have an error for installing this mod
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Offline PalmBeachPreps

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
    • Palm Beach Preps
Re: Regular Groups with both Post Count Based Groups
« Reply #25 on: November 19, 2009, 03:29:09 AM »
Yes I use it, and no errors on installation.

EDIT: Removed mod, and installed again.  One error (Load.php), which I edited manually, and it still doesn't show.  I apologize for the inconvenience, but I would really like to have this mod working.

EDIT 2: Never mind, got it working on my own.
« Last Edit: November 19, 2009, 04:06:32 AM by PalmBeachPreps »

Offline howl.nsp

  • Newbie
  • *
  • Posts: 8
Re: Regular Groups with both Post Count Based Groups
« Reply #26 on: February 28, 2010, 03:57:08 PM »
Bug:
install.xml
Code: [Select]
<operation>

<search position="replace"><![CDATA[ IF(mem.ID_GROUP = 0 OR mg.stars = '', pg.stars, mg.stars) AS stars, mem.passwordSalt";]]></search>

<add><![CDATA[ mg.stars AS stars, pg.stars AS pg_stars";]]></add>

</operation>
should be:
Code: [Select]
<operation>

<search position="replace"><![CDATA[ IF(mem.ID_GROUP = 0 OR mg.stars = '', pg.stars, mg.stars) AS stars, mem.passwordSalt";]]></search>

<add><![CDATA[ mg.stars AS stars, pg.stars AS pg_stars, mem.passwordSalt";]]></add>

</operation>

install_2.xml:
Code: [Select]
<operation>

<search position="replace"><![CDATA[ CASE WHEN mem.id_group = 0 OR mg.stars = {string:blank_string} THEN pg.stars ELSE mg.stars END AS stars, mem.password_salt, mem.pm_prefs';]]></search>

<add><![CDATA[ mg.stars AS stars, pg.stars AS pg_stars';]]></add>

</operation>
should be:
Code: [Select]
<operation>

<search position="replace"><![CDATA[ CASE WHEN mem.id_group = 0 OR mg.stars = {string:blank_string} THEN pg.stars ELSE mg.stars END AS stars, mem.password_salt, mem.pm_prefs';]]></search>

<add><![CDATA[ mg.stars AS stars, pg.stars AS pg_stars, mem.password_salt, mem.pm_prefs';]]></add>

</operation>

Offline rjckE

  • Full Member
  • ***
  • Posts: 524
  • Gender: Male
  • DeveloPHPer
    • Mi blog
Re: Regular Groups with both Post Count Based Groups
« Reply #27 on: March 25, 2010, 11:53:34 PM »
Does this work on RC3?

Offline ZarPrime

  • Jr. Member
  • **
  • Posts: 135
Re: Regular Groups with both Post Count Based Groups
« Reply #28 on: April 07, 2010, 12:09:28 PM »
Can this Mod be used to display more than the primary group badge and the post based group stars in a vertical fashion?  In other words, if I have members that are in several secondary groups, will this Mod show the badges of ...
1.  The primary group
2.  1 or more of the secondary groups
3.  The post based group stars.


As an example, have a look at the attached image.  The user's primary group is Kirduin, and he is in 3 secondary groups, Counsilor, Sovereign, and FAQMaster.  All 4 badges are shown in the image, and below the 4 badges, the post based group stars are shown.


The question is ~ Will this Mod show all groups the user is a member of, or only the primary group and the post based group?


Thank You,
ZarPrime

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Regular Groups with both Post Count Based Groups
« Reply #29 on: April 08, 2010, 10:09:16 AM »
I think it's only post count + primary group badges. If you want truly multiple, check out the Stars and Badges mod.
No good deed goes unpunished
All helpful urges should be circumvented

Offline llmfit

  • Newbie
  • *
  • Posts: 8
Re: Regular Groups with both Post Count Based Groups
« Reply #30 on: September 10, 2013, 01:24:04 PM »
I need this mod but fails to install in SMF 2.0.5 (emulate 2.0 RC1)
hxxp:www.pikky.net/uploads/473e8382b94a2632245221692e605f0e88714a84.PNG [nonactive]

Code: (Find) [Select]
'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]),

Code: (Replace) [Select]
'post_group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['pg_stars'][1]) ? $settings['images_url'] . '/' . $profile['pg_stars'][1] : '') . '" alt="*" border="0" />', empty($profile['pg_stars'][0]) ? 0 : $profile['pg_stars'][0]),
'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]),

Offline llmfit

  • Newbie
  • *
  • Posts: 8
Re: Regular Groups with both Post Count Based Groups
« Reply #31 on: September 11, 2013, 02:26:59 PM »
mmm I think I found the solution...the string exists but here is the difference:

Code: (./Source/Load.php original) [Select]
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
Code: (Wrong search string for smf 2.0.5) [Select]
'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]),
The only difference is
Code: [Select]
border="0". I get rid of this manually ... however you should fix it ;)