vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Need help with pligg button code (https://vborg.vbsupport.ru/showthread.php?t=262266)

talkgoldcom 04-19-2011 04:27 PM

Need help with pligg button code
 
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?

Code:

<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 [DATE]1303237087[/DATE] at [TIME]1303237087[/TIME] ---------------

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 :(


All times are GMT. The time now is 08:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01004 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete