Welcome, Guest. Please Login or Register.
November 28, 2024, 10:55:31 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Add New Stars For New Membergroup Members « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Add New Stars For New Membergroup Members  (Read 1855 times)
Mr Hister
Noobie
*
Posts: 22


Guess why I've got a smile on my face.

WWW
Add New Stars For New Membergroup Members
« on: October 09, 2003, 04:14:16 AM »
Reply with quote

YaBB SE Version:
PHP Version:
MySQL Version:
Server Platform:
Link to Forum:

Problem Description:
Can this be done? I've got a new member group going and I'd like to be able to ID them with different colored stars. Same ranking system, just different stars.

Can ya help a brotha out?
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Add New Stars For New Membergroup Members
« Reply #1 on: October 09, 2003, 08:57:14 AM »
Reply with quote

Umm... currently, this is not possible.  There may be a mod for it...

-[Unknown]
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Add New Stars For New Membergroup Members
« Reply #2 on: October 09, 2003, 11:23:01 PM »
Reply with quote

You'll have to hack load.php.

Look for this code

   elseif ($userprofile[$user]['memberGroup'] == 'Global Moderator')
   {
      $memberstar[$user] = "<img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" />";
      $memberinfo[$user] = "<b>$membergroups[7]</b>";
   }


Copy that entire block and paste it immediately afterward, changing the title of the membergroup to your membergroup's title, then change the starmod.gif to whatever star you are assigning to your membergroup.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Add New Stars For New Membergroup Members
« Reply #3 on: October 09, 2003, 11:32:38 PM »
Reply with quote

Quote from: Shadow's Pawn on October 09, 2003, 11:23:01 PM
$memberinfo[$user] = "<b>$membergroups[7]</b>";

Don't forget to change the index for the $membergroups array as well!
Logged

Mr Hister
Noobie
*
Posts: 22


Guess why I've got a smile on my face.

WWW
Re:Add New Stars For New Membergroup Members
« Reply #4 on: October 10, 2003, 05:33:12 AM »
Reply with quote

That's what I was thinking. so....
$memberinfo[$user] = "<b>$membergroups[7]</b>";

would become

$memberinfo[$user] = "<b>$membergroups[8]</b>";

$memberinfo[$user] = "<b>$membergroups[9]</b>";

$memberinfo[$user] = "<b>$membergroups[10]</b>";

for each new member group right?

And will this same method work for adding a new level of stars? 1000 posts=6 stars?




« Last Edit: October 10, 2003, 06:15:05 AM by mrhister » Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Add New Stars For New Membergroup Members
« Reply #5 on: October 10, 2003, 06:31:59 AM »
Reply with quote

Well, there is a add more post groups mod.... somewhere on Completed Mods.

-[Unknown]
Logged
Mr Hister
Noobie
*
Posts: 22


Guess why I've got a smile on my face.

WWW
Re:Add New Stars For New Membergroup Members
« Reply #6 on: October 10, 2003, 08:04:30 AM »
Reply with quote

Quote from: [Unknown] on October 10, 2003, 06:31:59 AM
Well, there is a add more post groups mod.... somewhere on Completed Mods.

-[Unknown]

There were a couple of interesting mods but I like to hand code stuff. I just started with PHP and the more I hand code the more I learn of the structure. From what I've tried so far, adding another level of post stars seems to be far more complicated than assing stars to new member groups.

So far no luck in adding the new post level. I'm trying to find the directory so the level will show up in the Forum Preferences and Settings area.

Any help on this would be great!!!

Logged

Mr Hister
Noobie
*
Posts: 22


Guess why I've got a smile on my face.

WWW
Re:Add New Stars For New Membergroup Members
« Reply #7 on: October 10, 2003, 10:01:58 AM »
Reply with quote

Quote from: Shadow's Pawn on October 09, 2003, 11:23:01 PM
You'll have to hack load.php.

Look for this code

   elseif ($userprofile[$user]['memberGroup'] == 'Global Moderator')
   {
      $memberstar[$user] = "<img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/stargmod.gif\" border=\"0\" alt=\"*\" />";
      $memberinfo[$user] = "<b>$membergroups[7]</b>";
   }


Copy that entire block and paste it immediately afterward, changing the title of the membergroup to your membergroup's title, then change the starmod.gif to whatever star you are assigning to your membergroup.

