Welcome, Guest. Please Login or Register.
November 22, 2017, 02:22:41 AM
Home Help Search Login Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Topic: Member Groups « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Member Groups  (Read 12024 times)
GR8X
Noobie
*
Posts: 16


Quote me happy!


WWW
Member Groups
« on: March 10, 2004, 01:20:25 PM »
Reply with quote

Just a couple things I would hope you can help me with...
  • Is it possible to add more member groups that are defined by how much karma you have?
  • Is it possible to enable ubbc code on member group names?
  • Is it possible to restrict boards to certain member groups?
Regards, Andy Wilson  ;)
« Last Edit: March 10, 2004, 01:27:16 PM by GR8X » Logged

- PS. YabbSE Rules

http://www.flashpointfx-studios.com
My Operation Flashpoint Website (*under construction*)
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.


WWW
Re:Member Groups
« Reply #1 on: March 10, 2004, 02:09:31 PM »
Reply with quote

The first 2 are not currently possible in YaBBSE and would require a mod.

The third however is in YaBBSE. Just create a membergroup. Then go into the section to manage categories. Then place that group in the categories access part and then that category will only be accessable by that group.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten


WWW
Re:Member Groups
« Reply #2 on: March 10, 2004, 08:54:49 PM »
Reply with quote

If you aren't scared of messing with the code, open up Load.php and check out how things are defined for membergroups based on posts.

I modded a friend's board to make all their membergroups karma based instead of post based.  It was really easy.

Here is an example:

Code: [Select]
   if ($userprofile[$user]['posts'] > $GodPostNum)
   {
      $memberinfo[$user] = "$membergroups[6]";
      $memberstar[$user] = "<img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" />";
   }


you could change it to something like this:

Code: [Select]
if (($userprofile[$user]['karmaGood'] - $userprofile[$user]['karmaBad']) > 120)
   {
      $memberinfo[$user] = $txt[rank6];
   }
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
GR8X
Noobie
*
Posts: 16


Quote me happy!


WWW
Re:Member Groups
« Reply #3 on: March 11, 2004, 03:22:26 AM »
Reply with quote

Chars, I'll try that! Oh and do uz know how to make more member groups like God, Junoir member, ect.
(the ones based around how many posts u have, or in my case karma?)
Logged

- PS. YabbSE Rules

http://www.flashpointfx-studios.com
My Operation Flashpoint Website (*under construction*)
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten


WWW
Re:Member Groups
« Reply #4 on: March 11, 2004, 11:13:03 AM »
Reply with quote

Looking more at Load.php...  Notice how under GodPostNum there is another line that looks like this:

Code: [Select]
   elseif ($userprofile[$user]['posts'] > $SrPostNum)
   {
      $memberinfo[$user] = "$membergroups[5]";
      $memberstar[$user] = "<img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/star.gif\" border=\"0\" alt=\"*\" />";
   }

Well you can add more lines similar to that.  Where is says $memberinfo[user] is where it defines what title they will get... in this case, it is $membergroups[5], which will be whatever you decided to name your Sr Post group.
Just copy and paste the existing membergroups in Load.php and then edit them to suit what you want.  You have to realize, however, that you will have to hardcode in the numbers that determine how much karma they need to get a certain title.

You could make it so you can change the numbers in modsettings, but that would be a lot more difficult than just hardcoding them in.

Here is an example:

Code: [Select]
   /* create the memberinfo and memberstars entries */
   if (($userprofile[$user]['karmaGood'] - $userprofile[$user]['karmaBad']) > 800)
   {
      $memberinfo[$user] = $txt[rank27];
   }
   elseif (($userprofile[$user]['karmaGood'] - $userprofile[$user]['karmaBad']) > 700)
   {
      $memberinfo[$user] = $txt[rank26];
   }
   elseif (($userprofile[$user]['karmaGood'] - $userprofile[$user]['karmaBad']) > 680)
   {
      $memberinfo[$user] = $txt[rank25];
   }
   elseif (($userprofile[$user]['karmaGood'] - $userprofile[$user]['karmaBad']) > 650)
   {
      $memberinfo[$user] = $txt[rank24];
   }
   elseif (($userprofile[$user]['karmaGood'] - $userprofile[$user]['karmaBad']) > 620)
   {
      $memberinfo[$user] = $txt[rank23];
   }
   elseif (($userprofile[$user]['karmaGood'] - $userprofile[$user]['karmaBad']) > 590)
   {
      $memberinfo[$user] = $txt[rank22];
   }

Just make sure that the first one says if and the rest say elseif except for the very last one would should just say else not elseif.

I hope I explained that well enough, if not let me know and I'll try to help you out.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
GR8X
Noobie
*
Posts: 16


Quote me happy!


WWW
Re:Member Groups
« Reply #5 on: March 11, 2004, 03:04:56 PM »
Reply with quote

Nope, done exactly what u sed but nothing is happening.
Perhaps u could send me the load.php with these features included in it as this would be very useful to me.  ;)

Can u send attachments on here? If not just send it to my e-mail address.

THANX Anyway  ;D
Logged

- PS. YabbSE Rules

http://www.flashpointfx-studios.com
My Operation Flashpoint Website (*under construction*)
GR8X
Noobie
*
Posts: 16


Quote me happy!


WWW
Re:Member Groups
« Reply #6 on: March 13, 2004, 05:59:41 PM »
Reply with quote

Can someone please make me a copy of this. It's very urgent!!!
Just the general load.php with no mods attached.

PLEASE HELP!!!
Logged

- PS. YabbSE Rules

http://www.flashpointfx-studios.com
My Operation Flashpoint Website (*under construction*)
GR8X
Noobie
*
Posts: 16


Quote me happy!


WWW
Re:Member Groups
« Reply #7 on: March 19, 2004, 05:21:44 PM »
Reply with quote

YUS!!!
Got it sorted now! Thanks alot shadows Pawn!!!  ;D
Logged

- PS. YabbSE Rules

http://www.flashpointfx-studios.com
My Operation Flashpoint Website (*under construction*)
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Topic: Member Groups « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.0.12 | SMF © 2016, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.042 seconds with 19 queries.