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: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 346
  • Total: 346

[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.

brianjw

Well yeah, but who says the link module will have any blocks... probably though... knowing bloc, since he already has blocks for all the smf features, when he gets his module features they certainly will probably be there. But your system works very good as well. Maybe Bloc will use some of the code for a Link Block if/when he makes one for the module. :)

Thurnok

Update 1.7
  • Added auto-scrollbar sizing of block

    $li_blocklines = xx;

    Set the $li_blocklines variable to the approximate number of lines of links to display in the block.  This assumes there is no inside title ($li_title) and no inside description ($li_desc) [i.e. setting them to null string values] and the user does not have the editboxes and buttons displayed or any checkboxes.  Adjust as necessary to suit your liking.  The block will size to your setting and once enough info has filled past the block size, the block will stay the same size, but will have a vertical scrollbar automatically in place to scroll through the undisplayed info.

    Setting $li_blocklines = 0 will disable the autoscroll feature and the block will increase in size to fit the data as it did in previous versions of Linkit.

    This feature is good for left/right blocks when you have alot of links and don't want the block growing so large that it disrupts the layout of your site.

    Enjoy!  :)

RoarinRow

So strange, it didn't work for me.  I just had a blank screen   :o  I carried all my settings over to the new code and nothing.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Thurnok

Hmm... do you get any errors in your error log?  Strange indeed.  You can see it working at my TP Blocks site.

Perhaps a copy/paste issue with missing a semicolon somewhere or something?  If you want me to check it out for you Roarin... PM me with some info.

Thurnok

Minor update
Update 1.7.1
  • added explicit sort by ID when $li_sort = 0 so that if you edit your database table, changing ID numbers, you can sort by the ID instead of the order data was entered into the table
  • centered table for those of you using images instead of text for the link names

cru

#115
hi, it worked fine on my site, but i can't edit nor delete the links, im logged as the administrator and  i set the security options to

// who can edit links? - same format as addlink
$li_editlink_groups = array('1');


// allow members to edit/delete their own links? (0 = No, 1 = Yes)
$li_edit_own = 1;
$li_del_own = 1;


even if im logged as administrator, and checked on the radio button beside the  link that i made, the error says.
Quoteyou must select a link to edit first!

and when i try to delete a link, this is the error i get
Quoteselect a link first!
even if the radio button is checked.

another question, how can i make the links autoscroll?

im using smf1.1.3 with tp0.9.8

dannbass

Any ideas? I'm having the same problem... can't edit or delete my own links...
Thanks! Great block Thurnok!!

milesenglish

As others have said many times "Thanks Thurnok!"

I'd like to be able to group my links with sub categories.  Nothing serious, here's a visual of what I mean:


Dealers
www.dealer1.com
www.dealer2.com

Clubs
www.club1.com
www.club2.com

Accessories
www.accessories1.com
www.accessories2.com

I thought about putting a fake link in to allow for this but I don't think it'd work with sorting.  Is something that's doable?

milesenglish

One more thing, when I log out of my site and view it as a guest the title of the block goes away and reads "-no title-" instead.  It works correctly when logged in as a regular user where it displays as "Links".  Can you help with this?

Anthea

I love this block! I hope the edit links thing gets fixed though!

Thank you so much.

This website is proudly hosted on Crocweb Cloud Website Hosting.