vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - EZ Bounced Email Management for Admins (https://vborg.vbsupport.ru/showthread.php?t=138884)

djbaxter 05-28-2008 11:38 AM

This URL yields an error.

Alfa1 05-29-2008 01:25 AM

That's odd. I just clicked on it and was directed to my article. Maybe it was just in approval queue when you clicked it. Please try again now. I hope you find it helpful.

Antivirus 05-29-2008 01:55 AM

Quote:

Originally Posted by Alfa1 (Post 1533344)
I want to add a link to the FAQ in the PM text, but forgot where to alter it. Could you please remind me?

For the PM title, edit phrase: anti_your_email_bounced_sub
For the PM message, edit phrase: anti_your_email_bounced_body

Alfa1 05-29-2008 05:48 PM

How do i change the sender's userID?

Antivirus 05-30-2008 05:51 PM

Quote:

Originally Posted by Alfa1 (Post 1535402)
How do i change the sender's userID?

If you're referring to the sender of the Private Message which is sent to the user who's being managed for bouncing, you'll have to modify the code within admincp/ezbounce.php which uses the PM datamanager:

The PM is generated in the following manner, setting the sentfrom userid and username to that of the administrator who clicked on the ezbouncelink within the email header:
PHP Code:

// Set other funky stuff for PM
$pmdm->set('fromuserid'$vbulletin->userinfo['userid']); 
$pmdm->set('fromusername'$vbulletin->userinfo['username']); 
$pmdm->overridequota true;
$pmdm->set('title'$vbphrase['anti_your_email_bounced_sub']); 
$pmdm->set('message'construct_phrase($vbphrase['anti_your_email_bounced_body'], $buser['username'], $vbulletin->userinfo['username'], $updatelink)); 
$pmdm->set_recipients($buser['username'], $botpermissions); 
$pmdm->set('dateline'TIMENOW);
$pmdm->pre_save(); 

To modify this, you'll need to change all occurrences of $vbulletin->userinfo['userid'] and $vbulletin->userinfo['username'] to the info for the new sender. Also, I am pretty sure the userid needs to match that of the username otherwise the datamanager will throw an error.

Alfa1 05-30-2008 08:33 PM

I have an administrator that is in charge of account problems and registrations, but by default ezbounced PM´s are sent from my account.

When editing all occurrences of $vbulletin->userinfo['userid'] and $vbulletin->userinfo['username'] to the info for the new sender, then I get:
Parse error: syntax error, unexpected ']' in /home/mysite/domains/mysite.com/public_html/forum/admincp/ezbounce.php on line 139

Antivirus 05-30-2008 09:24 PM

you're not editing the file correctly, or you're passing the wrong variable somehow. Please post what your code looks like after your edits.

Alfa1 05-30-2008 11:42 PM

What should the code look like if the userID is "410" and the username is "stix" ?

Here's what I did:
PHP Code:

        // Set other funky stuff for PM
        
$pmdm->set('fromuserid'410); 
        
$pmdm->set('fromusername'stix]); 
        
$pmdm->overridequota true;
        
$pmdm->set('title'$vbphrase['anti_your_email_bounced_sub']); 
        
$pmdm->set('message'construct_phrase($vbphrase['anti_your_email_bounced_body'], $buser['username'], stix], $updatelink)); 
        
$pmdm->set_recipients($buser['username'], $botpermissions); 
        
$pmdm->set('dateline'TIMENOW);
        
$pmdm->pre_save(); 


Antivirus 06-02-2008 01:50 PM

first thing I notice is that each occurence of stix has an unnecessary ] after it. (exactly what the error message tells you is a problem). The second thing I notice is that since the username is a string, it should be surrounded in ' like this 'stix'

So, in summary, try the following:

PHP Code:

       // Set other funky stuff for PM
        
$pmdm->set('fromuserid'410); 
        
$pmdm->set('fromusername''stix'); 
        
$pmdm->overridequota true;
        
$pmdm->set('title'$vbphrase['anti_your_email_bounced_sub']); 
        
$pmdm->set('message'construct_phrase($vbphrase['anti_your_email_bounced_body'], $buser['username'], 'stix'$updatelink)); 
        
$pmdm->set_recipients($buser['username'], $botpermissions); 
        
$pmdm->set('dateline'TIMENOW);
        
$pmdm->pre_save(); 


onestopadam 06-06-2008 12:27 PM

I get an internal server error. Checked my error log and have that useful premature end of script header. Any suggestions? Admin path is correct. Usergroup is valid.

Thanks,

Adam


All times are GMT. The time now is 09:08 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.01695 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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