The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Gazette

Geek Gazette GAZ is a community newsletter management system.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2008, 04:02 PM
minstrel minstrel is offline
Member
 
Join Date: Jun 2007
Location: Ottawa, Canada
Posts: 31
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default Bounced Email Handling

Quote:
Originally Posted by Morgan View Post
Nope, maybe something for a future version, but on vBorg there are a couple of modifications that are meant to handle bounced emails:The second one adds a link to the email header, though both would require modifications to deal with GAZ related bounced emails.
How do I do this?
Reply With Quote
  #2  
Old 07-10-2008, 06:54 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Not familiar with that modification. You'd need to look at that modification, see what header it adds, and possibly use the gaz_send_email_headers hook to add a plugin with the extra header (how to add a plugin).
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 07-11-2008, 02:46 AM
minstrel minstrel is offline
Member
 
Join Date: Jun 2007
Location: Ottawa, Canada
Posts: 31
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

That didn't work.

Here's what needs to be added:

Code:
// add EZBounce headers
			$bounceurl		= $vbulletin->options['ezb_admincpurl'] . "/ezbounce.php?u=" . $userid;
			$bouncestring	= "<a href=\"$bounceurl\" target=\"_blank\">$bounceurl</a>";
			$headers .= 'X-EZbouncer: ' . $bouncestring . $delimiter;
When I create a plugin per your instructions, what gets added is missing the $userid, so it's useless:

Code:
X-EZbouncer: <a href="/ezbounce.php?u=" target="_blank">/ezbounce.php?u=</a>
Reply With Quote
  #4  
Old 07-11-2008, 03:51 AM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

You'll need to check the GAZ mail function in the gaz_class_process.php file to see what, if any, variable containing the user ID is available and replace $userid with the GAZ user ID variable, if available, and if there is not such a variable, then you'd need to edit GAZ to add such a variable, and then use the added variable name in place of $userid in the modification code that is used in the plugin at the gaz_send_email_headers hook.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #5  
Old 08-31-2008, 01:54 PM
minstrel minstrel is offline
Member
 
Join Date: Jun 2007
Location: Ottawa, Canada
Posts: 31
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

I edited (created? not sure) the plugin gaz_send_email_headers and tried

Code:
// add EZBounce headers
			$bounceurl		= $vbulletin->options['ezb_admincpurl'] . "/ezbounce.php?u=" . $userid;
			$bouncestring	= "<a href=\"$bounceurl\" target=\"_blank\">$bounceurl</a>";
			$headers .= 'X-EZbouncer: ' . $bouncestring . $delimiter;
Note: This is all that that plugin includes. This gave me the following header in the email:

Code:
X-EZbouncer: <a href="/ezbounce.php?u=" target="_blank">/ezbounce.php?u=</a>
I then tried changing $userid to userid:

Code:
// add EZBounce headers
			$bounceurl		= $vbulletin->options['ezb_admincpurl'] . "/ezbounce.php?u=" . userid;
			$bouncestring	= "<a href=\"$bounceurl\" target=\"_blank\">$bounceurl</a>";
			$headers .= 'X-EZbouncer: ' . $bouncestring . $delimiter;
That gives me:

Code:
X-EZbouncer: <a href="/ezbounce.php?u=userid" target="_blank">/ezbounce.php?u=userid</a>
So the header is getting inserted properly but I need to know what variable GAZ is using to identify the user so it will correctly include that.

Last edited by minstrel; 08-31-2008 at 01:58 PM..
Reply With Quote
  #6  
Old 08-31-2008, 11:21 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Sorry, haven't tried it so the most I can offer is what is already written in post four:
Quote:
Originally Posted by Morgan View Post
You'll need to check the GAZ mail function in the gaz_class_process.php file to see what, if any, variable containing the user ID is available and replace $userid with the GAZ user ID variable, if available, and if there is not such a variable, then you'd need to edit GAZ to add such a variable, and then use the added variable name in place of $userid in the modification code that is used in the plugin at the gaz_send_email_headers hook.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email sent but not really sent? daisukem Geek Gazette 1 08-01-2010 02:27 AM
Where can I see this in an email? Queeva Geek Gazette 3 09-16-2009 10:43 PM
Managing bounced users Hornstar6969 Geek Gazette 2 06-29-2009 07:43 AM
Where to use EZ Bounced Email code in GAZ m_k Geek Gazette 2 06-05-2008 09:24 PM
[already in vb]Attachment handling. FD929 Geek Article and Review System 7 08-27-2005 09:22 PM


All times are GMT. The time now is 02:07 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.