vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PM Auto Reply (https://vborg.vbsupport.ru/showthread.php?t=116325)

Jeordie015 08-22-2007 03:32 AM

I think I've run into a problem with how this hack deals with usergroups since you can only specify which groups to disallow access to it.

In my case, I only want admins, mods, and the advanced member levels to have access to this. If someone is in the advanced usergroup, then their primary usergroup is the basic Registered Users group, and then the advanced usergroup is set as an additional usergroup.

So how would I be able to get the users in the advanced usergroup to have access to this while keeping regular members out with my current setup?

Ramsesx 10-06-2007 02:49 PM

Quote:

Originally Posted by chatzworld (Post 1311067)
yeh very handy mod and works fine on 3.6.8 not had any probs at all

If you're wondering why you get a lower registration rate, try to register yourself and look what's happening if you place the registration link.
Fatal error: Call to a member function on a non-object in /home/chatsuk/public_html/includes/class_dm_user.php(2490) : eval()'d code on line 9

carphead 11-02-2007 10:00 AM

I've tried to get this to work on a 3.6.8 install. I've reverted the modifyoptions template. Put the edit in to the template at the correct line and nothing appears in the options part.

Any suggestions? There are no excluded groups.

Spinball 01-01-2008 07:54 PM

Getting an error with 3.6.8 and PHP 5 when trying to send a PM:
Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /private.php(1167) : eval()'d code on line 46

Fatal error:
Please complete both the subject and message fields.
Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in /includes/class_dm.php on line 765

Code Monkey 04-23-2008 10:37 PM

Quote:

Originally Posted by Spinball (Post 1413358)
Getting an error with 3.6.8 and PHP 5 when trying to send a PM:


That went away for me when I went into the plugin code and switched all instances of mysql_fetch_array() with the proper $vbulletin->db->fetch_array() function.

frosch68 05-04-2008 08:00 AM

Quote:

Originally Posted by Code Monkey (Post 1497710)
That went away for me when I went into the plugin code and switched all instances of mysql_fetch_array() with the proper $vbulletin->db->fetch_array() function.

this changing has no effect for me in vB 3.6.10 and php 5 ... any other ideas ?

LoRdGd 05-19-2008 04:01 PM

Hello!
Super MOD!

But, can anybody make a ACP integration for this?

Spinball 06-14-2008 08:45 PM

This works with 3.7.1 pl1

smooth-c 07-01-2008 09:48 PM

Works fine with 3.7.1 Here aswell except I get the error line above the redirection page saying;

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/private.php(1222) : eval()'d code on line 46

Any way of fixing this?

Greg

ZexTasy 07-09-2008 06:38 AM

@smooth-c

To fix the errormessage, apply the following changes to the product xml file:

In the product xml-file find:
PHP Code:

$repm->pre_save();
$re_errors array_merge($re_errors$repm->errors); 

Write this between those two lines:
PHP Code:

$re_errors = array(); 

So that it becomes:
PHP Code:

$repm->pre_save();
$re_errors = array();
$re_errors array_merge($re_errors$repm->errors); 

In the product xml-file find:
PHP Code:

$repm->pre_save();
$fw_errors array_merge($fw_errors$repm->errors); 

Write this between those two lines:
PHP Code:

$fw_errors = array(); 

So that it becomes:
PHP Code:

$repm->pre_save();
$fw_errors = array();
$fw_errors array_merge($fw_errors$repm->errors); 

After that just import the product again with overwrite.

Alternatively you could also edit the plugin directly in the plugin-manager, edit the plugin Send the Auto-Reply with hook location private_insertpm_complete and do the changes mentioned above directly in there, but personally I like to have a correct xml plugin file available to import again if necessary! ;)

Good luck!

- ZexTasy


All times are GMT. The time now is 04:05 AM.

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.01912 seconds
  • Memory Usage 1,748KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_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