News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Links

Started by SMFHacks.com Team, July 12, 2006, 12:33:28 AM

Previous topic - Next topic

ChaosEnergy

if i install other packages, everything works fine...
since month
Chaos Empire ®

URPG

Yeah, I'd like to have it in a TP Block too... seems still quite some time until TTP got something like that itself

vbgamer45

Quote from: akulion on November 30, 2006, 03:28:06 AM
hi vbgamer45

i wanted to ask - I use TP, is there a way for me to add a small list of the last 6 links added to the links directory and display it in a block ?

What I am wanting is this (without descriptions and stuff - just the name of the site linked to the URL:

Last 6 Links added:
- link 1
- link 2
- link 3
- link 4
- link 5
- link 6
Add A Link (link for adding a new link)

thanks
Coded a quick TinyPortal / SSI function you can use


function ssi_links_recent()
{
global $scripturl,$db_prefix;

$dbresult = db_query("SELECT l.ID_LINK, l.rating, l.title,l.date, l.ID_MEMBER, l.description,l.hits FROM {$db_prefix}links AS l WHERE l.approved = 1 ORDER BY l.ID_LINK DESC LIMIT 5", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($dbresult))
{

echo '<a href="' . $scripturl . '?action=links;sa=visit;id=' . $row['ID_LINK'] . '" target="blank">' . $row['title'] . '</a><br />';


}
echo '<br />';
echo '<a href="' . $scripturl . '?action=links;sa=addlink">Add Link</a>';

mysql_free_result($dbresult);
}
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Gobo

#103
wow thanks works like a charm :D

ive posted this on TP as well here

thanks so much man !
-----

hey i just noticed the add link button returns the page "no category selected" is there a fix for this?

if not then no biggie i just linked to the Links page for now

kriskd

I got the following error when I attempted to approve a link:


Unknown column 'l.ID_MEMBER' in 'on clause'
File: /home/.cutiekins/sprechereast/thecohortcafe.com/forum/Sources/Load.php(1718) : eval()'d code
Line: 824


Any ideas?  I'd really like to get this mod up and running!
SMF 2.0.2

vbgamer45

Quote from: kriskd on December 01, 2006, 09:42:46 PM
I got the following error when I attempted to approve a link:


Unknown column 'l.ID_MEMBER' in 'on clause'
File: /home/.cutiekins/sprechereast/thecohortcafe.com/forum/Sources/Load.php(1718) : eval()'d code
Line: 824


Any ideas?  I'd really like to get this mod up and running!
It is a left join error on some servers. I am not sure why it doesn't work on some server configs.
That join is mainly used for Guest Link support.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kriskd

Quote from: vbgamer45 on December 01, 2006, 09:47:01 PM
Quote from: kriskd on December 01, 2006, 09:42:46 PM
I got the following error when I attempted to approve a link:


Unknown column 'l.ID_MEMBER' in 'on clause'
File: /home/.cutiekins/sprechereast/thecohortcafe.com/forum/Sources/Load.php(1718) : eval()'d code
Line: 824


Any ideas?  I'd really like to get this mod up and running!
It is a left join error on some servers. I am not sure why it doesn't work on some server configs.
That join is mainly used for Guest Link support.

So basically I'm out of luck for getting this mod to work on my server?
SMF 2.0.2

madfiddler

Thanks for the update. It works well on 1.1

However

I believe for this mod to really work, it's needs implimentation of a couple of my previous suggestions.

1) Links in each catagory are displayed alphabetically, NOT in order of addition.

2) It needs subcatagories

3) (Possibly personal but) I think the font used is too large. It needs to be smaller to display more info/links on a page.

Cheers,

m

vbgamer45

2. I added sub categoreis in the latest release and a lot of other changes.

Check it out.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

madfiddler

So it is.. Apologies for not seeing that! Nice one!

trenchteam

works very well on my site.  Thanks! using 1.1 too!

anonim

no problem here. good job, tks.

Adamzon

Yo!

I have a problem, only the Admin can add links, When a ungrouped member, or "standard" member login the "Links Directory Panel" dont show.

Help?

/adam

Gobo

check your permissions for the Links module
ull have to click those membergroups who can access and add link

vbgamer45

Updated the mod. Fixed LEFT Join problem for approve links page that affected some configs.
Fixed one language string in Links.template.php for Sub Categories.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Gobo

vb can u put the change in code here?

cos instead of uninstall and reinstall - id just like to update it manually if possible please

aku

junglecat

Is there any way to get the links that are added in alphabetical order?
PM me for affordable hosting. I will install your SMF forum with your choice of a theme for FREE.
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
Join us at Christian Discussions 
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

Adamzon

Quote from: akulion on December 06, 2006, 07:28:39 AM
check your permissions for the Links module
ull have to click those membergroups who can access and add link

Did that, but it still dont work.
Only Admin can add link :(

Hendry

After installing I'm getting this error when adding a new link:

Field 'image' doesn't have a default value
File: D:\websites\genealogenforum\Sources\Links.php
Line: 284

Do I need to edit something to fix this error? I'm running on version SMF 1.1 and version 1.6.3 of the mod

vbgamer45

Quote from: hendry on December 08, 2006, 01:40:26 PM
After installing I'm getting this error when adding a new link:

Field 'image' doesn't have a default value
File: D:\websites\genealogenforum\Sources\Links.php
Line: 284

Do I need to edit something to fix this error? I'm running on version SMF 1.1 and version 1.6.3 of the mod

I will check that later today.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: