TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 445
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 415
  • Total: 415

[Block] Linkit - A member submittable links block

Started by Thurnok, August 02, 2006, 10:01:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

penfield

I still get an error message trying to install...Parse error: parse error, unexpected T_STRING in /home/mkjyey/public_html/smf/Sources/Load.php(1607) : eval()'d code(34) : eval()'d code on line 1 ...and am thinking i may have to manually install a table. how do i do this? thanks!

Thurnok

Not sure what you are doing, but that error does not indicate a problem with table creation.  It is generally idicative of a typo in code, but I'm unable to reproduce the problem.

What version of SMF and TP are you running on?
If you want me to take a peek, you can PM me with site name, and a temp admin id/pass to look for you.

knat

Very nice snippet.. is it possible to add a scrollbar ??

Cheers

Knat

Thurnok

Possible for a future update, however mostly it will depend on time and when the TP Link module is released.  Linkit is more of a temporary solution to the Link module (~possibly~).

Sledge

Very nice work, Thurnok. How would I go about making it so the links wrap instead of expanding the cell to accomodate? I'd like to put longer url names in but am finding that it's pushing the right side of my page off the screen.

Thurnok

It should automatically wrap, but it may have to do with the Theme you are using.  Here's an Admin shot, and a User shot of it with a long URL Name that wraps - see screenies:


sanax

#46
Great job!!

One question about the layout although not critical... how can I move the 'add URL link' box below the text itself? The 'add URL name' box appears neatly below the text...

Thanks

[edit] - Problem solved. Seems to me it's only the blocks width that causes the problem!

Thurnok

#47
@sledge
Another thing you might consider is either expanding the block size (left or right - whichever side you have it in), or placing it in a center block / article instead.  Especially if you want to have really long descriptive names for the links.  With a center block/article, you can also set the columns to 3 or 4 or whatever to have multi-column display of the links.

@sanax
Good deal.  Yea, sometimes it is a matter of a couple pixels depending on your theme.  Adjusting the block size usually will do the trick.  If need be, you can always add a
<br />
tag right after the text in the code forcing a line break.

Sledge

Quote@sledge
Another thing you might consider is either expanding the block size (left or right - whichever side you have it in), or placing it in a center block / article instead.  Especially if you want to have really long descriptive names for the links.  With a center block/article, you can also set the columns to 3 or 4 or whatever to have multi-column display of the links.

Got it! I think it was my theme (Oxygen) causing it because nothing I tried worked, except the following:

$li_columns = 3;
// want to add your own styles to the rows/columns?  change the tag info here
$li_start_row = '<tr>';
$li_start_col = '<td width="33%" padding-left: 3; padding-right: 3" bgcolor="#F4F5FA">';


I defined the width of the cells and now they wrap beautifully.

Another question: Is there a way to alter the code so the new links go to the top instead of the bottom? I use your block to list interesting news from around the world (have a look: http://www.politipoll.net). I don't want to edit every link each day, but add one to the top and delete one from the bottom as I find interesting stories. Is it possible?

Thurnok

A sorting feature has been planned, I just hadn't gotten around to doing it yet.  hehe

But certainly, sorting by alphabetically, or chronologically is possible and I do have plans to impliment that, just has been on the end of a long list.

This website is proudly hosted on Crocweb Cloud Website Hosting.