Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 06-09-2007, 11:05 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have told him what he needs. You say I don't know how? Let me prove you wrong.
1/ Admin CP > Plugins & Products > Add New Plugin
2/ Hook Location: postbit_display_complete
3/ PHP Code:
PHP Code:
$post['message'] = preg_replace('/(<a href="mailto:)(.*)@(.*)(["]{1})/i'"$2 AT $3"$post['message']; 
Reply With Quote
  #22  
Old 06-10-2007, 12:40 AM
Dave Hawley Dave Hawley is offline
 
Join Date: Jun 2004
Location: Australia
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I asked if you know how. That's what this (?) funny little character means

There ya go tobias_t, you just need to know how to ask
Reply With Quote
  #23  
Old 06-10-2007, 12:59 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hahaha, that's awesome. Just gotta ask the right question I suppose
Reply With Quote
  #24  
Old 06-10-2007, 02:44 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave Hawley View Post
No, I asked if you know how. That's what this (?) funny little character means

There ya go tobias_t, you just need to know how to ask
To me, you sounded like you were accusing me of not knowing how to code. I could've just told you to look at my profile to see all the URL rewriting hacks I've done....
Reply With Quote
  #25  
Old 06-10-2007, 03:02 AM
Dave Hawley Dave Hawley is offline
 
Join Date: Jun 2004
Location: Australia
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, not all. I have no idea what you are capable of. However, you do seem to assume those asking questions have the same capabilities as you. Which would beg the question of why they would ask in the 1st place
Reply With Quote
  #26  
Old 06-11-2007, 07:52 AM
tobias_t tobias_t is offline
 
Join Date: Dec 2006
Location: Berlin, Germany
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
I have told him what he needs. You say I don't know how? Let me prove you wrong.
1/ Admin CP > Plugins & Products > Add New Plugin
2/ Hook Location: postbit_display_complete
3/ PHP Code:
PHP Code:
$post['message'] = preg_replace('/(<a href="mailto:)(.*)@(.*)(["]{1})/i'"$2 AT $3"$post['message']; 
Thanks! Doesn't look like something I could ever have come up with myself, so your help is much appreciated

I don't yet get it to work though -

On our test server, installing this hack gives me this message on showthread:

Parse error: syntax error, unexpected ';' in /srv/www/htdocs/forum/includes/class_postbit.php(296) : eval()'d code on line 1

On our live server, it does no changes to email addresses at all.

Both installations are 3.6.6. Any ideas?
Reply With Quote
  #27  
Old 06-11-2007, 11:06 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
$post['message'] = preg_replace('/(<a href="mailto:)(.*)@(.*)(["]{1})/i'"$2 AT $3"$post['message']); 
Reply With Quote
  #28  
Old 06-11-2007, 12:08 PM
tobias_t tobias_t is offline
 
Join Date: Dec 2006
Location: Berlin, Germany
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
PHP Code:
$post['message'] = preg_replace('/(<a href="mailto:)(.*)@(.*)(["]{1})/i'"$2 AT $3"$post['message']); 
This works much better, but it doesn't yet work work 100%. For name@domain.com, it gives the output:

name AT domain.com>name@domain.com
Reply With Quote
  #29  
Old 06-11-2007, 12:40 PM
kennethsia kennethsia is offline
 
Join Date: Apr 2007
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool a mod in the making ^^ go dismounted!
Reply With Quote
  #30  
Old 06-12-2007, 09:43 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
$post['message'] = preg_replace('/(<a href="mailto:)(.*)@(.*)(">(.*)</a>)/i'"$2 AT $3"$post['message']); 
To you coders, you are not allowed to use this code in your own hacks because I'm making one out of this .
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 02:11 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.04109 seconds
  • Memory Usage 2,265KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete