![]() |
How to write conditional " $post[postcount] % $vboptions[maxposts] == 1" in php?
If I write $post[postcount] % $vboptions[maxposts] == 1 in php I get an error because of the %. In a conditional it's working. What should I write instead of this in php?
|
PHP Code:
|
I have placed this in to postbit_complete. I get this error on showthread for every postbit.
Code:
Warning: Division by zero in /includes/class_postbit.php(296) : eval()'d code on line 29 |
Please show what you have actually done.
|
I put this code on postbit_display_complete and get the errors:
Code:
if ($post['postcount'] % $vbulletin->options['maxposts'] == 1) |
I think you will need to use $this->registry->options rather than $vbulletin->options.
|
That works great!
|
All times are GMT. The time now is 03:28 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:
|