The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have this function which trims the thread-title of the latest posts after a query fetches the latest posts. Everything works well except I've noticed that if this query trims the thread-title at a speech-mark ( " ) , instead of displaying the speech-mark in the result it shows &quo... instead. But if I increase the cut-off by a few more characters then the speech mark is displayed correctly. How can I make the query display the speech-mark without it displaying '"...' at certain lengths of cutoff?
Here is the query to trim the thread-title: PHP Code:
someone help please... |
#2
|
|||
|
|||
![]()
has this been posted in the right section?
|
#3
|
|||
|
|||
![]()
Try using multibyte functions instead. So mb_substr() instead of substr(), and mb_strlen() instead of strlen().
|
#4
|
|||
|
|||
![]()
Thanks for your reply, I've just tried that but it still shows &quo... in the results.
--------------- Added [DATE]1220440916[/DATE] at [TIME]1220440916[/TIME] --------------- This is the query which fetches the latest posts: PHP Code:
|
#5
|
|||
|
|||
![]()
Try the fetch_trimmed_title vBulletin function instead.
|
#6
|
|||
|
|||
![]() Quote:
|
#7
|
|||
|
|||
![]()
Did you click the link and read the function description?
![]() |
#8
|
|||
|
|||
![]()
How can I make that function work with this query:
PHP Code:
|
#9
|
|||
|
|||
![]()
You don't use it in the query... you do it to the title you've fetched.
|
#10
|
|||
|
|||
![]()
The query has the following line which fetches the thread title, doesn't it?
PHP Code:
I have to use that query to get the latest posts on the forum, but the part I'm stuck on is using a function to correctly trim the thread-title of these latest posts. If I use the function you linked to, I would have to make it work with this query which fetches the actual posts, is that not correct? The title itself isn't enough because I need the thread-titles to link to the latest posts. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|