Need Query!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Murty
    Member
    • Dec 2005
    • 93
    • 3.6.x

    Need Query!

    Hey,

    I need a query that will allow me to reverse all the users options that allows them to have custom avatars and signatures. Someone told me to use this:

    Code:
    UPDATE (TABLE_PREFIX)user SET vbp_genericperm = vbp_genericperm & (-1 ^ 512);
    and change (TABLE_PREFIX) to my table_prefix but it didnt work.

    Need some help

    Thanks
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That query appears to be for vBPortal. That field is not a default field in the user table.

    You can set the default for most user preferences in your:

    Admin CP -> vBulletin Options -> User Registration Options -> Default Registration Options

    You can mass update the preferences of exsiting users in your:

    Admin CP -> Maintenance -> Execute SQL Query

    There is a menu with predefined queries. You must have permission to execute queries in your includes/config.php file:

    Code:
    	//	****** USERS WITH QUERY RUNNING PERMISSIONS ******
    	//	The users specified here will be allowed to run queries from the control panel.
    	//	See the above entries for more information on the format.
    	//	Please note that the ability to run queries is quite powerful. You may wish
    	//	to remove all user IDs from this list for security reasons.
    $config['SpecialUsers']['canrunqueries'] = '';

    Comment

    • Murty
      Member
      • Dec 2005
      • 93
      • 3.6.x

      #3
      I dont think you understand what i am saying sorry.I had vbbux and vbplaza installed until yesterday, and users were able to purchase the right to have a custom signature and avatar. So once they bought it, it enabled the option in their UserCP. But i have removed vbbux and vbplaza and i want to reverse those options, so they can no longer customise their signatures and avatars.

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        You would have to contact the hack author for removal instructions. You say those options are from the hack, and I am not familiar with that hack.

        Comment

        • Murty
          Member
          • Dec 2005
          • 93
          • 3.6.x

          #5
          lol...funny you should say that :P

          the query above that doesnt work, is what he told me to do

          Comment

          • Murty
            Member
            • Dec 2005
            • 93
            • 3.6.x

            #6
            I really need some help guys

            Comment

            • Zachery
              Former vBulletin Support
              • Jul 2002
              • 59097

              #7
              Sorry, we don't provide support for custom hacks and addons.

              However check the usergroup permissions and ensure that your settings are correct.

              Comment

              • Murty
                Member
                • Dec 2005
                • 93
                • 3.6.x

                #8
                well all this hack has done, is enable some options that i dont want enabled, and i have checked usergroup permission several times and they dont do anything.

                Comment

                • Lats
                  Senior Member
                  • Mar 2002
                  • 3671

                  #9
                  Check here...
                  Show Signatures On: UPDATE user SET options=options + 1 WHERE NOT(options & 1) Off: UPDATE user SET options=options - 1 WHERE options & 1 Show Avatars On: UPDATE user SET options=options + 2 WHERE NOT(options & 2) Off: UPDATE user SET options=options - 2 WHERE options & 2 Show Images On: UPDATE user
                  Lats...

                  Comment

                  • Murty
                    Member
                    • Dec 2005
                    • 93
                    • 3.6.x

                    #10
                    Thanks, but the ones i want are not there.

                    Comment

                    • Lats
                      Senior Member
                      • Mar 2002
                      • 3671

                      #11
                      Okay, the custom avatar bit is a usergroup permission under 'General Permissions' however, there doesn't seem to be one for custom signature - perhaps that was part of a hack.
                      Lats...

                      Comment

                      • Murty
                        Member
                        • Dec 2005
                        • 93
                        • 3.6.x

                        #12
                        I am the biggest noob!! I forgot to readjust all my usergroup permissions. It all fine now, really sorry about this guys. Thanks for you help.

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...