![]() |
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 |
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.
|
Quote:
If so, I can pay via PayPal or you can do it for free, and your help will be greatly appreciated :] |
If you wish to pay someone to write this for you, you may post in the Requests For Paid Services forum.
|
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"> 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. |
Quote:
|
bump
|
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.
|
All times are GMT. The time now is 01:56 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:
|