![]() |
|
Thread Tools |
#1
|
|||
|
|||
How to count the number of characters of a post?
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. No members have liked this post.
|
#2
|
||||
|
||||
Why, for what reason
__________________
No members have liked this post.
|
#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. No members have liked this post.
|
#4
|
||||
|
||||
Use the strlen function on the $message in a plugin - http://php.net/manual/en/function.strlen.php
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#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. No members have liked this post.
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Post Count Modifier - Minimum Post Characters to Count towards Post Count | Chris M | vBulletin 2.x Full Releases | 35 | 13 Oct 2003 19:29 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 12:53.