Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 05-23-2008, 01:07 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aibon View Post
to disable custom bbcodes in the signature add this hook:

Hook bbcode_parse_start
PHP Code:
if ($forumid=='signature')
{
    unset(
$this->tag_list['no_option']['youtube']);

that's a example for a custom bbcode tagged youtube with no option. if you have a tag with options use option instead if no_option. to disable more just add more lines with the tags.

Important
because signatures are precached, you have to do the following:
disable and then enable bbcodes in the usergruppermissions after adding the plugin to clear the cache!
Now the custom tags also don't work in the posts??
Reply With Quote
  #12  
Old 05-23-2008, 01:13 PM
aibon aibon is offline
 
Join Date: Mar 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, this is intended to work only in signature...

unfortunately there has been reported problems with older vbulletin versions. i dont have time to look into this, i suggest to try:

Quote:
if ($forumid === 'signature')
Reply With Quote
  #13  
Old 05-23-2008, 01:52 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm running 3.7 and still doesn't work like intended, also not with ===
Reply With Quote
  #14  
Old 05-30-2008, 11:28 AM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone who can make this work??? Shouldn't be to much work if you understand the code?
Reply With Quote
  #15  
Old 05-30-2008, 11:31 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try:
PHP Code:
if(!intval($forumid)) 
As the condition.

Edit: Hang on I'll need to do some testing.

--------------- Added [DATE]1212151215[/DATE] at [TIME]1212151215[/TIME] ---------------

That plugin posted should work... what is problem with it?
Reply With Quote
  #16  
Old 06-10-2008, 06:43 AM
Greg-J Greg-J is offline
 
Join Date: Jul 2006
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should be fine:

PHP Code:
if (THIS_SCRIPT == 'profile')
{
    unset(
$this->tag_list['no_option']['youtube']);

Reply With Quote
  #17  
Old 06-10-2008, 10:22 PM
dutchbb dutchbb is offline
 
Join Date: Nov 2003
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post

That plugin posted should work... what is problem with it?
The custom BBCode also don't work in posts when its enabled.

Quote:
Originally Posted by Greg-J View Post
This should be fine:

PHP Code:
if (THIS_SCRIPT == 'profile')
{
    unset(
$this->tag_list['no_option']['youtube']);

Nope, does nothing for me.
Reply With Quote
  #18  
Old 07-03-2008, 10:26 AM
RTO RTO is offline
 
Join Date: May 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Guys,

I'm having the same problem. Running version 3.7.1 and using the following code in the bbcode_parse_start hook.

PHP Code:
if ($forumid==='signature')
{
    unset(
$this->tag_list['no_option']['youtube']);

I've also tried the if (THIS_SCRIPT == 'profile') and if(!intval($forumid)) suggestions, but to no avail!

The tag is called 'youtube' with no option (eg: [youtube](videocode)[/youtube]).

When I activate the plugin it does stop it being used in signatures, but also skips this tag being parse on any new posts made on the forum.

Any thoughts? I can provide other info if needed

Thanks in advance,

Robin
Reply With Quote
  #19  
Old 10-23-2008, 05:58 PM
6impy 6impy is offline
 
Join Date: Oct 2001
Location: Seattle
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone figure this one out
Reply With Quote
  #20  
Old 03-05-2010, 11:29 AM
jacobomoya jacobomoya is offline
 
Join Date: Nov 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to know how could we perform this, too, it's too bad custom BBCode can't be controlled. I also find strange that nobody has come up with a solution in all these years.
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 07:36 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.04313 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
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
  • (5)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete