vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   ADMIN.POSTS.IN.BOLD.US.VBBFR-Elie (https://vborg.vbsupport.ru/showthread.php?t=30510)

10-15-2001 09: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 :
---------------------------------------
Code:

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

PHP Code:

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

-> Remplace with

PHP Code:

// global options
global $showdeficon,$showonline,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages,$adminpostbold


<- Find

PHP Code:

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

-> Add just before it

PHP Code:

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

[VbbFr]Elie 10-16-2001 09:54 AM

Forget the file ...

Razzie 10-16-2001 05:42 PM

Quote:

Originally posted by [VbbFr]Elie
Forget the file ...
OK, forgotton ;)

Nice Hack BTW.

badmeetsevil- 10-16-2001 05:47 PM

Why have this hack? Anyone could disguise themselves as an Admin by just using the bold command.

Night Demon 10-16-2001 06:05 PM

Not if you disable the bold command. :p

Razzie 10-16-2001 08:13 PM

Theres nothing stopping you from replaceing the <b> tag with some other HTML tag, like hightlighting for instance.

floleb7 10-16-2001 08:24 PM

with html off and [b] tag remove you can't use bold


All times are GMT. The time now is 11:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02210 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete