vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   BBCode for Registered Members Only Hack (https://vborg.vbsupport.ru/showthread.php?t=77456)

Deaths 03-03-2005 10:00 PM

BBCode for Registered Members Only Hack
 
This has been requested a couple of times, so here it is!

With this hack, you can deny certain usergroups to see the following BB Codes:
  • Code
  • HTML
  • PHP

It's a very easy mod, it requires 1 new template, and a couple of new lines in 1 file. (Optionally an edit in a 2nd file, depending on your settings)

Find instructions in the install.html file.

If the results are displayed wrong, try making the changes in fixerror.txt

Marco van Herwaarden 03-04-2005 11:35 AM

Doest this hack also hide code etc in the preview balloons?

Deaths 03-04-2005 11:38 AM

If you make the last(optional) edit, I believe it does hide it.

Guy G 03-04-2005 02:07 PM

its like what you have here at vb.org right?

Deaths 03-04-2005 02:22 PM

Yes, it is.

Acers 03-12-2005 01:04 PM

hi, I was actually trying to modify this hack a bit using conditionals. I want to make the tag visible only for people with +10 posts and more. So added the following code(In place of the code actually given
Code:

if ($bbuserinfo[posts] > 10)
        {
        eval('$html = "' . fetch_template('bbcode_code') . '";');
        }
        else{
        eval('$html = "' . fetch_template('bbcode_guest') . '";');

        } return $html;

With same templates.
Now the prob is that while the code is working normally, If a user quotes the text or sees archive, He can see the code.
I reckon that while replying i will have to strip code based on <if> conditional. Any help with making that strip function?

Deaths 03-13-2005 02:39 PM

Thank you for pointing that out.

Updated the first post with the fix.

akanevsky 05-07-2005 02:25 PM

Nice hack, will instal.

Deaths 05-07-2005 06:15 PM

Glad I could be of help :).

Crazy Serb 10-02-2005 06:20 PM

any update on this for vb3.5?


All times are GMT. The time now is 08:31 AM.

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.01055 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete