+ Reply to Thread
Results 1 to 3 of 3

Thread: Do conditionals automatically mean more queries?

  1. #1
    Senior Member memobug is on a distinguished road
    Join Date
    Jun 2002
    Posts
    150

    Do conditionals automatically mean more queries?

    If I add conditionals to the postbit template to check and see if it's a certain userid, or if there are a certain number of posts in the thread, before providing the quickreply box, does that conditional necessarily add queries? Or is it a case of it depends..?

    Regards,

    Matt

  2. #2
    vBulletin Team Zachery has a spectacular aura about Zachery has a spectacular aura about Zachery's Avatar
    Join Date
    Jul 2002
    Location
    Cleveland, Ohio
    Age
    24
    Posts
    40,637
    Conditionals do not, or at least rarely, ever increase querys, they are just simple if statments
    Zachery Woods
    vBulletin Support Team
    Please do not PM me for support
    $this->hasFlavr() ? $nom->nom('nom') : $want->doNot()

  3. #3
    Senior Member shovel is on a distinguished road shovel's Avatar
    Join Date
    Mar 2002
    Location
    Charleston, SC
    Age
    24
    Posts
    168
    A conditional addition such as that will never add queries. They simply reference from former queries in that script.



+ Reply to Thread

Similar Threads

  1. Can I use Conditionals to do this?
    By xbleed in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 5
    Last Post: Tue 4th May '04, 1:09am
  2. Conditionals
    By Seanie in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 5
    Last Post: Mon 3rd May '04, 5:12pm
  3. Conditionals
    By SpeedStreet in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 2
    Last Post: Sun 29th Jun '03, 11:46pm
  4. How do I disable "Automatically Parse URL's" automatically?
    By JediSJ in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 5
    Last Post: Thu 13th Feb '03, 6:06pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts