The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
Please show what you have actually done.
|
|
#5
|
||||
|
||||
|
I put this code on postbit_display_complete and get the errors:
Code:
if ($post['postcount'] % $vbulletin->options['maxposts'] == 1)
{}
|
|
#6
|
||||
|
||||
|
I think you will need to use $this->registry->options rather than $vbulletin->options.
|
|
#7
|
||||
|
||||
|
That works great!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|