custome queries

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krike
    New Member
    • Jul 2008
    • 19

    custome queries

    I have some non-vb (php & mysql) pages and I would like to query the database to display some info in the footer of vbulletin.

    do I use templates for this? but I'm not sure how or if this is possible.

    site: http://blog.cmstutorials.org/forums
    see footer where it says latest tutorials, will be queried from http://cmstutorials.org
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That is possible with custom code. You will likely need to modify the files or use a plugin. If you have some coding ability then you can post on www.vbulletin.org for help with this.

    Comment

    • krike
      New Member
      • Jul 2008
      • 19

      #3
      ok thanks I did

      but I got one small problem, I moved the database and made the changes in the config.php but then I get following errors:

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/global.php(805) : eval()'d code on line 2

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/global.php(805) : eval()'d code on line 2

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/global.php(805) : eval()'d code on line 2

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/global.php(805) : eval()'d code on line 2

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/global.php(834) : eval()'d code on line 51

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/index.php(520) : eval()'d code on line 1

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 9

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 9

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 9

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 5

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/includes/functions_forumlist.php(395) : eval()'d code on line 9

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/index.php(596) : eval()'d code on line 12

      Parse error: syntax error, unexpected '=' in /var/www/vhosts/cmstutorials.org/subdomains/blog/httpdocs/forums/index.php(597) : eval()'d code on line 41

      Comment

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

        #4
        [*]Disable plugins from file includes/config.php and add this right under <?php on the next empty line or uninstall any modification(s) that have not been updated to work with new vBulletin stable release


        PHP Code:
        <?php
        /*======================================================================*\
        || #################################################################### ||
        || # vBulletin 3.8.4 - Licence Number xxxxxxx
        || # ---------------------------------------------------------------- # ||
        || # All PHP code in this file is ©2000-2009 Jelsoft Enterprises Ltd. # ||
        || # This file may not be redistributed in whole or significant part. # ||
        || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
        || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
        || #################################################################### ||
        \*======================================================================*/
        PHP Code:
        <?php
        define
        ('DISABLE_HOOKS'true);
        /*======================================================================*\
        || #################################################################### ||
        || # vBulletin 3.8.4 - Licence Number xxxxxxx
        || # ---------------------------------------------------------------- # ||
        || # All PHP code in this file is ©2000-2009 Jelsoft Enterprises Ltd. # ||
        || # This file may not be redistributed in whole or significant part. # ||
        || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
        || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
        || #################################################################### ||
        \*======================================================================*/
        Help! I've broken my board!
        http://www.vbulletin.com/docs/html/disable_plugins

        Comment

        • krike
          New Member
          • Jul 2008
          • 19

          #5
          I did but it doesn't work, I'm still having the problem.

          I backed up my database and reuploaded and then I got that problem.

          Comment

          • krike
            New Member
            • Jul 2008
            • 19

            #6
            if define('DISABLE_HOOKS', true); doesn't work, is there something I can delete or change in the database or is it somewhere in the files??
            Any help would greatly be appreciated. thanks

            Comment

            • krike
              New Member
              • Jul 2008
              • 19

              #7
              myeah ok... I reinstalled and imported the user and forum posts...

              Comment

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