Navigation
Last Seen Users
Wanda Boscow< 5 mins
rebreb4700:49:37
Aokiji00:51:37
Hamyncgagjavy01:03:18
war0n02:28:05
spunk02:30:56
SeanChiarot04:23:42
tristan2106:16:17
fangstorm08:48:53
xirus09:32:40

Members: 27,609
Newest: Wanda Boscow
Downloads v7
Downloads v6
One-click Translation
Translate This Site

Member Poll
Which version of PHP-Fusion are you using?

6.xx.xx
6.xx.xx
4% [19 Votes]

7.00.xx
7.00.xx
8% [38 Votes]

7.01.xx
7.01.xx
8% [40 Votes]

7.02.xx
7.02.xx
81% [404 Votes]

Votes: 501
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

24-05-2013 01:10
mainkan disini games Permainan Memasak secara online

24-05-2013 00:42

23-05-2013 18:23

23-05-2013 01:18
swarovski schmuckswarovski schmuck swarovski schmuck günstigswarovski schmuck günstig

23-05-2013 01:17
monster beatsmonster beats beats by drebeats by dre

23-05-2013 01:16
ugg pas cherugg pas cher bottes uggbottes ugg

23-05-2013 01:14
ugg pas cherugg pas cher

23-05-2013 01:12
<a href="http://www.bo
ttesuggpaschersold
e.com/">ugg pas cher</a>ugg pas cher

22-05-2013 05:14

22-05-2013 05:06

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
View Thread
Who is here? 1 guest(s)
 Print Thread
trimlink()
abithecat
Hello!

This function is making me mad :S When it is used in a panel, it creates a strange symbol before the three dots (...)
For example you can look at the second panel on the left of my site http://sobstvenbi... This is latest articles panel and at the second row the strange symbol appears. I tried almost everything in the world to remove it, but ... i can't.

Here is my trimlink function:
Download source  Code

function trimlink($text, $length) {
   $dec = array("&", "\"", "'", "\\", '\"', "\'", "<", ">");
   $enc = array("&amp;", "&quot;", "&#39;", "&#92;", "&quot;", "&#39;", "&lt;", "&gt;");
   $text = str_replace($enc, $dec, $text);
   if (strlen($text) > $length) $text = substr($text, 0, ($length-3))."..."; //org
   //if (strlen($text) > $length) $text = substr($text, 0, )."...";
   $text = str_replace($dec, $enc, $text);
   return $text;




How can I change it to fix this? May be it is because of the encoding (utf-8)?
And it is worse, this problem appears everywhere this function is used... And this is frequently |:(

Thanks!
Some great business ideas on http://bigbusines...

A free but powerful Factoring Polynomials calculator.
 
Web
abithecat
Come on, any ideas?
Some great business ideas on http://bigbusines...

A free but powerful Factoring Polynomials calculator.
 
Web
abithecat
Thanks to anyone that tryed to help Smile

these squares appeared bacause the cirillic is 2 bytes in utf-8 encoding the funtion "substr" cuts byte by byte and special characters appeared of half letter.

I hope someone coul decode my explanation and takes advantage from it Smile
Some great business ideas on http://bigbusines...

A free but powerful Factoring Polynomials calculator.
 
Web
slaughter
Did you find any solution for this issue?
Pimped-Fusion:
http://www.pimped.../news.html
SEO-Url-Rewrite, Multi-Language, Warning System and more features!
 
Jump to Forum: