PDA

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


[VbbFr]Elie
16 Oct 2001, 12:53
---------------
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,$d ateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$register eddateformat,$viewattachedimages;

-> Remplace with

// global options
global $showdeficon,$showonline,$displayemails,$enablepms,$allowsignatures,$wordwrap,$d ateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$register eddateformat,$viewattachedimages,$adminpostbold;


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

Razzie
16 Oct 2001, 20:42
Originally posted by [VbbFr]Elie
Forget the file ... OK, forgotton ;)

Nice Hack BTW.

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

Night Demon
16 Oct 2001, 21:05
Not if you disable the bold command. :p

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

floleb7
16 Oct 2001, 23:24
with html off and [b] tag remove you can't use bold