vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding a usergroup permission radio button to admincp (https://vborg.vbsupport.ru/showthread.php?t=127174)

alfaowner 09-21-2006 07:48 AM

Adding a usergroup permission radio button to admincp
 
Hi all, firstly thanks for clicking on to my problem... I really searched hard and could not find the answer.

In 2005 I paid for a custom hack to be made by vbmechanic, the job was completed and I was fairly happy. However, when I upgraded to v 3.5.4 the permission to access the hack was lost. IE: There is no longer a radio button for me to select in the admin usergroup etc... no one are able to view and administer the hack pages anymore. I read that permissions used to be done in usergroups.php, but as this was overwrited, its now gone.

How can I get these permission radio buttons back? which files do you edit? Can it be done with a plug in? Does anyone have an example of code that I could play with...

BTW - The database user tables are still in tact.

Many thanks for any replies,

Regards,

AO
www.alfaowner.com

nico_swd 09-21-2006 08:24 AM

If you upgraded, your hack is most probably lost. Just adding the radio button wouldn't help. Try asking the person who made the hack and see if there's a version of it, compatible with vB 3.5.4, and ask if you can get the code. If it's just the button that's missing, here's a sample code for a radio button.

PHP Code:

print_radio_row($vbphrase['auto_subscription_mode'], 'user[autosubscribe]', array(
    -
=> $vbphrase['subscribe_choice_none'],
    
0  => $vbphrase['subscribe_choice_0'],
    
1  => $vbphrase['subscribe_choice_1'],
    
2  => $vbphrase['subscribe_choice_2'],
    
3  => $vbphrase['subscribe_choice_3'],
), 
$user['autosubscribe'], 'smallfont'); 


alfaowner 09-21-2006 08:29 AM

Hi, i didnt mention but it was a bolt on with its own admin pages, however, its just the tieing in that is missing. thanks for the reply ill see if this helps, but where does it go exactly?

thank you

nico_swd 09-21-2006 12:12 PM

I can't say where it goes since it's a custom hack. I'd need to see the code. Also note that the code I posed won't work for what you're trying to do. It's just an example on how to create a radio button group in vB. The best would be if you'd ask the person who made the hack for you.

alfaowner 09-21-2006 04:23 PM

they are not around anymore :( thank you for your time though

nico_swd 09-22-2006 12:17 PM

Sometimes there are email addresses left, in a comment in the code or something. Check the admin files from the hack. You might got some luck and they can still help you out.

Antivirus 09-23-2006 02:16 AM

perhaps if you post the code from the script which is located within admincp, I can help. The print_radio_radio row function would most likely be called within the block of code that displays the rows you see within AdminCP page. For instance, somewhere between print_description_row and print_submit_row...

Paul M 09-23-2006 02:39 AM

Quote:

Originally Posted by alfaowner
Hi, i didnt mention but it was a bolt on with its own admin pages, however, its just the tieing in that is missing. thanks for the reply ill see if this helps, but where does it go exactly?

thank you

Even most "bolt-ons" still make use of vb functions, and they will fail in 3.5 if it was written for 3.0.


All times are GMT. The time now is 12:14 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.01486 seconds
  • Memory Usage 1,730KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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