![]() |
show postid in post
I am using a data manager to send text to a post.
Is there a code that will show the postid of the post it's on? I already tried $post[postid] In theory this is how the link is supposed to be hosting.php?do=accept&postid=880058&userid=82213 |
Quote:
if you are doing it inside of files $vbulletin->post['postid'] |
I guess when in doubt use $vbulletin->
Edit: It didn't work. |
Quote:
The postid is already inside of the postbit template, what exactly are you trying to do, and how? |
This is part of the data manager that I have in my hack
PHP Code:
I want to do this because when I click the link I want to automatically edit the post. |
If you want to have the postid of the post you are going to create, it is not there until after the post is made.
|
Tell me if the following will cause conflict if I have a large userbase.
Before I process the post data manager I get the last postid PHP Code:
PHP Code:
|
Well what you try is selecting all posts, so yes that would put a high load on the server. If you really want it like this then use the following:
PHP Code:
I still don't understand why you want to create a post that contains the postid of the post itself. |
The reason why I want the postid in the post is because I have two links.
When I click the link I want to automatically edit the post and remove the two links and replace them with the respected text. |
Why not just a link in the postbit when displaying the post?
|
explain please.
|
You are now trying to put the link in the posttext itself. Why not just put the link somewhere in the postbit when displaying the post (when you display it, you already have the postid).
Otherwise the best would be to first create the post, retrieve the postid of the created post, then edit the posttext. |
I understand, kind've how the signature is already in the template.
Is there a conditional for threadid? Something like... <if condition="$threadid == 2">Links here</if> |
Use $post[threadid]
|
Thanks, I got it now.
|
All times are GMT. The time now is 04:39 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:
|