The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
Quote:
if you are doing it inside of files $vbulletin->post['postid'] |
#3
|
|||
|
|||
I guess when in doubt use $vbulletin->
Edit: It didn't work. |
#4
|
||||
|
||||
Quote:
The postid is already inside of the postbit template, what exactly are you trying to do, and how? |
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
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.
|
#7
|
|||
|
|||
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:
|
#8
|
|||
|
|||
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. |
#9
|
|||
|
|||
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. |
#10
|
|||
|
|||
Why not just a link in the postbit when displaying the post?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|