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.

brianjw

Welll it is alright because only staff are allowed to post links on my site :D

Thurnok

Yes, good that works for you.  Others are using it as intended, member submittable links.  Therefore, I was making more of a general FYI for everyone.  hehe

MeRcChRiS

i dont understand the membergroup numbers thing, what would the member group numbers be for global members, admins, guests, members?

G6Cad

If you look in your database (phpmyadmin) and then in the table (membergroups) you see the numbers for the diffrent membergroups there.
EG Amdin have 1 and so on

Thurnok

You can also go to the membergroups list (admin control panel -> membergroups) and simply hover your mouse over each group's modify link and look at the link in your browser's status bar.  The membergroup number for that group will be displayed at the end of that link.

You can hover over the actual membergroup name too, all except for the moderator name (which has no link except the modify link at the end).

The membergroup number for registered users that are not assigned any particular group is 0.

Note that you do not need to put the Admin membergroup in, Admins automatically have access by design.  Additionally, it is HIGHLY advisable to not allow guests to add/edit/delete links.

MeRcChRiS

Ok, for some reason im getting this error at the moment.

QuoteQuery Failed! Table NOT Created!

brianjw

I'm not much of a coder but I believe something is wrong with the code you have in the block. Did you change the code?
I would recommend copying the code from post 1 in this topic and paste that into a block. However if you copy and pasted it freshly and gives you this error I will never know :coolsmiley:

Thurnok

After you enable the Linkit block, the first time a page where it is enabled is accessed, it will attempt to create the table that holds the link information.  The name of the table is defined by the $li_tablename variable.

Make sure you have a valid table name in there (the default "linkit" should be valid).  Generally the reason for getting the error you received could be a number of things:
- you don't have rights to create tables (shouldn't be the case here however)
- the table already exists but is corrupt
- something happened while it was trying to create the table, and it wasn't successful

Check to see if the table was actually created.  If so, drop the linkit table, then load the page again to see if it successfully creates it.  If you get the same problem, or if the table was never created, try manually creating the table via phpMyAdmin.

MeRcChRiS

oh yeah i did change something, now its working thanks man!

Ken.

I'm a little late getting to this party, but I sure am glad to be here... this is one great piece code!
Thanks Thurnok, ya done good!  ;D

Works like a charm, only had one little glitch and that was solved after I figured out that the membergroup numbers should be entered as ââ,¬Â¦Ã¢â,¬Ëœ2ââ,¬â,,¢, ââ,¬Ëœ3ââ,¬â,,¢, ââ,¬Ëœ4ââ,¬â,,¢) and not as ââ,¬Â¦ ââ,¬Ëœ2, 3, 4ââ,¬â,,¢.

This bloc works great, all that remains now is to see if my members will use it.  ;)
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

This website is proudly hosted on Crocweb Cloud Website Hosting.