Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2004, 04:48 PM
mikaelweb1 mikaelweb1 is offline
 
Join Date: May 2004
Location: Sweden
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom BB Codes

Custom BB Codes to hide hack from vbstyles.com

i have tested to get some info from vbstyles.com but support on that site is not upp and runing

can any one help me whit this
Reply With Quote
  #2  
Old 09-27-2004, 04:53 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dunno if hide hack allowed around but where is the problem ?
Reply With Quote
  #3  
Old 09-27-2004, 04:57 PM
mikaelweb1 mikaelweb1 is offline
 
Join Date: May 2004
Location: Sweden
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by miz
i dunno if hide hack allowed around but where is the problem ?
no only i now how to use it and i like to jave it like this and on vb code page to

i need this

Tag

Replacement
Reply With Quote
  #4  
Old 09-27-2004, 04:59 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you want me to code [hide] [/hide]
code that only on reply user can see the info inside the tags ?
Reply With Quote
  #5  
Old 09-27-2004, 05:02 PM
mikaelweb1 mikaelweb1 is offline
 
Join Date: May 2004
Location: Sweden
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by miz
you want me to code [hide] [/hide]
code that only on reply user can see the info inside the tags ?
i have that hide hack from vbstyles.com But i need Custom BB Code to it

now it will not be on my VB code page
Reply With Quote
  #6  
Old 09-27-2004, 05:12 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its weird you got only the function and not the bbcode this both supuse to be on the same php script

here is the bbcode addon :
open includes/functions_bbcodeparse.php
Code:
	// [HIGHLIGHT]
	$bbcodes['custom']['find']['[highlight]'] = '#\[highlight\](.*)\[/highlight\]#esiU';
	$bbcodes['custom']['replace']['[highlight]'] = "handle_bbcode_parameter('\\1', '" . str_replace("'", "\'", '<span class="highlight">\1</span>') . "')";
	$bbcodes['custom']['recurse']['highlight'][0] = array('replace_html' => "<span class=\"highlight\">\\7</span>");
below that add :

Code:
	// [HIDE]
	$bbcodes['custom']['find']['[hide]'] = '#\[hide\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/hide\]#esiU';
	$bbcodes['custom']['replace']['[hide]'] = "handle_bbcode_hide('\\2')";
	$bbcodes['custom']['recurse']['hide'][0] = array('handler' => 'handle_bbcode_hide');
and thats all - bbcode added
but you need to add function on this page, thats why im not sure your hack is working
Reply With Quote
  #7  
Old 09-27-2004, 05:17 PM
mikaelweb1 mikaelweb1 is offline
 
Join Date: May 2004
Location: Sweden
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have this code

functions_showthread.php

Look for: require_once('./includes/functions_bbcodeparse.php');
PHP Code:
// ##### [hide] [/hide] Start #####
require_once('./includes/functions_hide.php');
// ##### [hide] [/hide] End ##### 
and some to to it

but i need Custom BB Code to admincp
Reply With Quote
  #8  
Old 09-27-2004, 05:22 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
 // [HIDE]
	$bbcodes['custom']['find']['[hide]'] = '#\[hide\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/hide\]#esiU';
	$bbcodes['custom']['replace']['[hide]'] = "handle_bbcode_hide('\\2')";
	$bbcodes['custom']['recurse']['hide'][0] = array('handler' => 'handle_bbcode_hide');
this code add costum bbcode to forums
Reply With Quote
  #9  
Old 09-27-2004, 05:25 PM
mikaelweb1 mikaelweb1 is offline
 
Join Date: May 2004
Location: Sweden
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by miz
Code:
 // [HIDE]
	$bbcodes['custom']['find']['[hide]'] = '#\[hide\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/hide\]#esiU';
	$bbcodes['custom']['replace']['[hide]'] = "handle_bbcode_hide('\\2')";
	$bbcodes['custom']['recurse']['hide'][0] = array('handler' => 'handle_bbcode_hide');
this code add costum bbcode to forums
can it be done like this
tag: hide
Replacement : <HIDE>{param}</HIDE>
Example: <hide>Hide this text</hide>
Use {option} Yes or No ??
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:20 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.04868 seconds
  • Memory Usage 2,243KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete