The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello Fellows,
can i add some number inside the vbulletin 5 display templates? i wrote a simple javascript that works but i do not know how can i use the updated value. Here is the code. Code:
<script>
var number = {vb:raw conversation.nodeid};
idd=number + 1;
console.log(idd);
</script>
i want to use the "idd" as follow. Code:
<img class="bbcode-attachment" src="{vb:raw baseurl}/filedata/fetch?id=idd&type=medium"/>
What i am trying to find is the attachment id in a vbulletin 5 post.is there any simple way of getting all the attachment in a vbulletin 5 post? One Of My Question is How Can Get all the images linked in to the post.? Thank you Regards devoid |
|
#2
|
|||
|
|||
|
I got the answer to the first question by using the vb:math tag as follow.
Code:
<img class="bbcode-attachment" src="{vb:raw baseurl}/filedata/fetch?id={vb:math {vb:raw conversation.nodeid} + 1 }&type=thumbnail" title="{vb:raw conversation.htmltitle}" alt="{vb:raw conversation.htmltitle}" />
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|