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 10-03-2007, 04:19 PM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with UGP

I recently switched from using vb options to ugp for several of my product's settings in order have more custom set of permissions per usergroup, however have run into a problem with several of my plugins. I have several plugins that set certain mysql fields based of certain fields within the usergroup mysql table. I use to use vb options ($vbulletin->options['banner_impressions_newthread']) to add pre-defined amount of impressions to members when registering, posting, etc. But now that I have moved to ugp I can't seem to find the set variable that will contain the value of impressions that need to be awarded for that usergroup. The plugins I use are as follows:
newpost_complete (award poster impressions defined in ugp)
register_addmember_complete/useradmin_update_save (set pre-defined number impressions for new user registrations)
showthread_query (award thread starter impressions defined in ugp)
global_start (sql to select random banner based off recent activity settings in ugp)
All these plugins previously used vboptions before and I can't find a set variable for ugp. Please help
Reply With Quote
  #2  
Old 10-03-2007, 06:03 PM
ro_manuel ro_manuel is offline
 
Join Date: Sep 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to vBulletin.com and Submit and Ticket, a Support Agent Will Help.
Reply With Quote
  #3  
Old 10-03-2007, 06:06 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ro_manuel View Post
Go to vBulletin.com and Submit and Ticket, a Support Agent Will Help.
I don't think they help you with modifications...thats why we have vb.org
Reply With Quote
  #4  
Old 10-04-2007, 09:52 AM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
I don't think they help you with modifications...thats why we have vb.org
I was starting to think someone switched the sites on me.... lol

Yea, I'm asking for help on a product, not vbulletin.
Reply With Quote
  #5  
Old 10-14-2007, 02:49 PM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does nobody have any input on this? It's a custom Product that I am writing myself.
Reply With Quote
  #6  
Old 10-14-2007, 05:33 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having looked at your post. it's like a wall of text. basically you're saying you want to store integers in the usergroup table correct?

I don't get how it's a usergroup permission however, sounds like a bad design idea to me. actually sounds like you should just be storing most of the above in the user table.
Reply With Quote
  #7  
Old 10-15-2007, 03:40 PM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Negative, trying to change the global permissions ($vbulletin->options) for my product into usergroup permissions so I can have permissions set differently per usergroup. I have done this but need to call the permissions to set conditions for the product.
Reply With Quote
  #8  
Old 10-15-2007, 04:44 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

then in that case. see the article posted.

it's basically
PHP Code:
$vbulletin->ugg['hack_permssions'] & $vbulletin->ugp['hack_permissions']['hack_permission'
i say basically though. i can't be of more help as all my vB coder stuff is on the pc and i'm on a laptop right now.
Reply With Quote
  #9  
Old 10-16-2007, 04:42 PM
Nullifi3d Nullifi3d is offline
 
Join Date: Apr 2004
Location: FL, USA
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

roger, so will the permissions be available on all the plugins i listed in my first post?
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 07:59 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.04471 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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