The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Does [attach] forum images [img] need an extra query to show?
I am planing to use massive [img] bbcodes, are there extra queries need to show images from [img] posts?
Example: This picture is an attachment. Attachment 85456 Now when I link to this attachment using [img]https://vborg.vbsupport.ru/attachment.php?attachmentid=85456&thumb=1&d=121873 4503[/img], is an extra query needed? Images are in database, not in file system. |
#2
|
|||
|
|||
If you use the img-tag to link to a local image using attachment.php, then yes it will add queries.
If you link to an image file (ie. www.somesite.com/image.jpg) then it will not add a query. |
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
attachment.php will act as its own seperate page, so it will run the queries its needs to. Essentially, it is as though someone is visiting the page and its output is the attachment.
|
#5
|
||||
|
||||
So it will then only add 1 query to fetch all images regardeless how many [ img ] bbcodes I use. That's okay.
|
#6
|
|||
|
|||
It doesn't "Add" a query, these queries are executed on an entirely different page. Its like someone has clicked a link to the page.
|
#7
|
||||
|
||||
Yes, that's okay. I wrote my announcement cms and want to inform users how much more queries are executed when importing this modification. So I will say them, that 1 query is executed if attachments are in database and there are [ img ] bbcodes within posts that are redirections to thumbnails.
|
#8
|
|||
|
|||
No, attachment.php might add more then 1 query.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|