The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'd like to know the number of characters of the first post of each page. It's possible to do this?
For example: If "number of characters" > 5000 "do option1! else "do option 2" End if Thanks. |
#2
|
|||
|
|||
![]()
Why, for what reason
|
#3
|
|||
|
|||
![]()
Hello Force,
It's for showing diferent ads. One larger ads if the text is larger than X characters, and one sorter ad if the text is shorter than X characters. Do you know how to do this? Thanks. |
#4
|
||||
|
||||
![]()
Use the strlen function on the $message in a plugin - http://php.net/manual/en/function.strlen.php
|
#5
|
|||
|
|||
![]()
Thanks very much, Lynne.
I can do some little things with PHP, but I don't know how to do a plugin. It could function this?: <vb:if condition="strlen ($message)"> 5000 "show ad 1" </vb:if> <vb:if condition="strlen ($message)"<= 5000 "show ad 2" </vb:if> Thanks. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|