vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   /me vB Code (https://vborg.vbsupport.ru/showthread.php?t=38069)

Logik 12-31-2002 06:15 PM

/me loves fireflys brilliance

:bandit: FireFly. How long have you been involved with PHP?

CookieGirl 01-29-2003 07:33 AM

I had to change the call to bbcodeparse() in showthread.php too. I didn't see that edit in the .txt file, but hey, it works, and I love it!

For those who are not getting it to work: just add ',1' to the parameters of the function call.

pugmy 02-04-2003 05:43 PM

/me tests it.

formerEVO? 02-17-2003 06:41 PM

/me scratched head

it doesnt work for me...i'm using 2.3.0 and most of the edited parts of adminfunctions are gone...HELP!

andyrose 02-24-2003 05:17 AM

[high]* andyrose installed this hack on 2.2.9 at www.neomega.net/forum, and it works great.[/high]

Kriek 03-02-2003 08:58 PM

It's working on 2.2.6 for me (Administrator), but NOT for my users.

Xyphen 03-04-2003 01:18 AM

/me says it works perfectly fine on vB2.3.0 and Thanks Chen!

Dan 03-06-2003 09:28 PM

/me clicks installs and loves it.

Great hack!

Seby 03-29-2003 08:27 AM

I installed it on 2.3.0 RC1 and it doesnt work :(

http://www.cscentral.com/forums/show...750#post179750

Boofo 03-30-2003 08:55 AM

Quote:

12-27-02 at 09:01 AM S@NL - Pascal said this in Post #170
Did anybody see that "/me" is not translated in any way if I look at the topic review when I do a post reply ?

I solved this by adding this code in newreply.php :
(I use the vBcode style [me=user] [/me] solution)

find in newreply.php :
PHP Code:

  $threadreviewbits '';
  while (
$post=$DB_site->fetch_array($posts)) {
    if (
$postcounter++ < $maxposts) { 

after this add :

PHP Code:

$post[pagetext] = preg_replace('#^/me(.*)$#im'"[me=$post[username]]\\1[/me]"$post[pagetext]); 

One other thing : I have a user with a ' in his name : B'Ram. The vBcode parser failes when [me=B'Ram] is used. How can this be solved ?

You need to add this instead of what you have there.

PHP Code:

$reviewmessage bbcodeparse($post[pagetext],$threadinfo[forumid],$post[allowsmilie],1); 

I have a member that has an apostrophe in their name and it works fine for me. The line you are using for the me code is all wrong. This is what it is supposed to be. There should be no me= in there.

PHP Code:

$bbcode preg_replace('#^/me (.*)$#im'"<font color=\"#FF9C58\">* $post[username] \\1</font>"$bbcode); 



All times are GMT. The time now is 07:43 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.01090 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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