vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   /me - irc feature (https://vborg.vbsupport.ru/showthread.php?t=93171)

Andreas 08-09-2005 10:23 PM

It's an addition to fix the Quote-Issue; the other Code is still required to handle /me outside Quotes

Boofo 08-09-2005 10:28 PM

Ok, well, it doesn't work. It still shows /me in the quotes and well as editing. But I am using my code that I posted in this thread for hellsatan. Should I be using Dean's?

Andreas 08-09-2005 10:31 PM

It shows /me if the Quote does not have a Username.
In Quotes that have a Username it should show this (at least this it was it does for me ;)).

In the Code I posted abobe, the space between & and #47; must be removed.
Seems like I can't post it this way it it will come up as / ;)

Boofo 08-09-2005 10:35 PM

Here's what I get.

Andreas 08-09-2005 10:37 PM

Hmm ... if you want /me substituted with the Posters Name in the Editor this would require other changes.

Boofo 08-09-2005 10:53 PM

Quote:

Originally Posted by KirbyDE
Hmm ... if you want /me substituted with the Posters Name in the Editor this would require other changes.

The second pic was a quote reply. ;)

Christine 08-09-2005 10:56 PM

Is there any way of grabbing the quote already parsed?

Boofo 08-09-2005 10:59 PM

Quote:

Originally Posted by KirbyDE
It shows /me if the Quote does not have a Username.
In Quotes that have a Username it should show this (at least this it was it does for me ;)).

In the Code I posted abobe, the space between & and #47; must be removed.
Seems like I can't post it this way it it will come up as / ;)

Still doesn't work for some reason, and I took the space out.

Boofo 08-13-2005 03:20 AM

Quote:

Originally Posted by KirbyDE
An idea for the Quote Issue:
Hook: bbcode_create
PHP Code:

$this->tag_list['option']['quote']['callback'] = 'handle_external';
$this->tag_list['option']['quote']['external_callback'] = 'me_quote_handler';
$this->tag_list['no_option']['quote']['callback'] = 'handle_external';
$this->tag_list['no_option']['quote']['external_callback'] = 'me_quote_handler';
 
if (!
function_exists('me_quote_handler'))
{
    function 
me_quote_handler(&$parser$message$username)
    {
        if (
$username)
        {
            
$message preg_replace('#^(([ \t]|\[[a-z]+[^\]]*\])*)/me[ \t](.*)$#Uim''<b><font color=red>* ' $username ' $3</font></b>'$message);
        }
        else
        {
            
$message preg_replace('#^(([ \t]|\[[a-z]+[^\]]*\])*)/me[ \t](.*)$#Uim''& #47;me $3'$message);
        }
        return 
$parser->handle_bbcode_quote($message$username);
    }



No wonder this doesn't work! This is using code from your quote callback mod. ;)

PHP Code:

$this->tag_list['option']['quote']['callback'] = 'handle_external';
$this->tag_list['option']['quote']['external_callback'] = 'me_quote_handler';
$this->tag_list['no_option']['quote']['callback'] = 'handle_external';
$this->tag_list['no_option']['quote']['external_callback'] = 'me_quote_handler'


utw-Mephisto 09-04-2005 02:14 PM

I was trying to read through that post and haven't figured out how to install it on RC2 and IF this is working or now ...

Any suggestions / clues ?


All times are GMT. The time now is 06:07 PM.

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.01986 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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