Run This Query To: version 3.0.x

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jose Amaral Rego
    Senior Member
    • Feb 2005
    • 11058
    • 1.1.x

    #16
    Run this query to enable Search Indexing in all forums

    Run this query to enable Search Indexing in all forums:

    Code:
    UPDATE forum SET options=options + 16384 WHERE NOT(options & 16384)

    Comment

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

      #17
      Run this query to set Forums Default View Age

      Run this query to set Forums Default View Age:

      Two methods shown below will do this job: One is manually and other is a query.

      In the Forum Manager set the Default View Age to 'Show All Threads':
      1. Admin CP -> Forums & Moderators -> Forum Manager -> Edit Forum -> Default View Age -> Show All Threads

        Or to update them all at once, run this query:

      2. Code:
        UPDATE forum SET daysprune=[COLOR="Red"]X[/COLOR];


      You can use the following values for Days Prune:
      • Show threads from last day: 1
      • Show threads from last 2 days: 2
      • Show threads from last week: 7
      • Show threads from last 10 days: 10
      • Show threads from last 2 weeks: 14
      • Show threads from last month: 30
      • Show threads from last 45 days: 45
      • Show threads from last 2 months: 60
      • Show threads from last 75 days: 75
      • Show threads from last 100 days: 100
      • Show threads from last year: 365
      • Show all threads: -1

      Follow by Update Counter.
      Admin CP -> Import & Maintenance -> Update Counters -> Rebuild Forum Information
      Last edited by Jose Amaral Rego; Mon 6 Mar '06, 6:31pm.

      Comment

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

        #18
        Future Post

        Future Post
        Last edited by Jose Amaral Rego; Tue 1 May '07, 2:33am.

        Comment

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

          #19
          Future Post

          Future Post
          Last edited by Jose Amaral Rego; Tue 1 May '07, 2:33am.

          Comment

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

            #20
            Future Post

            Future Post
            Last edited by Jose Amaral Rego; Tue 1 May '07, 2:34am.

            Comment

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

              #21
              Future Post

              Future Post
              Last edited by Jose Amaral Rego; Tue 1 May '07, 10:56am.

              Comment

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

                #22
                Run this query to replace known text with new text

                Run this query to replace known text with new text:
                Where X is known and XX results to new text.

                Code:
                UPDATE post SET pagetext = REPLACE(pagetext, '[COLOR="Red"]X[/COLOR]', '[COLOR="Blue"]XX[/COLOR]');

                Comment

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

                  #23
                  Run this query to turn board off via phpMyAdmin database

                  Run this query to turn board off via phpMyAdmin database:

                  Code:
                  UPDATE datastore SET data=REPLACE(data,'"bbactive";s:1:"1"','"bbactive" ;s:1:"0"') WHERE title='options';
                  Code:
                  UPDATE setting SET value=0 WHERE varname='bbactive';

                  Comment

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

                    #24
                    Run this query to turn board on via phpMyAdmin database

                    Run this query to turn board on via phpMyAdmin database:

                    Code:
                    UPDATE datastore SET data=REPLACE(data,'"bbactive";s:1:"0"','"bbactive" ;s:1:"1"') WHERE title='options';
                    Code:
                    UPDATE setting SET value=1 WHERE varname='bbactive';
                    Last edited by Jose Amaral Rego; Sun 26 Feb '06, 1:54am.

                    Comment

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

                      #25
                      Run this query to reset the cookie timeout

                      Run this query to reset the cookie timeout:

                      Code:
                      UPDATE `setting` SET `value` = '900' WHERE `varname` = 'cookietimeout' LIMIT 1 ;

                      Comment

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

                        #26
                        Run this query to reclaim userid

                        Run this query to reclaim userid:
                        Where X is your current userid.
                        Please read link first... http://www.vbulletin.com/forum/showp...31&postcount=2

                        Code:
                        UPDATE user
                        SET userid = 1
                        WHERE userid = [COLOR="red"]X[/COLOR]
                        Last edited by Jose Amaral Rego; Sun 5 Mar '06, 3:37pm.

                        Comment

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

                          #27
                          Run this query to reset the reputations

                          Run this query to reset the reputations:

                          Code:
                          DELETE FROM reputation;
                          Code:
                          UPDATE user SET reputation = 0, reputationlevelid = 0;

                          Comment

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

                            #28
                            Run this query to reinstate delete member and post:

                            Run this query to reinstate deleted member to own posts:

                            1. Setup a new account for this user. Record the new userid number.

                            2. Run this query to associate all previous posts to this account:

                            Code:
                            UPDATE post SET userid='[COLOR="Red"]xxx[/COLOR]' WHERE username='[COLOR="Blue"]old name[/COLOR]';
                            ...with 'xxx' being the new userid number and 'old name' being the name of the use that was deleted.

                            3. Now update the user, thread and forum counters

                            Comment

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

                              #29
                              Run this query to reset all users birthday's

                              Run this query to reset all users birthday's:
                              (that's two single quotes with no space in between them)

                              Code:
                              UPDATE user SET birthday=[COLOR="Red"]''[/COLOR];
                              Last edited by Jose Amaral Rego; Mon 6 Mar '06, 6:35pm.

                              Comment

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

                                #30
                                Run this query to set all users reputation's

                                Run this query to set all users reputation's:


                                Code:
                                UPDATE user SET reputation ='[COLOR="Red"]10[/COLOR]';
                                Next

                                Admin CP -> Import & Maintenance -> Update Counters -> Rebuild User Reputation
                                Last edited by Jose Amaral Rego; Sun 26 Feb '06, 4:14pm.

                                Comment

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