PDA

View Full Version : ADMIN.POSTS.IN.BOLD.US.VBBFR-Elie



[VbbFr]Elie
Tue 16th Oct '01, 8:53am
---------------
Description : |
---------------
This hack will permet you to choose if yes or no you want admin's posts are appearing in bold

--------------
Screenshot : |
--------------








---------------
Installation : |
---------------

Launch it in PHPmyAdmin :
---------------------------------------

INSERT INTO setting VALUES ( 'null', '8', 'Admin Post Is Appear In Bold', 'adminpostbold', '0', 'Do you want admin\'s posts are appearing in bold ?', 'yesno', '10');

In admin/function.php :
-----------------
<- Find


// global options
global $showdeficon,$showonline,$displayemails,$enablepms ,$allowsignatures,$wordwrap,$dateformat,$timeforma t,$logip,$replacewords,$postsperday,$avatarenabled ,$registereddateformat,$viewattachedimages;

-> Remplace with


// global options
global $showdeficon,$showonline,$displayemails,$enablepms ,$allowsignatures,$wordwrap,$dateformat,$timeforma t,$logip,$replacewords,$postsperday,$avatarenabled ,$registereddateformat,$viewattachedimages,$adminp ostbold;


<- Find


if (!$ignore[$post[userid]]) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
}
return $retval;

-> Add just before it


if(($adminpostbold==1) AND ($post[usergroupid]==6)) { $post[message]="<b>".$post[message]."</b>"; } else { $post[message]
="".$post[message].""; }



Now you have just to check if you want or no to affich admin's post in bold

---------------
My Opinion : |
---------------
It simple to see which posts are important :) Tant's all ...

Note : 8/10


Hack by Elie
Thanks to Zantan for his help
Thanks to Renaud etand is great job
And at all the staff of vBulletin-France (http://www.vbulletin-france.com)

[VbbFr]Elie
Tue 16th Oct '01, 8:54am
Forget the file ...

Raz Meister
Tue 16th Oct '01, 4:42pm
Originally posted by [VbbFr]Elie
Forget the file ... OK, forgotton ;)

Nice Hack BTW.

badmeetsevil-
Tue 16th Oct '01, 4:47pm
Why have this hack? Anyone could disguise themselves as an Admin by just using the bold command.

Night Demon
Tue 16th Oct '01, 5:05pm
Not if you disable the bold command. :p

Raz Meister
Tue 16th Oct '01, 7:13pm
Theres nothing stopping you from replaceing the <b> tag with some other HTML tag, like hightlighting for instance.

floleb7
Tue 16th Oct '01, 7:24pm
with html off and [b] tag remove you can't use bold