vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   /you, /me, /youid, /myid Hack (https://vborg.vbsupport.ru/showthread.php?t=76245)

Deaths 02-19-2005 12:31 PM

Heh, yoyoyo, I know :)

Deaths 02-19-2005 12:48 PM

Thanks buro9, added it :)

MicroLinux? 03-01-2005 02:39 PM

hmm.. is there any reason why this would work when it wants? Like sometimes it works, other times it doesnt.. Sometimes it displays /me sometimes it displays that poster's id... sometimes it displays /you others it says the user's id whose looking at it.. Seems.... weird :/

Deaths 03-01-2005 02:45 PM

It should work like it should...

Your board is currently offline so I can't test it there, but it should work just fine...

If you can't find out if it works, send me a PM, and I'll look at it.

MicroLinux? 03-01-2005 04:15 PM

Its online now... go check it out.. plz

Deaths 03-02-2005 10:45 AM

It's still offline for me...

kcadd 03-12-2005 10:00 AM

/me installs...

zell_11 03-13-2005 09:51 AM

PHP Code:

// /meid hack by Deaths (Apprentice) | [url]http://www.xgnews.org[/url]
// /me Hack
  
global $post;
  if (
'' == $post[userid]) {
    global 
$reputation;
    if (
'' == $reputation[userid]) {
      global 
$pm;
      if (
'' == $pm[fromuserid]) {
        
$meUserid $bbuserinfo[userid];
      } else {
        
$meUserid $pm[fromuserid];
      }
    } else {
      
$meUserid $reputation[userid];
    }
  } else {
    
$meUserid $post[userid];
  }
  
$bbcode preg_replace('#^/me (.*)$#im'"$meUserid"$bbcode);
// /me Hack

// End /meid hack 

Should be

PHP Code:

// /meid hack by Deaths (Apprentice) | http://www.xgnews.org
// /me Hack
  
global $post;
  if (
'' == $post[userid]) {
    global 
$reputation;
    if (
'' == $reputation[userid]) {
      global 
$pm;
      if (
'' == $pm[fromuserid]) {
        
$meUserid $bbuserinfo[userid];
      } else {
        
$meUserid $pm[fromuserid];
      }
    } else {
      
$meUserid $reputation[userid];
    }
  } else {
    
$meUserid $post[userid];
  }
  
$bbcode preg_replace('#^/meid (.*)$#im',"<font color=\"red\">* $meUserid \\1 *</font>"$bbcode);
// /me Hack

// End /meid hack 

As the poster username and posters id both had /me as the bbcode

Hope this fixes the problems for people

after sorting it i noticed it wouldn't print the rest of the message so i sorted that aswell

Deaths 03-13-2005 02:34 PM

Thank you for pointing that out zell_11!

I'm suprised no-one noticed it before(including me ^^), and I apoligise for the late update (was on holliday).

shungo 03-14-2005 11:34 AM

If i use the hack, the text color is not like the rest of the post... how to resolve this pls ? :)


All times are GMT. The time now is 06:59 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.01112 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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