Welcome, Guest. Please Login or Register.
November 27, 2024, 12:33:33 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Team Icons ? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Team Icons ?  (Read 534 times)
edi67
Jr. Member
**
Posts: 97


I'm a llama!

Team Icons ?
« on: December 29, 2003, 10:23:37 PM »
Reply with quote

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

Problem Description:
i want know if is possibile put under the stars that identificate level of user one TEAM ICONS ( example, admin, mod, glob mod etc ) similar to invision forum.
So in every post every member that asnwer or make post have this TEAM icons in their description in left part of post.

thank for your help
Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Team Icons ?
« Reply #1 on: December 30, 2003, 01:01:06 AM »
Reply with quote

This shouldn't be difficult to do at all, but a complete list of the groups you want to do it for on your board would be helpful if you're looking for code that's ready to go!
Logged

Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Team Icons ?
« Reply #2 on: December 30, 2003, 01:35:18 AM »
Reply with quote

the stars and stuff are loaded in sources/load.php

look for the block of code that takes care of that and add what you want ;)
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:Team Icons ?
« Reply #3 on: December 30, 2003, 09:52:17 AM »
Reply with quote

thank i will try but im not so expert in this but i will try
thank again friends

Anguzzzzzz nice to see you visit me in forum i put spanish language too.
Logged

edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:Team Icons ?
« Reply #4 on: December 30, 2003, 01:26:06 PM »
Reply with quote

im not Able  :(
Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Team Icons ?
« Reply #5 on: December 30, 2003, 01:42:29 PM »
Reply with quote

Come back in about ten minutes and I'll post you some code! :)
Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Team Icons ?
« Reply #6 on: December 30, 2003, 01:53:15 PM »
Reply with quote

Make your icons, call them iconadmin.gif, icongmod.gif iconmod.gif etc. and stick them in your yabbse/images directory.

Search Load.php for:

  {
     $memberstar[$user] = "<img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" />";
     $memberinfo[$user] = "<b>$membergroups[0]</b>";
  }
  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>";
  }
  elseif ($sender != "im" &&  in_array($user, $moderators))
  {
     $modinfo[$user] = "<b>$membergroups[1]</b><br />";
     $memberstar[$user] = "<img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" />";
  }


And replace with:

  if ($userprofile[$user]['memberGroup'] == 'Administrator')
  {
     $memberstar[$user] = "<img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/staradmin.gif\" border=\"0\" alt=\"*\" /><br /><img src=\"$imagesdir/iconadmin.gif\" alt=\"\" />";
     $memberinfo[$user] = "<b>$membergroups[0]</b>";
  }
  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=\"*\" /><br /><img src=\"$imagesdir/icongmod.gif\" alt=\"\" />";
     $memberinfo[$user] = "<b>$membergroups[7]</b>";
  }
  elseif ($sender != "im" &&  in_array($user, $moderators))
  {
     $modinfo[$user] = "<b>$membergroups[1]</b><br />";
     $memberstar[$user] = "<img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><img src=\"$imagesdir/starmod.gif\" border=\"0\" alt=\"*\" /><br /><img src=\"$imagesdir/iconmod.gif\" alt=\"\" />";
  }


Note that you'll have to do the same for any additional groups you might have appointed, which is why I asked about them in my first reply.

<edit>Whoops... missed out ordinary mods (now fixed)!</edit>
« Last Edit: December 30, 2003, 02:00:18 PM by Peter Duggan » Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Team Icons ?
« Reply #7 on: December 30, 2003, 01:56:35 PM »
Reply with quote

PS The 'border' attributes for the stars in the existing code are not actually necessary because they're not hyperlinked, which is why I didn't add them to what I did!
Logged

edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:Team Icons ?
« Reply #8 on: December 30, 2003, 02:38:43 PM »
Reply with quote

WOW thank i will try quickly and thank again i will tell u soon if it work

THANKKKKKKKKKK
Logged

edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:Team Icons ?
« Reply #9 on: December 30, 2003, 02:46:15 PM »
Reply with quote

Thank friend it work very great

thank

all work ( admin, glob mod ) but for MODERATOR not work
« Last Edit: December 30, 2003, 02:57:58 PM by edi67 » Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Team Icons ?
« Reply #10 on: December 30, 2003, 04:20:37 PM »
Reply with quote

Quote from: edi67 on December 30, 2003, 02:46:15 PM
all work ( admin, glob mod ) but for MODERATOR not work

Leave it with me and I'll check it out, but bear in mind that, because the moderator stars are only shown for posts the moderator makes to boards which he/she *moderates*, the moderator icons from this code will behave likewise.
Logged

edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:Team Icons ?
« Reply #11 on: December 30, 2003, 06:04:57 PM »
Reply with quote

thank friend very nice u work for me
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Team Icons ? « 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.059 seconds with 21 queries.