![]() |
[SOLVED]Pulling threadid in templates
1 Attachment(s)
This is a first time my doing this with vb4 and I need some help. This seems easy but I'm struggling with it bad.
I have added a sample product showing the 2 ways I am trying to add buttons within a post. thanks to shka I have the custom template one working, the parse_template one is not fetching the threadid though. I have tried pulling the threadid from postbit, and showthread within plugins. example:parse templat (in a showthread condition) i am just using new thread button in posts as a base, I want to add a button that will be grabbing the threadid not the forum id. Code:
$sessionurl = $session['sessionurl']; but I am not having any luck. I first wanted to do this in postbit, but was having the same issue. Using post thanks button placement as my base, I could not get the threadid to input: Code:
<template name="post_thanks_button" templatetype="template" date="1477136504" username="Abe1" version="7.88"><![CDATA[ Code:
<plugin active="1" executionorder="5"> |
Forum ID seems to be missing
$threadidid = '{vb:raw threadid}'; PHP Code:
|
Quote:
this is what I have, no other plugin: (parse templates) PHP Code:
I have also tried: Code:
<plugin active="1" executionorder="5"> |
Which template?
In postbit_legacy or post_thanks_button Code:
{vb:raw post.threadid} |
Quote:
I have updated my code above your post to show ways I have tried. I thought the post thanks hack would be a good reference point because it had the button where i wanted but I cant seem to get threadid within the template. I read this post from kh99: Quote:
|
Either my English is too bad and I don't understand you.
Or you didn't read my post / code. |
1 Attachment(s)
I am providing my button test, this plugin simply adds a button to the postbit, and to the showthread.
both added buttons I can not get the threadid. see code. |
{vb:raw post.threadid} WORKED FOR THE POSTBIT ONE! THANK YOU! but how can I get the showthread one to show threadid?
|
Code:
{vb:raw threadinfo.threadid} Code:
In your plugin code you can use $threadinfo['threadid']. ... https://www.vbulletin.com/docs/html?...rsion=40205500 Styles & Templates / vBulletin Style Reference / Templates / Template Syntax Read Variable Access (and the other stuff) ;) |
using parse_templates on the showthread template
using $threadinfo[threadid] my link spits out refresh.php?do=newthread&t=$threadinfo[threadid] using '.$threadinfo['threadid'].' my link spits out: rrefresh.php?do=newthread&t= |
All times are GMT. The time now is 06:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|