Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[HACK] Replace avatar of warned user in
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-08-15 16:19:46
Good morning

Replace the avatar of the user alerted by a warning avatar in the block login.



Open login_block and search:

print ("<center><img width=80 height=80 src=$avatar></center><br>" . DOWNLOADED . ": $userdownloaded<br>" . UPLOADED . ": $useruploaded<BR>" . ACCOUNT_PRIVACY_LV . ": $privacylevel<BR>". RATIO .": $userratio");
Replace with:


if ($CURUSER["warned"] != "no") { 

$warnedd = "<center><img width=128 height=128 src=images/warned_users.png border=0><br><blink><font color=#ff0000><b>Warning By Staff !</b></blink></font></center>";

print ("$warnedd");

} else {

print ("<center><img width=80 height=80 src=$avatar></center>");

}

print ("<br>" . DOWNLOADED . ": $userdownloaded<br>" . UPLOADED . ": $useruploaded<BR>" . ACCOUNT_PRIVACY_LV . ": $privacylevel<BR>". RATIO .": $userratio");


Uploader image warning in the dossier images.

warnedlogin.png
warnedlogin.png
Unknown User
2008-08-16 10:31:22
Great idea !

Thanks  :blink:
Unknown User
2008-08-19 23:07:08
Thanks for hack! Work fine. :blink:
Unknown User
2008-08-29 19:49:59
Gooooood working...greet thank you
Unknown User
2008-09-02 19:13:25
Hi, there I'm getting an error.

Parse error: syntax error, unexpected '<' in /homepages/12/********/htdocs/blocks/login_block.php on line 64


Here's my file, could you please check, I have already added what I'm suppose to replace.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2811"]login_block.php[/url]
login_block.php
Download
Unknown User
2008-09-02 19:39:31
"TheUnknown, post: 46120":
Hi, there I'm getting an error.


Parse error: syntax error, unexpected '<' in /homepages/12/********/htdocs/blocks/login_block.php on line 64


Here's my file, could you please check, I have already added what I'm suppose to replace.

This is your file or error is corrected.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=2812"]login_block.php[/url]
login_block.php
Download
Unknown User
2008-09-02 20:35:42
Just to make sure, this hack is to show this picture as the avatar whenever they get a warning for a low ratio?

I just tried the file that you gave it and it's still not working.

I uploaded the image on /images
Unknown User
2008-09-03 18:41:16
"TheUnknown, post: 46125":
Just to make sure, this hack is to show this picture as the avatar whenever they get a warning for a low ratio?
I just tried the file that you gave it and it's still not working.

I uploaded the image on /images
A member receiving a warning to his avatar replaced by the image.

I tested the file is working well, you put a warning to yourself and you will see   :) .
Unknown User
2008-09-03 20:20:09
I just looking to those that already a had a warning, shouldn't it work like that as well? Or will it work for those that get warnings after this is implemented?
2012-03-04 17:34:23
#1 , [font='comic sans ms'][size=12px]BIG THANKS[/font][/size]! :)
Unknown User
2013-09-11 21:21:04
if ($CURUSER["warned"] != "no") {
   $warnedd = "<center><img width=128 height=128 src=images/warned_users.png border=0><br><blink><font color=#ff0000><b>Warning By Staff !</b></blink></font></center>";
   print ("$warnedd");
} else {        
}
   print ("<center><img width='90' height='90' src='$avatar' alt='' /></center><br />" . T_("DOWNLOADED") . ": $userdownloaded<br />" . T_("UPLOADED") . ": $useruploaded<br />" .T_("CLASS").": ".T_($CURUSER["level"])."<br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel<br />". T_("RATIO") .": $userratio");

2013-09-13 04:32:27
with his picture gets better! lolll  :lol:

warned_users.png
warned_users.png

Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 8
  • Members: 0
  • Guests online: 8
  • Comments: 3
  • Messages: 1,728