Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2006, 08:48 AM
alfaowner alfaowner is offline
 
Join Date: Jul 2003
Location: London
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 09-21-2006, 09:24 AM
nico_swd's Avatar
nico_swd nico_swd is offline
 
Join Date: Dec 2005
Location: Spain
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'); 
Reply With Quote
  #3  
Old 09-21-2006, 09:29 AM
alfaowner alfaowner is offline
 
Join Date: Jul 2003
Location: London
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 09-21-2006, 01:12 PM
nico_swd's Avatar
nico_swd nico_swd is offline
 
Join Date: Dec 2005
Location: Spain
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 09-21-2006, 05:23 PM
alfaowner alfaowner is offline
 
Join Date: Jul 2003
Location: London
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

they are not around anymore thank you for your time though
Reply With Quote
  #6  
Old 09-22-2006, 01:17 PM
nico_swd's Avatar
nico_swd nico_swd is offline
 
Join Date: Dec 2005
Location: Spain
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-23-2006, 03:16 AM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #8  
Old 09-23-2006, 03:39 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03713 seconds
  • Memory Usage 2,232KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete