The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Forum ID; if conditions, help requested!
Hello, I have a problem.
If conditional are very hard for me to understand and to make especially customized if conditionals. What I'm trying to do is only show the total amount of posts that a member posted in a specific forum / forum id. Here's my code: <br />Off Posts: <if condition="in_array($forum['forumid'], array(2,3,4))">$post[posts]</if> 2,3,4 are my forum id's and $post[posts] only show my amount of posts in every forum id not in the specific ones I specified in the if conditional tag. Please help me, thank you for your time. Best Regards, OGZ.Korea |
#2
|
||||
|
||||
You would need to write a plugin to do a query to get the number of posts only in those forums. You can't do it with just a variable.
|
#3
|
|||
|
|||
Quote:
If so, I can pay via PayPal or you can do it for free, and your help will be greatly appreciated :] |
#4
|
||||
|
||||
If you wish to pay someone to write this for you, you may post in the Requests For Paid Services forum.
|
#5
|
||||
|
||||
Where do you want to display this?
Here is what I added to the template memberinfo_block_statistics to add a link to the posts in my wiki forum: Code:
<fieldset class="statistics_group"> <legend>Wiki entries</legend> <ul class="list_no_decoration"> <li><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]&starteronly=1&forumchoice[0]=176" rel="nofollow"><phrase 1="$prepared[username]">Find all wiki's written by $prepared[username]</phrase></a></li> To add a conditional, you would need to add a plugin. Review the template memberinfo_block_statistics to see what it should do. Basically what you need is to create the conditional $prepared[posts_in_forum_x] If you have that, you can just reuse the code thats already in the template memberinfo_block_statistics, but add that conditional. I hope that helps somewhat. Sorry for providing the complete answer. This should be a simple thing for a coder to prepare. |
#6
|
|||
|
|||
In the postbit legend, under $posts[posts]
|
#7
|
|||
|
|||
bump
|
#8
|
||||
|
||||
Why are you bumping this? You got your answer- you need a plugin- if you're willing to pay make a request in the paid requests forum as Lynne pointed out. You will NEVER be able to do this with just a conditional.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|