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)

TECK 05-01-2002 03:39 AM

Quote:

Originally posted by FireFly
[high]* nakkid runs fast
there is a little bug firefly, you can see it for yourself... the original / me code is replaced by my own name... ;)
[/high]
however is easy to fix it... do this:
find:
PHP Code:

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


replace it with:
PHP Code:

if ($dome) {
  global 
$post,$originalposter;
  
$bbcode preg_replace('#^/me (.*)$#im'"<font color=\"#FF9C58\">* $post[username] \\1</font>"$bbcode);
  if (
$bbcodeid==6) {
    
$bbcode preg_replace('#^/me (.*)$#im'"<font color=\"#FF9C58\">* $originalposter \\1</font>"$bbcode);
  }


ouuuupss i forgot a dollar.. ;) fixed.

TECK 05-01-2002 03:43 AM

this is wierd? why it shows large font in the post above?
Quote:

however is easy to fix it... do this:
find:
i never select it and when i look at "edit post", there is normal text in there.. hmmm...

DWZ 05-01-2002 03:57 AM

just tried that nakkid...

But it comes up like this on my forum:
Quote:

* DWZ 
When I edit the post, you know, see whats there, i see:
Code:

/me tests new hack
Link: http://www.consoleradar.com/forums/s...id=385#post385

Any ideas?

TECK 05-01-2002 04:06 AM

Code:

if ($dome) {
  global $post,$originalposter;
  $bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"#FF9C58\">* $post[username] \1</font>", $bbcode);
  if ($bbcodeid==6) {
    $bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"#FF9C58\">* $originalposter \1</font>", $bbcode);
  }
}

it helps if i add a $.. lol. try it and let me know.

MarkG 05-01-2002 09:01 AM

nakkid, if it works on 2.2.5 it doesnt on 2.0.3

Mark Hewitt 05-01-2002 09:05 AM

[high]* Mark Hewitt slaps FireFly around a bit with a large trout :D[/high]

TECK 05-01-2002 09:08 AM

Quote:

Originally posted by MarkG
nakkid, if it works on 2.2.5 it doesnt on 2.0.3
hmm... i didnt try it, i went with the logic...
[high]* nakkid waits for firefly to hit him with the illogic bat... :)[/high]

Chris M 05-01-2002 09:20 AM

[high]* Chris M thinks that nakkid has a point, and awaits FireFly's repsonse...
[/high]

/me's alter-ego agrees wholeheartedly...

:D

I would say it would not, but if you do try it, make sure you backup the files you edit!

Satan

Admin 05-01-2002 10:08 AM

Ok, fixed the bug, see post #1 for the fix.
It invloves editing newreply.php, BTW. Nakkid, I'd love to tell you what's wrong but I really don't know what you tried to do with your code... what's that $bbcodeid variable?

DWZ 05-01-2002 10:32 AM

Quote:

Originally posted by FireFly
Ok, fixed the bug, see post #1 for the fix.
It invloves editing newreply.php,

great, that worked :D

thanks :)

EDIT: been having a look, and im finding that when someone replies, it will say the person who original said, did that thing, but all the color is gone... you follow? this is what i mean: http://www.consoleradar.com/forums/s...id=399#post399 the post above that is what i said to start off with...

Now, I also just tested PMs, its basically the reverse, I have the original problem with it saying the person who wrote the reply is doing the action, yet it is in color.


All times are GMT. The time now is 08:39 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.01355 seconds
  • Memory Usage 1,749KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)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