MyBB Community Forums

Full Version: [problem] Secondary User group image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello i want to add Secondary User group image i have downloaded the plugin called as 256 - double group image..!! The problem is when i activate the plugin it is giving me error

Warning [2] require(./inc/adminfunctions_templates.php) [function.require]: failed to open stream: No such file or directory - Line: 26 - File: inc/plugins/dgi.php PHP 5.2.11 (Linux)
File 	Line 	Function
/inc/plugins/dgi.php 	26 	errorHandler->error
/inc/plugins/dgi.php 	26 	dgi_activate
[PHP] 	  	dgi_activate
/admin/modules/config/plugins.php 	208 	call_user_func
/admin/index.php 	380 	require
Warning [2] require(./inc/adminfunctions_templates.php) [function.require]: failed to open stream: No such file or directory - Line: 26 - File: inc/plugins/dgi.php PHP 5.2.11 (Linux)
File 	Line 	Function
/inc/plugins/dgi.php 	26 	errorHandler->error
/inc/plugins/dgi.php 	26 	dgi_activate
[PHP] 	  	dgi_activate
/admin/modules/config/plugins.php 	208 	call_user_func
/admin/index.php 	380 	require

how to resolve this problem
?
If you really have the file "adminfunctions_templates.php" inside your "inc" directory, then it is the path used in your plugin "dgi.php" to access it that is wrong.

If the path is wrong, then i would suggest you to contact the author of the plugin and ask him to correct the error for the sake of all future users...

For a quick fix you could modify line 26 of dgi.php and using instead:

require(MYBB_ROOT."inc/adminfunctions_templates.php");
I had the same problem and this worked, I can now activate the plugin.
How do you get the 2nd group image to come up?
Also it doesn't let you view member profiles once activated.
Is there a newer code?