SQL query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gnrx
    Senior Member
    • Feb 2009
    • 241

    [Forum] SQL query

    Hello.
    I need activate for all users one option, is this (the attach to image).
    I need set to yes.
    Its possible by sql query?

    Thanks and regards.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74166

    #2
    Show Email Address
    On: UPDATE user SET options=options + 256 WHERE NOT(options & 256)
    Off: UPDATE user SET options=options - 256 WHERE options & 256
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • gnrx
      Senior Member
      • Feb 2009
      • 241

      #3
      Thanks Wayne Luke!

      Comment

      • gnrx
        Senior Member
        • Feb 2009
        • 241

        #4
        Other query:
        Change to all users save copy of send mps in folder send of mps to no?

        Thanks and Happy New Year!

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 74166

          #5
          MP? Do you mean PM? Private Message?

          Save a copy of sent messages (PMs)
          On: UPDATE user SET options=options + 33554432 WHERE NOT(options & 33554432)
          Off: UPDATE user SET options=options - 33554432 WHERE options & 33554432
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • gnrx
            Senior Member
            • Feb 2009
            • 241

            #6
            Thanks Wayne Luke.
            Yes, MP its PM (Private Message) sorry for my english.
            Again, thank you very much and Happy New Year!

            Comment

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