The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Attachment upload - Display attachment ID
Hey guys,
Does anyone know how to display attachment ID wrapped in the bb code after the upload in the attachment manager box? Basically, I want that it shows attachment ID only in certain forum ID's (which is easy) but hard part for me is to show attachment ID in the bb code (video category of the forum, hence in the bb code), which would user copy and then paste into the post. Thanks, - Frosty |
#2
|
|||
|
|||
Anyone? It shouldn't be that hard I guess... I just want to show ID's of the attachments that have been uploaded in the certain forums be wrapped in the bb code. Instead of the normal attachments list. :/
|
#3
|
|||
|
|||
I think you just need to edit the newattachmentbit template (under "New Posting Templates") and put $attach[attachmentid] where you want to insert it. For instance maybe add another table cell like:
Code:
<td>[SOMECODE]$attach[attachmentid][/SOMECODE]</td> |
#4
|
|||
|
|||
PHP Code:
P.S. It doesn't work though. |
#5
|
|||
|
|||
That looks like template newattachment - try adding it to newattachmentbit (although then you will get one per attachment and not one for the entire box).
If you want one that's not in the list of attchments but just has the id for the latest, it's a little harder, you'd probably have to create a plugin and query the database since the attachment info isn't saved after the list is created (or you could always edit newattachment.php). |
Благодарность от: | ||
Frosty |
#6
|
|||
|
|||
Cheers man.. It works!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|