PDA

View Full Version : Modifying The Search Widget


devoidfeast
07-22-2015, 04:14 AM
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.

<script>
var number = {vb:raw conversation.nodeid};
idd=number + 1;
console.log(idd);
</script>


How Can I Use the Updated Value in variable idd?

i want to use the "idd" as follow.


<img class="bbcode-attachment" src="{vb:raw baseurl}/filedata/fetch?id=idd&amp;type=medium"/>

i kind of want to assign the value of idd to conversation.nodeid.

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

devoidfeast
07-22-2015, 04:59 AM
I got the answer to the first question by using the vb:math tag as follow.

<img class="bbcode-attachment" src="{vb:raw baseurl}/filedata/fetch?id={vb:math {vb:raw conversation.nodeid} + 1 }&amp;type=thumbnail" title="{vb:raw conversation.htmltitle}" alt="{vb:raw conversation.htmltitle}" />


How can i Get the images linked to a post not uploaded?