1
voddie
Character lengths in mylinks "recent links"
  • 2005/6/6 23:26

  • voddie

  • Just popping in

  • Posts: 71

  • Since: 2003/10/20


Hi

Could someone please assist me...

I have mylinks and mydownloads installed, both have recent links/recent downloads as blocks.

The character length for the link is set somewhere to a number, ie the title is cut short and followed by ...

I searched the admin section but cannot find anywhere to change the character length so supposed its within the following php code:

function b_mylinks_top_show($options) {
global $xoopsDB;
$block = array();
$myts =& MyTextSanitizer::getInstance();
$result = $xoopsDB->query("SELECT lid, cid, title, date, hits FROM ".$xoopsDB->prefix("mylinks_links")." WHERE status>0 ORDER BY ".$options[0]." DESC",$options[1],0);
while($myrow = $xoopsDB->fetchArray($result)){
$link = array();
$title = $myts->makeTboxData4Show($myrow["title"]);
if ( !XOOPS_USE_MULTIBYTES ) {
if (strlen($myrow['title']) >= $options[2]) {
$title = $myts->makeTboxData4Show(substr($myrow['title'],0,($options[2] -1)))."...";
}
}

Am I looking in the right direction? do i need to edit the function to show the full title name and not truncate it?

Thanks in advance

Voddie

2
hervet
Re: Character lengths in mylinks "recent links"
  • 2005/6/12 13:12

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


You can set the title's lenth in the block's parameters (when you are, in the admin panel, editing the module)

Login

Who's Online

188 user(s) are online (136 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits