[SOLVED]Include number of yellow cards beside users post

In fact this as a Image Image Image Image Red/yellow/Green and blue mod, also known as the ban user / repport post to moderator system

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

[SOLVED]Include number of yellow cards beside users post

Postby Niels on Sun 25. Aug, 2002 21:45

I have recived this request from a user, witch other users migth also will need the answer for, therefore I will answer here

Hi!

Let me first thx you 4 this very fine mod!!!!

Now with the newest version it works fine :)

But one question:

Is it posible to show ALL members the amoung of yellow cards a user got actually on the left in his post??? (over the avatar on somewhere else)

i tried to copy some code out of the admin-user-properties (where i can see the amoung of yellow cards) and paste it into the viewtopic_body.tpl...but it doesn´t work :(


i hope you can help me and sorry for my worst english ;)


Thx for your help,


Brain $ucker (Admin from usb.unix-freak.com)
Last edited by Niels on Wed 16. Apr, 2003 11:49, edited 2 times in total.
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Sun 25. Aug, 2002 22:00

first of all, the code you will have to add, is both for the viewtopic.php and the viewtopic_body.tpl

I haven't tested this, but you should be able doing it by doing this:
in lang_main.php
EDIT: code removed, - no longer valid - now included in the how-to

I guess this should do it, please repport back
Last edited by Niels on Wed 11. Dec, 2002 01:49, edited 5 times in total.
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby brainsucker on Sun 25. Aug, 2002 22:34

hey it´s the guy from the mail ;)

Ok thx for this add, it works fine but theres one little bug :o

I have to count -1...

this means if a user got 0 Cards your script says he got 1..

and if the user got 1, it says he has 2 :!:


What should i change... :?:
brainsucker
Poster
Poster
 
Posts: 1
Joined: Sun 25. Aug, 2002 22:30

Postby Niels on Mon 26. Aug, 2002 03:46

You are rigth, (I forgot that), I have updated the previus post, re-do the viewtopic.php once more
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby DoubleDoom on Tue 27. Aug, 2002 20:51

Nice add on although it shows when someone is banned (-1) as this user has -1 warnings.

Could that altered so that when -1 value it shows as user banned.
DoubleDoom
Poster
Poster
 
Posts: 21
Joined: Thu 22. Aug, 2002 20:42

Postby Niels on Wed 28. Aug, 2002 11:48

DoubleDoom wrote:Nice add on although it shows when someone is banned (-1) as this user has -1 warnings.

Could that altered so that when -1 value it shows as user banned.


you are so rigth, I have (still) not tested this add-on, but have now updated the code in viewtopic.php and lang_main.php to correct this
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby DoubleDoom on Wed 28. Aug, 2002 13:38

that works nicely. thanks

i added a <font color=yellow> to the yellow card text and red for the ban text just to give it a little more impact.
DoubleDoom
Poster
Poster
 
Posts: 21
Joined: Thu 22. Aug, 2002 20:42

Postby cado on Sat 28. Sep, 2002 06:15

I would like to put the image of the card instead of being written (at the request of the users of my forum), and I also find because it would be better to identify ;)

in case it is not possible, nor worry, of the way that is this MOD it is already very good! :D

thanks!
cado
Poster
Poster
 
Posts: 3
Joined: Sat 07. Sep, 2002 16:41
Location: Brazil

Next

Return to Yellow card [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron