I don't want users to switch PMs off...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kirstyd
    New Member
    • Jul 2005
    • 26
    • 3.0.7

    I don't want users to switch PMs off...

    Is there any way I can stop users from switching private messaging off? I can force them to not to use PMs but I can't seem to force them to receive PMs? The option to disable private messaging appears on User CP -> Edit Options.

    thanks
    kirsty
  • Jose Amaral Rego
    Senior Member
    • Feb 2005
    • 11058
    • 1.1.x

    #2
    How do you feel about Executing SQL Query?
    Do not do it right now! I am going to find out if it is possible to comment out this, so pm's are always on.

    Comment

    • Jose Amaral Rego
      Senior Member
      • Feb 2005
      • 11058
      • 1.1.x

      #3
      Admin Control Panel => vBulletin Options => vBulletin Options => Private Messaging Options => Private Messaging Enabled -- YES

      I disable my pm's in User CP, then I turn them off by setting it to NO and Save and then set it to Yes? It seems to override it to set it to recieve pm's. I am an Adminastrator so I do not know if that is why it sets to recieve pm's after I enable it. You should try this out first.

      Comment

      • Jose Amaral Rego
        Senior Member
        • Feb 2005
        • 11058
        • 1.1.x

        #4
        Admin Control Panel => Styles & Templates => Style Manager => v Drop Down v => Edit Templates => « Expand All Template Groups » => modifyoptions

        Find:
        Code:
        						[COLOR="Blue"]<td><label for="cb_receivepm">[/COLOR]<input type="checkbox" name="options[receivepm]" value="1" id="cb_receivepm" onclick="toggle_disabled(this.checked, 'pmoptions')" $checked[receivepm] />$vbphrase[enable_private_messaging]</label></td>
        Add comment out:
        Code:
        						<td><label for="cb_receivepm"> [COLOR="Green"]<!--[/COLOR] <input type="checkbox" name="options[receivepm]" value="1" id="cb_receivepm" onclick="toggle_disabled(this.checked, 'pmoptions')" $checked[receivepm] /> [COLOR="Green"]-->[/COLOR] $vbphrase[enable_private_messaging]</label></td>
        Click on Save

        Comment

        • kirstyd
          New Member
          • Jul 2005
          • 26
          • 3.0.7

          #5
          Thanks for your help!

          kirsty

          Comment

          • kirstyd
            New Member
            • Jul 2005
            • 26
            • 3.0.7

            #6
            Ooops, except what happens is that when a user changes any other option on that page private messaging gets switched off!

            Comment

            • StGaensler
              Senior Member
              • Jan 2005
              • 119

              #7
              Take this line:
              Code:
              <td><label for="cb_receivepm">[B]<span style="display:none">[/B]<input type="checkbox" name="options[receivepm]" value="1" id="cb_receivepm" [B]checked="checked"[/B] />[B]</span>[/B]$vbphrase[enable_private_messaging]</label></td>
              After it you should execute a SQL-Query that sets this option to "on" in all userprofiles.

              Comment

              • Jose Amaral Rego
                Senior Member
                • Feb 2005
                • 11058
                • 1.1.x

                #8
                Originally posted by StGaensler
                Take this line:
                Code:
                <td><label for="cb_receivepm">[B]<span style="display:none">[/B]<input type="checkbox" name="options[receivepm]" value="1" id="cb_receivepm" [B]checked="checked"[/B] />[B]</span>[/B]$vbphrase[enable_private_messaging]</label></td>
                After it you should execute a SQL-Query that sets this option to "on" in all userprofiles.
                But, would like the other two settings 'Receive Email Notification of New Private Messages' & 'Show New Private Message Notification Pop-up' to be checkmarked on by defalt?

                I see if I can apply it to the other two and make it hidden after.
                This is better than comment out.
                Last edited by Jose Amaral Rego; Sun 6 Nov '05, 12:51pm.

                Comment

                • Jose Amaral Rego
                  Senior Member
                  • Feb 2005
                  • 11058
                  • 1.1.x

                  #9
                  kirstyd apply the <span> tags like StGaensler has, then find & replace $checked[receivepm] , $checked[emailonpm] , $checked[pmpopup] to checked="checked" in those three areas.


                  Code:
                                  <if condition="$show['pmoptions']">
                                  <fieldset class="fieldset">
                                      <legend><label for="cb_receivepm">$vbphrase[private_messaging]</label></legend>
                                      <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                      <tr>
                                          <td>
                                              <phrase 1="private.php?$session[sessionurl]">$vbphrase[features_private_messaging_system]</phrase>
                                          </td>
                                      </tr>
                                      <tr>
                                          <td><label for="cb_receivepm">[COLOR=green]<span style="display:none">[/COLOR]<input type="checkbox" name="options[receivepm]" value="1" id="cb_receivepm" [COLOR="Red"]checked="checked"[/COLOR] />[COLOR=green]</span>[/COLOR]$vbphrase[enable_private_messaging]</label></td>
                                      </tr>
                                      <tbody id="pmoptions"<if condition="!$bbuserinfo[receivepm]"> disabled="disabled"</if>>
                                          <tr>
                                              <td><br />$vbphrase[can_email_when_sends_you_pm]</td>
                                          </tr>
                                          <tr>
                                              <td><label for="cb_emailonpm">[COLOR=green]<span style="display:none">[/COLOR]<input type="checkbox" name="options[emailonpm]" value="1" id="cb_emailonpm" [COLOR="Red"]checked="checked"[/COLOR] />[COLOR=green]</span>[/COLOR]$vbphrase[receive_email_notification_pm]</label></td>
                                          </tr>
                                          <tr>
                                              <td><br />$vbphrase[browsing_when_receive_pm_popup]</td>
                                          </tr>
                                          <tr>
                                              <td><label for="cb_pmpopup">[COLOR=green]<span style="display:none">[/COLOR]<input type="checkbox" name="pmpopup" value="1" id="cb_pmpopup" [COLOR="Red"]checked="checked"[/COLOR] />[COLOR=green]</span>[/COLOR]$vbphrase[show_pm_popup]</label></td>
                                          </tr>
                                      </tbody>
                                      </table>
                                  </fieldset>
                                  <else />
                                  <input type="hidden" name="options[receivepm]" value="$bbuserinfo[receivepm]" />
                                  <input type="hidden" name="options[emailonpm]" value="$bbuserinfo[emailonpm]" />
                                  <input type="hidden" name="pmpopup" value="$bbuserinfo[pmpopup]" />
                                  </if>
                   
                                  $customfields[messaging]
                   
                              </div>
                          </div>
                          </td>
                      </tr>
                  </tbody>
                  </table>

                  Comment

                  • kirstyd
                    New Member
                    • Jul 2005
                    • 26
                    • 3.0.7

                    #10
                    Thanks, I'll try that out.

                    Is this the correct query to switch on PMs for all users?

                    UPDATE user SET options = options + 2048 WHERE NOT(options & 2048)

                    I know it's 2048 but I can't figure out which table/field I'm after...

                    thanks
                    kirsty

                    Comment

                    • Jose Amaral Rego
                      Senior Member
                      • Feb 2005
                      • 11058
                      • 1.1.x

                      #11
                      You have a Automatic Query list in the dropdown menu? You well need to backup your forum using SSH access, then test out your backup in a close forum behind htaccess. If it is working, then you restore using SSH.



                      Comment

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