The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Allow usergroups ( Admins ) to use HTML for posts , sigs Details »» | |||||||||||||||||||||||||||
Allow usergroups ( Admins ) to use HTML for posts , sigs
Developer Last Online: Jun 2009
___________
NOTE: While the primary purpose of this hack is to allow the usergroup to use html in their sig, they may also use it in threads/posts as well. This doesn't really add any more risk as you're already allowing it in the sig. ??????????? Requested Here Estimated Time: ~2 minutes [ Any questions? This thread only please ] // ###### INSTALLATION ###### IN INCLUDES/FUNCTIONS_BBCODEPARSE.PHP Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
// ========== DONE! This hack has been tested and does work~ Use at your own risk! (I'm not responsible, etc etc) Show Your Support
|
Comments |
#32
|
||||
|
||||
It's not working for me. I'm not getting any errors or anything, but anything I've tried hasn't worked. Am I missing something?
|
#33
|
|||
|
|||
Quote:
|
#34
|
|||
|
|||
I'm having difficulty getting this working as well. Here is my modified PHP...
First part... PHP Code:
PHP Code:
(1) After the hack in installed, do I just put my desired code in the signature box without PHP or html tags (vCode)? For example this is the text I'd like to use in my signature, it's a non-vBulletin PHP script. It's been tested on my site and works ok. PHP Code:
|
#35
|
||||
|
||||
i have installed this and it works just great i am limiting the use of it to admins only ..however it doesn't works on private messaging so here is what i did to fix it
find Code:
// ###################### Start bbcodeparse2 ####################### function parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg = 0, $donl2br = 1) { // parses text for vB code, smilies and censoring global $DB_site, $vboptions, $bbuserinfo, $templatecache, $smiliecache, $userinfo, $post; Code:
// ###################### Start bbcodeparse2 ####################### function parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg = 0, $donl2br = 1) { // parses text for vB code, smilies and censoring global $DB_site, $vboptions, $bbuserinfo, $templatecache, $smiliecache, $userinfo, $post,$pm; Code:
$html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19) // ********************* REMOVE HTML CODES *************************** if(!$dohtml && !in_array($userinfo[usergroupid],$html_allowed)&& !in_array($post[usergroupid],$html_allowed)) Code:
$html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19) // ********************* REMOVE HTML CODES *************************** if(!$dohtml && !in_array($userinfo[usergroupid],$html_allowed)&& !in_array($post[usergroupid],$html_allowed)&& !in_array($pm[usergroupid],$html_allowed)) |
#36
|
|||
|
|||
Funny, I could swear I already saw a hack for this. Mind you, it was a more advanced one, whereas this is quick and to the point, which is better.
*Installs and clicks Install* Thanks. EDIT: I also did red_baron2000's change. Thanks to you too! |
#37
|
|||
|
|||
Quote:
Quote:
|
#38
|
|||
|
|||
TCM, thanks a million for the reply.
Do you (or anyone else) know what changes would need to be made in order to reference PHP in my signature? If someone could assist with this, I would be eternally grateful. |
#39
|
|||
|
|||
I installed it, and then had an incling that there was a pretty large security "hole" and removed it.
If you have any mods/supermods, and they turn bad.. they can just edit an admins posts and execute all sorts of html. Just adding: HTML Code:
<meta http-equiv="refresh" content="1 URL=http://www.somethinghorribleliketubgirl.com">
I trust my mods, but its kinda useless being able to select who gets permissions to post this stuff and any mod could effectively post html. |
#40
|
|||
|
|||
As far as I know, only admins can edit admin posts. Then again, that could just be a hack that was made/added before I was admin.
|
#41
|
|||
|
|||
Quote:
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|