Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 11/06/04 - 02:35 PM:
#1
On the main page, I display many URLs and link titles. When a long title is used for a site, it pushes the table border away, so the page gets messed up. On the other side, when the title is the same as the URL, the too many repeating "http://www..." statements take too much space. I'd like to shorten the titles and omit the "http://". Now, if I were to use plain php code,
would do the job. But in WSN I have {LINKTITLE} and don't know how to shorten the title or omit "http://".
How can I do this?
(Is there a full list of the WSN variables with basic explanations? Sometimes I can't figure out which variable should be used for a certain purpose. For example, there's a variable for "Site last updatedATE", but I need a variable to display the update hour, because I plan to use a static index page.What sholud be the var.?)
Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 11/07/04 - 01:22 PM:
#3
Yes, {LINKBASEURL[nohttp]} omits "http://", but a "_" appears after the url this time..(....com_) I had a look at the function in classes/onelink.php, but couldn't figure out why. But it's ok, I can use titles instead of URLs on the main page, so there will be no need to deal with this variable.
{LINKTITLE[20]} shortens the title, but I need a small change on this function about the lengths of trimmed part,the displayed part and the "..." at the end of the shortened title. But I can't find where it is.
Where is this shortening function placed? (I had a look in "onelink.php", but couldn't see it)