vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   admin_usergroup_edit doesn't seem to be working (https://vborg.vbsupport.ru/showthread.php?t=295612)

Wakey 02-28-2013 08:42 PM

admin_usergroup_edit doesn't seem to be working
 
I have thrown together a modification for a client where when a user is promoted using the promotion critera it sends them a private message informing them. As each usergroup has unique benefits each message needed to be unique so I needed to add a new field on the usergroup edit page to store and change each usergroups PM message.

I did this using the admin_usergroup_edit hook and it worked fine on my local test server but when implementing the modification on the clients server the field to enter the data refuses to display. I have installed it on 8 other forums running on a variety of hosting solutions to test and it works fine on all of them so it doesn't seem to be a code issue.


It have been trying things all day to isolate the problem and resolve it but with no luck. Has anyone encountered this kind of issue before or have any ideas of what may be causing it?

The code I'm using is below but I'm failry sure that isnt the problem

PHP Code:

print_table_header('User Promotion Notification PM Message');  
print_textarea_row('Message to send on promotion to this group''usergroup[pm_promotion]'$usergroup['pm_promotion']); 
print_table_break();  
print_column_style_code(array('width: 70%''width: 30%')); 


kh99 03-01-2013 12:17 AM

I can only think of two things offhand - check to see if there are any other plugins using that hook, maybe one of them has an error in it. Also, make sure hooks aren't disabled completely.

Wakey 03-01-2013 10:43 AM

No other plugins are assigned to the hook and I have tested a few of the other hooks and they work.

It does seem like it is that hook specifically that won't run as no matter what I put in there nothing gets displayed.

Is there any other way I can achieve the same thing without editing the usergroup.php file to hard code it?

Wakey 03-04-2013 09:30 PM

Just thought I would give you all an update. I managed to resolve this by uploading all the vBulletin files again.

Not sure what the person who setup the forum initially or updated it to the latest version did as the files the suspect files diagnostic wasn't showing any issues with any of the core files (just the usual issues relating to modification files) but that sorted it.


All times are GMT. The time now is 08:03 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.01081 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete