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)

FleaBag 06-19-2002 07:16 PM

Upgraded to 2.2.6 and working well, and thanks for the quote fix.

Boofo 06-19-2002 07:28 PM

Has anyone figured out why it takes on the new posters name in the private reply instead of the original poster's name? I did the fix (in 2 places) in the newreply.php and it works fine in the regular messages, just not in the private ones when quoting.

jonas 06-20-2002 04:47 AM

well... here is my prob... I am running a version modded between 2.2.1 and 2.2.6... there is a little of each in it... technically, it is 2.2.6.

When I go to run the .php it's just text... it doesn't run an install... when I do everything manually and perfectly, it doesn't work...

I even fixed the errors that were shown on the other thread... any suggestions?

Admin 06-20-2002 05:10 AM

Quote:

Originally posted by Boofo
Has anyone figured out why it takes on the new posters name in the private reply instead of the original poster's name? I did the fix (in 2 places) in the newreply.php and it works fine in the regular messages, just not in the private ones when quoting.
In private.php replace this:
Code:

    eval("\$message[message] = \"".gettemplate("priv_reply",1,0)."\";");
With this:
Code:

    $message['message'] = preg_replace('#^/me(.*)$#im', "* $fromuserinfo[username]\\1", $message['message']);
    eval("\$message[message] = \"".gettemplate("priv_reply",1,0)."\";");


Boofo 06-20-2002 05:37 AM

Ok, Chen, that fixed it for showing up in the private reply like it should, but I lost the color of it now. And it doesn't show up right in the private preview mode. Is that normal? (It shows up like this when I preview it.:

* likes this

instead of

* Boofo likes this.

Admin 06-20-2002 05:46 AM

Yes that's normal, but we can't fix that without a lot more hacking,.

Boofo 06-20-2002 05:49 AM

Thanks, Chen. At least I know it's not just me. :) How about the color? Any way to get that back?

Admin 06-20-2002 06:02 AM

Use this line:
Code:

    $message['message'] = preg_replace('#^/me(.*)$#im', "<font color=\"{timecolor}\">* $fromuserinfo[username]\\1</font>", $message['message']);

Boofo 06-20-2002 06:15 AM

That didn't work, Chen. :) It still doesn't have any color. Here's what I got when I tried to quote the message:

Boofo wrote on Today 2:05 am:
<font color="#FF9C58">* Boofo like this</font>

Admin 06-20-2002 06:20 AM

Try using instead of <font>.


All times are GMT. The time now is 02:23 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.01203 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_code_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