jDownloadsownloads.com

Advertisement
Advertisement:

Author Topic: Latest uploads module doesnt respects shorting charachter Counts  (Read 21822 times)

0 Members and 1 Guest are viewing this topic.

Offline eduserver

  • Newbie
  • *
  • Posts: 18
Hey arno, just tell me where utf8_decode should be ? And i wonder does your codes realise blank chars?

  // short the file title?
            if ($sum_char > 0){
            $gesamt = strlen($files[$i]->file_title) + strlen($files[$i]->release) + strlen($short_version) +1;
            if ($gesamt > $sum_char){
               $files[$i]->file_title = JString::substr($files[$i]->file_title, 0, $sum_char).$short_char;
               $files[$i]->release = '';
            }   
         }

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Hi,
sorry but i understand not really what you mean.
The shorted text in your pic is the result from your module setiings.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline eduserver

  • Newbie
  • *
  • Posts: 18
Hi Arno,

I set 30 for charachter count limit. As you see on picture, some file names long some file name is short ( only dotted ones)

But must be all file names the same width after (...)

I mean normaly They must seems like below:


I set 20 char limit count for thesee;


This is a test file...
This is another  t...
This is a differen...

All lines have the same width

Offline eduserver

  • Newbie
  • *
  • Posts: 18
Hey Arno why you didnt answer my question

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
It can only have the same width, when you use a monospaced font like 'courier'.
http://en.wikipedia.org/wiki/Monospaced_font

Sorry for my late reply but i am very busy.
« Last Edit: 17.03.2014 12:40:09 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline DailyIndia

  • Newbie
  • *
  • Posts: 2
    • Daily India
hey i have downloaded the latest version,  i think this version is better than the previous thanks for the new update  ;D :)  im from

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Okay. Thanks for the result.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

 

Advertisement