Good call. The only problem now is that there is a double group title for the people with the new stars.

Here is a link to one thread that has all three people from the different groups (I'm still working on the new star gifs)
http://www.autvonline.com/yabbse/index.php?board=1;action=display;threadid=25
Logged

Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Add New Stars For New Membergroup Members
« Reply #8 on: October 10, 2003, 01:45:16 PM »
Reply with quote

Still in Load.php


if ($userprofile[$user]['memberGroup'] != "" && $userprofile[$user]['memberGroup'] != 'Administrator' && $userprofile[$user]['memberGroup'] != 'Global Moderator')
$groupinfo[$user] = $userprofile[$user]['memberGroup'] . "<br />";


Add your membergroup to the statement here.  i.e. say && $userprofile[$user]['memberGroup'] != NewMemberGroup'
and put that right after the statement for Global Moderators but before the )
Logged

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


Guess why I've got a smile on my face.

WWW
Re:Add New Stars For New Membergroup Members
« Reply #9 on: October 10, 2003, 09:46:36 PM »
Reply with quote

It seemd to work like a charm. Everytime I tinker with the script I go through the whole board to make sure everything is doing all right and so far it looks good.

much better than a mod and I'm getting my PHP learn on!! Oh yeah!!!

Thanx a million Shadow!

I'll be posting a question about my news fader pretty soon unless I can figure it out on my own  ;D
Logged

Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Add New Stars For New Membergroup Members
« Reply #10 on: October 10, 2003, 11:21:54 PM »
Reply with quote

You are using the news fader and not just the news tag, right?  Have you tried reuploading fader.js?
Logged

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


Guess why I've got a smile on my face.

WWW
Re:Add New Stars For New Membergroup Members
« Reply #11 on: October 11, 2003, 01:53:04 AM »
Reply with quote

I'm using both. Wouldn't mind getting rid of the tag though.

I haven't tride to reload the java...let me try that. It's always the little things that get over looked first!  ;)
Logged

Mr Hister
Noobie
*
Posts: 22


Guess why I've got a smile on my face.

WWW
Re:Add New Stars For New Membergroup Members
« Reply #12 on: October 11, 2003, 01:57:27 AM »
Reply with quote

Ok. re loaded the js and the fader is still kind of jumpy. maybe it's just me but it seems kind of off.

And the thing about adding another catagory of stars is kiling me. I've been going over admin.php and it seems like a bulk of it can be changed in the member Control section of admin.php. It looks like all I have to do is add another level to get ratings higher then GodPost. But then I ran into this and it kind of shut me down.....

size="2">' . $txt[591] . '</font></td>
                     <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="text" name="godmem" size="5" value="' . $GodPostNum . '" /></td>
                  </tr><tr>

Most of that is pretty basic and self explainitory except this....  $txt[591]

For most of the star changes you just have to add a new set but with that $txt[591] veriable I'm not sure what to do. Can I just cut and paste and change the GodPostnum values to what I want, and then put in a different value for $txt[591]? I'm really not sure what that variable is so I don't want to mess with it.

I know if anyone can help me it's you Shadow!! ;D
« Last Edit: October 11, 2003, 02:20:02 AM by Mr Hister » Logged

Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Add New Stars For New Membergroup Members
« Reply #13 on: October 11, 2003, 02:39:11 AM »
Reply with quote

I don't have a lot of time at the moment.. but I'll drop you a little message.

Don't even mess with that part that you quoted in your last post.  You just want to make a new membergroup and assign them different stars, correct?

What I posted so far will do that for you, all you have to do is change the stars to whatever stars you are going to use.  In the example I showed you, the stars were called stargmod.gif which is the global moderators stars.  If you don't want to use those stars, either upload your own star gif and change your new membergroup to use that star, or pick a different star from the other ones that already exist.

If you are trying to create more membergroups that are based on number of posts, then that requires some other things..

Also, remember that your new membergroup won't work until you assign it to some people.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Add New Stars For New Membergroup Members
« Reply #14 on: October 11, 2003, 02:39:48 AM »
Reply with quote

Also, if you get stumped, you could always just download the mod mentioned above and look at the code in the mod, it might give you an idea of what you need to do to get this working.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Add New Stars For New Membergroup Members « 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.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.044 seconds with 20 queries.