Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2002, 10:53 PM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default /me hack and color int. needed

i need a /me hack and color hack integration

i want the /me hack to work with the hack that allows u to set your default post color in your user cp
Reply With Quote
  #2  
Old 09-15-2002, 05:27 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Vincent]Create a new profile field.
Open admin/functions.php
Replace:
PHP Code:
$bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"{ timecolor}\">* $post[username] \\1</font>", $bbcode); 
(BTW take the space out of { timecolor} because I can't use it without the space on here)
With:
PHP Code:
$bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"".$post[fieldx]."\">* $post[username] \\1</font>", $bbcode); 
And then the user can set the color.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.