PDA

View Full Version : Need help with pligg button code


talkgoldcom
04-19-2011, 04:27 PM
OK, I need to figure out what to fill in here to make the button code display the correct URL of the thread, title of the thread, and tags from Vbulletin when click upon. Does anyone know what code would needed to be inserted for href="http://SAMPLE-LINK.com", rel="tag 1, tag 2",
"Example Title", and "Article Content", so that it works with VB 4.0?

<script src="http://onlivefans.com/home/modules/buttons/buttons.js" type="text/javascript"></script>
<a class="PliggButton PliggLarge" href="http://SAMPLE-LINK.com" title="Example Title" rev="Category 1, Fallback Category 2" rel="Tag1, Tag2, Tag3"><span style="display:none">Article Content Here!</span></a>

Lynne
04-19-2011, 04:57 PM
I don't know what you are looking for - the variable names? We can't tell you that unless you tell us what template you are putting that code in.

talkgoldcom
04-19-2011, 05:12 PM
I wish to put it in the Showthread template.

--------------- Added 1303237087 at 1303237087 ---------------

I assume I need the variable names in order to make it work on each thread.

Lynne
04-19-2011, 05:19 PM
These are directly from the SHOWTHREAD template:

thread url - {vb:raw thread_url}
thread title - {vb:raw thread.title}
tag list - {vb:raw tag_list}

talkgoldcom
04-19-2011, 05:34 PM
Awesome thanks. How about for the content of the first post of the thread? Any idea?

Lynne
04-19-2011, 06:00 PM
The firstpost info isn't actually available until you do the query to grab the it. So, you will need to write a plugin to grab it, I think.

talkgoldcom
04-19-2011, 06:01 PM
Hmm OK. The only problem is I have no idea how to write a plugin to do that :(