vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   BBCode Parsing, Detect If Signature? (https://vborg.vbsupport.ru/showthread.php?t=293270)

Mohajer 12-25-2012 07:55 AM

BBCode Parsing, Detect If Signature?
 
I'm hooking bbcode_create and doing some things with the parsed URLs. Is there a way to detect if the bbcode is from a signature or from the post itself?

Thanks for any help.

kh99 12-25-2012 09:42 AM

I don't think you can know at hook bbcode_create. But when parse() is called, the forumid property ($this->forumid or $parser->forumid) will be set to 'signature'.

Mohajer 12-26-2012 02:44 PM

How to detect if this is whole user signature ?
i need something like this :

if (!$post['signature'])

Thank you .

kh99 12-26-2012 05:16 PM

I'm not sure what you're asking. What do you mean by the "whole user signature"?

Like I said above, I don't believe there's any way to know using hook bbcode_create, but if you explain what you're trying to do we might be able to figure out a way to do it.


All times are GMT. The time now is 08:02 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.01771 seconds
  • Memory Usage 1,703KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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