The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
putting the first attachment in a variable
Hi there,
I'm trying to store the first attachment of the first post in a variable, but no matter what I do, I either get errors, or the showthread page stops loading. basically this is the code that I have, but it doesn't work. I'm not really sure how I would store the first attachment of the firstpost in a variable, PHP Code:
thank you. |
#2
|
||||
|
||||
What are the errors you get? What are you trying to do with this?
|
#3
|
||||
|
||||
Quote:
Then I got no more errors, but the showthread page didn't load. All the other pages load up fine except showthread. Basically what I'm trying to do is to have the first attachment of the first post stored in a variable so that I can call it within the template on the first post. hope that makes sense, thanks. |
#4
|
||||
|
||||
Thanks, maybe I'm still not understanding... I need a coffee.. anyone want to do a starbucks run?
You mean like if the attachement is an image, you want to display it or something? Or if the attachement is a zip file you want the actual binary data of the zipfile in the variable? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|