PDA

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


10-15-2001, 10:00 PM
Elie]---------------
Description : |
---------------
This hack will permet you to choose if yes or no you want admin's posts are appearing in bold

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

http://eliescript.com.Free.fr/vbb/screenshot3.gif



http://eliescript.com.Free.fr/vbb/screenshot4.gif


---------------
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
10-16-2001, 10:54 AM
Forget the file ...

Razzie
10-16-2001, 06:42 PM
Originally posted by [VbbFr]Elie
Forget the file ... OK, forgotton ;)

Nice Hack BTW.

badmeetsevil-
10-16-2001, 06:47 PM
Why have this hack? Anyone could disguise themselves as an Admin by just using the bold command.

Night Demon
10-16-2001, 07:05 PM
Not if you disable the bold command. :p

Razzie
10-16-2001, 09:13 PM
Theres nothing stopping you from replaceing the <b> tag with some other HTML tag, like hightlighting for instance.

floleb7
10-16-2001, 09:24 PM
with html off and [b] tag remove you can't use bold