The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I need help with a simple code
I want to know I can get an if statement to see if a user has posted in a the thread.
as in if(user has posted here) { action; } i'm gonna have this in the functions.php so i need it in whatever language that uses. I know a bit of coding as I am learning java so i know basic things but i dont know what to call for that kind of thing. |
#2
|
||||
|
||||
Can you describe what the end result will be?
You might be able to accomplish this via a template conditional or at the very least, a plugin so you wont have to do a file edit. |
#3
|
|||
|
|||
The end result isnt the issue, its the conditional statement. i'm actually editing something else in functions.php and am trying to use it to return true. if this just is too hard without some huge code just say so and i'll forget about it.
|
#4
|
||||
|
||||
Well it would help to have a better understanding of what your trying to do as I might be able to point you in the right direction for accomplishing it.
Off hand, I dont think functions.php is the right file to edit for this. It would be showthread.php iirc. I think the code would be something like IF ($post[postcount] == 1) { eval(standard_error(fetch_error('estore_custom_x') )); } You may also want to look in functions_showthread.php |
#5
|
|||
|
|||
You need to let us know what your trying to do. The end result does matter. Things to think about...
How are you defining which user to look for? (the user who is viewing, a usergroup?) Will something be shown on the showthread list or will it be in the postbit loop? What action do you plan on doing if the user did post? All these things matter, you need to be alittle more describtive in what your trying to accomplish. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|