Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on July 12, 2006, 12:33:28 AM

Title: SMF Links
Post by: SMFHacks.com Team on July 12, 2006, 12:33:28 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=381)



SMF Links

By vbgamer45 (http://custom.simplemachines.org/mods/index.php?action=profile;u=24876)


Compatibility
Works with  SMF 2.1.X and SMF 2.0.x and SMF 1.1.x

Description
A link directory system for SMF. Allows user to add links and people to control categories. Permissions for adding links, editing links, deleting links, viewing links and managing categories.

4.0
+Added support for SMF 2.1
!Fixed bug with reorder links.
+Check links submitted start with http or https

3.0.5
!Fixed a bug with category level permissions when editing for regular member group not working.

3.0.4
!Fixed some database issues with SMF 2.0.x

3.0.3
!Fixed undefined error in SMF 2.0 on certain cases of add link
!Added alt tags for images on subcategory display

3.0.2
!Fixed a couple undefined errors in SMF 1.1.x

3.0.1a
!Fixed bug with add category SMF 2.0.x

3.0
+Alternate table row styles in different sections of the admin area to make it easier to read
+Updated html markup style to improve display for SMF 2.0

2.5.3
!bugfix: Superglobal variable substance checks implemented.
!bugfix: Some invalid XHTML cleaned up.
!bugfix: 2.0 queries now utilize proper sanitation methods.
!bugfix: session verification failed (SMF 1.1.x) due to $context['session_var'] (undefined in 1.1.x) being used.
!enhancement: submit buttons now use SMF styling (class: button_submit).

2.5.1
+Better support for utf8 data for links/categories
!Fixed bug with deleting categories
!Fixed catpermission bug smf 2.0
!Fixed session check in save settings

2.5
!Better checking/validation checking for categories and links that exist.
+Added checksession functions to forms for the links system

2.4
!Fixed options column to only show if they have permission to manage a link in the result returned.

2.3.2
+Added counting of unlimited depth subcategories link totals

2.3.1
!Fixed link tree to work with subcategories

2.3
!Fixed permission issue for edit/delete links now has own and any
!Fixed issue with lost sorder order on paging

2.2
+Updated some of style for SMF 2.0 curve
+Added permissions installed to view by default.

2.1.3
!Fixed Editor issue in SMF 2.0 for categories/links

2.1
+Moved queries out of the templates

2.0.1
!Fixed bbc editor in SMF 2.0 not working in IE6/IE7
!Fixed bug with & in urls not being stored correctly
!Fixed changing category order up/down with subcategories

2.0
!Fixed bugs with install for SMF 1.1.X
!Fixed missing permission text for SMF 2.0

1.8.2
!Fixed issue with when visiting a link undefined function.
!Fixed missing text string for error on missing category title

Version 1.8
+Added SMF 2.0.x Support!


1.6.6
+Added subcategories under the main galleries on board index.
!Fixed a bug which allowed a category to be it's own parent
!Fixed some formating on the link listing page

Version 1.6
Sorting of links on link display.
Added new layout for the admin panel.
Separated settings, categories, category permissions and approve links to their own sections in the admin panel.
Added page listing to approve links.
Added category level permissions for adding, editing, deleting and viewing links.
Added settings to toggle what information is shown on link display
Added Subcategories
Started basic support for Alexa and PageRank still need to make the functions work.

Version 1.5
Updated the mod to use language files
Better Guest add link support
New layout display
Added Image category icon option
You can change the category of a link easier now under edit link
Settings to show information on index and bbc control for link descriptions
Pages setting allows you to show how many links per page in a category


Version 1.4
Little updates and fixes.

Version 1.2
You can now add links from main page includes category select.
Added who action says they are viewing links.

Version 1.1 released.
Added BBC code is allowed for category titles, and description.
Added Top 5 Links Top 5 and Most visited links on main page.
Approval of Links (Permission based)
Link Rating (Permission based)
Links now open in new window.

Support Links
SMF Package Parser (http://sleepycode.com/PackageParser/)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
Title: Re: SMF Links
Post by: Bigguy on July 12, 2006, 01:21:12 AM
Very nice, Do you have a screenshot at all that we can check out. This sounds real good.
Title: Re: SMF Links
Post by: trenchteam on July 12, 2006, 04:14:13 AM
Yeah, screenshot would be nice

Title: Re: SMF Links
Post by: Bigguy on July 12, 2006, 05:47:14 AM
Here`s a couple, I have it installed on the Dilbermc theme:

(http://img137.imageshack.us/img137/1323/links0dn.jpg)

(http://img137.imageshack.us/img137/1852/links18pf.jpg)
Title: Re: SMF Links
Post by: dtww on July 12, 2006, 06:32:56 AM
I applied the mod on latest version smf, but I don't know where in admin to set it up or enable it. Thanks for clarification.
David
Title: Re: SMF Links
Post by: cb49747 on July 12, 2006, 09:08:45 AM
It seems you can administer it from the edit permissions link under Member Controls in the smf admin.

Mine installed ok but when I went to add a catagory I got this message and can no longer access the links page 

Here is the error message

Quote
Fatal error: Call to undefined function: parse_bbc() in /home/mckinl3/public_html/burgerfamily/forum/Sources/Load.php(1046) : eval()'d code on line 42

Any ideas?  I'm running smf 1.0.7
Title: Re: SMF Links
Post by: vbgamer45 on July 12, 2006, 12:48:57 PM
Quote from: dtww on July 12, 2006, 06:32:56 AM
I applied the mod on latest version smf, but I don't know where in admin to set it up or enable it. Thanks for clarification.
David
Only thing in the admin panel is the permissions which are located on the permissions page.

Everything else is added via the main links page which you can access via yourforumaddress.com/index.php?act=links   or click on the links button or text if you use default theme.

Quote from: cb49747 on July 12, 2006, 09:08:45 AM
It seems you can administer it from the edit permissions link under Member Controls in the smf admin.

Mine installed ok but when I went to add a catagory I got this message and can no longer access the links page 

Here is the error message

Quote
Fatal error: Call to undefined function: parse_bbc() in /home/mckinl3/public_html/burgerfamily/forum/Sources/Load.php(1046) : eval()'d code on line 42



Any ideas?  I'm running smf 1.0.7

Fixed redownload the mod. I forgot I added that bbc to the 1.1 version heh.
Title: Re: SMF Links
Post by: cb49747 on July 12, 2006, 04:00:59 PM
I want to display a image for the title is there a way to do that?  I tried using [img] but does not seem to work.
Title: Re: SMF Links
Post by: Arbalot on July 12, 2006, 04:03:03 PM
you try use <img src="image url">
Title: Re: SMF Links
Post by: Elen on July 12, 2006, 04:09:06 PM
A really nice mod - just what I was looking for  :D  A "nice if" for the future would be subcategories.
Title: Re: SMF Links
Post by: vbgamer45 on July 12, 2006, 04:30:14 PM
Quote from: cb49747 on July 12, 2006, 04:00:59 PM
I want to display a image for the title is there a way to do that?  I tried using [img] but does not seem to work.

BBC code only works for categories. I didn't add it to links since it could be abused.
Title: Re: SMF Links
Post by: cb49747 on July 12, 2006, 04:32:05 PM
Quote
you try use <img src="image url">

tried using above and does not work either.  seems to take the the trailing bracket and change it to an &.  ie my post looks like this when I'm done.
<img src="image url"&

I made sure basic html was enabled and still same thing.

Any other suggestions?
Title: Re: SMF Links
Post by: cb49747 on July 12, 2006, 04:33:30 PM
ah ok I see.  Still great mod.

Title: Re: SMF Links
Post by: vbgamer45 on July 12, 2006, 04:35:15 PM
I will add option though in next release to include an image next to a link or a picture of your site.
Title: Re: SMF Links
Post by: cb49747 on July 12, 2006, 04:44:51 PM
THis is a very cool mod.

Some suggestions for the future

allow bbc code for links as well

allow the creation of sub cat.

Great job though.
Title: Re: SMF Links
Post by: bugsmi0 on July 12, 2006, 05:59:47 PM
cool mod but think you took the repeating copyright code a bit too far, I counted 8 of them.

I found them all and happily deleted them  :P  I think its ok to add copyrights and all but it should be up to the site owners where they want to list them.  As long as they get listed that's all that matters
Title: Re: SMF Links
Post by: ArkServer on July 12, 2006, 06:38:12 PM
Quote from: bugsmi0 on July 12, 2006, 05:59:47 PM
cool mod but think you took the repeating copyright code a bit too far, I counted 8 of them.

I found them all and happily deleted them  :P  I think its ok to add copyrights and all but it should be up to the site owners where they want to list them.  As long as they get listed that's all that matters

I think this is against his ToS, if you dont like dont use.
Title: Re: SMF Links
Post by: Bigguy on July 12, 2006, 07:00:51 PM
Yeah, I really think that those copyrights should go back were they were. There not there for you to remove there there for a reason. I don`t think it matters how many times there there. Like ArkServer said "If you don`t like don`t use"
Title: Re: SMF Links
Post by: vbgamer45 on July 12, 2006, 08:04:30 PM
Quote from: bugsmi0 on July 12, 2006, 05:59:47 PM
cool mod but think you took the repeating copyright code a bit too far, I counted 8 of them.

I found them all and happily deleted them  :P  I think its ok to add copyrights and all but it should be up to the site owners where they want to list them.  As long as they get listed that's all that matters
Well i don't think its that bad one link on a page. One three pages most people would see.

I am trying out free mods for now and see how it works later on I may make the bigger mods paid and see how that goes.
Title: Re: SMF Links
Post by: bugsmi0 on July 13, 2006, 02:46:42 AM
one is ok but when they are repeated throughout the code it just gets annoying to see it that's all i'm saying,
perhaps another way to look at it is if they are so paranoid about copyright then they shouldn't make it GNL go make it commercial and see if somone will buy it.  It's not like someone else couldn't have created the mod i'm going to copyright my arse that way nobody can steal it  :P
Title: Re: SMF Links
Post by: Gobo on July 13, 2006, 06:26:24 PM
great mod just what i was waiting for :D

some suggestions for future relaeses:

- Sub categories creation option

- Option to specify banner for each site (can be enabled - disabled via admin panel)

- Option to have a category image (like icons for categories)

thats all i can think of for now

---

im gona try and play around with the template to see how personalized I can make it...havent even touched it yet so some pointers would be helpful for:

- adding category icons manually to template

thanks :)
Title: Re: SMF Links
Post by: cb49747 on July 13, 2006, 08:19:11 PM
I agree with the banners, that is what I was attempting with the whole image thing.
Title: Re: SMF Links
Post by: bugsmi0 on July 14, 2006, 01:47:24 PM
curious about something, it seems more and that a forum can include most items that would normally exist on a webiste, how far does one go on a forum, take the links mod for example, usually links are on the site itself but now if you use it on the forums instead that changes things a bit, soon there will not be much left to put at site and forums would replace the site, is that the end goal  to have the forums replace the site content ?
Title: Re: SMF Links
Post by: vbgamer45 on July 14, 2006, 02:12:34 PM
Quote from: bugsmi0 on July 14, 2006, 01:47:24 PM
curious about something, it seems more and that a forum can include most items that would normally exist on a webiste, how far does one go on a forum, take the links mod for example, usually links are on the site itself but now if you use it on the forums instead that changes things a bit, soon there will not be much left to put at site and forums would replace the site, is that the end goal  to have the forums replace the site content ?

The end goal for mods really is to either to do away with multiple pieces of software. Such as a link directory script, an  arcade script etc.
With the SMF Mods they are tied all together and allow the users to interact better.
Title: Re: SMF Links
Post by: ghostfreak on July 15, 2006, 12:38:35 PM
Can the admin not add a link themselves?

**Edit** Thanks for the PM vbgamer.
Title: Re: SMF Links
Post by: vbgamer45 on July 15, 2006, 12:41:04 PM
An admin by default has rights. First you need to create a category. Then click on category title then under that categroy click add link.
Title: Re: SMF Links
Post by: Spike2 on July 18, 2006, 05:49:06 AM
how i make to work whit the elios theme?
Title: Re: SMF Links
Post by: Mario472 on July 19, 2006, 02:33:14 PM
Well, must be great... I tried to install it, and use it with the Standard or the Babylon Theme (both certainly with using the english Version of SMF) but by clicking on 'Links' in the above Menu the following Message appeared: 'Unable to load the main template'.

Now I uninstalled it and I will wait, if here will come a Solution for this Problem. I'm using SMF 1.1 RC2.

I'm very sorry, but I wrote this also in the Reviews... Maybe someone can delete this from there.
Title: Re: SMF Links
Post by: vbgamer45 on July 19, 2006, 02:35:03 PM
You need to make sure that links.template.php is the theme's folder and that links.php is in the sources folder.
Title: Re: SMF Links
Post by: Mario472 on July 19, 2006, 02:48:34 PM
Thank you for this really fast help. Now I made sure that links.temlate.php is in the Themes Folder and that Links.php is in the Sources Folder - but the Message by Clicking on Links or the Button stys the Same... :( Unable to load the Main Template
Title: Re: SMF Links
Post by: Mario472 on July 19, 2006, 02:58:43 PM
Ok, I figured it out - The default Theme Folder didin't have the right permissions, now it works! THX
Title: Re: SMF Links
Post by: tthmaz on July 19, 2006, 03:25:12 PM
Nice work!

I'm sure some of you maybe thinking of an extra feature:

Reciprocal links.

That is, make sure that the link submitter add a link back to the directory. This way, it's more of a fair trade, they gain link exposure and so do we. I'm sure vbgamer45 thought of this b4...  :)
Title: Re: SMF Links
Post by: vbgamer45 on July 19, 2006, 08:43:14 PM
Minor next version released
Version 1.2
You can now add links from main page includes category select.
Added who action says they are viewing links.

Title: Re: SMF Links
Post by: PrizeLive.com on July 19, 2006, 09:47:20 PM
Thanks man.. I'll test it out shortly
Title: Re: SMF Links
Post by: K_4_kelly on July 23, 2006, 10:50:14 AM
hello,

do u think if it is possible to have a place to put the logo of the link as well as the to add the logo url in the add link page?

thanks!
Title: Re: SMF Links
Post by: vbgamer45 on July 23, 2006, 11:03:19 AM
Next version buddy. I will have an option for that heh.
Title: Re: SMF Links
Post by: K_4_kelly on July 23, 2006, 11:11:42 AM
glad to hear that ^^
look forward to the next version !! :)
Title: Re: SMF Links
Post by: Gobo on July 23, 2006, 04:09:34 PM
wow there is a next version too?

cool cant wait :D
Title: Re: SMF Links
Post by: Scooby on July 29, 2006, 01:10:46 PM
Very nice mod. I would like to change one thing though, how do I get the mod to display the name of a user, rather than their username?
Title: Re: SMF Links
Post by: vbgamer45 on July 29, 2006, 01:51:35 PM
Change all the memberName  in Links.template.php to realName
Title: Re: SMF Links
Post by: MiNiBuDa on August 01, 2006, 04:58:51 AM
Hi !

I've installed this mod, but I want change some colours.

Example:
(http://img216.imageshack.us/img216/7071/enlacesoj0.jpg)

I want change background colour in the links mod. I see than this colour is of .tborder in my style.css.

How I change the colour, but no modificate these propierty of style.css???

Sorry for my bad english.

Thanks.
Title: Re: SMF Links
Post by: Vinspire on August 01, 2006, 06:32:21 PM
Another awesome mod from vbgamer45  ;D

Will try to install it in my board later  :D
Title: Re: SMF Links
Post by: kittykatt on August 17, 2006, 07:47:45 AM
OK I am lost... I have installed it, well so I think... loaded it up and nothing is there.
What do I do, can I have a little bit more of how to install it please .
I have 1.0.7 version (it says it should work with it).

Its not showing up.
www.whippet-community.co.uk
Title: Re: SMF Links
Post by: vbgamer45 on August 17, 2006, 08:14:03 AM
Doesn't look like it installed. Make sure all your files are writable.
It should add a links button to the default theme and you can access it via index.php?action=links
Title: Re: SMF Links
Post by: kittykatt on August 17, 2006, 08:29:40 AM
Ok.. So tell me if I did anything wrong.

I downloaded the link (not unzip, just as it is) loaded up in the forum where the

Package Manager - Browse Packages
Modification Packages
   Mod Name Version   
1. SMF Links 1.3                               [ Apply Mod ] [ List Files ] [ Delete ] 
2. Streaming 3 4.2.2                          [ Apply Mod ] [ List Files ] [ Delete ] 
3. Ad Managment 1.0.2b                     [ Apply Mod ] [ List Files ] [ Delete ] 
4. Board Viewers 0.6                          [ Apply Mod ] [ List Files ] [ Delete ] 
5. Enchanced post template 1.0.2        [ Apply Mod ] [ List Files ] [ Delete ] 
6. Thank You Mod 1.03                       [ Apply Mod ] [ List Files ] [ Delete ] 
7. SMF Trader System 1.0                  [ Apply Mod ] [ List Files ] [ Delete ] 


I have clicked all the Apply Mod, and it says like this...

(this is about yours, but just saying that all other is the same, nothing shows up)
Package Manager - Install Actions
Install Actions for archive Links.zip:
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Success
2. Execute Modification ./Themes/default/languages/Who.english.php Success
3. Execute Modification ./index.php Success
4. Execute Modification ./Themes/default/index.template.php Success
5. Execute Modification ./Sources/ManagePermissions.php Success
6. Execute Modification ./Sources/Subs.php Success
7. Extract File ./Sources/Links.php 
8. Extract File ./Themes/default/Links.template.php 
9. Extract File ./Themes/default/images/english/links.gif 
10. Execute Code linksql.php

( what does the 7. Extract File ./Sources/Links.php 
8. Extract File ./Themes/default/Links.template.php 
9. Extract File ./Themes/default/images/english/links.gif 
10. Execute Code linksql.php
means)

Then there is nothing to click after this except the
FTP Information Required
Which I have tried but no change.

Title: Re: SMF Links
Post by: vbgamer45 on August 17, 2006, 08:35:59 AM
It is a permission problem. You need to chmod all the files for smf on a linux host to 777. Which will allow the package manager to alter files and then install mods.
Title: Re: SMF Links
Post by: kittykatt on August 17, 2006, 08:39:25 AM
Ok I have started to wonder if there is something wrong with my site, are those
last one that says extract suppse to go into the forum?
they are not there.. so do I need to do that by hand?
Title: Re: SMF Links
Post by: kittykatt on August 17, 2006, 08:40:11 AM
Quote from: vbgamer45 on August 17, 2006, 08:35:59 AM
It is a permission problem. You need to chmod all the files for smf on a linux host to 777. Which will allow the package manager to alter files and then install mods.


Right those that do not load?
thanks... (sorry I was posting when you did lol)
Title: Re: SMF Links
Post by: kittykatt on August 17, 2006, 08:41:29 AM
OK I am sorry.. which files?
Do I unzip it and load them by ftp and alll by hand?
Title: Re: SMF Links
Post by: vbgamer45 on August 17, 2006, 08:47:29 AM
I woudln't do that first that's a little harder. If you have cpanel as a control panel goto the folder that contains SMF and make sure it is set to 777
Title: Re: SMF Links
Post by: kittykatt on August 17, 2006, 08:51:35 AM
No I dont... I only have ftp, the Cpanel is not meant for the, the only thing that is in my cpanel is for the emails and other things, but no folders.

I did manage the ftp in there. but it says this.

An Error Has Occurred!
2: copy(/home/fhlinux183/w/whippet-community.co.uk/user/htdocs/Themes/default/images/english/links.gif): failed to open stream: Permission denied
File: /home/fhlinux183/w/whippet-community.co.uk/user/htdocs/Sources/Subs-Package.php
Line: 814 

What is the best way now lol.. I am sorry but I really want this.
This is happening to all my mods I am trying to install :(
Title: Re: SMF Links
Post by: paulyoung76 on August 17, 2006, 09:14:48 PM
i can't use it in chinese smf. could it make to support in chinese smf? i want to link to another website
Title: Re: SMF Links
Post by: vbgamer45 on August 17, 2006, 09:52:09 PM
Is it broken with chinese? Might need to add utf support but I do not know how to do that yet.
Title: Re: SMF Links
Post by: paulyoung76 on August 17, 2006, 10:22:35 PM
yes. i can't see the link button on the menu button. i have install in english smf before but now i install in chinese smf , i can't see the button. or is it possible to create link at the bottom just like the shortcut to.
Title: Re: SMF Links
Post by: vbgamer45 on August 17, 2006, 10:47:16 PM
Yeah you can create a link to all it needs to is point to yourforum.com/index.php?action=links

Title: Re: SMF Links
Post by: paulyoung76 on August 17, 2006, 11:01:19 PM
i have a blank space between my button. i think is link button. how can i make the link button function? is it manually change the file?
Title: Re: SMF Links
Post by: paulyoung76 on August 17, 2006, 11:25:06 PM
is it possible that change the link button name to chinese then the button can be press? the problem is i can point to /index.php?action=link then i can add links but the button can't click so no one can view the links. can we change it?
Title: Re: SMF Links
Post by: rockinaway on August 18, 2006, 08:36:12 AM
how about adding Google PR?
Title: Re: SMF Links
Post by: vbgamer45 on August 18, 2006, 12:19:55 PM
Quote from: rockinaway on August 18, 2006, 08:36:12 AM
how about adding Google PR?
Maybe just it would take a lot of lookups if the pr is lookedup each page view unless pr is just stored when the named is entered into the database.
Title: Re: SMF Links
Post by: rockinaway on August 18, 2006, 02:16:01 PM
Well the PR wouldn't change that quick would it?.. or how about having it so that the members updates it themselves..
Title: Re: SMF Links
Post by: vbgamer45 on August 21, 2006, 07:47:57 PM
Added support for Guest Links approval. Under approval now show Guest as the membername and you can approve the link.

Also added RC3 support as well if you haven't noticed.
Title: Re: SMF Links
Post by: snork13 on August 21, 2006, 07:51:21 PM
Quote from: vbgamer45 on August 21, 2006, 07:47:57 PM
Added support for Guest Links approval. Under approval now show Guest as the membername and you can approve the link.

Also added RC3 support as well if you haven't noticed.
Nice :D
Title: Re: SMF Links
Post by: ametzler on August 28, 2006, 10:46:54 AM
How would I make it so unlimited words could be used in the site description?  Right now it cuts it off after a couple sentences.  Thanks!!

Adam
Title: Re: SMF Links
Post by: ametzler on August 29, 2006, 02:05:59 AM
I figured it out but just to make sure that I won't affect anything else.  I changed the number value for the description in the MySQL database to a large number.  Is that the proper way to do it or will it have some negative affects soemwhere else form doing it that way?

Adam
Title: Re: SMF Links
Post by: xBoXlOvEr on August 29, 2006, 09:30:59 PM
Hello. I have done some modifications to this mod, so now the people who runs spanish_es language pack, can use this mod. I have translated too all the stuff so all the words are now in spanish language.

I hope you like it.

Best Regards.

http://www.megaupload.com/?d=OYHEAC0Z (I dont know how to attach files here  ::))
Title: Re: SMF Links
Post by: URPG on September 10, 2006, 07:51:25 AM
I could realy use something like this for TinyPortal! Can you make a TP compatible package that will add a menu button to TP?
Title: Re: SMF Links
Post by: rockinaway on September 10, 2006, 07:52:28 AM
I hear that there may be a link manager in TP next version, not sure what it will be like but it is planned..
Title: Re: SMF Links
Post by: URPG on September 10, 2006, 07:57:53 AM
Well, 0.95 was just released to the public, could take month for the final version...
Title: Re: SMF Links
Post by: Merlin42 on September 24, 2006, 07:55:10 AM
Hi.

Nice mod. I've fixed all the hardcoded english phrases to german, but Umlaute (äöüß) within the title or description wont work (displaying trash, äöü = äöü).

imho this ist a displaying problem and the Links.template.php needs to be fixed (the database "output" needs to be converted or something like that)

Can anyone please help?

I'm running RC3 german (german, NOT german-utf8)
Title: Re: SMF Links
Post by: vbgamer45 on September 24, 2006, 10:40:41 AM
Quote from: Merlin42 on September 24, 2006, 07:55:10 AM
Hi.

Nice mod. I've fixed all the hardcoded english phrases to german, but Umlaute (äöüß) within the title or description wont work (displaying trash, äöü = äöü).

imho this ist a displaying problem and the Links.template.php needs to be fixed (the database "output" needs to be converted or something like that)

Can anyone please help?

I'm running RC3 german (german, NOT german-utf8)
I plan on updating this mod once I get some time and will change to language files.
As for database output I am not sure can you find out what it is causing that? and how to fix it.
Title: Re: SMF Links
Post by: Gobo on October 16, 2006, 04:57:01 PM
hi vbGamer

I was reading the code for the Links Template in the hopes of "redesigning" the template and I noticed that you have used the copyright notice in full in many places.

I just wanted to make a recommendation that you could store the whole copyright code in a variable like this:


$linkscopyright = //Copryright keep it please. Helps support the mod making for SMF
<br /><div align="center"><a href="http://www.smfhacks.com" target="blank">SMF Links</a>';


and then u could easily out put it wherever you wanted by simply calling the variable $linkscopyright

I dont know veyr much PHP but I have seen this being done in many of Bloc's themes where he calls a whole block of code using variables and so it reduces the code and thus also the file size - Just a suggestion, hope u dont mind me giving it :)

------------------------------------------------

Also could it be possible to have different template styles for this mod please?

I've been trying and reading the code but I keep getting lost lol and end up doing something wrong. But I will keep trying, hope u will also consider the template styles suggestion, since it will GREATLY enhance this mod in my opinion

aku
Title: Re: SMF Links
Post by: vbgamer45 on October 16, 2006, 05:06:10 PM
The reason I didn't put the copyright in one location is that I did not want it to be easly removed.

I plan on changing the main look of the links system in the next release.
Title: Re: SMF Links
Post by: Gobo on October 16, 2006, 06:25:43 PM
Thanks - looking forward to that one :D

I've managed to redesign a small aspect of the template for my forum:
http://path-to-peace.net/forum/index.php?action=links

it picks up the icons by cat number all i did wa change the table layout and define an image tag for each cat. The code I used was this:


echo '<b>Categories:</b><br />';
while($row = mysql_fetch_assoc($dbresult))
{
  $dbresult2 = db_query("SELECT title FROM {$db_prefix}links WHERE ID_CAT = ". $row['ID_CAT'] . ' AND approved = 1', __FILE__, __LINE__);
$totallinks = db_affected_rows();
if(function_exists('parse_bbc'))
{
echo '<table border="1" width="100%" id="table1" style="border-collapse: collapse">
<tr>
<td rowspan="2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '"><img src="http://yoursite.com/links_images/' . $row['ID_CAT'] . '.gif" border=0></a></td>
<td><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td>
<td>Sites: ' . $totallinks . '</td>
</tr>
<tr>
<td colspan="2">' . nl2br(parse_bbc($row['description'])) . '</td>
</tr>
</table>';
}
else
{
echo '<table border="1" width="100%" id="table1" style="border-collapse: collapse">
<tr>
<td rowspan="2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '"><img src="http://yoursite.com/links_images/' . $row['ID_CAT'] . '.gif" border=0></a></td>
<td><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td>
<td>Sites: ' . $totallinks . '</td>
</tr>
<tr>
<td colspan="2">' . nl2br(parse_bbc($row['description'])) . '</td>
</tr>
</table>';

}


The part which needs to be changed for people who want to use this will be: yoursite.com/links_images/

make a folder called links_images and inside it place the gifs according to link category numbers like 1.gif, 2.gif 3.gif, etc etc - they will automatically appear in front of the related category.

The above code must be plased instead of this: (i.e. find this and replace with above code)


echo '<b>Categories:</b><br />';
while($row = mysql_fetch_assoc($dbresult))
{
  $dbresult2 = db_query("SELECT title FROM {$db_prefix}links WHERE ID_CAT = ". $row['ID_CAT'] . ' AND approved = 1', __FILE__, __LINE__);
$totallinks = db_affected_rows();
if(function_exists('parse_bbc'))
{
echo '<div class="tborder" style="margin: 2%;"><div class="catbg2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a> - Total Links: ' . $totallinks . '</div>';

echo '<div class="windowbg2">' . nl2br(parse_bbc($row['description'])) . '<br />';
}
else
{
echo '<div class="tborder" style="margin: 2%;"><div class="catbg2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a> - Total Links: ' . $totallinks . '</div>';

echo '<div class="windowbg2">' . nl2br(doUBBC($row['description'])) . '<br />';

}


The table layout can be changed to suit your need - but the user will need to have basic html knowledge to make the change :)

PS: I am going to try and echo out a 2 column layout - but I dont know how yet - i know i have to include a "for each" loop in there somewhere but I dont know how yet. So if u have an idea please let me know
Title: Re: SMF Links
Post by: Adamzon on November 06, 2006, 04:10:21 PM
i have problems with rights, Admin can use it, but not standardusers

Tips

Title: Re: SMF Links
Post by: vbgamer45 on November 06, 2006, 04:29:08 PM
Quote from: Adamzon on November 06, 2006, 04:10:21 PM
i have problems with rights, Admin can use it, but not standardusers

Tips


Check Permissions make sure they have the permissions that you desire
Title: Re: SMF Links
Post by: Adamzon on November 06, 2006, 04:44:36 PM
I get crasy over this admin-rights thing..
Can u walk me throu it?

/A
Title: Re: SMF Links
Post by: vbgamer45 on November 06, 2006, 04:56:02 PM
Goto permissions in your admin section.

Click on the group you want to edit. For example regular members.
Check the links Permissions that you want them to have.
I attached a screenshot.
Title: How to change URL in HOME link
Post by: AndrewD on November 07, 2006, 04:06:49 PM
I am using the Amber theme and the I'd like to make the 'HOME' link go to the actual home page of the site as opposed to the forum home page.   Can someone tell me how and where to make this change? 
Thank you,

AndrewD
[email protected]
Title: Re: SMF Links
Post by: rockinaway on November 07, 2006, 04:24:08 PM
Has that got anything to do with this MOD?
Title: Re: SMF Links
Post by: AndrewD on November 07, 2006, 05:30:55 PM
I don't know.   What is "this" mod anyway.   Sorry if I interupted your tea party, but where else would I ask a question like that.   I don't have priviledges to start my own topic.  I thought someone could help.  SMF links sounds like a topic that would apply to my question.
Title: Re: SMF Links
Post by: vbgamer45 on November 07, 2006, 05:45:11 PM
Quote from: AndrewD on November 07, 2006, 05:30:55 PM
I don't know.   What is "this" mod anyway.   Sorry if I interupted your tea party, but where else would I ask a question like that.   I don't have priviledges to start my own topic.  I thought someone could help.  SMF links sounds like a topic that would apply to my question.
Try this forum
http://www.simplemachines.org/community/index.php?board=34.0
Title: Re: SMF Links
Post by: Adamzon on November 08, 2006, 06:03:22 AM
Quote from: vbgamer45 on November 06, 2006, 04:56:02 PM
Goto permissions in your admin section.

Click on the group you want to edit. For example regular members.
Check the links Permissions that you want them to have.
I attached a screenshot.

Thanx dude! U are todays savior :)
Title: Re: SMF Links
Post by: vbgamer45 on November 10, 2006, 02:20:40 PM
Version 1.5 Released
Updated the mod to use language files
Better Guest add link support
New layout display
Added Image category icon option
You can change the category of a link easier now under edit link
Settings to show information on index and bbc control for link descriptions
Pages setting allows you to show how many links per page in a category

I suggest you upgrade to this version since I think it is a lot better heh :)
Title: Re: SMF Links
Post by: madfiddler on November 13, 2006, 10:24:35 PM
I've just installed this mod on 1.1.rc3. Nice one.

Some suggestions - some already mentioned.


Anyway, great mod.

m
Title: Re: SMF Links
Post by: bjraines on November 18, 2006, 04:22:49 PM
Great mod. Just what I was looking for. Found it right before I tried to integrate php link directory and smf.

I was wondering if future additions might have link sorting (alpha, ratings, desc , asc)

also I am sure some sort of page rank feature might be cool

thanks for you time
Title: Re: SMF Links
Post by: ramystyle on November 20, 2006, 06:51:28 PM
Hi !

I just need a small explanation on the mod..
Is this like a link exchange ? Or just a one way link ?
I mean does the user have to link back to my forum on his site ? That would be cool to boost your search engine position..

Even if it's a one way link, i'm still going to install the mod :)
Title: Re: SMF Links
Post by: vbgamer45 on November 20, 2006, 07:26:52 PM
Its currently a  one way link. There is link approval option though.
Title: Re: SMF Links
Post by: ramystyle on November 20, 2006, 11:17:15 PM
vbgamer45: That is great !!! With the link approval just made my day !!
Thanks a lot !   :D
Title: Re: SMF Links
Post by: ramystyle on November 20, 2006, 11:49:36 PM
btw.. Is there a FRENCH language file for this mod ?
Title: Re: SMF Links
Post by: vbgamer45 on November 20, 2006, 11:51:32 PM
No language packs have been made yet but feel free to make them heh.
Title: Re: SMF Links
Post by: tim123456789 on November 21, 2006, 02:21:08 PM
Great mod, just installed it  :D

Do we have a time scale on when when a sub catagories feature will be added - I kind of need it for my project.

If this is still some time off, does anyone know of any similar mods / add ons which would do the job of a links directory (sub catagories, reciprocal links, list in multiple catagories, automatic email when link submitted etc...)

Thanks

Tim
Title: Re: SMF Links
Post by: vbgamer45 on November 21, 2006, 04:29:52 PM
Something in december I think for the next update. Been very busy lately though.
Title: Re: SMF Links
Post by: ramystyle on November 21, 2006, 04:39:13 PM
Alright !
I'll work on the french language pack in the coming weeks.. (I'll squeeze it in my schedule and upload the  zip file here )  ;)
Title: Re: SMF Links
Post by: vbgamer45 on November 24, 2006, 10:17:31 PM
Version 1.6
Sorting of links on link display.
Added new layout for the admin panel.
Separated settings, categories, category permissions and approve links to their own sections in the admin panel.
Added page listing to approve links.
Added category level permissions for adding, editing, deleting and viewing links.
Added settings to toggle what information is shown on link display
Added Subcategories
Started basic support for Alexa and PageRank still need to make the functions work.
Title: Re: SMF Links
Post by: Gobo on November 25, 2006, 03:25:18 AM
sounds good
Title: Re: SMF Links
Post by: Gobo 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
Title: Re: SMF Links
Post by: ChaosEnergy on November 30, 2006, 12:38:51 PM
Incorrect table name ''
File: /var/www/chaosempire.info/html/forum/Packages/temp/linksql.php
Line: 13

any idea on this???
Title: Re: SMF Links
Post by: vbgamer45 on November 30, 2006, 01:06:45 PM
Quote from: ChaosEnergy on November 30, 2006, 12:38:51 PM
Incorrect table name ''
File: /var/www/chaosempire.info/html/forum/Packages/temp/linksql.php
Line: 13

any idea on this???
You need to install the database tables manually. I would open up linksql.php and process the sql statements.
Then delete all the information inside linksql.php between<?php and ?> and then install the mod from there.
Title: Re: SMF Links
Post by: ChaosEnergy on November 30, 2006, 01:08:37 PM
i tried 2 other packages from you, also the same

why is this not done automatically and not stated in readme, probably i was blind :)
Title: Re: SMF Links
Post by: vbgamer45 on November 30, 2006, 04:01:47 PM
It seems to be a server config issue. Generally on most servers they install fine.
Title: Re: SMF Links
Post by: ChaosEnergy on December 01, 2006, 02:05:51 AM
if i install other packages, everything works fine...
since month
Title: Re: SMF Links
Post by: URPG on December 01, 2006, 07:58:12 AM
Yeah, I'd like to have it in a TP Block too... seems still quite some time until TTP got something like that itself
Title: Re: SMF Links
Post by: vbgamer45 on December 01, 2006, 09:56:29 AM
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);
}
Title: Re: SMF Links
Post by: Gobo on December 01, 2006, 11:04:47 AM
wow thanks works like a charm :D

ive posted this on TP as well here (http://www.tinyportal.net/smf/index.php?topic=10976.msg90445#msg90445)

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
Title: Re: SMF Links
Post by: 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!
Title: Re: SMF Links
Post by: 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.
Title: Re: SMF Links
Post by: kriskd on December 01, 2006, 09:48:08 PM
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?
Title: Re: SMF Links
Post by: madfiddler on December 02, 2006, 10:40:09 PM
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
Title: Re: SMF Links
Post by: vbgamer45 on December 02, 2006, 11:04:47 PM
2. I added sub categoreis in the latest release and a lot of other changes.

Check it out.
Title: Re: SMF Links
Post by: madfiddler on December 02, 2006, 11:18:27 PM
So it is.. Apologies for not seeing that! Nice one!
Title: Re: SMF Links
Post by: trenchteam on December 03, 2006, 01:27:28 AM
works very well on my site.  Thanks! using 1.1 too!
Title: Re: SMF Links
Post by: anonim on December 03, 2006, 10:36:03 AM
no problem here. good job, tks.
Title: Re: SMF Links
Post by: Adamzon on December 06, 2006, 06:17:56 AM
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
Title: Re: SMF Links
Post by: Gobo 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
Title: Re: SMF Links
Post by: vbgamer45 on December 06, 2006, 02:57:09 PM
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.
Title: Re: SMF Links
Post by: Gobo on December 06, 2006, 02:59:50 PM
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
Title: Re: SMF Links
Post by: junglecat on December 07, 2006, 11:29:15 AM
Is there any way to get the links that are added in alphabetical order?
Title: Re: SMF Links
Post by: Adamzon on December 08, 2006, 03:58:59 AM
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 :(
Title: Re: SMF Links
Post by: 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
Title: Re: SMF Links
Post by: vbgamer45 on December 08, 2006, 01:42:25 PM
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.
Title: Re: SMF Links
Post by: Laibeus Lord on December 09, 2006, 04:06:43 AM
Hmm I'm getting this for the latest file (as of this post)..


Database Error

Incorrect table name ''
File: /home/gamesho2/public_html/boards/linksql.php
Line: 16


When running linksql.php.
I added this to the top btw, so it will run individually:

if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');

(I didn't bother adding the elseif... die part since I have it in the right place.)

I'm installing manually, the DB part is the last thing I need to do ^^


Thanks!!!

UPDATE:
Nev mind, I found the prob.
I removed all instances of the left quote ( ` ) between table names and column names and worked fine ^_^


UPDATE2:
The Alexa and Google Page Rankings are not working, or maybe are not fetching the data from their respective sites.
Any ideas?

Title: Re: SMF Links
Post by: vbgamer45 on December 09, 2006, 01:10:10 PM
Alexa and pagerank do not work yet.
Title: Re: SMF Links
Post by: Flying Drupalist on December 12, 2006, 09:42:04 PM
Is there a way for users to vote on links and set the top most voted links to the top?  :D
Title: Re: SMF Links
Post by: vbgamer45 on December 12, 2006, 10:08:53 PM
There is a way for users to vote for links but does not affect order. There is a most voted links on the main index of the links page.
Title: Re: SMF Links
Post by: Laibeus Lord on December 21, 2006, 12:21:11 AM
Question:

This is the correct way of executing an update right?

(if dropped) -> ALTER TABLE `SMF_links` ADD `image` TINYTEXT AFTER `url` ;


Or

ALTER TABLE `gsc_links` CHANGE `image` `image` TINYTEXT ;



Coz I downloaded an updated file and checked for diffs, and found 1 diff under the SQL-installer of your mod.

OLD FILE:

`image` VARCHAR(255) NOT NULL,


NEW FILE:

`image` tinytext,


I tried to run the new file, but it didn't change that image column of table links, so I'm curious if I did the update correctly, coz now it changed to tinytext NULL (very limited know-how about mySQL currently)..

Thanks!!

Title: Re: SMF Links
Post by: vbgamer45 on December 21, 2006, 12:38:17 AM
The image column is not really needeed yet. tinytext is about the same length as the varchar setting. So nothing to worry about.
Title: Re: SMF Links
Post by: Laibeus Lord on December 21, 2006, 05:51:37 AM
Quote from: vbgamer45 on December 21, 2006, 12:38:17 AM
The image column is not really needeed yet. tinytext is about the same length as the varchar setting. So nothing to worry about.

Ok thanks!!


One more ^_^
I can't find this part:

<file name="$themedir/index.template.php" error="ignore">
<operation>
<search position="before"><![CDATA[$current_action = 'admin';
if (in_array($context['current_action'], array(]]></search>
<add><![CDATA['links',]]></add>
</operation>


For the themes using the old format like:  babylon, classic, helios_multi, and leviathan.
I am assuming that it's alright to skip that part?

I found this in all themes however:

<operation>
<search position="before"><![CDATA[// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
]]></search>
<add><![CDATA[
// the [links] button
if ($context['allow_view_smflinks'])
echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'links' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=links">' , $txt['smflinks_menu']  , '</a>
</td>' , $current_action == 'links' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

]]></add>
</operation>

- just made a few changes to reflect the SMF style used.

Thanks again :D


Title: Re: SMF Links
Post by: LBizGrl on December 27, 2006, 10:44:36 PM
I have a question...

I just updated to 1.1.1 and I am using the default theme brown.

I installed the links theme and I can create categories and manage permissions...

However, the button on the navigation bar does not show. It does on the default core though...

How can I make the button show on the theme I am using?

Note: I need a detailed explanation...like smf for dummies...LOL
Title: Re: SMF Links
Post by: vbgamer45 on December 27, 2006, 10:50:00 PM
You can post your index.template.php here OR

Open index.template.php of your theme
Find

if (in_array($context['current_action'], array(

Add inside

'links',


Find

if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Add after

// the [links] button
if ($context['allow_view_smflinks'])
echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'links' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=links">' , $txt['smflinks_menu']  , '</a>
</td>' , $current_action == 'links' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Title: Re: SMF Links
Post by: LBizGrl on December 28, 2006, 07:05:10 AM
Thank you, vbgamer45! :)
That did the truck!! ;)
Title: Re: SMF Links
Post by: khoking on January 03, 2007, 01:51:10 AM
Quote from: vbgamer45 on December 27, 2006, 10:50:00 PM
You can post your index.template.php here OR

Open index.template.php of your theme
Find

if (in_array($context['current_action'], array(

Add inside

'links',


Find

if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Add after

// the [links] button
if ($context['allow_view_smflinks'])
echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'links' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=links">' , $txt['smflinks_menu']  , '</a>
</td>' , $current_action == 'links' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';




I have installed this great mod and apply the codes above to my themed SMF. The link button appears on my forum but is tiny with some background image. I want it to be in normal size and without the background image. How can I do that?

Sorry, I am not familiar with codings...  :-X
Title: Re: SMF Links
Post by: Gobo on January 03, 2007, 01:57:56 AM
can u tell us which theme u are using?

and if possible please attach ur index.template.php file here so i can modify it

aku
Title: Re: SMF Links
Post by: khoking on January 03, 2007, 02:05:25 AM
Many thanks for the help!  :D

I have set the permission to allow guest to view the LINKS but still cannot see. I log in as regular member also still cannot see. Only login as administrator then only can see... :(

My forum is at:

http://pentaxworld.com/forum/index.php

I am using SlickPro: Graphite theme.

This is my index.template.php codes (clean before I add the link mod)

<?php

// Version: 1.1; index



/* This template is, perhaps, the most important template in the theme. It

contains the main template layer that displays the header and footer of

the forum, namely with main_above and main_below. It also contains the

menu sub template, which appropriately displays the menu; the init sub

template, which is there to set the theme up; (init can be missing.) and

the linktree sub template, which sorts out the link tree.



The init sub template should load any data and set any hardcoded options.



The main_above sub template is what is shown above the main content, and

should contain anything that should be shown up there.



The main_below sub template, conversely, is shown after the main content.

It should probably contain the copyright statement and some other things.



The linktree sub template should display the link tree, using the data

in the $context['linktree'] variable.



The menu sub template should display all the relevant buttons the user

wants and or needs.



For more information on the templating system, please see the site at:

http://www.simplemachines.org/

*/



// Initialize the template... mainly little settings.

function template_init()

{

global $context$settings$options$txt;



/* Use images from default theme when using templates from the default theme?

if this is 'always', images from the default theme will be used.

if this is 'defaults', images from the default theme will only be used with default templates.

if this is 'never' or isn't set at all, images from the default theme will not be used. */

$settings['use_default_images'] = 'never';



/* What document type definition is being used? (for font size and other issues.)

'xhtml' for an XHTML 1.0 document type definition.

'html' for an HTML 4.01 document type definition. */

$settings['doctype'] = 'xhtml';



/* The version this template/theme is for.

This should probably be the version of SMF it was created for. */

$settings['theme_version'] = '1.1';



/* Set a setting that tells the theme that it can render the tabs. */

$settings['use_tabs'] = true;



/* Use plain buttons - as oppossed to text buttons? */

$settings['use_buttons'] = true;



/* Show sticky and lock status seperate from topic icons? */

$settings['seperate_sticky_lock'] = true;

}



// The main sub template above the content.

function template_main_above()

{

global $context$settings$options$scripturl$txt$modSettings;



// Show right to left and the character set for ease of translating.

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>

<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />

<meta name="description" content="PentaxWorld, Pentax '
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '

<meta name="robots" content="noindex" />'
'

<meta name="keywords" content="Pentax, PentaxWorld, forum, community, home, imaging, users, K10D, K100D, K110D, *st DS2 DL2, FA SMCP lenses, lens, 77mm limited, DA, LX, Takumar, M42, Screw mount, simple machines, smf" />

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

var smf_theme_url = "'
$settings['theme_url'], '";

var smf_images_url = "'
$settings['images_url'], '";

var smf_scripturl = "'
$scripturl'";

var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';

var smf_charset = "'
$context['character_set'], '";

// ]]></script>

<title>'
$context['page_title'], '</title>';



// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.

 
echo '

  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />

<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';



/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)

Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.

Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.

Standards compliance mode happens when you use xhtml... */

if ($context['browser']['needs_size_fix'])

echo '

<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';



// Show all the relative links, such as help, search, contents, and the like.

echo '

<link rel="help" href="'
$scripturl'?action=help" target="_blank" />

<link rel="search" href="' 
$scripturl '?action=search" />

<link rel="contents" href="'
$scripturl'" />';



// If RSS feeds are enabled, advertise the presence of one.

if (!empty($modSettings['xmlnews_enable']))

echo '

<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';



// If we're viewing a topic, these should be the previous and next topics, respectively.

if (!empty($context['current_topic']))

echo '

<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />

<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';



// If we're in a board, or a topic for that matter, the index will be the board's index.

if (!empty($context['current_board']))

echo '

<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';



// We'll have to use the cookie to remember the header...

if ($context['user']['is_guest'])

$options['collapse_header'] = !empty($_COOKIE['upshrink']);



// Output any remaining HTML headers. (from mods, maybe?)

echo $context['html_headers'], '



<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';



function shrinkHeader(mode)

{'
;



// Guests don't have theme options!!

if ($context['user']['is_guest'])

echo '

document.cookie = "upshrink=" + (mode ? 1 : 0);'
;

else

echo '

smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';



echo '

document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");



document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";



current_header = mode;

}

// ]]></script>'
;



// the routine for the info center upshrink

echo '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';



function shrinkHeaderIC(mode)

{'
;



if ($context['user']['is_guest'])

echo '

document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;

else

echo '

smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';



echo '

document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");



document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";



current_header_ic = mode;

}

// ]]></script>'
;



//This is for the pop menus

echo '

<script type="text/javascript">



/***********************************************

* Drop Down/ Overlapping Content- ゥ Dynamic Drive (www.dynamicdrive.com)

* This notice must stay intact for legal use.

* Visit http://www.dynamicdrive.com/ for full source code

***********************************************/



function getposOffset(overlay, offsettype){

var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;

var parentEl=overlay.offsetParent;

while (parentEl!=null){

totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;

parentEl=parentEl.offsetParent;

}

return totaloffset;

}



function overlay(curobj, subobjstr, opt_position){

if (document.getElementById){

var subobj=document.getElementById(subobjstr)

subobj.style.display=(subobj.style.display!="block")? "block" : "none"

var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 

var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)

subobj.style.left=xpos+"px"

subobj.style.top=ypos+"px"

return false

}

else

return true

}



function overlayclose(subobj){

document.getElementById(subobj).style.display="none"

}



</script>'
;

echo '

</head>

<body>'
;



echo '

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td id="top-logo"><a href="http://pentaxworld.com/forum/index.php"><img src="'
$settings['images_url'], '/logo.gif" width="358" height="91" alt="PentaxWorld" title="PentaxWorld" /></a></td>

</tr>

<tr>

<td width="100%" align="left" valign="top" style="padding:0 30px 0 30px;">'
;



echo '

<div class="body-border">

<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';





// display user name

echo '

<table width="100%" cellspacing="1" cellpadding="5" class="bordercolor" border="0" >

<tr>'
;



echo '

<td class="windowbg2" width="100%" valign="middle" align="left">

'
theme_linktree2(), '

</td>'
;



echo '

<td width="250" valign="top" class="windowbg"><span class="middletext" style="display:block;width:250px;">'
;



if($context['user']['is_logged'])

{

echo '

<strong>Welcome, '
$context['user']['name'] , '.</strong><br />';

}



// Go to PM center... [pm]

if ($context['user']['is_logged'] && $context['allow_pm'])

{

echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '

<a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'], ' Unread, '$context['user']['messages'], ' Total.<br />';

}



// Now, onto our second set of info, are they logged in again?

if ($context['user']['is_logged'])

{

// Is the forum in maintenance mode?

if ($context['in_maintenance'] && $context['user']['is_admin'])

echo '

<b>'
$txt[616], '</b><br />';



// Are there any members waiting for approval?

if (!empty($context['unapproved_members']))

echo '

'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';



// Show the total time logged in?

if (!empty($context['user']['total_time_logged_in']))

{

echo '

'
$txt['totalTimeLogged1'], '<br />';



// If days is just zero, don't bother to show it.

if ($context['user']['total_time_logged_in']['days'] > 0)

echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];



// Same with hours - only show it if it's above zero.

if ($context['user']['total_time_logged_in']['hours'] > 0)

echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];



// But, let's always show minutes - Time wasted here: 0 minutes ;).

echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';

}

}

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...

else

{

echo ' </span>

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>



<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>

<table border="0" cellpadding="1" cellspacing="0">

<tr>

<td>Username:</td>

<td><input type="text" name="user" size="10" /></td>

<td><select name="cookielength">

<option value="60">'
$txt['smf53'], '</option>

<option value="1440">'
$txt['smf47'], '</option>

<option value="10080">'
$txt['smf48'], '</option>

<option value="43200">'
$txt['smf49'], '</option>

<option value="-1" selected="selected">'
$txt['smf50'], '</option>

</select></td>

</tr>

<tr>

<td>Password:</td>

<td><input type="password" name="passwrd" size="10" /></td>

<td><input type="submit" value="'
$txt[34], '" /></td>

</tr>

</table>

<input type="hidden" name="hash_passwrd" value="" />

</form>'
;

}



echo '

</span>

</td>

</tr>

</table>'
;



echo '

<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ''' width="100%" cellpadding="4" cellspacing="0" border="0">

<tr>'
;





echo '

<td width="90%" class="column-title">

'
template_menu(), '

</td>'
;

echo '

</tr>

</table>

</div>'
;





// The main content should go here.



echo '

<div id="bodyarea">'
;



// If you want to put some ads or something on your pages, add them in this.

echo '
<div id="blank-box"></div>'
;

}



function 
template_main_below()

{

global $context$settings$options$scripturl$txt;



echo '

</div>'
;



// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!

echo '



<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

function smfFooterHighlight(element, value)

{

element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";

}

// ]]></script>

<p align="center" style="margin-top: 0; margin-bottom: 0">
<font size="1">Site Copyright &copy; 2006-2007 PentaxWorld.com</font><p align="center" style="margin-top: 0; margin-bottom: 0">
<font size="1">All submitted content, either graphical or textual, is the 
copyright and responsibility of the content creator.</font><p align="center" style="margin-top: 0; margin-bottom: 0">
<font size="1">Pentax is a registered trademarks of Pentax Imaging. </font>
<p align="center" style="margin-top: 0; margin-bottom: 0"><font size="1">
PentaxWorld.com is not associated with Pentax Imaging nor with any of its 
subsidiaries or affiliates in any way.</font>
<p>

<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">

<tr>

<td width="28%" valign="middle" align="center" class="copyright-links">

</td>

<td valign="middle" align="center" style="white-space: nowrap;" class="copyright-links">

'
theme_copyright(), '

</td>

<td width="28%" valign="middle" align="right" class="copyright-links">

<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>

</td>

</tr>

</table>'
;



// Show the load time?

if ($context['show_load_time'])

echo '

<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';



// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.

if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])

{

// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.

echo '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;



// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...

if ($context['browser']['is_safari'])

echo '

window.addEventListener("load", smf_codeFix, false);



function smf_codeFix()

{

var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");



for (var i = 0; i < codeFix.length; i++)

{

if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)

codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";

}

}'
;

elseif ($context['browser']['is_firefox'])

echo '

window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()

{

var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");



for (var i = 0; i < codeFix.length; i++)

{

if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))

codeFix[i].style.overflow = "scroll";

}

}'
;

else

echo '

var window_oldOnload = window.onload;

window.onload = smf_codeFix;



function smf_codeFix()

{

var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");



for (var i = codeFix.length - 1; i > 0; i--)

{

if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))

codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";

}



if (window_oldOnload)

{

window_oldOnload();

window_oldOnload = null;

}

}'
;



echo '

// ]]></script>'
;

}



echo '

</div>

</div></td></tr></table>'
;



// The following will be used to let the user know that some AJAX process is running

echo '

<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>

</body></html>'
;

}



// If the user is logged in, display stuff like their  new messages, etc...

function theme_newestlink()

{

global $context$settings$options$scripturl$txt;



if ($context['user']['is_logged'])

{

echo '

<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a>&nbsp;|&nbsp;<a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>';



}

// Otherwise they're a guest - send them a lovely greating...

else

echo $txt['welcome_guest'];

}



// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. THIS IS THE OLD ONE's FIX

function theme_linktree()

{

global $context$settings$options;



echo '<br />';

}



// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. THIS IS THE OLD ONE

function theme_linktreeOLD()

{

global $context$settings$options;



echo '<div class="nav-tree" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;text-align:center;">';



// Each tree item has a URL and name. Some may have extra_before and extra_after.

foreach ($context['linktree'] as $link_num => $tree)

{

// Show something before the link?

if (isset($tree['extra_before']))

echo $tree['extra_before'];



// Show the link, including a URL if it should have one.

echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';



// Show something after the link...?

if (isset($tree['extra_after']))

echo $tree['extra_after'];



// Don't show a separator for the last one.

if ($link_num != count($context['linktree']) - 1)

echo '&nbsp;&raquo;&nbsp;';

}



echo '</div>';

}



//Show a linktree (this one is a vB look alike, vB clone is below).

function theme_linktree2()

{

global $context$settings$options;



// Folder style or inline?  Inline has a smaller font.

echo '<span class="nav-tree" style="font-size: smaller;">';



// Each tree item has a URL and name.  Some may have extra_before and extra_after.

foreach ($context['linktree'] as $link_num => $tree)

{

// Show pretty folder

if ($link_num == 0)

{

echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';

}

else if ($link_num == 1)

{

echo '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';

}

else

{

echo '&raquo; ';

}



// Show the link, including a URL if it should have one.

echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';



if ($link_num == 0)

{

echo '<br />';

}

}



echo '</span>';

}



// Show a linktree (vB Clone).  This is that thing that shows "My Community | General Category | General Discussion"..

function theme_linktree3()

{

        global 
$context$settings$options;



        
// Folder style or inline?  Inline has a smaller font.

        
echo '<span class="nav-tree">';



echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';



echo '<b><a class="nav-tree" href="http://www.webtechnica.com/">WebTechnica</a></b>&nbsp;&raquo;&nbsp;';



        
// Each tree item has a URL and name.  Some may have extra_before and extra_after.

        
foreach ($context['linktree'] as $link_num => $tree)

        {

                
// Show something before the link?

                
if (isset($tree['extra_before']))

                        echo 
$tree['extra_before'];



                if ((
$link_num == count($context['linktree']) - 1) && count($context['linktree'])>1)

                        echo 
'<br />

<img src="' 
$settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';



                
// Show the link, including a URL if it should have one.

                
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';



                
// Show something after the link...?

                
if (isset($tree['extra_after']))

                        echo 
$tree['extra_after'];



                
// Don't show a separator for the last one.

                
if ($link_num count($context['linktree']) - 2)

                        echo 
'&nbsp;&raquo;&nbsp;';



        }



        echo 
'</span>';

}



// Show the menu up top. Something like [home] [help] [profile] [logout]...

function template_menu()

{

global $context$settings$options$scripturl$txt;



// Work out where we currently are.

$current_action 'home';

if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))

$current_action 'admin';

if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))

$current_action $context['current_action'];

if ($context['current_action'] == 'search2')

$current_action 'search';

if ($context['current_action'] == 'theme')

$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';



// Are we using right-to-left orientation?

if ($context['right_to_left'])

{

$first 'last';

$last 'first';

}

else

{

$first 'first';

$last 'last';

}



// Show the start of the tab section.

echo '

<table width="100%" cellpadding="0" cellspacing="0" border="0">

<tr>'
;



// Show the [home] button.

echo '

<td class="main-navigation"><a href="'
$scripturl'">' $txt[103] , '</a></td>';



// Show the [help] button.

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></td>';



// How about the [search] button?

if ($context['allow_search'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">' $txt[182] , '<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>

<!--Do not remove outer most DIV tag with id="subcontent"-->

<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none">

<table width="100%" border="0" cellpadding="0" cellspacing="1">

<tr>

<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Quick Search</td>

</tr>

<tr>

<td height="26" align="left" valign="middle" class="windowbg">

<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">

<input type="text" name="search" value="" style="width: 150px;" />&nbsp;

<input type="submit" name="submit" value="GO" />

<input type="hidden" name="advanced" value="0" />'
;



// Search within current topic?

if (!empty($context['current_topic']))

echo '

<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';



// If we're on a certain board, limit it to this board ;).

elseif (!empty($context['current_board']))

echo '

<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';



echo '

</form></td>

</tr>

<tr>

<td height="20" align="center" valign="middle" class="windowbg"><a href="'
$scripturl'?action=search;advanced">Advanced Search</a></td>

</tr>

</table>

<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'subcontent\'); return false">[Close]</a></div>



</DIV>

</td>'
;

// Recent Posts
echo '

<td class="main-navigation"><a href="'
$scripturl'?action=recent">Recent Posts</a></td>';


// Is the user allowed to administrate at all? ([admin])

if ($context['allow_admin'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=admin">' $txt[2] , '</a></td>';



// The [calendar]!

if ($context['allow_calendar'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></td>';



// the [member] list button

if ($context['allow_memberlist'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></td>';





// If the user is a guest, show [login] button.

if ($context['user']['is_guest'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></td>';





// If the user is a guest, also show [register] button.

if ($context['user']['is_guest'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></td>';





// Otherwise, they might want to [logout]...

if ($context['user']['is_logged'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></td>';



// How about the [quick links] button?

if ($context['user']['is_logged'])

echo '

<td class="main-navigation"><a href="'
$scripturl'#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottomright\')">Quick Links<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>

<!--Do not remove outer most DIV tag with id="quicklinks"-->

<DIV id="quicklinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">

<table width="100%" border="0" cellpadding="0" cellspacing="1">

<tr>

<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Quick Links</td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=unread">New Posts</a></td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=unreadreplies">New Replies</a></td>

</tr>

<tr>

<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">User Settings</td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile">View Profile</a></td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=account">Account Settings</a></td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=forumProfile">Edit Profile</a></td>

</tr>

</table>

<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'quicklinks\'); return false">[Close]</a></div>



</DIV>

</td>'
;


// Shop
echo '

<td class="main-navigation"><a href="http://shashinki.com/shop/advanced_search_result.php?currency=USD&keywords=pentax">Shop</a></td>'
;

// The end of tab section.

echo '



</tr>

</table>'
;



}



// Generate a strip of buttons.

function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')

{

global $settings$buttons$context$txt$scripturl;



// Create the buttons...

foreach ($button_strip as $key => $value)

{

if (isset($value['test']) && empty($context[$value['test']]))

{

unset($button_strip[$key]);

continue;

}

elseif (!isset($buttons[$key]) || $force_reset)

$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';



$button_strip[$key] = $buttons[$key];

}



if (empty($button_strip))

return '<td>&nbsp;</td>';



echo '

<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>

<td valign="middle" class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;&nbsp; '$button_strip) , '</td>

<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';

}



?>


Title: Re: SMF Links
Post by: Gobo on January 03, 2007, 02:37:24 AM
this should do the trick


<?php

// Version: 1.1; index



/* This template is, perhaps, the most important template in the theme. It

contains the main template layer that displays the header and footer of

the forum, namely with main_above and main_below. It also contains the

menu sub template, which appropriately displays the menu; the init sub

template, which is there to set the theme up; (init can be missing.) and

the linktree sub template, which sorts out the link tree.



The init sub template should load any data and set any hardcoded options.



The main_above sub template is what is shown above the main content, and

should contain anything that should be shown up there.



The main_below sub template, conversely, is shown after the main content.

It should probably contain the copyright statement and some other things.



The linktree sub template should display the link tree, using the data

in the $context['linktree'] variable.



The menu sub template should display all the relevant buttons the user

wants and or needs.



For more information on the templating system, please see the site at:

http://www.simplemachines.org/

*/



// Initialize the template... mainly little settings.

function template_init()

{

global $context$settings$options$txt;



/* Use images from default theme when using templates from the default theme?

if this is 'always', images from the default theme will be used.

if this is 'defaults', images from the default theme will only be used with default templates.

if this is 'never' or isn't set at all, images from the default theme will not be used. */

$settings['use_default_images'] = 'never';



/* What document type definition is being used? (for font size and other issues.)

'xhtml' for an XHTML 1.0 document type definition.

'html' for an HTML 4.01 document type definition. */

$settings['doctype'] = 'xhtml';



/* The version this template/theme is for.

This should probably be the version of SMF it was created for. */

$settings['theme_version'] = '1.1';



/* Set a setting that tells the theme that it can render the tabs. */

$settings['use_tabs'] = true;



/* Use plain buttons - as oppossed to text buttons? */

$settings['use_buttons'] = true;



/* Show sticky and lock status seperate from topic icons? */

$settings['seperate_sticky_lock'] = true;

}



// The main sub template above the content.

function template_main_above()

{

global $context$settings$options$scripturl$txt$modSettings;



// Show right to left and the character set for ease of translating.

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>

<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />

<meta name="description" content="PentaxWorld, Pentax '
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '

<meta name="robots" content="noindex" />'
'

<meta name="keywords" content="Pentax, PentaxWorld, forum, community, home, imaging, users, K10D, K100D, K110D, *st DS2 DL2, FA SMCP lenses, lens, 77mm limited, DA, LX, Takumar, M42, Screw mount, simple machines, smf" />

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

var smf_theme_url = "'
$settings['theme_url'], '";

var smf_images_url = "'
$settings['images_url'], '";

var smf_scripturl = "'
$scripturl'";

var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';

var smf_charset = "'
$context['character_set'], '";

// ]]></script>

<title>'
$context['page_title'], '</title>';



// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.

 
echo '

  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />

<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';



/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)

Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.

Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.

Standards compliance mode happens when you use xhtml... */

if ($context['browser']['needs_size_fix'])

echo '

<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';



// Show all the relative links, such as help, search, contents, and the like.

echo '

<link rel="help" href="'
$scripturl'?action=help" target="_blank" />

<link rel="search" href="' 
$scripturl '?action=search" />

<link rel="contents" href="'
$scripturl'" />';



// If RSS feeds are enabled, advertise the presence of one.

if (!empty($modSettings['xmlnews_enable']))

echo '

<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';



// If we're viewing a topic, these should be the previous and next topics, respectively.

if (!empty($context['current_topic']))

echo '

<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />

<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';



// If we're in a board, or a topic for that matter, the index will be the board's index.

if (!empty($context['current_board']))

echo '

<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';



// We'll have to use the cookie to remember the header...

if ($context['user']['is_guest'])

$options['collapse_header'] = !empty($_COOKIE['upshrink']);



// Output any remaining HTML headers. (from mods, maybe?)

echo $context['html_headers'], '



<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';



function shrinkHeader(mode)

{'
;



// Guests don't have theme options!!

if ($context['user']['is_guest'])

echo '

document.cookie = "upshrink=" + (mode ? 1 : 0);'
;

else

echo '

smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';



echo '

document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");



document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";



current_header = mode;

}

// ]]></script>'
;



// the routine for the info center upshrink

echo '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';



function shrinkHeaderIC(mode)

{'
;



if ($context['user']['is_guest'])

echo '

document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;

else

echo '

smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';



echo '

document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");



document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";



current_header_ic = mode;

}

// ]]></script>'
;



//This is for the pop menus

echo '

<script type="text/javascript">



/***********************************************

* Drop Down/ Overlapping Content- ? Dynamic Drive (www.dynamicdrive.com)

* This notice must stay intact for legal use.

* Visit http://www.dynamicdrive.com/ for full source code

***********************************************/



function getposOffset(overlay, offsettype){

var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;

var parentEl=overlay.offsetParent;

while (parentEl!=null){

totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;

parentEl=parentEl.offsetParent;

}

return totaloffset;

}



function overlay(curobj, subobjstr, opt_position){

if (document.getElementById){

var subobj=document.getElementById(subobjstr)

subobj.style.display=(subobj.style.display!="block")? "block" : "none"

var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 

var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)

subobj.style.left=xpos+"px"

subobj.style.top=ypos+"px"

return false

}

else

return true

}



function overlayclose(subobj){

document.getElementById(subobj).style.display="none"

}



</script>'
;

echo '

</head>

<body>'
;



echo '

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td id="top-logo"><a href="http://pentaxworld.com/forum/index.php"><img src="'
$settings['images_url'], '/logo.gif" width="358" height="91" alt="PentaxWorld" title="PentaxWorld" /></a></td>

</tr>

<tr>

<td width="100%" align="left" valign="top" style="padding:0 30px 0 30px;">'
;



echo '

<div class="body-border">

<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';





// display user name

echo '

<table width="100%" cellspacing="1" cellpadding="5" class="bordercolor" border="0" >

<tr>'
;



echo '

<td class="windowbg2" width="100%" valign="middle" align="left">

'
theme_linktree2(), '

</td>'
;



echo '

<td width="250" valign="top" class="windowbg"><span class="middletext" style="display:block;width:250px;">'
;



if($context['user']['is_logged'])

{

echo '

<strong>Welcome, '
$context['user']['name'] , '.</strong><br />';

}



// Go to PM center... [pm]

if ($context['user']['is_logged'] && $context['allow_pm'])

{

echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '

<a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'], ' Unread, '$context['user']['messages'], ' Total.<br />';

}



// Now, onto our second set of info, are they logged in again?

if ($context['user']['is_logged'])

{

// Is the forum in maintenance mode?

if ($context['in_maintenance'] && $context['user']['is_admin'])

echo '

<b>'
$txt[616], '</b><br />';



// Are there any members waiting for approval?

if (!empty($context['unapproved_members']))

echo '

'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';



// Show the total time logged in?

if (!empty($context['user']['total_time_logged_in']))

{

echo '

'
$txt['totalTimeLogged1'], '<br />';



// If days is just zero, don't bother to show it.

if ($context['user']['total_time_logged_in']['days'] > 0)

echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];



// Same with hours - only show it if it's above zero.

if ($context['user']['total_time_logged_in']['hours'] > 0)

echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];



// But, let's always show minutes - Time wasted here: 0 minutes ;).

echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';

}

}

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...

else

{

echo ' </span>

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>



<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>

<table border="0" cellpadding="1" cellspacing="0">

<tr>

<td>Username:</td>

<td><input type="text" name="user" size="10" /></td>

<td><select name="cookielength">

<option value="60">'
$txt['smf53'], '</option>

<option value="1440">'
$txt['smf47'], '</option>

<option value="10080">'
$txt['smf48'], '</option>

<option value="43200">'
$txt['smf49'], '</option>

<option value="-1" selected="selected">'
$txt['smf50'], '</option>

</select></td>

</tr>

<tr>

<td>Password:</td>

<td><input type="password" name="passwrd" size="10" /></td>

<td><input type="submit" value="'
$txt[34], '" /></td>

</tr>

</table>

<input type="hidden" name="hash_passwrd" value="" />

</form>'
;

}



echo '

</span>

</td>

</tr>

</table>'
;



echo '

<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ''' width="100%" cellpadding="4" cellspacing="0" border="0">

<tr>'
;





echo '

<td width="90%" class="column-title">

'
template_menu(), '

</td>'
;

echo '

</tr>

</table>

</div>'
;





// The main content should go here.



echo '

<div id="bodyarea">'
;



// If you want to put some ads or something on your pages, add them in this.

echo '
<div id="blank-box"></div>'
;

}



function 
template_main_below()

{

global $context$settings$options$scripturl$txt;



echo '

</div>'
;



// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!

echo '



<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

function smfFooterHighlight(element, value)

{

element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";

}

// ]]></script>

<p align="center" style="margin-top: 0; margin-bottom: 0">
<font size="1">Site Copyright &copy; 2006-2007 PentaxWorld.com</font><p align="center" style="margin-top: 0; margin-bottom: 0">
<font size="1">All submitted content, either graphical or textual, is the 
copyright and responsibility of the content creator.</font><p align="center" style="margin-top: 0; margin-bottom: 0">
<font size="1">Pentax is a registered trademarks of Pentax Imaging. </font>
<p align="center" style="margin-top: 0; margin-bottom: 0"><font size="1">
PentaxWorld.com is not associated with Pentax Imaging nor with any of its 
subsidiaries or affiliates in any way.</font>
<p>

<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">

<tr>

<td width="28%" valign="middle" align="center" class="copyright-links">

</td>

<td valign="middle" align="center" style="white-space: nowrap;" class="copyright-links">

'
theme_copyright(), '

</td>

<td width="28%" valign="middle" align="right" class="copyright-links">

<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>

</td>

</tr>

</table>'
;



// Show the load time?

if ($context['show_load_time'])

echo '

<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';



// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.

if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])

{

// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.

echo '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;



// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...

if ($context['browser']['is_safari'])

echo '

window.addEventListener("load", smf_codeFix, false);



function smf_codeFix()

{

var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");



for (var i = 0; i < codeFix.length; i++)

{

if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)

codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";

}

}'
;

elseif ($context['browser']['is_firefox'])

echo '

window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()

{

var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");



for (var i = 0; i < codeFix.length; i++)

{

if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))

codeFix[i].style.overflow = "scroll";

}

}'
;

else

echo '

var window_oldOnload = window.onload;

window.onload = smf_codeFix;



function smf_codeFix()

{

var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");



for (var i = codeFix.length - 1; i > 0; i--)

{

if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))

codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";

}



if (window_oldOnload)

{

window_oldOnload();

window_oldOnload = null;

}

}'
;



echo '

// ]]></script>'
;

}



echo '

</div>

</div></td></tr></table>'
;



// The following will be used to let the user know that some AJAX process is running

echo '

<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>

</body></html>'
;

}



// If the user is logged in, display stuff like their  new messages, etc...

function theme_newestlink()

{

global $context$settings$options$scripturl$txt;



if ($context['user']['is_logged'])

{

echo '

<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a>&nbsp;|&nbsp;<a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>';



}

// Otherwise they're a guest - send them a lovely greating...

else

echo $txt['welcome_guest'];

}



// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. THIS IS THE OLD ONE's FIX

function theme_linktree()

{

global $context$settings$options;



echo '<br />';

}



// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. THIS IS THE OLD ONE

function theme_linktreeOLD()

{

global $context$settings$options;



echo '<div class="nav-tree" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;text-align:center;">';



// Each tree item has a URL and name. Some may have extra_before and extra_after.

foreach ($context['linktree'] as $link_num => $tree)

{

// Show something before the link?

if (isset($tree['extra_before']))

echo $tree['extra_before'];



// Show the link, including a URL if it should have one.

echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';



// Show something after the link...?

if (isset($tree['extra_after']))

echo $tree['extra_after'];



// Don't show a separator for the last one.

if ($link_num != count($context['linktree']) - 1)

echo '&nbsp;&raquo;&nbsp;';

}



echo '</div>';

}



//Show a linktree (this one is a vB look alike, vB clone is below).

function theme_linktree2()

{

global $context$settings$options;



// Folder style or inline?  Inline has a smaller font.

echo '<span class="nav-tree" style="font-size: smaller;">';



// Each tree item has a URL and name.  Some may have extra_before and extra_after.

foreach ($context['linktree'] as $link_num => $tree)

{

// Show pretty folder

if ($link_num == 0)

{

echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';

}

else if ($link_num == 1)

{

echo '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';

}

else

{

echo '&raquo; ';

}



// Show the link, including a URL if it should have one.

echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';



if ($link_num == 0)

{

echo '<br />';

}

}



echo '</span>';

}



// Show a linktree (vB Clone).  This is that thing that shows "My Community | General Category | General Discussion"..

function theme_linktree3()

{

        global 
$context$settings$options;



        
// Folder style or inline?  Inline has a smaller font.

        
echo '<span class="nav-tree">';



echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';



echo '<b><a class="nav-tree" href="http://www.webtechnica.com/">WebTechnica</a></b>&nbsp;&raquo;&nbsp;';



        
// Each tree item has a URL and name.  Some may have extra_before and extra_after.

        
foreach ($context['linktree'] as $link_num => $tree)

        {

                
// Show something before the link?

                
if (isset($tree['extra_before']))

                        echo 
$tree['extra_before'];



                if ((
$link_num == count($context['linktree']) - 1) && count($context['linktree'])>1)

                        echo 
'<br />

<img src="' 
$settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';



                
// Show the link, including a URL if it should have one.

                
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';



                
// Show something after the link...?

                
if (isset($tree['extra_after']))

                        echo 
$tree['extra_after'];



                
// Don't show a separator for the last one.

                
if ($link_num count($context['linktree']) - 2)

                        echo 
'&nbsp;&raquo;&nbsp;';



        }



        echo 
'</span>';

}



// Show the menu up top. Something like [home] [help] [profile] [logout]...

function template_menu()

{

global $context$settings$options$scripturl$txt;



// Work out where we currently are.

$current_action 'home';

if (in_array($context['current_action'], array('links''admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))

$current_action 'admin';

if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))

$current_action $context['current_action'];

if ($context['current_action'] == 'search2')

$current_action 'search';

if ($context['current_action'] == 'theme')

$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';



// Are we using right-to-left orientation?

if ($context['right_to_left'])

{

$first 'last';

$last 'first';

}

else

{

$first 'first';

$last 'last';

}



// Show the start of the tab section.

echo '

<table width="100%" cellpadding="0" cellspacing="0" border="0">

<tr>'
;



// Show the [home] button.

echo '

<td class="main-navigation"><a href="'
$scripturl'">' $txt[103] , '</a></td>';

// Show the [links] button.
if ($context['allow_view_smflinks'])
echo '

<td class="main-navigation"><a href="'
$scripturl'?action=links">' $txt['smflinks_menu']  , '</a></td>';



// Show the [help] button.

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></td>';



// How about the [search] button?

if ($context['allow_search'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">' $txt[182] , '<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>

<!--Do not remove outer most DIV tag with id="subcontent"-->

<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none">

<table width="100%" border="0" cellpadding="0" cellspacing="1">

<tr>

<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Quick Search</td>

</tr>

<tr>

<td height="26" align="left" valign="middle" class="windowbg">

<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">

<input type="text" name="search" value="" style="width: 150px;" />&nbsp;

<input type="submit" name="submit" value="GO" />

<input type="hidden" name="advanced" value="0" />'
;



// Search within current topic?

if (!empty($context['current_topic']))

echo '

<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';



// If we're on a certain board, limit it to this board ;).

elseif (!empty($context['current_board']))

echo '

<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';



echo '

</form></td>

</tr>

<tr>

<td height="20" align="center" valign="middle" class="windowbg"><a href="'
$scripturl'?action=search;advanced">Advanced Search</a></td>

</tr>

</table>

<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'subcontent\'); return false">[Close]</a></div>



</DIV>

</td>'
;

// Recent Posts
echo '

<td class="main-navigation"><a href="'
$scripturl'?action=recent">Recent Posts</a></td>';


// Is the user allowed to administrate at all? ([admin])

if ($context['allow_admin'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=admin">' $txt[2] , '</a></td>';



// The [calendar]!

if ($context['allow_calendar'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></td>';



// the [member] list button

if ($context['allow_memberlist'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></td>';





// If the user is a guest, show [login] button.

if ($context['user']['is_guest'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></td>';





// If the user is a guest, also show [register] button.

if ($context['user']['is_guest'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></td>';





// Otherwise, they might want to [logout]...

if ($context['user']['is_logged'])

echo '

<td class="main-navigation"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></td>';



// How about the [quick links] button?

if ($context['user']['is_logged'])

echo '

<td class="main-navigation"><a href="'
$scripturl'#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottomright\')">Quick Links<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>

<!--Do not remove outer most DIV tag with id="quicklinks"-->

<DIV id="quicklinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">

<table width="100%" border="0" cellpadding="0" cellspacing="1">

<tr>

<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Quick Links</td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=unread">New Posts</a></td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=unreadreplies">New Replies</a></td>

</tr>

<tr>

<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">User Settings</td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile">View Profile</a></td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=account">Account Settings</a></td>

</tr>

<tr>

<td height="20" align="left" valign="middle" class="windowbg"><a href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=forumProfile">Edit Profile</a></td>

</tr>

</table>

<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'quicklinks\'); return false">[Close]</a></div>



</DIV>

</td>'
;


// Shop
echo '

<td class="main-navigation"><a href="http://shashinki.com/shop/advanced_search_result.php?currency=USD&keywords=pentax">Shop</a></td>'
;

// The end of tab section.

echo '



</tr>

</table>'
;



}



// Generate a strip of buttons.

function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')

{

global $settings$buttons$context$txt$scripturl;



// Create the buttons...

foreach ($button_strip as $key => $value)

{

if (isset($value['test']) && empty($context[$value['test']]))

{

unset($button_strip[$key]);

continue;

}

elseif (!isset($buttons[$key]) || $force_reset)

$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';



$button_strip[$key] = $buttons[$key];

}



if (empty($button_strip))

return '<td>&nbsp;</td>';



echo '

<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>

<td valign="middle" class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;&nbsp; '$button_strip) , '</td>

<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';

}



?>


Title: Re: SMF Links
Post by: khoking on January 03, 2007, 02:55:16 AM
Many thanks to akulion! :)

However I have another problem. I can't see the Link when login as regular member. I can only see the Link when I login as Admin.

I have set Manage Categories ->    [Permissions] -> Add Pemissions for all user groups.

What else do I need to set?
Title: Re: SMF Links
Post by: Gobo on January 03, 2007, 03:06:13 AM
check in admin panel

Members ---> Permissions

in that for each member group click 'modify'
and enable the permissions for them to be able to see the links and add links etc to it
Title: Re: SMF Links
Post by: khoking on January 03, 2007, 03:18:24 AM
It works great now!!! :D

Many thanks once again akulion! :)
Title: Re: SMF Links
Post by: Gobo on January 03, 2007, 03:25:59 AM
ur welcome
Title: Re: SMF Links
Post by: drhamad on January 03, 2007, 09:44:48 AM
Does this mod have the ability to delete all links by a certain poster?
Title: Re: SMF Links
Post by: vbgamer45 on January 03, 2007, 10:40:47 AM
Quote from: drhamad on January 03, 2007, 09:44:48 AM
Does this mod have the ability to delete all links by a certain poster?
Not in bulk. You can delete them one by one. Good idea though.
Title: Re: SMF Links
Post by: paster_cobra on January 09, 2007, 06:40:26 PM
how do u show image..how big should it be ?
Title: Re: SMF Links
Post by: vbgamer45 on January 09, 2007, 06:42:35 PM
Show an image for what? The a link? The only way for a link is to use bbc code in the description
Title: Re: SMF Links
Post by: paster_cobra on January 09, 2007, 07:39:48 PM
look at attach..the image i'm talking about is the cat image
Title: Re: SMF Links
Post by: niravdave on January 09, 2007, 07:43:05 PM
any category dump for this mod?

Dave
Title: Re: SMF Links
Post by: vbgamer45 on January 09, 2007, 07:49:22 PM
Quote from: paster_cobra on January 09, 2007, 07:39:48 PM
look at attach..the image i'm talking about is the cat image
Category image is url based you need to enter the complete url for the image.

Quote from: niravdave on January 09, 2007, 07:43:05 PM
any category dump for this mod?

Dave
What do you mean?
Title: Re: SMF Links
Post by: paster_cobra on January 09, 2007, 07:51:04 PM
do i have to edit code.because i put the complete url in cat setup also how wide can image be
Title: Re: SMF Links
Post by: vbgamer45 on January 09, 2007, 07:52:27 PM
Quote from: paster_cobra on January 09, 2007, 07:51:04 PM
do i have to edit code.because i put the complete url in cat setup also how wide can image be
No you do not need to edit the code for that.
Width there is no size limits. Just upload an image that is of good size so it looks good.
Title: Re: SMF Links
Post by: paster_cobra on January 09, 2007, 08:04:33 PM
finally its working thanks
Title: Re: SMF Links
Post by: niravdave on January 10, 2007, 01:12:12 PM
i mean to ask that if you use the the link directory like PHPlinkdirectory. You have the categories dump, so you dont have to manually feed the all the categories and subcategories.

Dave
Title: Re: SMF Links
Post by: vbgamer45 on January 10, 2007, 02:16:05 PM
That is not built in and I do not understand how that would work.
Title: Re: SMF Links
Post by: Grayson on January 13, 2007, 09:55:09 AM
I've searched but can not find ...

I installed and it works wonderfully on the SMF Default theme.  I'm trying to use it on another theeme but the links do nor show up.

To apply to an alternate theme, does this have to be done manually?

I've tried several different ways but it never shows up.  I must be overlooking the obvious,  Anyone want to let me in on how to do this?

Thanks
Title: Re: SMF Links
Post by: vbgamer45 on January 13, 2007, 11:10:17 AM
You want the links button or tab to appear on your theme?
You will need to edit index.template.php of the theme that you are using.
Title: Re: SMF Links
Post by: Grayson on January 13, 2007, 01:30:58 PM
The button appears now but an error loading 'main' template ???
Title: Re: SMF Links
Post by: vbgamer45 on January 13, 2007, 01:31:57 PM
Can you post the index.template.php file that you modified.
Title: Re: SMF Links
Post by: Grayson on January 13, 2007, 01:42:09 PM
Basically just added the following:

Quote// the [Links] button
   if ($context['allow_view_smflinks'])
      echo '
            <a href="', $scripturl, '?action=links">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/links.gif" alt="' . $txt['smflinks_menu'] . '" style="margin: 2px 0;" border="0" />' : $txt['smflinks_menu']), '</a>', $context['menu_separator'];
      
   // the [contact] button
   if ($context['allow_view_contact'])
      echo '
            <a href="', $scripturl, '?action=contact">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/contact.gif" alt="' . $txt['smfcontact_contact'] . '" style="margin: 2px 0;" border="0" />' : $txt['smfcontact_contact']), '</a>', $context['menu_separator'];
Title: Re: SMF Links
Post by: Grayson on January 13, 2007, 03:00:08 PM
I have it working now.  Not sure what I did but re-copied some of the php files and all it working.  Now just have to edit the buttonm gifs to match.

Thanks you for your assistance.
Title: Re: SMF Links
Post by: fratellino on January 21, 2007, 11:25:48 AM
I have installed this MOD on SMF 1.1 with no problem, but I can see "links" link only on Default theme and I'm using the Classic Theme. How can I display the link in classic theme too?

Thanks for help.
Title: Re: SMF Links
Post by: vbgamer45 on January 21, 2007, 07:16:27 PM
You will need to edit the index.template.php of the custom theme to include a link to the gallery
Title: Re: SMF Links
Post by: Farmacija on January 24, 2007, 06:08:03 AM
and if we use default theme but it other non-english language?
Title: Re: SMF Links
Post by: vbgamer45 on January 24, 2007, 10:02:43 AM
non english you will have the copy the text strings from modifications.english.php to modificatoins.yourlanguage.php
Title: Re: SMF Links
Post by: Farmacija on January 25, 2007, 04:25:41 AM
for other people, this code you should paste in your modifications.yourlanguage,php file
//Begin SMF Links Text Strings
$txt['smflinks_menu'] = 'Links';
$txt['smflinks_admin'] = 'Links Configuration';


$txt['permissiongroup_smflinks'] = 'SMF Links';
$txt['permissionname_view_smflinks'] = 'View Links Page';
$txt['permissionhelp_view_smflinks'] = 'Sets if the user can view the links page.';
$txt['cannot_view_smflinks'] = 'You can not view the links page.';
$txt['permissionname_add_links'] = 'Add Links';
$txt['permissionhelp_add_links'] = 'If the user is allowed to submit links';
$txt['cannot_add_links'] = 'You can not add links.';
$txt['permissionname_edit_links'] = 'Edit Links';
$txt['permissionhelp_edit_links'] = 'If the user is allowed to edit links';
$txt['cannot_edit_links'] = 'You can not edit links.';
$txt['permissionname_delete_links'] = 'Delete Links';
$txt['permissionhelp_delete_links'] = 'If the user is allowed to delete links';
$txt['cannot_delete_links'] = 'You can not delete links.';
$txt['permissionname_approve_links'] = 'Approve Links';
$txt['permissionhelp_approve_links'] = 'If the user is allowed to approve links';
$txt['cannot_approve_links'] = 'You can not approve links.';
$txt['permissionname_links_auto_approve'] = 'Links Auto Approved';
$txt['permissionhelp_links_auto_approve'] = 'If the users links are auto approved when submitted.';
$txt['permissionname_rate_links'] = 'Rate Links';
$txt['permissionhelp_rate_links'] = 'If the user is allowed to rate links';
$txt['cannot_rate_links'] = 'You are not allowed to rate links.';
$txt['permissionname_links_manage_cat'] = 'Manage Categories';
$txt['permissionhelp_links_manage_cat'] = 'User can add/remove/edit/reorder categories';
$txt['cannot_links_manage_cat'] = 'You are not allowed to manage categories.';
//END SMF Links Strings
Title: Re: SMF Links
Post by: Tick on February 06, 2007, 03:34:26 PM
ok I have the text links up on my row of buttons but it doesnt look like a button it just says links why is that/
Title: Re: SMF Links
Post by: drhamad on February 06, 2007, 03:42:45 PM
Graphic is missing.
Title: Re: SMF Links
Post by: Tick on February 06, 2007, 03:44:06 PM
how do I add that.  Please excuse my ignorance I am new to this
Title: Re: SMF Links
Post by: drhamad on February 06, 2007, 04:08:13 PM
Quote from: Buddha480 on February 06, 2007, 03:44:06 PM
how do I add that.  Please excuse my ignorance I am new to this

That's just what it sounds like... but I'm not sure I'm thinking of the same thing you are.

Link me to your forum, let me see.
Title: Re: SMF Links
Post by: drhamad on February 06, 2007, 04:27:06 PM
OK yeah, I'm now 99% sure you're missing a graphic.  As I said in PM:
My initial guess was right.  You're using a nonstandard theme, you need to create a graphic for the button.  The standard theme doesn't use graphics, it creates the buttons in HTML.  Hence the problem.
Title: Re: SMF Links
Post by: mrselnombre on February 17, 2007, 12:37:56 PM
Quote from: vbgamer45 on December 09, 2006, 01:10:10 PM
Alexa and pagerank do not work yet.
any update on this?
Title: Re: SMF Links
Post by: vbgamer45 on February 17, 2007, 04:41:25 PM
No too busy to work on that.
Title: Re: SMF Links
Post by: mrselnombre on February 17, 2007, 05:41:23 PM
oh, will it be removed in the next update then?
Title: Re: SMF Links
Post by: vbgamer45 on February 17, 2007, 05:45:33 PM
No just won't work.
Title: Re: SMF Links
Post by: chep on February 17, 2007, 07:44:17 PM
It would be sweet if you could do a search on the links. I have a lot under one particular subject.
Title: Re: SMF Links
Post by: mrselnombre on February 18, 2007, 05:09:35 AM
Quote from: vbgamer45 on February 17, 2007, 05:45:33 PM
No just won't work.
can you give me a hint as to how i can remove it or fix it... rather pointless it being there if it won't ever work.
Title: Re: SMF Links
Post by: vbgamer45 on February 18, 2007, 11:16:30 AM
Its turned off by defult. If you have in the settings checked alexa and pagerank then just uncheck them.
Title: Re: SMF Links
Post by: winterlok on February 18, 2007, 01:22:44 PM
Can anyone please tell me what the file for the links is called (or where it can be found) so that I can link it in my header?

Thank you!
Title: Re: SMF Links
Post by: mrselnombre on February 21, 2007, 02:43:34 AM
Quote from: vbgamer45 on February 18, 2007, 11:16:30 AM
Its turned off by defult. If you have in the settings checked alexa and pagerank then just uncheck them.
i stripped it out completely.
Title: Re: SMF Links
Post by: hotjunkie on February 25, 2007, 09:42:43 PM
Really nice mod,thank you. ;)
Title: Re: SMF Links
Post by: DeviantMetal on March 06, 2007, 01:02:29 PM
would someone be able to tell me which file(s) I would need to edit in order to have some text added underneath the main links page, basically, I want it to have a small set of instructions, ie "Reciprocal Links Only. All links are checked within 24 - 48 hours to ensure they have been linked...etc"  and be able to make that only visible to members and not guests(the instructions)?
Title: Re: SMF Links
Post by: vbgamer45 on March 06, 2007, 06:36:52 PM
Links.template.php
Title: Re: SMF Links
Post by: tsmalmbe on March 09, 2007, 06:08:41 AM
First: thanks for your effoerts, this is a great mod.

Now, I am missing a few things though. Willing to do the stuff myself, but of course I need a few pointers.

Issue 1: I have categories -> subcategories -> subsubcategories. WHen I view the initial links-page, I see a list of categories and a count of links inside those categories. Now, all my links are either in the subcategories or the subsubcategories. Now all my users are thinking that the linksystem is totelly empty, because the inital page shows 0 links. This is probably just a change in an SQL-query, right? What file, and where should I start looking at this?

Issue 2: The navigation path is not working. I expect it to look like:
Links>>category>>subcategory>>subsubcategory
but now it looks like
Links>>subsubcategory (when I'm in a subsubcategory). Where is this generated, and what would your suggestion be to fix this?

Of course we can also make a deal: if you fix this for me, I can offer you swedish translation - BUT, I'm willing to do the coding myself also for these issues, as long as you provide some commentary first.
Title: Re: SMF Links
Post by: paster_cobra on March 12, 2007, 10:30:58 PM
can some one please fix his for me link button still not showing on nav

if ($context['current_action'] == 'smflinks')
      $current_action = 'smflinks';



// the [links] button
   if ($context['allow_view_smflinks'])
      echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'links' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=links">' , $txt['smflinks_menu']  , '</a>
            </td>' , $current_action == 'links' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: SMF Links
Post by: vbgamer45 on March 12, 2007, 10:38:07 PM
This code is wrong

if ($context['current_action'] == 'smflinks')
      $current_action = 'smflinks';

Should be just links and not smflinks
Title: Re: SMF Links
Post by: paster_cobra on March 12, 2007, 11:10:29 PM
still dont work
Title: Re: SMF Links
Post by: paster_cobra on March 12, 2007, 11:30:35 PM
link is not show showing in admin panel or on nav bar please help
Title: Re: SMF Links
Post by: vbgamer45 on March 13, 2007, 07:58:06 AM
Check the other posts in this thread read every one of them.
Title: Re: SMF Links
Post by: tsmalmbe on March 13, 2007, 06:13:49 PM
Quote from: paster_cobra on March 12, 2007, 11:30:35 PM
link is not show showing in admin panel or on nav bar please help

Check Modifications.language.php for the correct text.
Title: Re: SMF Links
Post by: Roger Rabbit on March 22, 2007, 01:48:20 AM
Is there any possible way to put the top 10 submitted link to the home page....like using ssi.php?
Title: Re: SMF Links
Post by: canadiancray on March 24, 2007, 09:37:45 AM
OKey dokey lets see. I have added the latest version of SMF links to my forum. I am currently running SMF 1.1.1 with TP. I am using Mirage Theme & would like to get it working. I have read through the posts in this thread but still have a problem. After it installed & said redirecting to the settings page it just went straight into the forum. I am trying to create a link to the mod but even when I put

/forum/index.php?action=links

in the browser it just goes straight to the main forum page.

Any ideas??
Title: Re: SMF Links
Post by: vbgamer45 on March 24, 2007, 10:09:46 AM
That means the mod was not installed make sure that all the files are writable or needs to be installed manually.
Title: Re: SMF Links
Post by: canadiancray on March 24, 2007, 11:11:25 AM
Are there manual install instructions??
Title: Re: SMF Links
Post by: eeg on April 01, 2007, 02:28:29 AM
Great Mod!

Does the category permission lists work? I have been able to use the forum default permissions to set  permissons for all the categories, but when i try to assign a group within a category the right to add links it doesn't do anything.  See i want only certain links categories to have groups post links.  Through the forum permissions it is all or nothing.  I have tried just about every way imaginable like giving all rights and then denying rights to categories(thinking deny overides allow) and the opposite and nothing seems to work.

Any ideas, suggestions, or some code that i can use to allow this to happen. Iam running 1.1.2

Thx :-)
Title: Re: SMF Links
Post by: canadiancray on April 01, 2007, 08:54:10 AM
All my file permissions are correct but this thing still won't install. It says during the test that everything passes. Then says install successful but when I try to go to the links it just goes straight to the forum
Title: Re: SMF Links
Post by: vbgamer45 on April 01, 2007, 09:37:34 AM
You would need to do a manually install then check the doc site.
Title: Re: SMF Links
Post by: canadiancray on April 01, 2007, 12:30:57 PM
where would I find that?? I can't find a link to it on any of the sites with this mod??? I must be blind as my wife always tells me.
Title: Re: SMF Links
Post by: yelegen on April 02, 2007, 09:20:40 AM
Friends
I installed the Links mod and it works great I am able to see it and use it at action=links

My problem is I am using dilber mc Template and no matter what I do I cent get a button or text to apper saying links.

I did try what is given here but could not make it work.

attached my index.template  could you please mark the spot and give me exact code for text and or button.

Thank you for the great mod  :D
Title: Re: SMF Links
Post by: Bigguy on April 02, 2007, 04:11:17 PM
I could be wrong but I do believe you have to open the index.english.php file and add a text line to it in order to get the link to show.  
Title: Re: SMF Links
Post by: eeg on April 02, 2007, 09:10:37 PM
Quote from: eeg on April 01, 2007, 02:28:29 AM
Great Mod!

Does the category permission lists work? I have been able to use the forum default permissions to set  permissons for all the categories, but when i try to assign a group within a category the right to add links it doesn't do anything.  See i want only certain links categories to have groups post links.  Through the forum permissions it is all or nothing.  I have tried just about every way imaginable like giving all rights and then denying rights to categories(thinking deny overides allow) and the opposite and nothing seems to work.

Any ideas, suggestions, or some code that i can use to allow this to happen. Iam running 1.1.2

Thx :-)

Does anybody have some ideas about this?

Thx
Title: Re: SMF Links
Post by: frizz on April 03, 2007, 09:39:39 AM
sry but this mod doesn't work
i have dilber as theme

please help me

greetz
Title: Re: SMF Links
Post by: yelegen on April 03, 2007, 10:37:57 AM
I installed on dilber, only I cant get links button to show.
if installed right you can at least use it at yoursite.com/index.php?action=links
Title: Re: SMF Links
Post by: kat on April 03, 2007, 01:56:29 PM
Quote from: eeg on April 02, 2007, 09:10:37 PM
Does anybody have some ideas about this?

Yes. Like the latest version of the arcade, this mod suffers from permissions overkill. You have to set the permissions in the normal "Permissions" admin section AND in the mod, itself.

Bloody pain, it is, coz we have fourteen membergroups to wade through, TWICE!
Title: Re: SMF Links
Post by: eeg on April 03, 2007, 06:56:02 PM
Quote from: kat on April 03, 2007, 01:56:29 PM
Quote from: eeg on April 02, 2007, 09:10:37 PM
Does anybody have some ideas about this?

Yes. Like the latest version of the arcade, this mod suffers from permissions overkill. You have to set the permissions in the normal "Permissions" admin section AND in the mod, itself.

Bloody pain, it is, coz we have fourteen membergroups to wade through, TWICE!

Thanks for the response.  I set that the Regular Members in the normal permission section can view all groupings, but then wanted the regular members to have post ability to a specific links group only.  Do i need to create another group to be able to do this or is there a way to do this?  I  would liike to use the regular members group as all users are automatically added into it. If i create  another group, i will have to add members manually?  Correct, or am i missing something here(which is possible).  Thanks for any assitance.  
Title: Re: SMF Links
Post by: kat on April 04, 2007, 06:49:52 AM
Yeah. You'll have to add the group and set the permissions, manually.

Unless you set them, under "Admin/Permission/Permissions by Membergroup" to "Set permissions like this group:" and just modify the links bit, to suit.
Title: Re: SMF Links
Post by: TrueSatan on April 04, 2007, 06:55:55 AM
 You could use a new group that was entered according to number of posts made and thus was automatic...the members you want to have links permission might well be those who post a lot anyhow.
Title: Re: SMF Links
Post by: eeg on April 04, 2007, 04:16:21 PM
Thx for the responses...
ok, i created a group called 'user submission', added it to a user under their additional membergroups in their profile and then set the privileges on that to be able to view only and then in the permissions under links set that group to have extended rights to a specific category.  Nothing, it didn't work i was able to only view.  It seems to only use the permissions from the group that i set on for 'user submission'.  I tried to also give it both view and add links to the 'user submission' group and then in the permissions in links set the categories to be denied for the 'user submission' group and all the categories had add link showing....  It doesn't seem to recognize the links permissions settings at all.

The creation of a group and setting it to be on posts does not work as it doesn't populate the drop down box for the permissions selection.  :-(
Title: Re: SMF Links
Post by: kat on April 04, 2007, 04:21:33 PM
I know I'm being dense, here, but I can't, really, tell what you're trying to do.
Title: Re: SMF Links
Post by: eeg on April 04, 2007, 04:46:27 PM
No not at all, probably me... :-)

Basically i am setting up multiple categories say: 1-Web Sites, 2- Downloads, 3-Agents.  I want all the users to read only category's 1 and 2 but i want the users to be able to add their own links to category 3(a user submission area). 

I assign the regular members group to be able to view and rate the links on all three, i am then setting up a separate group called 'user submission' giving it no link permissions and adding a member to the 'user submission' group.  I then go into the Links admin area and go to category permissions and go to category '3-Agents' and assign the user submission group to be able to view, add, delete, etc. within that specific category.  When the user logons and goes into links tab they see the categories and can only view all 3 categories but nothing shows up in the categories to allow them to add links(like it does on the bottom when you give the right) 

If i then go into the 'user submissions' group and give it add links rights it shows up for the user under all the categories.  I have tried to deny the permission for the category for that user group as well and that does nothing.

I hope i explained this well enough... this issue is frustrating...

:-)  Thx for the help..
Title: Re: SMF Links
Post by: stormiecub on April 08, 2007, 08:36:40 PM
I hope somebody can help me...

When I installed the links mod, instead of seeing links configuration in the acp, which I know is supposed to be there, there's a gap. The links also do not appear anywhere on the site unless you know where to find them. Am I doing something wrong or is there something wrong with the mod itself?
Title: Re: SMF Links
Post by: vbgamer45 on April 08, 2007, 08:43:36 PM
Copy the text strings from themes/default/languages/modifications.english.php  to all modifications.*.php files. if you have other themes that contain modifications.english.php file you will need to copy to their language folders as well.
Title: Re: SMF Links
Post by: stormiecub on April 08, 2007, 09:13:47 PM
Is there a quick and easy way of doing that? Or do I have to go through each of them one by one?
Title: Re: SMF Links
Post by: vbgamer45 on April 08, 2007, 09:15:29 PM
You will need to go though each one by one.
Title: Re: SMF Links
Post by: stormiecub on April 08, 2007, 09:20:06 PM
Okay.... I was halfway through when I decided to ask.... No luck at all. It's not just this mod. It's... Well, most of them. Or all of them, I can't quite tell yet. Any other suggestions?
Title: Re: SMF Links
Post by: vbgamer45 on April 08, 2007, 09:22:29 PM
That's either cause you are using a custom theme that has modifications.english.php in their language folder or you are using a language other than english.
Title: Re: SMF Links
Post by: eeg on April 09, 2007, 12:42:32 AM
Quote from: eeg on April 04, 2007, 04:46:27 PM
No not at all, probably me... :-)

Basically i am setting up multiple categories say: 1-Web Sites, 2- Downloads, 3-Agents.  I want all the users to read only category's 1 and 2 but i want the users to be able to add their own links to category 3(a user submission area). 

I assign the regular members group to be able to view and rate the links on all three, i am then setting up a separate group called 'user submission' giving it no link permissions and adding a member to the 'user submission' group.  I then go into the Links admin area and go to category permissions and go to category '3-Agents' and assign the user submission group to be able to view, add, delete, etc. within that specific category.  When the user logons and goes into links tab they see the categories and can only view all 3 categories but nothing shows up in the categories to allow them to add links(like it does on the bottom when you give the right) 

If i then go into the 'user submissions' group and give it add links rights it shows up for the user under all the categories.  I have tried to deny the permission for the category for that user group as well and that does nothing.

I hope i explained this well enough... this issue is frustrating...

:-)  Thx for the help..


Bump, VBGamer can you offer up any ideas?

Thx
Title: Re: SMF Links
Post by: Roger Rabbit on April 09, 2007, 02:19:40 AM
Well...i hereby reiterate my suggestion to include it in ssi.php in order to show the latest submitted links at the main page....
Title: Re: SMF Links
Post by: eeg on April 11, 2007, 10:27:54 PM
Quote from: eeg on April 09, 2007, 12:42:32 AM
Quote from: eeg on April 04, 2007, 04:46:27 PM
No not at all, probably me... :-)

Basically i am setting up multiple categories say: 1-Web Sites, 2- Downloads, 3-Agents.  I want all the users to read only category's 1 and 2 but i want the users to be able to add their own links to category 3(a user submission area). 

I assign the regular members group to be able to view and rate the links on all three, i am then setting up a separate group called 'user submission' giving it no link permissions and adding a member to the 'user submission' group.  I then go into the Links admin area and go to category permissions and go to category '3-Agents' and assign the user submission group to be able to view, add, delete, etc. within that specific category.  When the user logons and goes into links tab they see the categories and can only view all 3 categories but nothing shows up in the categories to allow them to add links(like it does on the bottom when you give the right) 

If i then go into the 'user submissions' group and give it add links rights it shows up for the user under all the categories.  I have tried to deny the permission for the category for that user group as well and that does nothing.

I hope i explained this well enough... this issue is frustrating...

:-)  Thx for the help..


Bump, VBGamer can you offer up any ideas?

Thx

Hi VBGamer, I am not sure you had a chance to read this but this issue is really problematic.  Could you take some time and help me?  :-)


Thx
Title: Re: SMF Links
Post by: vbgamer45 on April 11, 2007, 10:30:19 PM
That should work I really don't have enough time to look into it maybe someone else will help.
Title: Re: SMF Links
Post by: cekcok on April 12, 2007, 06:12:54 PM
hello,

i already install smf link but the link menu not show in admin page nor in member/guest page (please see the attatch image,why?please help!

Thank you
Title: Re: SMF Links
Post by: cekcok on April 13, 2007, 04:59:07 PM
please help me !
Title: Re: SMF Links
Post by: kat on April 14, 2007, 05:40:08 AM
Does the index.template for the SMF defaul theme have these line of code in?

// the [links] button
if ($context['allow_view_smflinks'])
echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'links' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=links">' , $txt['smflinks_menu']  , '</a>
</td>' , $current_action == 'links' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: SMF Links
Post by: cekcok on April 14, 2007, 08:31:31 AM
yes the code in
Title: Re: SMF Links
Post by: kat on April 14, 2007, 08:40:33 AM
OK. At ABOUT line 500 of the same template, is there a line that looks like this?

if (in_array($context['current_action'], array('links','staff','search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

It won't have the "staff" bit, nor the "Arcade" bit, unless you have those packages. It SHOULD, I believe, have the "link" bit, though.
Title: Re: SMF Links
Post by: cekcok on April 15, 2007, 09:39:22 AM
kat,

Thank you for the information the link was ON
Title: Re: SMF Links
Post by: kat on April 15, 2007, 09:52:18 AM
All working, now?
Title: Re: SMF Links
Post by: cekcok on April 15, 2007, 10:32:15 AM
Yes ..and thank you so much
Title: Re: SMF Links
Post by: kat on April 15, 2007, 10:34:32 AM
Pleasure, my friend.  ;)
Title: Re: SMF Links
Post by: ClaudioP on April 25, 2007, 12:52:43 PM
Hi all,
still it happens I don't see the link tab into the menu (even if every thing works well if I write directly the URL action=links). I verified those lines indicated here into the other posts, but everything seems to be right.
Instead, look into the manual procedure, I see that into Subs.php I should have the following lines starting with:
$context['admin_areas']['config']['areas'] etc.

but such lines don't exist! So the installation is not completed and maybe there is the problem.

I use the default Theme with SMF 1.1.2

Thank you for any help, Claudio
Title: HELP WHERE DO I FIND IT??
Post by: SMdot™ on April 30, 2007, 11:38:23 PM
I can't seem to find where i'm supposed to go about setting permissions for users to be able to see links... i added categories then logged in as a demo account, then went to http://www.shomazta.com/smf/index.php?action=links and it says sorry error has occured!

help asap. i want to turn it into a top site type of thing =P

also where to edit the code out that shows links to the actual link categories...

I just want to it display the Top Five Rated Links Top Five Visited Links

but to have it display look like Link | Category | Rating under top five rated
Title: Re: SMF Links
Post by: vbgamer45 on May 01, 2007, 12:00:18 AM
Admin -> Permissions
Title: Re: SMF Links
Post by: SMdot™ on May 01, 2007, 12:16:36 AM
thanks... maybe it's something with my theme but i don't see any text that references Links Permissions..
Title: Re: SMF Links
Post by: kat on May 01, 2007, 07:36:06 AM
If you click on "Links" and go to the page, you'll see the permissions on the right hand side, under the heading "Options".

At least, they are, for me.

Also, at the bottom, you'll see "Links Directory Panel".

The options listed are "Add Category", "Add Link", "Links", "Settings" and "Permissions".
Title: Re: SMF Links
Post by: SMdot™ on May 01, 2007, 10:42:12 PM
Quote from: kat on May 01, 2007, 07:36:06 AM
If you click on "Links" and go to the page, you'll see the permissions on the right hand side, under the heading "Options".

At least, they are, for me.

Also, at the bottom, you'll see "Links Directory Panel".

The options listed are "Add Category", "Add Link", "Links", "Settings" and "Permissions".

nothing shows up in there.?? can anyone help me by logining in (ill have to give temp admin privaleges)
Title: Re: SMF Links
Post by: kat on May 02, 2007, 05:54:42 AM
Quote from: shomazta on May 01, 2007, 10:42:12 PM
nothing shows up in there.??

You ARE using the SMF default theme...?
Title: Re: SMF Links
Post by: SMdot™ on May 02, 2007, 08:16:33 AM
no.
Title: Re: SMF Links
Post by: kat on May 02, 2007, 08:32:23 AM
That's why you can't see anything. Mods, generally, only work with the SMF default theme. To get it to work with other themes, you'll have to do some manual editing.

You'll find details in the mod package. package-info.xml, if I remember rightly.

If you don't know any php, which I don't, sadly, it can be a bit tricky. I managed by following what alterations it made to the defaul theme and did the same to the others.

It can be a bit of a pain, especially if you have a lot of themes, which we do.
Title: Re: SMF Links
Post by: kat on May 02, 2007, 02:39:10 PM
This explains it:

http://docs.simplemachines.org/index.php?topic=402
Title: Re: SMF Links
Post by: SMdot™ on May 02, 2007, 11:00:43 PM
all i had to do was copy modifications.english.php from the default theme over to my themes language folder =)
Title: Re: SMF Links
Post by: kat on May 03, 2007, 07:43:33 AM
The simplest ways are, usually, the best.  ;D
Title: Re: SMF Links
Post by: ClaudioP on May 06, 2007, 02:54:22 AM
Quote from: ClaudioP on April 25, 2007, 12:52:43 PM
Hi all,
still it happens I don't see the link tab into the menu (even if every thing works well if I write directly the URL action=links). I verified those lines indicated here into the other posts, but everything seems to be right.
Instead, look into the manual procedure, I see that into Subs.php I should have the following lines starting with:
$context['admin_areas']['config']['areas'] etc.

but such lines don't exist! So the installation is not completed and maybe there is the problem.

I use the default Theme with SMF 1.1.2

Thank you for any help, Claudio

Finally, not having clues, I decided to hack the mod and write directly "LINKS" on the tabs. So, on the test forum everything worked well.
After that I installed the mod into my main forum and magically everything went right without doing anything else! Life is strange!
Anyway, I learnt how to add a tab into the Menu :-))

Claudio
Title: Re: SMF Links
Post by: kat on May 06, 2007, 08:18:45 AM
It's amazing the things you learn, when you start digging into these things, innit?

Glad you got it working, Claudio. Thanks for letting us know, too. ;D
Title: Re: SMF Links
Post by: TrueSatan on May 06, 2007, 08:32:00 AM
If you were to read the SMF Documentation you might also learn how to do these things and many more...the documentation is there it's just that few people actually read it!

http://docs.simplemachines.org/index.php?topic=564.msg927#msg927 (http://docs.simplemachines.org/index.php?topic=564.msg927#msg927)
Title: Re: SMF Links
Post by: kat on May 06, 2007, 08:36:02 AM
If you know they exist, that is...  :-[
Title: Re: SMF Links
Post by: khoking on May 06, 2007, 10:41:17 AM
I found the "Total Links" count does not take into account the sub-categories inside, making the upper categories showing 0 total links, which discourage people from visiting.

Possible to count the total links even in the sub-categories?
Title: Re: SMF Links
Post by: vbgamer45 on May 06, 2007, 10:42:50 AM
There should be a setting for that I believe.
Title: Re: SMF Links
Post by: khoking on May 06, 2007, 11:18:35 AM
I searched but can't find that still...

By the way, may I suggest having latest links (configurable number new links to be shown) shown on the links page below the categories?
Title: Re: SMF Links
Post by: Jadzia on May 08, 2007, 03:56:12 PM
Installing this mod on SMF 1.1.2 I get the following error

Database Error
Incorrect table name ''
File: /home/*****/public_html/forum/Packages/temp/linksql.php
Line: 13

I removed it after this but now my error logs are showing errors for all users in calling up this mod. I would really like to use it so if anyone has a fix or the mysgl query for me to insert direct into the database I would appreciate it

Thanks
Title: Re: SMF Links
Post by: kat on May 08, 2007, 04:01:02 PM
I would suggest that there's an error in your database, rather than there being a problem with SMF.
Title: Re: SMF Links
Post by: Jadzia on May 08, 2007, 04:16:34 PM
Any suggestions on how to fix it?  Thanks  :)
Title: Re: SMF Links
Post by: kat on May 08, 2007, 04:22:39 PM
Now you're asking something.

From your cpanel (The one your host gave you) go to "MySQL® Databases" and you have the option to repair it, there. I'd back it up, first, though. Just in case.

It may not even be that, though. Without looking over your shoulder, to see what's going on, it's tricky, you know?

Just a thought... Have you tried going to your forum's admin panel and from "Forum maintenance" tried to repair any errors?
Title: Re: SMF Links
Post by: Jadzia on May 08, 2007, 04:31:04 PM
Great thanks I'll give all that a go - I actually just cheated and installed SMF via fantastico to a new folder and installed links on that then exported the database tables into the original database, removed the corresponding create tables out of linksql.php and rezipped and installed the package so now all is working well.

Will still repair the database etc anyway but at least I have the mod working.

;D
Title: Re: SMF Links
Post by: kat on May 08, 2007, 04:41:40 PM
I so like a happy ending. (http://www.augk18.dsl.pipex.com/Smileys/c014.gif)

Don't forget to backup the db, first. You never know...
Title: Re: SMF Links
Post by: AussieBill on May 12, 2007, 11:47:58 PM
Linktree and subcategories

Mind if I bring up something that was asked about awhile ago but not answered?

http://www.simplemachines.org/community/index.php?topic=98911.msg997857#msg997857

The linktree does not show the parent category of a subcategory when you are in the subcategory. It shows Links>>subcategory instead of Links>>category>>subcategory. Just makes it a bit awkward; you have to go back to the main Links page to get to the parent category.
Title: Re: SMF Links
Post by: vbgamer45 on May 12, 2007, 11:58:56 PM
That is a known issue not sure of a good way to fix that without using more queries.
Title: Re: SMF Links
Post by: AussieBill on May 13, 2007, 01:23:28 AM
No worries - I'll just avoid using subcategories (simpler anyway) :P

Fantastic mod BTW ;D
Title: Re: SMF Links
Post by: katoona on May 16, 2007, 08:19:46 PM
I see that a few people have asked if it is possible for the links to be listed alphabetically - is there a way of doing this?
Title: Re: SMF Links
Post by: vbgamer45 on May 16, 2007, 09:32:45 PM
yes you would need to alter the Links.template.php mysql query to sort the links alphabetically
Title: Re: SMF Links
Post by: Nyx on May 31, 2007, 12:51:35 PM
Quote from: vbgamer45 on May 16, 2007, 09:32:45 PM
yes you would need to alter the Links.template.php mysql query to sort the links alphabetically

how please? :S
Title: Re: SMF Links
Post by: chep on May 31, 2007, 06:32:48 PM
I used this below. Not sure it is the best way to do it.


//Show the links in that category
$dbresult = db_query("SELECT l.ID_LINK,l.title,l.date, l.pagerank, l.alexa, l.rating, m.realName, l.ID_MEMBER, l.description,l.hits FROM {$db_prefix}links AS l LEFT JOIN {$db_prefix}members AS m  ON (l.ID_MEMBER = m.ID_MEMBER) WHERE l.ID_CAT = $cat  AND l.approved = 1 ORDER BY l.title ASC LIMIT $curpage," . $modSettings['smflinks_setlinksperpage'], __FILE__, __LINE__);
Title: Re: SMF Links
Post by: khvitaliy on May 31, 2007, 09:03:28 PM
I had to install manually SMF Links, I have an access to smf links from control panel, but it's nowhere to be seen on the homepage. www.developprofit.com/money_forum

Please help,
Thanks
Title: Re: SMF Links
Post by: khoking on May 31, 2007, 09:18:03 PM
khvitaliy,

You need to manually create a link on the header to SMFLinks.

see mine at:

www.pentaxworld.com
Title: Re: SMF Links
Post by: cobro on June 03, 2007, 05:51:18 PM
im having some problem with links mod i cant see it in Configuration what is the problem with that ?'? do i have to edit template o something ?
Title: Re: SMF Links
Post by: kat on June 03, 2007, 06:07:51 PM
If you click on the links button, you can configure a load of stuff, there.

Title: Re: SMF Links
Post by: cobro on June 04, 2007, 01:21:55 PM
i cant see the button ? it dose not show up ??
Title: Re: SMF Links
Post by: kat on June 04, 2007, 01:43:35 PM
You ARE using the SMF default theme, aren't you?
Title: Re: SMF Links
Post by: justonemike on June 17, 2007, 01:25:02 AM
I can only see the link button when I am logged in as admin ???  it is not showing on the other member screens ???
Title: Re: SMF Links
Post by: chep on June 17, 2007, 03:49:33 AM
Using the SMF Default Core theme Try

Admin --> Members --> Permissions --> Regular Members Modify --> SMF Links View Links Page
Title: Re: SMF Links
Post by: justonemike on June 17, 2007, 12:18:29 PM
Thanks !  That did the trick and helped me on another mod for the same thing !!!

Quote from: chep on June 17, 2007, 03:49:33 AM
Using the SMF Default Core theme Try

Admin --> Members --> Permissions --> Regular Members Modify --> SMF Links View Links Page
Title: Re: SMF Links
Post by: nolageek on June 21, 2007, 04:58:49 AM
One thing I don't like is that If you're looking at the main links index, the categories don't count the number of links contained within child categories.  So, if your main index is a list of parents that don't have any links in them - but has child categories that DO, it looks as though you have no links AT ALL.
Title: Re: SMF Links
Post by: ScoobyDan on June 21, 2007, 05:55:15 PM
vbgamer45,

I have created a link directory (http://www.buffchat.org.uk/smf/index.php?page=10), based upon a free php directory script. I would like the directory to be more closely tied to SMF, so I was looking at replacing it with your SMF Links mod.

Do you think it would be feasible to change the code of your mod to include some of the additional fields I would require? If you think it would be too much effort, I won't bother to start looking at the code, and keep with my existing system.

Many thanks

Daniel
Title: Re: SMF Links
Post by: vbgamer45 on June 21, 2007, 07:19:32 PM
Depends on whats needed
Title: Re: SMF Links
Post by: weightman on June 30, 2007, 10:16:27 PM
Is there a way to alphabetize the links?

Thanks!
Title: Re: SMF Links
Post by: kat on July 01, 2007, 05:02:44 AM
If you go to the links page, you'll see "[Up] [Down] [Permissions] [Edit] [Delete]" in huge letters, underneath "Options".

Guess what they do? (http://www.augk18.dsl.pipex.com/Smileys/c018.gif)
Title: Re: SMF Links
Post by: weightman on July 01, 2007, 05:22:54 AM
Thanks. But, that only moves the categories up and down, right? How do you move links up and down inside each category? Where is the file I can edit to alphabetize?

Thanks
Title: Re: SMF Links
Post by: kat on July 01, 2007, 08:07:08 AM
I only have one category and I can move each item up and down. Maybe you need to go to each category and do it there?
Title: Re: SMF Links
Post by: weightman on July 01, 2007, 01:57:38 PM
What are you clicking to move each item up or down inside your one category? I don't see an option for up or down inside the category.

Thanks
Title: Re: SMF Links
Post by: kat on July 01, 2007, 02:51:17 PM
Screeny:

http://www.katzy.dsl.pipex.com/Screeny.jpg
Title: Re: SMF Links
Post by: weightman on July 01, 2007, 03:19:12 PM
I only have the up and down buttons at the category level, which is great for alphabetizing the categories. But, I was hoping to put the actual links inside categories.
Title: Re: SMF Links
Post by: kat on July 01, 2007, 04:53:50 PM
Much better to put just the image url, without the image tags. The forum doesn't resize them, then. ;D

OK. Click on "Links". Click on "Links Settings". Click on "Manage Categories".

Do you get the "Up" and "down", there?

Cancel that. You can only change the order of the categories. You're right.

That seems odd, doesn't it?

If the author of the mod reads this, maybe he'll add that, if we're lucky.
Title: Re: SMF Links
Post by: weightman on July 01, 2007, 05:21:06 PM
Yes, that would be nice. Thanks for trying to help anyway.
Title: Re: SMF Links
Post by: kat on July 01, 2007, 06:18:44 PM
I've sent him a message.

Worth a try, ay?
Title: Re: SMF Links
Post by: weightman on July 01, 2007, 07:14:51 PM
Yes, I appreciate you taking the time to try and help and ask him/her/them.

Cheers
Title: Re: SMF Links
Post by: kat on July 02, 2007, 05:11:57 AM
No sweat!
Title: Re: SMF Links
Post by: John S on July 03, 2007, 12:32:39 AM
Quote from: vbgamer45 on July 12, 2006, 04:35:15 PM
I will add option though in next release to include an image next to a link or a picture of your site.

awesome, when will this be ready? is it already ready?
Title: Re: SMF Links
Post by: RiderRaghav on July 07, 2007, 04:31:46 PM
I just installed this mod ....it gave no errors while installing  ........but after installing I dint see any buttons  :( .....
What should I do ??? ....
I'm using 1.1.3v with tiny portal ....

Any help would be greatly appreciated :) .....
Title: Re: SMF Links
Post by: kat on July 07, 2007, 04:39:00 PM
With the SMF default theme, you'll see a button labelled "Links". You can configure things, there.
Title: Re: SMF Links
Post by: nolageek on July 09, 2007, 09:29:11 AM
what about properly counting links inside nested categories?
Title: Re: SMF Links
Post by: klaja26 on July 20, 2007, 07:24:42 AM
I have the SMF Default Core and it still doesnt show up for me. I can get to the pages if i type in the links myself but it doesnt put them in the menu in admin or in the forum, there are just empty places for them. When im on the pages it shows me all the text properly, just doesnt show the links to get to the pages. I installed it on a fresh SMF so there shouldnt be anything else affecting it.
Title: Re: SMF Links
Post by: TrueSatan on July 20, 2007, 08:48:41 AM
@ klaja26

Firstly go to ACP>Server Settings and make sure that your forum language is set to english and not english utf8. Go to ACP>Packages>Options and set "Installation Options" approrriate to your hosting. In the same panel you'll find "Cleanup Permissions" use that to "Make all files writeable" and then check, via ftp, that this has changed the CHMOD of your files and directories to 775 or 777 (depending on your hosting configuration.)

If the problem persists go through a check to make sure everythign is installed correctly as though you were doing a manual installation of this mod using the following as a guide:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

Fix any ommissions as appropriate.

You may also find the following helpful in doing the above:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Links
Post by: klaja26 on July 20, 2007, 01:32:47 PM
yeah shortly after i posted this i decided to just reinstall it again and tried it out and it works now. I dont know what was wrong with the other installation but not many things were working on it. Thanks anyway
Title: Re: SMF Links
Post by: vbgamer45 on July 23, 2007, 08:34:17 PM
Version 1.6.5 released added a setting to count child categories link totals.
Title: Re: SMF Links
Post by: Dude111 on July 23, 2007, 08:36:00 PM
Excellent thread :)
Title: Re: SMF Links
Post by: weightman on July 23, 2007, 08:40:00 PM
Any other new features in new version? Alphabetize links inside categories? Is there a way to do that manually?
Title: Re: SMF Links
Post by: vbgamer45 on July 23, 2007, 08:43:05 PM
Nope no other new features.
Title: Re: SMF Links
Post by: Grumelo on July 26, 2007, 08:28:00 AM
Until you can search in this mod thanks to the standard search box this mod is useless.

This message is not agressiv. I'm just disappointed.
Title: Re: SMF Links
Post by: TrueSatan on July 26, 2007, 08:38:46 AM
@ Grumelo

You are, most certainly, entitled to your opinion...that said there would appear to be many satisfied users who don't share that opinion (I'm one of them.) Let's just remember that this mod has had, to date, 7014 downloads and I can't remember seeing any other postings with a similar view expressed in them. Each to their own...
Title: Re: SMF Links
Post by: mkress on July 27, 2007, 09:25:11 AM
that's a really great feature!!!!
Thank you!!!!!!!!!!!!

in languages/links.english.php

there are double translations:
$txt['smflinks_submittedby'] = ...
$txt['smflinks_returnindex'] = ...

Title: Re: SMF Links
Post by: digit on August 04, 2007, 07:54:02 AM
Hi,

I am trying to manually install this...

but can you explain the code in installsql.php?




$dbresult = SHOW COLUMNS FROM WDB_links_cat
$ID_PARENT = 1;
$image = 1;
while ($row = mysql_fetch_row($dbresult))
{
if($row[0] == 'ID_PARENT')
$ID_PARENT = 0;
if($row[0] == 'image')
$image = 0;


}
mysql_free_result($dbresult);

if($ID_PARENT)
ALTER TABLE WDB_links_cat ADD `ID_PARENT` mediumint(8) unsigned NOT NULL default '0'
if($image)
ALTER TABLE WDB_links_cat ADD `image` tinytext

$dbresult = SHOW COLUMNS FROM WDB_links
$alexa = 1;
$pagerank = 1;
while ($row = mysql_fetch_row($dbresult))
{
if($row[0] == 'alexa')
$alexa = 0;
if($row[0] == 'pagerank')
$pagerank = 0;


}
mysql_free_result($dbresult);

if($alexa)
ALTER TABLE WDB_links ADD `alexa` int(10) unsigned NOT NULL default '0'
if($pagerank)
ALTER TABLE WDB_links ADD `pagerank` tinyint(3) NOT NULL default '0'



Is that if upgrading?

Thanks in advance.

digit
Title: Re: SMF Links
Post by: vbgamer45 on August 04, 2007, 08:39:44 AM
That checks if you have an older version of the mod and upgrades the tables that is for an upgrade only

ALTER TABLE WDB_links_cat ADD `ID_PARENT` mediumint(8) unsigned NOT NULL default '0'
ALTER TABLE WDB_links_cat ADD `image` tinytext
ALTER TABLE WDB_links ADD `alexa` int(10) unsigned NOT NULL default '0'
ALTER TABLE WDB_links ADD `pagerank` tinyint(3) NOT NULL default '0'
Title: Re: SMF Links
Post by: mkress on August 06, 2007, 04:08:08 PM
hello!

i have found a bug.

if you insert links with & in the url - the link gets "destroyed"

for example the link
http://www.handball-neusaess.de/index.php?option=com_content&task=category&sectionid=5&id=17&Itemid=41

get's to
http://www.handball-neusaess.de/index.php?option=com_content&amp;task=category&amp;sectionid=5&amp;id=17&amp;Itemid=41

so he does not work.

i hope you can give a workaround for that problem.

Markus


EDIT:

in sources/links.php following has to be changed:

find
    header("Location: " . $row['url']);

repllace with

    header("Location: " . htmlspecialchars_decode($row['url']));[/b]
Title: Re: SMF Links
Post by: Grumelo on August 17, 2007, 02:36:22 AM
Quote from: TrueSatan on July 26, 2007, 08:38:46 AM
@ Grumelo

You are, most certainly, entitled to your opinion...that said there would appear to be many satisfied users who don't share that opinion (I'm one of them.) Let's just remember that this mod has had, to date, 7014 downloads and I can't remember seeing any other postings with a similar view expressed in them. Each to their own...

I'm the only one who wants to search in links ?
Title: Re: SMF Links
Post by: marzi on August 24, 2007, 02:26:41 PM
Regarding the Bug Markus made a posting on, I Tried fca07's suggestion to:

QuoteEDIT:
in sources/links.php following has to be changed:

find
Code: header("Location: " . $row['url']);
repllace with
Code: header("Location: " . htmlspecialchars_decode($row['url']));

But I get the following error:
Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/mydomain/public_html/myforum/Sources/Links.php on line 403

Anyone else have this same problem?
Title: Re: SMF Links
Post by: mkress on August 24, 2007, 02:45:55 PM
Sorry, the solution i posted only works with php5.

With php4 you should do the following:

find
header("Location: " . $row['url']);

replace with

$trans = array_flip(get_html_translation_table(HTML_SPECIALCHARS, ENT_QUOTES));
header("Location: " . strtr($row['url'], $trans));
Title: Re: SMF Links
Post by: saosangmo on September 28, 2007, 08:56:40 AM
Does mod work with local languages?
Title: Re: SMF Links
Post by: TrueSatan on September 28, 2007, 09:08:58 AM
It can do if you provide the translation files for it....for instance Modifications.english.php would  need to be translated...and then edit the mod into those translation files. The process is covered in the official SMF documentation...link at top of page.
Title: Re: SMF Links
Post by: ES23 on September 29, 2007, 10:29:44 AM
Absolutely frustrated with the re-installation of this mod.I have upgraded my forum from 1.1.3 to 1.1.4 and now,the SMF links page does not seem to work anymore(Previously,I can access and utilize the SMF links page with 1.1.3).Now,it leads me to a blank page when I click on the "Links" tab or when I try to configure the links page via the admin centre.I can neither configure noe view the links page at all.I have tried re-install but the same thing happens.It just display the blank page.I've checked the forum error log and there is no error reported.I have also check the files that are supposed to be edited during installation.All of the changes fit exactly with those indicated on the XML file of SMF links.What's more,installation of this plug in indicates all tests to be successful.

Can someone please advise??I have repaired my tables via phpAdmin,tried manual installation and package installation.The problem still remains.What is wrong??? :(
Title: Re: SMF Links
Post by: chep on September 29, 2007, 10:38:08 AM
Strange. Works for me after upgrading from 1.1.3 -> 1.1.4

Title: Re: SMF Links
Post by: TrueSatan on September 29, 2007, 11:15:47 AM
Another check of the files to make sure all code edits are in place looks to be called for...BTW if you have followed standard SMF advice and done a file backup and and database backup prior to installing or uninstalling mods or themes you can just do a restore to the earlier state of your files.
Title: Re: SMF Links
Post by: ES23 on September 29, 2007, 11:20:20 AM
Here are my edited files(attached)  :'(

The edits seem to be the same as those indicated modifications... ...  :( What's wrong?
Title: Re: SMF Links
Post by: ES23 on September 29, 2007, 11:21:43 AM
I have clear the 4 tables pertaining to smf_links each time I re-install manually or by package installer.Neither methods work ...
Title: Re: SMF Links
Post by: TrueSatan on September 29, 2007, 12:53:28 PM
Your last message concerns me...you ought not to have needed to edit the database at all and as the files do look to be in order this would appear to be either down to your database work or some problem due to the truckload of other mods you have installed. Unless somebody else has a better idea I'd be inclined to suggest that you work on a test forum with the database being a backup of your main forum database (backup all the filesfrom your main forum as well)...the files on the test forum being a clean set from SMF 1.1.4 Install into it first the links mod and see if it works. If it does then slowly build up the files again so that you have all your wanted mods installed and do frequent checking to see that it all continues to work. Once you have a new set of files that are fully modded and working then save for Settings.php and Settings_bak.php in your forum root copy them over onto your live/production forum.
Title: Re: SMF Links
Post by: ES23 on September 29, 2007, 02:14:13 PM
Any better easier solutions? :( Sigh .. ... I got to go through all that mess again ... lol...Still have to thank u .. ;)

Just to ask,what exactly should I type under the running query in my phpAdmin to create and alter the right tables for this mod?

Title: Re: SMF Links
Post by: TrueSatan on September 29, 2007, 05:06:59 PM
The easiest way to do the database work in a fresh install would be to use the database altering file from the mod package but that would have already been tried when you attempted to install the mod...had you been installing manually you would obviously have uploaded and triggered it manually...presuming that you did the manual install properly.

You would have done this by extracting linksql.php from the package, uploading it to your forum root and visiting that file via your browser...thus causing it to run and populate the database as well as making other settings changes to the database...view the file contents in a suitable editor and you will see what changes it seeks to make. If you didn't do this work with the linksql.php then do it now please and see if that helps the situation (it can't do any harm.)
Title: Re: SMF Links
Post by: ES23 on September 30, 2007, 01:57:43 AM
I tried running the linksql.php but it doesn't seem to create or alter any tables.I've followed your instructions,copying the linksql.php file into my forum root and running it on my browser.A blank page appears when I run it on my browser with the url: www.mywebsite.com/forums/linksql.php What should I do now?? :(

I cannot seem to understand.I have done the exact modifications as stated on the package but how come the mod still refuse to work??I mean it only alters the 6 indicated files as shown in the xml file and adding of extra php files and extra tables.That's all,right?Does it by any chance alter any of the core files in my smf?I have downloaded the SMF gallery and tags which are of the same author as smf links and the other 2 works perfectly fine ... ...How come "SMF Links" is the odd one out?No errors shown,just a blank page under Links Configuration and the action=links page.So strange ...
Title: Re: SMF Links
Post by: TrueSatan on September 30, 2007, 04:53:28 AM
 Running the linksql.php manually should produce a blamk page...same with running any database populating file from any package manually...but it should also try to make the database changes it is coded to make...the behaviour you saw was what I'd have expected.

  Silly question perhaps but have you made sure that you uploaded the additional files from the package...the files the mod adds? If they are already uploaded please try deleting them and replacing them with fresh copies CHMOD to 777 (or 775 if you host won't allow 777.) Other than that I can't see what is wrong and would fall back to the reconstruction of the files as detailed earlier.
Title: Re: SMF Links
Post by: ES23 on September 30, 2007, 06:46:07 AM
Yup ... I have done exactly.All uploaded files are chmoded to 755...no database files are created or altered ... strange...when I install it through package installer,all tests are successful and 4 extra tables are created ... Are there any errors with the modified files I have attached earlier?  O:)

Ya...all are fresh copies .. ... I've downloaded the Links package 4 times and the copies I get are definitely fresh copies ;)
Title: Re: SMF Links
Post by: TrueSatan on September 30, 2007, 11:28:18 AM
Clutching at straws...are they the file size you would expect them to be?
Title: Re: SMF Links
Post by: ES23 on September 30, 2007, 01:29:35 PM
I think so ... ...  ::) So there ain't any wrong with my attached files??The transfer is successful by ACII type transfer using FileZilla Client ...

Could I possibly ask for your help to resolve this problem?I'm willing to pay a small fee for this ... .. just to correct the problem and install this smf links .. ...I will provide you my admin and ftp details via PM or email if you're willing.Thanks alot in advance . :)
Title: Re: SMF Links
Post by: HelloWorld on September 30, 2007, 07:55:48 PM
Quote from: TrueSatan on July 20, 2007, 08:48:41 AM
@ klaja26

Firstly go to ACP>Server Settings and make sure that your forum language is set to english and not english utf8. 

I just wanted to thank you. I was having the same problem with 2 mods I installed, this fixed them. :)
Title: Re: SMF Links
Post by: ES23 on September 30, 2007, 11:36:44 PM
It is set to english,not english utf-8 :) ... none of the mods I've installed showed any problems except this smf links mod ... have smf gallery and tags as well but it works excellently ... ...
Title: Re: SMF Links
Post by: ES23 on October 01, 2007, 06:13:22 AM
Could it be that my links page had been hacked? It doesn't make any sense when I have the modifications in place and the files needed there,and all tests are successful but the mod refused to work,giving me blank page.What could be the possible reasons?SMF Gallery,Tags,contact all work fine perfectl..this is the only one...I was thinking of buying SMF Classifieds but fear that this kind of things will appear on smf...
Title: Re: SMF Links
Post by: TrueSatan on October 02, 2007, 09:06:19 AM
Firstly thanks for the offer of paid work though as vbgamer45 is the author of this mod he really should get first shot at any payment related to it...and he's far more able to fix it than I am.

I really do think that you best course of action is a rebuild of the files from the ground up...remember I detailed the suggestion earlier. At least try a test forum and have this mod running properly on it to prove that there is no hosting issue affecting it. Such rebuilds aren't hard to do and don't put too much of a strain on users abilities...they sound far worse than they really are. I suspect that that would solve your problems and get you a forum in the best possible state of repair.

The reasons for your problems could be many and varied...something may have gone wrong when you were editing the database...it wasn't something you needed to do in this instance and if you didn't take a backup prior to your alterations it was a risky move...there may be a clash with another mod (don't know what off hand but it's possible)...your files may have become corrupt due to some server issue...on and on.

With a reasonable backup strategy in place and care taken to trial mods etc on a test forum first SMF is one of the most reliable scripts around...and I've used an awful lot of scripts so I can say that with some confidence.
Title: Re: SMF Links
Post by: ES23 on October 02, 2007, 09:57:50 AM
I've tried installing on another forum and it works fine ... .... ;) So what's the problem now?Sigh ... I have over 150 mods in my forum and it is a big pain to install all of them over again.This links mod used to work at my old forum.For some unknown reason,I dunno y it suddenly fail to work ... I have install some mods before this .. like Who's online buddies,password protected boards etc but they souldn't have in anyway conflict with smf links.SMF Gallery and Tags and contact form all works fine.This is the only problematic mod(All tests during installation reads successful) ... I'm not very excellent in php coding and I'm very busy lately,so hope someone will help me resolve this issue.... Totally frustrated over this :(

So I shld contact vbgamer to help me with this? :)
Title: Re: SMF Links
Post by: TrueSatan on October 02, 2007, 10:32:51 AM
You've pretty much said it for yourself I suspect...you've 150 mods...with anything like that number clashes and unexpected results are almost a certainty.

Standard advice is to keep the number of mods you add as low as you can tolerate...only add the mods you really need. Do you really need more than a fraction of that vast array of mods?

vbgamer45 will read this topic when he has time...he's a busy person who does a great deal for SMF. Private contacts aren't likely to be wanted as they just add to his workload...most of the people who do a lot here try to avoid having PMs to answer as well.
Title: Re: SMF Links
Post by: catchpen on October 12, 2007, 03:13:23 PM
Quote from: ES23 on October 02, 2007, 09:57:50 AM
I've tried installing on another forum and it works fine ... .... ;) So what's the problem now?Sigh ... I have over 150 mods in my forum and it is a big pain to install all of them over again....

150? I gotta see this.  plz share the link!
Title: Re: SMF Links
Post by: catchpen on October 12, 2007, 03:30:43 PM
Thanks for yet another great mod. I was wondering how I was going to do this and boom you already did it!

I have one question but it might be more of a theme CSS problem. - I use the Mesh theme and the top menu is text links not gif buttons. I changed the name instead of "Links" I changed it to "Rate Links" I got it to work BUT the only thing it did like a word wrap thing and the "links" text was below the "rate" text, which didn't look right with the rest of the menu.  Do you guys know why it did this and if there is another topic on this please link me up.

Thanks,
C.P.
Title: Re: SMF Links
Post by: TrueSatan on October 12, 2007, 06:11:46 PM
It's really a theme issue and not to do with this mod...you'd be best asking on the topic for the theme on the themes pages where the theme author might either have answered this already or be able to sort it out for you.
Title: Re: SMF Links
Post by: catchpen on October 13, 2007, 01:02:24 AM
Thanks for the reply.
BTW got it to work by adding a space character instead of space bar between link ratings words (alt+0160) might be something to keep in mind
Title: Re: SMF Links
Post by: GhostM8 on October 23, 2007, 10:52:19 AM
Hello,

In an attempt to move categories up and down, I have recieved the following error:
(http://www.ghost-pa.com/forum/Themes/BlackRain_v1/images/Error.JPG)

I am running SMF 1.1.4 & SMF Links 1.6.5

Does anyone know how to fix this?


function CatUp()
{
global $db_prefix, $txt;
//Check if they are allowed to manage cats
isAllowedTo('links_manage_cat');

//Get the cat id
$cat = (int) @$_REQUEST['cat'];
//Check if there is a category above it
//First get our row order
$dbresult1 = db_query("SELECT roworder FROM {$db_prefix}links_cat WHERE ID_CAT = $cat", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult1);
$oldrow = $row['roworder'];
$o = $row['roworder'];
$o--;

mysql_free_result($dbresult1);
$dbresult = db_query("SELECT ID_CAT, roworder FROM {$db_prefix}links_cat WHERE roworder = $o", __FILE__, __LINE__);
if(db_affected_rows()== 0)
fatal_error($txt['smflinks_nocatabove'],false);
$row2 = mysql_fetch_assoc($dbresult);


//Swap the order Id's
db_query("UPDATE {$db_prefix}links_cat
SET roworder = $oldrow WHERE ID_CAT = " .$row2['ID_CAT'], __FILE__, __LINE__);

db_query("UPDATE {$db_prefix}links_cat
SET roworder = $o WHERE ID_CAT = $cat", __FILE__, __LINE__);


mysql_free_result($dbresult);

//Redirect to index to view cats
redirectexit('action=links');
}
function CatDown()
{
global $db_prefix, $txt;

//Check if they are allowed to manage cats
isAllowedTo('links_manage_cat');

//Get the cat id
$cat = (int) @$_REQUEST['cat'];
//Check if there is a category below it
//First get our row order
$dbresult1 = db_query("SELECT roworder FROM {$db_prefix}links_cat WHERE ID_CAT = $cat", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult1);
$oldrow = $row['roworder'];
$o = $row['roworder'];
$o++;

mysql_free_result($dbresult1);
$dbresult = db_query("SELECT ID_CAT, roworder FROM {$db_prefix}links_cat WHERE roworder = $o", __FILE__, __LINE__);
if(db_affected_rows()== 0)
fatal_error($txt['smflinks_nocatbelow'],false);
$row2 = mysql_fetch_assoc($dbresult);


//Swap the order Id's
db_query("UPDATE {$db_prefix}links_cat
SET roworder = $oldrow WHERE ID_CAT = " .$row2['ID_CAT'], __FILE__, __LINE__);

db_query("UPDATE {$db_prefix}links_cat
SET roworder = $o WHERE ID_CAT = $cat", __FILE__, __LINE__);


mysql_free_result($dbresult);


//Redirect to index to view cats
redirectexit('action=links');
}
Title: Re: SMF Links
Post by: microbone on October 23, 2007, 03:41:16 PM
hey there....

is there a way to add a custom image to each link?

ex. adding google.com as link and also add a little google.com logo infront like the categories...

nice mod btw :)

best regards
.....bone
Title: Re: SMF Links
Post by: DeMar on October 24, 2007, 01:32:40 AM
Hello,

can someone help me.
I installed this mod. I want to see it properly on my theme and in croatian.
Which files do I have to translate and modife???

Thanks.
Title: Re: SMF Links
Post by: TrueSatan on October 24, 2007, 04:48:12 AM
Please refer to the official SMF documentation for advice on translating mods (link at top of page in nav bar.) Look at Links.english.php Links.english-utf8.php Modifications.english.php Who.english.php In each case leave the English files unaffected and add/edit your Croatian files as needed.

As regards themes...either refer to the SMF documentation on adding mods to themes or if in doub to the theme creator.
Title: Re: SMF Links
Post by: DeMar on October 24, 2007, 01:18:55 PM
So I have checked and translated what I need.

I have one question else: Where and how can I put a new one button for the link page. I want to have the button on the top, where are buttons home, help, search, profile...?

Thanks
Title: Re: SMF Links
Post by: DeMar on October 24, 2007, 02:35:02 PM
Quote from: Dean B on October 24, 2007, 01:18:55 PM
So I have checked and translated what I need.

I have one question else: Where and how can I put a new one button for the link page. I want to have the button on the top, where are buttons home, help, search, profile...?

Thanks

SOLVED!!!
Thanks to all
Title: Re: SMF Links
Post by: microbone on October 25, 2007, 03:49:44 AM
@Dean B 
why not share your solution then.....
Title: Re: SMF Links
Post by: DeMar on October 25, 2007, 04:56:59 AM
You need to make this in your current theme, file index.template.php!

  // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('links','search', 'admin', 'usercp', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))



    // Links
   echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'links' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=links">Linkovi</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


In the first code I posted you must only write this(it's missing): 'links' ---see code 1 .. the last line!

Code 2 you must copy all some lines later! There where you want your button!
I mean between the buttons, for example "usercp" & "calendar"!

I hope I helped you.
Title: Re: SMF Links
Post by: DeMar on October 26, 2007, 08:12:52 PM
I have a question!
I had the "add link", and now it is gone! Have it on default theme, but in my own theme not
Where (which file) can I find it to check!
Title: Re: SMF Links
Post by: DeMar on October 29, 2007, 01:29:05 AM
no one
Title: Re: SMF Links
Post by: sasawawa on October 29, 2007, 06:45:29 AM
I have installed the SMF links mod successfully, and added the new tag "links" to my homepage.

When my members click the links button, got an error :

An Error Has Occurred!


Back


Any one can help me ?

:'(
Title: Re: SMF Links
Post by: DeMar on October 29, 2007, 07:37:41 AM
I think you must change permission for your members! Maybe they are not allowed to view the links!
Title: Re: SMF Links
Post by: sasawawa on October 29, 2007, 12:57:54 PM
Nope ,i  enabled guests and members permission.

Member Group Name     View     Add Link     Edit own Link     Delete own Link     Options
Global Moderator   Allowed   Allowed   Allowed   Allowed   [Delete]
Administrator   Allowed   Allowed   Allowed   Allowed   [Delete]
Portals   Allowed   Allowed   Allowed   Allowed   [Delete]
Regular Members   Allowed   Allowed   Allowed   Allowed   [Delete]
Guests   Allowed   Allowed   Allowed   Allowed   [Delete]



But it doesn't work either. Once my members click the "links" tag, got the error:

An Error Has Occurred!


Back



Any one can help me ? :'(
Title: Re: SMF Links
Post by: Hoochie Coochie Man on October 29, 2007, 08:11:59 PM
Hi, this is great mod.

Can we show latest links in the main page (boardindex.template.php)?

Thank you..
Title: Re: SMF Links
Post by: DeMar on October 30, 2007, 04:23:03 AM
I have a question!
I had the "add link", and now it is gone! Have it on default theme, but in my own theme not!
Where (which file) can I find it to check and change this!

Thanks
Title: Re: SMF Links
Post by: DeMar on October 30, 2007, 09:45:52 AM
I was looking for my problem. And when I choose english as language, I have the button add links, but on my croatian language not.
I have translated the file modification.croatian.php and there I have it.
Which other file I must change to see this button on croatian language.
Title: Re: SMF Links
Post by: TrueSatan on October 30, 2007, 01:25:52 PM
Obviously you need to translate Links.english.php but in addition to that you need to translate Who.english.php to get the mod to work...leave the English files in place unaltered and add your translated versions in addition to them not as replacements for them.
Title: Re: SMF Links
Post by: Hoochie Coochie Man on October 30, 2007, 01:31:18 PM
Quote from: HOOCHIE COOCHIE MAN on October 29, 2007, 08:11:59 PM
Hi, this is great mod.

Can we show latest links in the main page (boardindex.template.php)?

Thank you..

Can we?
Title: I want to escape category section/ list
Post by: Qayyom Ashraf on November 15, 2007, 01:48:11 AM
Is it possible......??

I want to escape category section/ list.

I want all Listed websites links shows at root/main page of "Links"
Title: Re: SMF Links
Post by: vbgamer45 on November 16, 2007, 12:48:22 AM
Not currently please place all feature requests in my mod tracker found at
http://www.smfhacks.com/index.php?action=modtracker
So I am to see what requests need to be done.
Title: Re: SMF Links
Post by: alisoncc on December 22, 2007, 11:38:15 PM
Just installed the SMF Links mod. No errors reported during install, but only Admins seem to be able to delete links, although permissions set such that regular members can delete links that they have added.

The table smf_links_catperm shows all the correct information:

ID    ID_GROUP    ID_CAT    view    addlink    editlink    dellink    ratelink    report       
1   -1   1   1   0   0   0   0   0      
2   0   1   1   1   1   1   0   0      
3   1   1   1   1   1   1   0   0      
4   12   1   1   1   1   1   0   0      
5   -1   2   1   0   0   0   0   0      
6   0   2   1   1   1   1   0   0      
7   1   2   1   1   1   1   0   0      
8   12   2   1   1   1   1   0   0      
9   -1   3   1   0   0   0   0   0      
10   0   3   1   1   1   1   0   0      
11   1   3   1   1   1   1   0   0      
12   12   3   1   1   1   1   0   0   

Yet if a regular member selects a link they have added, the only option they are provided with is the ability to "edit" the link. Any hints or tips before I go digging into the code? Thanks.

Alison
Title: Re: SMF Links
Post by: alisoncc on December 23, 2007, 02:23:46 AM
Further to previous.

My smf_membergroups lists Newbies, Full Members, Senior Members and Hero Members. Does ID_Group = 0 in smf_links_catperm relate to "Regular Members"?

Alison
Title: Re: SMF Links
Post by: vbgamer45 on December 29, 2007, 06:32:08 PM
Just new improvements
Title: Re: SMF Links
Post by: Richard Wing on January 10, 2008, 06:24:23 AM
I just installed the mod on 1.1.4 and I get the following error when trying to access the links page or the links admin page.

Fatal error: Cannot redeclare getpagerank() (previously declared in /var/www/virtual/domain.com/htdocs/Sources/Subs.php:4681) in /var/www/virtual/domain.com/htdocs/Sources/Links.php on line 824


Please advise.

Thanks
Richard Wing
Title: Re: SMF Links
Post by: TrueSatan on January 10, 2008, 10:59:07 AM
That error shows that you have a double (or more) install of the mod so you will need to go through all the files the mod affects and remove any extra code...you probably know the process of a manual install and the details of the package parser...go through the manual install process checking the files and use the package parser to help if needed.

Title: Re: SMF Links
Post by: myaicons on January 13, 2008, 02:03:58 PM
I am moving this question here since this seems to be the appropriate board for it  :)



Quotehttp://www.simplemachines.org/community/index.php?topic=210699.0

This discussion was closed not too long ago.. but i dont believe it ever got resolved (or the resolution never got posted) and i am having the same problem with this mod (can we plz open it up again?)

I have also set the permissions to ve viewed by all and yet guests still cant view the link directory...

can the mod author or anybody help?

Title: Re: SMF Links
Post by: vbgamer45 on January 13, 2008, 06:01:12 PM
Released an update
1.6.6
+Added subcategories under the main galleries on board index.
!Fixed a bug which allowed a category to be it's own parent
!Fixed some formating on the link listing page
Title: Re: SMF Links
Post by: albertvn on January 14, 2008, 08:50:52 AM
I've installed your mod on my forum. However I am confused of the following:
The link text appears and the link configuration also appears in the admin area when I loged in as admin. However, when I sign out, the link text disappears although in the setting, I allowed guests can view the link, members and other groups can view, add, delete his own links. What's the matter with mine? You can check my site at: www.banksofvietnam.com

Thanks in advance for your help!
Albert
Title: Re: SMF Links
Post by: myaicons on January 14, 2008, 09:18:15 AM
there is nothing wrong with you.... its just a not well thought of mod... i thought i was crazy too when my links page wont appear to anybody even after ive set the permissions on the link admin page. 

you actually have to set the permissions in the main permissions (for the forum) and not the link page permissions. (ignore the permission admin for the links as it wont even show them t all correctly either)

also... it wont categorize your categories and subcategories correctly... it will just dump them all in the categories admin page.

i hope someday the author will make this mod better since there is no other link directory mod out there yet... (tiny portal may have one in the near future to go along with their whole shebang)
Title: Re: SMF Links
Post by: albertvn on January 14, 2008, 09:39:06 AM
Thank you so much for telling me that, Mclovin!
It appears on the page now. However, I do not think that the Alexa and Page rank are working. Do you think so?
I also would like member can edit his/her own link but this option does not exist in the permission setting. Is there any other way to do this?

Thanks and have a good day or night!(depending on your time. It is 21:38 here in Hanoi, Vietnam)
Title: Re: SMF Links
Post by: vbgamer45 on January 14, 2008, 08:27:00 PM
Alexa and page rank settings currently do not work.
Title: Re: SMF Links
Post by: albertvn on January 15, 2008, 08:17:41 AM
Thanks! I think so
Title: Re: SMF Links
Post by: chep on January 21, 2008, 02:04:05 AM

   if ($m_cats)
   {
    echo '<tr class="titlebg" height="5">
    <td colspan="6">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['smflinks_sub_cats'] . $subcats_linktree : ''),'</span></td>
   </tr>';
   }
   else
    echo '<tr class="titlebg" height="5">
    <td colspan="5">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['smflinks_sub_cats'] . $subcats_linktree : ''),'</span></td>
   </tr>';


looks better when there are no sub categories as such

    if ($subcats_linktree)
    {
   if ($m_cats)
   {
    echo '<tr class="titlebg" height="5">
    <td colspan="6">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['smflinks_sub_cats'] . $subcats_linktree : ''),'</span></td>
   </tr>';
   }
   else
    echo '<tr class="titlebg" height="5">
    <td colspan="5">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['smflinks_sub_cats'] . $subcats_linktree : ''),'</span></td>
   </tr>';
    }   
Title: Re: SMF Links
Post by: Bec on January 25, 2008, 01:08:47 AM
Hi Everyone,

I need some help, Im running 1.14.. I recently installed SMF Links but I can only access it through the direct link, no options in my cpanel, how do i go about adding a "link" tab to the top of my forum? I had the same problem with SMF gallery but i found a code that i had to copy in and i had to add to the array's which fixed it... can someone please help me!! thank you!!
Title: Re: SMF Links
Post by: catchpen on January 25, 2008, 04:11:20 AM
Quote from: princessb on January 25, 2008, 01:08:47 AM
Hi Everyone,

I need some help, Im running 1.14.. I recently installed SMF Links but I can only access it through the direct link, no options in my cpanel, how do i go about adding a "link" tab to the top of my forum? I had the same problem with SMF gallery but i found a code that i had to copy in and i had to add to the array's which fixed it... can someone please help me!! thank you!!

If it's not the default theme you'll have to add the button manually. Search here at SMF or...

http://tinyportal.net/index.php?topic=9919

http://www.smfhelper.info/forum/index.php?topic=32.0
Title: Re: SMF Links
Post by: jackregan on February 04, 2008, 03:40:41 PM
Okay folks, I have been using this mod for a while and I am on version 1.6.3

I am experiencing a bug in that I cannot move categories up and down freely. Sometime it works, other times I get a bug in that it gives me an error message saying 'there is no category above the current one' even though there clearly is.

Any help would be gratefully appreciated...
Title: Re: SMF Links
Post by: vbgamer45 on February 04, 2008, 10:43:43 PM
Quote from: jackregan on February 04, 2008, 03:40:41 PM
Okay folks, I have been using this mod for a while and I am on version 1.6.3

I am experiencing a bug in that I cannot move categories up and down freely. Sometime it works, other times I get a bug in that it gives me an error message saying 'there is no category above the current one' even though there clearly is.

Any help would be gratefully appreciated...
1.6.7 Released today
!Fixed a bug with reordering categories
Title: Re: SMF Links
Post by: jackregan on February 05, 2008, 01:29:36 PM
Quote from: vbgamer45 on February 04, 2008, 10:43:43 PM
1.6.7 Released today
!Fixed a bug with reordering categories
Do I need to uninstall 1.6.3 or do I just install the new one over the top??
Title: Re: SMF Links
Post by: jackregan on February 05, 2008, 01:55:04 PM
Actually, ignore that last message. I figured it out.

New version works a treat. Thanks a lot.

Very good mod by the way :)
Title: Re: SMF Links
Post by: gamelee on February 09, 2008, 06:24:07 AM
I haven't installed this yet but I'm wondering, can it show banners instead of just text links?
Title: Re: SMF Links
Post by: vbgamer45 on February 09, 2008, 10:28:00 AM
Not yet
Title: Re: SMF Links
Post by: Basie on February 09, 2008, 03:37:22 PM
I tried this, but there is something I don't like...

There is no way to choose how the links are ordered. It is only possible to order them by the time they were added.

I think there should be an option to display links alphabetically by their title.
Title: Re: SMF Links
Post by: RedNael on March 10, 2008, 09:37:03 PM
I got the previous version and try to installed the new 1.6.7 version. When I try to uninstall it, a message said that got error. So I installed on top of it with the new version. Now I have two Links in the menu... How to solve this problem?

.... nice mob. :)
Title: Re: SMF Links
Post by: RedNael on March 10, 2008, 10:23:14 PM
I attached the Print screen for my problem.

Just want to know where to correct it. Thanks
Title: Re: SMF Links
Post by: vbgamer45 on March 10, 2008, 10:24:35 PM
Themes/default/index.template.php look in the menu function
Title: Re: SMF Links
Post by: RedNael on March 10, 2008, 11:02:37 PM
Okay thanks a lot vbgamer..... done. :)
Title: Re: SMF Links
Post by: Basie on March 11, 2008, 11:22:47 AM
Will you consider adding an option to order the links by title (rather than date) in a future version?

I notice that your 'downloads system' mod already has this.
Title: Re: SMF Links
Post by: vbgamer45 on March 11, 2008, 08:10:21 PM
Maybe added it to my mod tracker
http://www.smfhacks.com/index.php?action=modtracker

I check that when I make updates to mods to see what I need to do.
Title: Re: SMF Links
Post by: Basie on March 18, 2008, 05:21:37 AM
Great. Thanks for considering it. :)

Another suggestion would be an option to choose how many 'top' links are displayed. So you could have "Top Ten Rated Links" and "Top Ten Visited Links" (instead of the default five), for example.
Title: Re: SMF Links
Post by: m1ss1nnocent on March 28, 2008, 03:25:12 PM
Quote from: seek2501 on March 11, 2008, 11:22:47 AM
Will you consider adding an option to order the links by title (rather than date) in a future version?

I notice that your 'downloads system' mod already has this.

I too would find this addition very useful so have fingers crossed for the addition one day ;)
Title: Re: SMF Links
Post by: vbgamer45 on March 28, 2008, 09:12:51 PM
Add it to my mod tracker
Title: Re: SMF Links
Post by: Basie on March 29, 2008, 12:59:56 AM
My suggestions...

- Links can be displayed alphabetically by name.

- Links can by displayed in order by 'top-rated' first.

- Admin can choose how many 'top links' are displayed (not just the default 5)


I can't add it to the mod tracker, as I'm not a member of that place.
Title: Re: SMF Links
Post by: twlintw on March 29, 2008, 03:09:10 PM
Hi all,

I'm using:
smf 1.1.4 with utf-8
latest SMF Links

when i tried to enter categories in Traditional Chinese(UTF-8), it showed up with question marks, like "?????".

I'm wondering if there's a fix for this.

Thanks.
Title: Re: SMF Links
Post by: vbgamer45 on March 29, 2008, 03:25:12 PM
You will need to convert the database tables to support unicode.
Title: Re: SMF Links
Post by: twlintw on March 30, 2008, 01:10:04 PM
ah~ thanks alot, i got it to work, and this might also solve a couple of the other mods with similar problems, much appreciated.
Title: Re: SMF Links
Post by: drakkos on April 10, 2008, 03:46:18 AM
Hi all.

I'm using this lovely mod for a site I'm putting together for older computer users, but I'm having the strangest problem - I can only allow users to edit or delete all links, or no links - for the categories I've set up, I've added permissions for the category so that guests and regular members have full access:

Member Group Name   View   Add Link   Edit own Link   Delete own Link   Options

Regular Members   Allowed   Allowed   Allowed   Allowed   [Delete]
Guests   Allowed   Allowed   Allowed   Allowed   [Delete]


And yet, when I check the Category Permission List, the entry for regular members isn't there - more perplexing though is the fact that members don't get the ability to edit or delete their own links.

Any advice or suggestions would be gratefully accepted.

Drakkos
Title: Re: SMF Links
Post by: SonnyCooL on April 12, 2008, 04:59:38 AM
My link page not working in my theme ...
The link page show in default theme .... but the rest not working .... :(
Title: Re: SMF Links
Post by: vbgamer45 on April 12, 2008, 09:54:23 AM
For custom themes you will need to install a link/button on the index.template.php of that custom theme.
Title: Re: SMF Links
Post by: damnitmike on April 12, 2008, 05:19:32 PM
vgamer, sweet work your doing.....my compliments.

I want to add Snap Preview to the links page.......could you point me to the correct file please?

I want to be able to mouseover the links added, and  catch a preview of it.....

Thanks for the efforts you put into your mods.....we all appreciate it!!!
Title: Re: SMF Links
Post by: vbgamer45 on April 12, 2008, 06:02:44 PM
That would be inside the Links.template.php file.
Title: Re: SMF Links
Post by: damnitmike on April 12, 2008, 06:28:11 PM
Thanks vgamer....I thought I knew how to add it, but I made a mess....

It is javascript.......

I added it on the index template, works good on the TP pages, forum....

But it isn't working in the Links section.......

Damn this php...I think I get it figured out, then I get stupid....... >:(
Title: Re: SMF Links
Post by: damnitmike on April 12, 2008, 11:35:15 PM
And it was stupidity......

I configured the Snap preview to display outside links only.....Of course the Links section uses my sites own address as a referal link.......

duhhhhhh..........

Sorry I wasted anyones time.
Title: Re: SMF Links
Post by: Lysyj on April 26, 2008, 10:05:24 AM
i was made some modifications for this mod... sorry, my english is not great.

Now u can insert some picture for your link.

download SMFLinks1.6.7.zip
and upload manual in to your site
Links.php category Sources
Links.template.php category Themes/default



Then open phpmyadmin>base SMF Forum>smf_links
U must create 1 field at the end

field name: banner
type: varchar
letters: 100
Null
default: 0
Title: Re: SMF Links
Post by: Eclipse16V on May 01, 2008, 02:59:05 PM
Great Mod.

Run it on SMF 2.0 Beta 3.1 Public ? ? ?

Thx
Title: Re: SMF Links
Post by: vbgamer45 on May 01, 2008, 07:38:35 PM
No mod currently only runs for SMF 1.1.x will be updated once SMF 2.0 final is released
Title: Re: SMF Links
Post by: Sabre™ on May 02, 2008, 07:53:42 PM
Hi Buddy.
Great mod, was looking for something like this :)

With my custom theme, Im having this prob
(http://img259.imageshack.us/img259/8445/linkszx0.png)
Where would I look to correct this?
Its working perfect within the default theme, its just this text not displaying above the content, in my custom theme.
The only manual edit for the custom theme I have done, is to add the links button.
The rest are pulled from the default.
Should something else have been added to the custom theme?

Thank You in advance :)
Title: Re: SMF Links
Post by: Jay T on May 17, 2008, 07:40:40 PM
Quote from: Lysyj on April 26, 2008, 10:05:24 AM
i was made some modifications for this mod... sorry, my english is not great.

Now u can insert some picture for your link.

download SMFLinks1.6.7.zip
and upload manual in to your site
Links.php category Sources
Links.template.php category Themes/default



Then open phpmyadmin>base SMF Forum>smf_links
U must create 1 field at the end

field name: banner
type: varchar
letters: 100
Null
default: 0

I appreciate the addition. However, it gives syntax errors when you try and edit a link.
Title: Re: SMF Links
Post by: l3ft3r1s on June 21, 2008, 04:34:50 AM
Hi. I have installed SMF Links. Problem is, The "links" option at the menu appears only for the admins. If a simple member tries to visit the link url, he would get a "You can not view the links page." error.

any suggestions?
Title: Re: SMF Links
Post by: Basie on June 21, 2008, 07:04:16 AM
vbgamer45, I added my request to your bug tracker on the "SMF hacks" site.

(about ordering the links alphabetically).

:)
Title: Re: SMF Links
Post by: Basie on June 21, 2008, 07:13:51 AM
Quote from: l3ft3r1s on June 21, 2008, 04:34:50 AM
Hi. I have installed SMF Links. Problem is, The "links" option at the menu appears only for the admins. If a simple member tries to visit the link url, he would get a "You can not view the links page." error.

any suggestions?

You need to edit permissions for the usergroup.

ACP > permissions > Regular members
Title: Re: SMF Links
Post by: l3ft3r1s on June 21, 2008, 12:50:56 PM
Quote from: seek2501 on June 21, 2008, 07:13:51 AM
Quote from: l3ft3r1s on June 21, 2008, 04:34:50 AM
Hi. I have installed SMF Links. Problem is, The "links" option at the menu appears only for the admins. If a simple member tries to visit the link url, he would get a "You can not view the links page." error.

any suggestions?

You need to edit permissions for the usergroup.

ACP > permissions > Regular members

Thanks a lot!

Is there a way to make the mod to work with utf-8 non-english letters? The whole forum works fine at greek-utf8...
Title: Re: SMF Links
Post by: vbgamer45 on June 21, 2008, 01:38:27 PM
Yes you will need to convert the links tables to utf8 inside the database then it should work ok.
Title: Re: SMF Links
Post by: Roger Rabbit on August 26, 2008, 04:43:39 AM
Good day!

It is a nice mods for SMF and i'm already using it...however, i would like to ask if there is a possibility to show the latest links submitted to tinyportal?

One more thing, is there possibility to include pictures to the link submission...if so, how we can do it as i'm not a good php programmer....
Title: Re: SMF Links
Post by: vbgamer45 on August 26, 2008, 08:06:24 AM
Check tinyportal they might have a block code.
Title: Re: SMF Links
Post by: Owdy on August 30, 2008, 02:53:43 AM
Quote from: vbgamer45 on May 01, 2008, 07:38:35 PM
will be updated once SMF 2.0 final is released
That take some time. Any chance you update this scritp for betas? Pleeeeeeeeeeeeeese? :D
Title: Re: SMF Links
Post by: vbgamer45 on August 30, 2008, 01:00:15 PM
Maybe we will see very busy.
Title: Re: SMF Links
Post by: Bec on September 05, 2008, 02:48:20 AM
Hi Everyone,

Love the mod :) I would like to change the header "Links" to another name and add a description underneath... I have tried modifying the files with my own header but my error log was filling up... what files do i need to edit and what do I need to edit to change the header and add a few lines underneath?

Cheers!
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on September 15, 2008, 10:35:25 PM
Released SMF Links for 1.7
Dropped support for SMF 1.0.x
Optimized mod for SMF 1.1.x
Updated the layout in many places.
New paging function uses SMF's paging system
Add BBC editor for link description
Title: Re: SMF Links (1.7 Released)
Post by: ross85 on September 24, 2008, 07:23:36 PM
Hi,
Great mod! I have a question for upgrading. It says to uninstall the old version first, but will this delete my links? Should I install the new version and then uninstall the old one?

Also, two things I noticed in the last version and wanted to know if they were changed in 1.7.

1)The last version would let the people making the description keep writing, but then when they send it for approval it will cut off some of what they wrote if it is too long.

2) The last version wouldn't count the links of two child categories. I have: flight schools-> United States-> Massachusetts(or whatever state). The flight school will say it has 0 links.

Thank,
Ross
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on September 24, 2008, 07:47:51 PM
You can uninstall the modification. It does not remove any of the links data when you uninstall.

1. Will have to look into.

2. Currently this is how sub counting of totals works. It will count for the total level category and a sub category under it but not a sub sub category.
Title: Re: SMF Links (1.7 Released)
Post by: Adish - (F.L.A.M.E.R) on September 24, 2008, 07:50:26 PM
http://custom.simplemachines.org//index.php?mod=381

That takes me to the main mods page... any bug in SMF right now ? or something wrong with the link ?
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on September 24, 2008, 08:04:34 PM
Quote from: F.L.A.M.E.R on September 24, 2008, 07:50:26 PM
http://custom.simplemachines.org//index.php?mod=381

That takes me to the main mods page... any bug in SMF right now ? or something wrong with the link ?
Reported the bug.

Use this link
http://custom.simplemachines.org/mods/index.php?mod=381
Title: Re: SMF Links (1.7 Released)
Post by: Adish - (F.L.A.M.E.R) on September 24, 2008, 08:09:12 PM
Quote from: vbgamer45 on September 24, 2008, 08:04:34 PM
Quote from: F.L.A.M.E.R on September 24, 2008, 07:50:26 PM
http://custom.simplemachines.org//index.php?mod=381

That takes me to the main mods page... any bug in SMF right now ? or something wrong with the link ?
Reported the bug.

Use this link
http://custom.simplemachines.org/mods/index.php?mod=381

K gr8. thanks.
Title: Re: SMF Links (1.7 Released)
Post by: ross85 on September 24, 2008, 08:10:22 PM
Quote from: vbgamer45 on September 24, 2008, 07:47:51 PM
You can uninstall the modification. It does not remove any of the links data when you uninstall.

1. Will have to look into.

2. Currently this is how sub counting of totals works. It will count for the total level category and a sub category under it but not a sub sub category.

Thanks!
Title: Re: SMF Links (1.7 Released)
Post by: alex30 on September 25, 2008, 09:27:34 AM
Guys but don't you think that you'll loose users, once they'll post another forum link? How does it help us at all?
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on September 25, 2008, 09:32:32 PM
The point is the mod is to offer links that might be helpful for others. Like other sites you like or of interest or if you have affiliates.
Title: Re: SMF Links (1.7 Released)
Post by: ross85 on September 26, 2008, 11:34:54 AM
Quote from: alex30 on September 25, 2008, 09:27:34 AM
Guys but don't you think that you'll loose users, once they'll post another forum link? How does it help us at all?

It has been working great for me. I have people signing up daily to post their business website. My forum is about helicopters and there are a lot of private schools and businesses that want to get their name out there. 
Title: Re: SMF Links (1.7 Released)
Post by: Basie on September 27, 2008, 02:50:48 PM
Does the latest version have the option for ordering links alphabetically (instead of by date added)?
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on September 27, 2008, 03:23:34 PM
No it does not.
Title: Re: SMF Links (1.7 Released)
Post by: Abavagada on October 07, 2008, 10:56:20 AM
I have installed the newest version (1.7), and it works great, with one slight problem. When I go to delete a link normally or from the approval list, it deletes the link but gives me the error "Unable to load 'main' template". for "index.php?=action=links&amp;sa=deletelink2".

Has anyone else had this problem, or know where I might look for the error? It gives me no line numbers or file names in which this is occurring.

Thanks
Title: Re: SMF Links (1.7 Released)
Post by: watchhorse on October 09, 2008, 06:53:51 AM
Quote from: Abavagada on October 07, 2008, 10:56:20 AM
I have installed the newest version (1.7), and it works great, with one slight problem. When I go to delete a link normally or from the approval list, it deletes the link but gives me the error "Unable to load 'main' template". for "index.php?=action=links&amp;sa=deletelink2".

Has anyone else had this problem, or know where I might look for the error? It gives me no line numbers or file names in which this is occurring.

Thanks

same problem :-\
Is there a fix???
Title: Re: SMF Links (1.7 Released)
Post by: Hoochie Coochie Man on October 24, 2008, 08:09:13 AM
Hi vbgamer45
Thank you very much for the update!
Title: Re: SMF Links (1.7 Released)
Post by: genieuk on October 24, 2008, 08:40:13 AM
Great Mod! not tested it yet but have installed. A good way to share links between websites.

Mathew
Title: Re: SMF Links (1.7 Released)
Post by: genieuk on October 24, 2008, 09:56:36 AM
I am trying to add a link tab button in index.template.php . I am using a custom theme. I had to customize the code for button as it a custom theme, on doing so the link looks like what you see in attached picture.

the code i used was:

// Invite Mod
if (allowedTo('invite'))
echo '
<li>
<a' , $current_action=='invite' ? ' class="current"' : '' , ' href="', $scripturl, '?action=invite">
  <span class="menu-left"></span>
<span class="menu-mid">' , $txt[invite_title] , '</span>
<span class="menu-right"></span>
</a>
</li>';


I have uploaded my index.template.php i have kept the above code in the file. If you could alter it for me so it works and shows correctly that would be great. I want it as it is, right hand side of the "invite" links button.

Thank you,
Mathew
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on October 24, 2008, 10:03:07 PM
Not sure the code looks ok to me.
Title: Re: SMF Links (1.7 Released)
Post by: BHill on October 24, 2008, 10:41:54 PM
I would like to install this mod on my forum 1.1.6 but when I click apply the mod and then install I have gotten 2 different things...the first one was "Mysql has gone away" the next time I tried I got "webpage cannot be found"
I need the "idiots guide" to installing this mod, I guess.  The is the first mod I have tried to install.  What am I doing wrong?
TIA
Title: Re: SMF Links (1.7 Released)
Post by: genieuk on October 25, 2008, 07:39:08 AM
Quote from: genieuk on October 24, 2008, 09:56:36 AM
I am trying to add a link tab button in index.template.php . I am using a custom theme. I had to customize the code for button as it a custom theme, on doing so the link looks like what you see in attached picture.

the code i used was:

// Invite Mod
if (allowedTo('invite'))
echo '
<li>
<a' , $current_action=='invite' ? ' class="current"' : '' , ' href="', $scripturl, '?action=invite">
  <span class="menu-left"></span>
<span class="menu-mid">' , $txt[invite_title] , '</span>
<span class="menu-right"></span>
</a>
</li>';


I have uploaded my index.template.php i have kept the above code in the file. If you could alter it for me so it works and shows correctly that would be great. I want it as it is, right hand side of the "invite" links button.

Thank you,
Mathew
Quote from: vbgamer45 on October 24, 2008, 10:03:07 PM
Not sure the code looks ok to me.

Oh,  what can i do then as i got it installed but no link to the links section?

I don't understand how if it ok why it not showing properly and why it is not a link it only shows the text but not linked to the links main page.

Mathew
Title: Re: SMF Links (1.7 Released)
Post by: genieuk on October 25, 2008, 04:23:25 PM
I have asked antechinus who's theme i am using (outline omega) to see if it can only display so many tabs, maybe there is a limit on how many can be displayed or something, i have no idea on why this is happening, just wait a reply now from antechinus to see what he says.

Mathew
Title: Re: SMF Links (1.7 Released)
Post by: genieuk on October 26, 2008, 04:52:23 AM
Vgamer,

I asked antechinus and he said it nothing to do with theme, can you please help as i dont understand why this is happening, all my other buttons are ok.

Thanks Mathew
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on October 26, 2008, 10:14:08 AM
I really don't have any idea. I looked at it and it looked the same fine for me.
Title: Re: SMF Links (1.7 Released)
Post by: genieuk on October 26, 2008, 10:34:33 AM
ok thanks,

sadly i will have to uninstall the mod :(

Mathew
Title: Re: SMF Links (1.7 Released)
Post by: Abavagada on October 28, 2008, 11:21:12 AM
When adding descriptions for links, I have found that

1) It ignores any new lines. All the information entered gets crammed into a single paragraph.

2) It doesn't support UTF-8.

Is there any way to change these things?

Thanks
Title: Re: SMF Links (1.7 Released)
Post by: Abavagada on October 28, 2008, 01:02:36 PM
Quote from: Abavagada on October 28, 2008, 11:21:12 AM
When adding descriptions for links, I have found that

1) It ignores any new lines. All the information entered gets crammed into a single paragraph.

2) It doesn't support UTF-8.

Is there any way to change these things?

Thanks

Ok. I found if I turn on "allow BBC Code", it lets me add in blank lines and other things. Still no luck on the UTF-8 however.
Title: Re: SMF Links (1.7 Released)
Post by: Abavagada on October 28, 2008, 01:47:00 PM
Quote from: Abavagada on October 28, 2008, 01:02:36 PM
Quote from: Abavagada on October 28, 2008, 11:21:12 AM
When adding descriptions for links, I have found that

1) It ignores any new lines. All the information entered gets crammed into a single paragraph.

2) It doesn't support UTF-8.

Is there any way to change these things?

Thanks

Ok. I found if I turn on "allow BBC Code", it lets me add in blank lines and other things. Still no luck on the UTF-8 however.

And just found the other solution.. for those interested.

You will need to go into the database (I used PHPMyAdmin) and edited the SMF Links table, changing the description coding to UTF_Unicode_ci.

Thanks again for this great mod.

Title: Re: SMF Links (1.7 Released)
Post by: Basie on October 28, 2008, 04:01:07 PM
Quote from: vbgamer45 on September 27, 2008, 03:23:34 PM
No it does not.

Any plans for including it?
Title: Re: SMF Links (1.7 Released)
Post by: BHill on October 28, 2008, 04:08:51 PM
Quote from: BHill on October 24, 2008, 10:41:54 PM
I would like to install this mod on my forum 1.1.6 but when I click apply the mod and then install I have gotten 2 different things...the first one was "Mysql has gone away" the next time I tried I got "webpage cannot be found"
I need the "idiots guide" to installing this mod, I guess.  The is the first mod I have tried to install.  What am I doing wrong?
TIA
I tried again to install this mod after doing quite a bit of reading and checking on settings etc.  This is the error message I got:

Database Error: MySQL server has gone away
File: /home/comingto/public_html/SMFforum/Packages/temp/linksql.php
Line: 20

I would really appreciate some help with this.  Thank you  :)
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on October 28, 2008, 07:43:31 PM
That error is not caused by the modification but actually an issue with the database on your website 's server.

If that exact error keeps happening I would contact your host.
Title: Re: SMF Links (1.7 Released)
Post by: BHill on October 28, 2008, 08:03:28 PM
Thank you.  Any tips on what should be looked at on the server so that I can be more specific when I talk to them?
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on October 28, 2008, 08:08:38 PM
Just the database server is loosing the connection "MySQL server has gone away" might be overloaded
Title: Re: SMF Links (1.7 Released)
Post by: thebigman on November 04, 2008, 03:11:21 PM
I have a notification that there are 4 links awaiting approval but when i go in there are non???

Any help appreciated thanks.
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on November 04, 2008, 08:16:21 PM
Check under Link Settings. Did the member delete their account?
Also version of the links system are you using?
Title: Re: SMF Links (1.7 Released)
Post by: genieuk on November 04, 2008, 08:25:19 PM
Hi,

On the links page i changed the text on top to 'Submit your website links - Please Read Here First'

Problem is it very large the text size, can you please tell me which file and where by i need to edit to reduce size on the text?

Thank you,
Mathew
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on November 04, 2008, 09:37:52 PM
Gallery.template.php it is the h1 tag
Title: Re: SMF Links (1.7 Released)
Post by: Hoochie Coochie Man on November 05, 2008, 05:42:43 AM
I updated to new version.

I'm getting this error, on error log..

QuoteGuest       Today 05:45

http://www.sitename.com/forum/index.php?action=links;sa=visit;id=152

'main' Theme is not loading.

I know what is the problem, you change the links page on new version, and I like it, thanks.
But old pages indexed on search engines. When a user or bot fid that page. Then I get abouve error.  :-\
Title: Re: SMF Links (1.7 Released)
Post by: genieuk on November 05, 2008, 12:57:09 PM
Quote from: vbgamer45 on November 04, 2008, 09:37:52 PM
Gallery.template.php it is the h1 tag

mmmm, I cannot find it or know what to find. Could you possibly give me code to find so i can go to it  ???

Thank you,
Mathew

PS: maybe text could be reduced in other versions if they are released as it is rather large specially for small resolution users.
Title: Re: SMF Links (1.7 Released)
Post by: Dazza0101 on November 06, 2008, 07:58:28 PM
Hi,

I have installed this mod and run into a problem, the links tab only shows up after login and I am unable to change it, I decided to try to uninstall it and reinstall to see if that would help, but I run into an error message and I am unsure of what to do next, I have installed quite a few other mods so there may be some conflict.

I am using SMF 1.1.6 Default Theme - Core

Any help is greatly appreciated thank you.

(//)
Title: Re: SMF Links (1.7 Released)
Post by: Dazza0101 on November 07, 2008, 06:26:09 PM
Ok I have solved part of the problem, I had to uninstall  SMF Staff Page mod first, however I am still unable to work out how to have the link tab available to guests.

Thank you Dazza0101
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on November 08, 2008, 12:30:38 AM
You need to do permissions. Admin -> Permissions
Then modify each group and given them permissions needed for links
Title: Re: SMF Links (1.7 Released)
Post by: Dazza0101 on November 08, 2008, 01:15:54 AM
Hi vbgamer45, thank you for your reply,

I can't believe I didn't find it was right under my nose  :-[  I have installed a lots of mobs starting to lose track a bit.  :D

Thanks again I appreciate your help  :)

Dazza0101.
Title: Re: SMF Links (1.7 Released)
Post by: nay27uk on November 15, 2008, 06:39:11 AM
has anyone got a remedy for this

link removed
Unable to load the 'main' template.

error yet or what, I see lots of people asking about it but never seem to see the mods auther answering the question with a remedy
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on November 15, 2008, 01:41:53 PM
Are you use the latest edition of the mod? If not the last update fixes the error.
Title: Re: SMF Links (1.7 Released)
Post by: H on November 15, 2008, 03:27:57 PM
nay27uk, I removed the link in your post as it is redirecting to an inappropriate site.
Title: Re: SMF Links (1.7 Released)
Post by: nay27uk on November 16, 2008, 05:46:32 PM
Quote from: H on November 15, 2008, 03:27:57 PM
nay27uk, I removed the link in your post as it is redirecting to an inappropriate site.

yeah sorry about that and yeah im running the latest version of the mod thers only one on the mod page to download 1.7.1 or somthing. and yes i still get this eror
Title: Re: SMF Links (1.7 Released)
Post by: vmgamer on November 17, 2008, 06:25:35 AM
Hehehe,,,,
i should try this
Title: Re: SMF Links (1.7 Released)
Post by: HR on November 18, 2008, 07:49:43 AM
resolution?
Title: Re: SMF Links (1.7 Released)
Post by: HR on November 22, 2008, 11:36:40 AM
Quote from: Hoochie Coochie Man on November 05, 2008, 05:42:43 AM
I updated to new version.

I'm getting this error, on error log..

QuoteGuest       Today 05:45

http://www.sitename.com/forum/index.php?action=links;sa=visit;id=152

'main' Theme is not loading.

I know what is the problem, you change the links page on new version, and I like it, thanks.
But old pages indexed on search engines. When a user or bot fid that page. Then I get abouve error.  :-\

Not the case, while a guest account/Bot does flag the error a registered member also flags it.
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 22, 2008, 05:03:51 PM
not sure HR.. i get the same thing on default smf 1.1.7 for the current updated file..


is there a fix for this vbgamer?  ;)
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 23, 2008, 11:08:51 AM
**BUMP**

this is really screwing up my links now.. help please. im coding enough as it is and if anyone has a solution would appreciate it.. if not, it will be a few before i can get to this..

Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on November 23, 2008, 04:31:37 PM
Released an update might fix that issue.
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 23, 2008, 08:58:26 PM
thank you vbgamer  ;)

edit

Fatal error: Cannot redeclare getlinktotals() (previously declared in /home/***/Sources/Links.php:1106) in /home/***/Sources/Load.php(1751) : eval()'d code on line 1436

nope it did not fix it  :'(
Title: Re: SMF Links (1.7 Released)
Post by: Pipeto on November 24, 2008, 01:12:50 PM
Hi,
   
I have installed this mod and the administration panel I have this error in the log:

Unable to load the template 'main'

Why?
Title: Re: SMF Links (1.7 Released)
Post by: HR on November 24, 2008, 02:38:10 PM
Confirmed 1.7.2 update does not resolve unable to load main template error when clicking link. Database tables and code entries verified.
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 24, 2008, 05:42:21 PM
im going back to the 1.6 release of the links till this is resolved

**Bump** 8)
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on November 24, 2008, 08:18:56 PM
I am unable to replicate that error on my test when clicking a link.
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 24, 2008, 11:02:51 PM
if you would like to see the error in action:

http://www.pixelbypaint.com/forum/index.php?action=links

not sure what you are doing there, but it didnt get rid of the error..

can i ask what level of mysql and php are you running?

sometimes that has a play on items as well.

im not trying to be offensive, but i have some very important graffix links that my site members use and i still havent rolled it back to the 1.6 yet, as i havent had the time, but i will in the am.. i do hope you get this fixed vb, as the mod is a very good one, like the rss feeder one as well.  ;) 

btw, have you checked your messages at all??(from me on that mod [rss])  if you do not want to turn it over to me, no worries, i will create one myself.. i just wanted your permission is all..  :)  as it stands, i would rather have my own..

but back to the topic.. if you need a test acct on my site, will pop one up for you.. let me know -SB

this is what pops up in the error log as well..

Apply Filter: Only show the errors with the same message
8: Undefined index: permissionname_delete_links_any
File: /home/***/forum/Sources/ManagePermissions.php
Line: 1536


Apply Filter: Only show the errors with the same message
8: Undefined index: permissionname_edit_links_any
File: /home/***/forum/Sources/ManagePermissions.php
Line: 1536


if that will help as well..  :)
Title: Re: SMF Links (1.7 Released)
Post by: HR on November 25, 2008, 07:27:18 AM
Quote from: SmokyBlue on November 24, 2008, 11:02:51 PM
if you would like to see the error in action:

http://www.pixelbypaint.com/forum/index.php?action=links

not sure what you are doing there, but it didnt get rid of the error..

can i ask what level of mysql and php are you running?

sometimes that has a play on items as well.

im not trying to be offensive, but i have some very important graffix links that my site members use and i still havent rolled it back to the 1.6 yet, as i havent had the time, but i will in the am.. i do hope you get this fixed vb, as the mod is a very good one, like the rss feeder one as well.  ;) 

btw, have you checked your messages at all??(from me on that mod [rss])  if you do not want to turn it over to me, no worries, i will create one myself.. i just wanted your permission is all..  :)  as it stands, i would rather have my own..

but back to the topic.. if you need a test acct on my site, will pop one up for you.. let me know -SB

this is what pops up in the error log as well..

Apply Filter: Only show the errors with the same message
8: Undefined index: permissionname_delete_links_any
File: /home/***/forum/Sources/ManagePermissions.php
Line: 1536


Apply Filter: Only show the errors with the same message
8: Undefined index: permissionname_edit_links_any
File: /home/***/forum/Sources/ManagePermissions.php
Line: 1536


if that will help as well..  :)

That sounds like you need to goto your member groups and validate the permissions are set for each group..
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 25, 2008, 11:18:01 AM
 :o i wish Harsh..


this happens when i am admin, or when i log out and try to see, and i do have all permissions correct.  :'(
Title: Re: SMF Links (1.7 Released)
Post by: sakura1998 on November 26, 2008, 08:31:15 AM
Hi,

I thought it would be a really neat feature if links were automatically listed according to ranking (with higher ranking links being at the top)

I've managed to bury some pretty good links under others not nearly so worthy since I started using the mod (and that as just in one day - moving all the links I had in separate threads...)

Any of the Braniacs willing to have a go? :)
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 26, 2008, 11:30:17 AM
i would just be happy if the new update would work..  ;)
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 27, 2008, 10:55:02 AM
**bump**  ;)
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 28, 2008, 05:11:16 PM
ok i rolled it back to the 1.6 and still get the unable to load main tmeplate..

vbgamer, have you figured anything out with it yet?

i would hate to remove it off my site, but if its not functioning, there is no reason i should keep it.  :)
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 30, 2008, 03:48:29 AM
ok...

no response vbgamer??

here is what i have done..

i went into the cpanel and found the database my forum uses, i found the links table, i went to "browse" (first image on the left for me, at least..) and then i exported the links saved in the databse via a xml file..

(links were intact) hmm..

then i removed the mod, (1.72 ) that was causing the grief. and then i droped the table for it as well..

i then re uploaded the mod, and guess what. no errors. imagine that.. now, what could have caused it to become corrupted? for that is what happened.. i even offered you to test the mod issue out..

but now it's at least working, and i have to correct pixel again, will be very happy to have the mod working like i know it should..

hopefully, if anyone else has this issue.. like HR  :D they too can fix it.

thanks again..  ;)
Title: Re: SMF Links (1.7 Released)
Post by: FreeSporePrints on November 30, 2008, 04:35:36 AM
Hello,
i've this error in the Forum Error Log:


Error message '8: Undefined index: smflinks_menu
File: /home/XXX/smf/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 598' (Clear filter)


What can i do?

I can't neither uninstall the mod (it gives me error on Subs.php)

Thanks,
F.

Title: Re: SMF Links (1.7 Released)
Post by: Pipeto on November 30, 2008, 05:04:25 AM
I removed the mod, (1.72 ) for this problem

Unable to load the template 'main'
Title: Re: SMF Links (1.7 Released)
Post by: HR on November 30, 2008, 11:06:31 AM
Quote from: Pipeto on November 30, 2008, 05:04:25 AM
I removed the mod, (1.72 ) for this problem

Unable to load the template 'main'

Well we can write that one off since its unable to be duplicated it must not exists.. remember... there is no spoon!
Title: Re: SMF Links (1.7 Released)
Post by: Sabre™ on November 30, 2008, 01:50:17 PM
Quote from: HR on November 30, 2008, 11:06:31 AM
... there is no spoon!

....it is not the spoon that bends......... it is only yourself.

LOL
Pure class!
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on November 30, 2008, 02:20:19 PM
roflmao.. ok.. will give a feedback on this,

too bad vbgamner is M.I.A..  ;)
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on December 01, 2008, 12:51:48 AM
now that i found the fix:

Quotei went into the cpanel and found the database my forum uses, i found the links table, i went to "browse" (first image on the left for me, at least..) and then i exported the links saved in the databse via a xml file..

(links were intact) hmm..

then i removed the mod, (1.72 ) that was causing the grief. and then i droped the table for it as well..

i then re uploaded the mod, and guess what. no errors. imagine that.. now, what could have caused it to become corrupted? for that is what happened.. i even offered you to test the mod issue out..

ITS WORKING NOW

maybe someone, perhaps even vbgamer ;) can figure out why it did this and why i had to take extra steps in getting the mod working again.. or why there was even an update to it, as the 1.6 bersion was working correctly before the 1.71 was announced, which in turn screwed up not only my site but a few others.. and he couldnt even say how to fix this..

Harsh, im not sure what to tell you on yours.. and i hope if you can figure it out, post it up as well..

@FreeSporePrints.. if you find you have no uninstall, then download the mod, open it up, find the .xml file and add your version of smf to the install and the uninstall part of the file, using notepadd++

/me mutters.. why couldnt someone give him this advise before now??? hmm off for a smoke and bedtime.. later taterzz  ;)
Title: Re: SMF Links (1.7 Released)
Post by: sakura1998 on December 01, 2008, 02:02:35 AM
Hey guys...  A bit harsh.

These mods are made free of charge - that's always worth keeping in mind (if you gave up your Saturday afternoons to mow the old lady down the road's lawn, how impressed would you be if she kept poking notes in your letterbox saying that you'd missed a bit in the far corner...?)

Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on December 01, 2008, 07:59:47 AM
hmm.. sakura1998

im  a mod creator too.. i stand by mine and i fully support what few i do have. Harsh?? i support create and think of what more i can do. i know i cant be in 3 places at one time, but i do try. i do give a response, even if i am stuck or otherwise. i try to do the right thing and think of the "new" people, you know, the ones that have no idea of what they are doing..

i try not to sit around and let others solve what i cant get going, unless i do admit that, and i seek out others that might know where to go from my "stuck end of view"

harsh? no, im not harsh at all.. Harsh is one of my friends, and ya know what? i gave up all afternoon yesterday to help him out, cuz i wanted to  try and help him fix this.. do i see anyone else with this issue, or attempting to help fix it?

im sorry if you think this is harsh, but i dont think you would like it if i invited you to tea with a soggy wet map and no directions that are readable. same thing i have been "chatting " on here..  i do not think you would go for that ride either. just clearing the air here, and vbgamer has seen me post for a while now so.. take this for what it is worth..

its how i corrected my issue with the mod.
Title: Re: SMF Links (1.7 Released)
Post by: HR on December 01, 2008, 08:06:32 AM
**Update.. the error remained despite the update.
Resolved by:
1. Uninstallation (COMPLETE, manually had to edit a few files reporting error)
2. From control panel export links tables to SQL (make sure it doesnt have the 'DROP' option.
3. Install 1.7.2
4. From control panel Import your content from previous version (note this is CONTENT ONLY and not table creation or dropping of existing tables).

As for the above comment.. if I get repeated calls about that corner I go cut the whole of the yard again and make sure I have the corner this time. You DONT go cut the corner and leave the rest because then the corner is cut lower. If the calls bother me then I fix what I screwed up and stop advertising that I cut yards.

Where this would relate to mods.. Id pull the thing down if it doesnt hold water (this is why I dont throw mods up for public distribution or charge for support after the fact when I do work). I have yet to figure out why the update process would not resolve the error as I manually placed the files there when I saw the error remained to be certain they were in fact the current version and there were no issues with overwrite permissions. But hey.. there you have it just dont update the thing.

But, I do do database work and the like for site restructure.. and if a customer installed a bug following with a mod and they still want the thing (despite my sincere recommendations to the contrary) then it shows up in the log and I hear about it. Stuff rolls down hill and Im the middle man.
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on December 01, 2008, 08:24:43 AM
If someone has a fix please post it so I can update the modification.
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on December 01, 2008, 01:32:31 PM
here is the fix:

Quotei went into the cpanel and found the database my forum uses, i found the links table, i went to "browse" (first image on the left for me, at least..) and then i exported the links saved in the database via a xml file..

(links were intact) hmm..

then i removed the mod, (1.72 ) that was causing the grief. and then i dropped the table for it as well..

i then re uploaded the mod, and guess what. no errors. imagine that.. now, what could have caused it to become corrupted? for that is what happened.. i even offered you to test the mod issue out..

for 3rd time. it does work this way, and not sure how you coded the mod in the first place..

im only a site customizer.. i create a few mods/themes i think are benefiting a site, mess with seo, marketing and the like..

i maintain over 9+ sites and wont upgrade a mod on anyone else,unless i know that the mod update will work straight from jump street, and is an "actual upgrade"

i really see little difference between the 1.6 and the 1.71-1.72, as the functions are all the same

but i imagine there is a piece either missing or wrongly written to throw the error up..

i have only a few bits of time lately to debug other people's errors, but if you can figure this out vbgamer, it will be appreciated, like all your other ones..

Title: Re: SMF Links (1.7 Released)
Post by: sakura1998 on December 01, 2008, 03:17:58 PM
Hi Smoky,

Since you make and release mods yourself, I guess you're more than qualified to comment  :)

I've just seen some really ungrateful responses from folks who have very little right to be ungrateful since learning about Open Source (I'm not old enough in the scene to take it all for granted - when someone makes a mod and shares it, I feel I've been done a favor)

I realize it's a bit of a geek thing (peer appreciation is the reward for the guys and girls who make this kind of stuff and the standards are generally high)

As open source moves more and more beyond the realm of geeks alone (very much what the Web2.0 revolution means in my opinion) I hope we can reassess the relationship of coders and their public and create a place where 'please' and 'thank you' are commonly heard (which they aren't and I think that's a shame...)


Here's my idea - Why not have a 'modders forum' where the braniacs can hammer at each other and win grudging respect from other coders and make the public forum the 'smiley-happy place'  8)
Title: Re: SMF Links (1.7 Released)
Post by: _sebas_ on December 01, 2008, 08:05:25 PM

???

hi !

a mistake occurs

(http://img367.imageshack.us/img367/412/imagen8kk2.gif) (http://imageshack.us)
(http://img367.imageshack.us/img367/imagen8kk2.gif/1/w726.png) (http://g.imageshack.us/img367/imagen8kk2.gif/1/)

I have permision of administrator,  3 links for approve :
missing
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on December 01, 2008, 08:16:01 PM
What version of the Links mod?
Title: Re: SMF Links (1.7 Released)
Post by: Smoky "Rider" Blue on December 01, 2008, 10:47:18 PM
Quote from: sakura1998 on December 01, 2008, 03:17:58 PM
Hi Smoky,

Since you make and release mods yourself, I guess you're more than qualified to comment  :)

I've just seen some really ungrateful responses from folks who have very little right to be ungrateful since learning about Open Source (I'm not old enough in the scene to take it all for granted - when someone makes a mod and shares it, I feel I've been done a favor)

I realize it's a bit of a geek thing (peer appreciation is the reward for the guys and girls who make this kind of stuff and the standards are generally high)

As open source moves more and more beyond the realm of geeks alone (very much what the Web2.0 revolution means in my opinion) I hope we can reassess the relationship of coders and their public and create a place where 'please' and 'thank you' are commonly heard (which they aren't and I think that's a shame...)


Here's my idea - Why not have a 'modders forum' where the braniacs can hammer at each other and win grudging respect from other coders and make the public forum the 'smiley-happy place'  8)

perhaps you could ask to split this from the topic sakura1998.. and no offense, the web 2.0 looks good etc., but there is something better after the web 2.0 revolution.. i promise lol..  ;)

@ sebtor.. follow my instructions for what i did, re guardless of the mod version, and this will work, im nto sure why but i tried this on all 3 versions from 1.6 to 1.71 and 1.72

@vbgamer, no luck yet? I pointed BigGuy's site (smfhelper) to this thread in hopes that someone from there might be able to figure out why and let everyone know.. i would recommend that if anyone has the working 1.6 version, not to update at this time.

just my 2 cents..

ps since my cousins funeral today, i am swamped with family, so im going to be in and out for the next few days..
Title: Re: SMF Links (1.7 Released)
Post by: _sebas_ on December 08, 2008, 08:56:16 PM
hi
SMF Links      1.7


mmm..   
   
then, I'm going to reinstall the mod?

(I suspect some spammer, or russian spammer professional have write strange code ...   >:(   )
Title: Re: SMF Links (1.7 Released)
Post by: KahneFan on December 09, 2008, 06:53:13 PM
Anyone know if this will be updated for 2.0?
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on December 09, 2008, 09:34:54 PM
Yes it will be eventually.
Title: Re: SMF Links (1.7 Released)
Post by: KahneFan on December 09, 2008, 10:02:29 PM
Great, thanks!
Title: Re: SMF Links (1.7 Released)
Post by: qubbah on December 10, 2008, 02:32:44 PM
how can we show the latest link added in tp-blocks?
Title: Re: SMF Links (1.7 Released)
Post by: _sebas_ on December 13, 2008, 09:06:51 AM
re guardless of the mod version,???
please
I do not understand

Quote from: SmokyBlue on December 01, 2008, 10:47:18 PM


@ sebtor.. follow my instructions for what i did, re guardless of the mod version, and this will work, im nto sure why but i tried this on all 3 versions from 1.6 to 1.71 and 1.72

Title: Re: SMF Links (1.7 Released)
Post by: Sabre™ on December 19, 2008, 08:41:56 PM
Smoky means that what she has done [HERE] (http://www.simplemachines.org/community/index.php?topic=98911.msg1821138#msg1821138), will work for versions 1.6 >> 1.71 and 1.72 of this mod, so may help you also. :)
Title: Re: SMF Links (1.7 Released)
Post by: Xavi-Nena on December 21, 2008, 10:31:10 PM
Quote from: qubbah on December 10, 2008, 02:32:44 PM
how can we show the latest link added in tp-blocks?

http://www.tinyportal.net/index.php?topic=10976.msg90445#msg90445
Title: Re: SMF Links (1.7 Released)
Post by: _sebas_ on December 31, 2008, 10:52:44 PM

hi !  >:(   I have find  3 guilty links

the problem is what proposed for spammers during a brief  stage what a forum open possibility of add proposes from visitors


from database:

"58","0","0","http://pulpuzghovos.com/",NULL,"LuyecBLdfKUCr","2nY97m  &lt;a href=&quot;http://eqjywsjieaoo.com/&quot;&gt;eqjywsjieaoo&lt;/a&gt;, [url=http://bkrfqoxbrttd.com/]bkrfqoxbrttd[/url], [link=http://aipwdpbobrns.com/]aipwdpbobrns[/link], http://uuxerfoaoqzw.com/","0","0","0","1226995647","0","0"

"62","0","0","http://hrnbotfofbif.com/",NULL,"criqbtk","ynx23L  &lt;a href=&quot;http://yxkacyghyekj.com/&quot;&gt;yxkacyghyekj&lt;/a&gt;, [url=http://zemmmweyrhsh.com/]zemmmweyrhsh[/url], [link=http://gucigntuybrc.com/]gucigntuybrc[/link], http://yfrgggzwmabx.com/","0","0","0","1227368575","0","0"


"65","0","0","http://cwuewbnumkpn.com/",NULL,"hLhWuwRsLkXywG","nG3ewI  &lt;a href=&quot;http://wwdcaebbtmem.com/&quot;&gt;wwdcaebbtmem&lt;/a&gt;, [url=http://xugcgwwmisbc.com/]xugcgwwmisbc[/url], [link=http://khyxtjtjchyv.com/]khyxtjtjchyv[/link], http://ojsukpquhjgu.com/","0","0","0","1227520763","0","0"

Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on December 31, 2008, 10:54:48 PM
Do you allow guests to add links if so that would cause that issue.
Title: Re: SMF Links (1.7 Released)
Post by: jay.clark on January 02, 2009, 01:49:09 AM
Quote from: vbgamer45 on November 08, 2008, 12:30:38 AM
You need to do permissions. Admin -> Permissions
Then modify each group and given them permissions needed for links

Thanks, solved my problem.  I had been thinking that setting the permissions in the
admin>configuration>links was all that was required, had not realized that they also had to be set in another location

jayr
Title: Re: SMF Links (1.7 Released)
Post by: coucnilhomeswap on January 24, 2009, 08:42:11 AM
ive uploaded this to my site and when i go to install it says this

"Execute Modification ./Sources/ManagePermissions.php Success ".

any help guys
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on January 24, 2009, 09:53:38 AM
That is good. It is bad if says failed
Title: Re: SMF Links (1.7 Released)
Post by: L'AltroWeb on January 27, 2009, 09:04:27 PM
Hi!
I have installed your mod without any problem!
I have only one question: what is the option (permission) Add links to posts?
I have test to search this string (also for translate) but without any results  :(
Thanks in advance, DarkWolf  :)
-
Edit!
Ok i've found!
Is a conflict with: http://custom.simplemachines.org/mods/index.php?mod=1095
Quote// Begin AntiSpam Mod
$txt['permissionname_add_links'] = 'Add links to posts';
$txt['permissionhelp_add_links'] = 'This permission allows users to add links to their post.';
// End AntiSpam Mod
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on January 27, 2009, 09:11:05 PM
That is part of another modification not part of SMF Links
Title: Re: SMF Links (1.7 Released)
Post by: L'AltroWeb on January 27, 2009, 09:15:36 PM
Quote from: vbgamer45 on January 27, 2009, 09:11:05 PM
That is part of another modification not part of SMF Links
Yes i have see!
is a conflict (see precedent edit)
Any idea to fix?
(http://img91.imageshack.us/img91/5490/conflict1wh3.gif)
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on January 27, 2009, 09:36:45 PM
Shouldn't hurt anything since smf links uses different permissions settings.
Title: Re: SMF Links (1.7 Released)
Post by: L'AltroWeb on January 27, 2009, 10:38:32 PM
Ok, thanks :)
Edit:
I've setup only access (view) and vote for guest and all is ok but when a guest test to vote it receive a registration request  :-\
Test here: http://darkwolf.altervista.org/forum/links/
-
Riedit: i've found a really small validation (w3c) issue:
Change this:
echo '<td class="windowbg2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" /></a></td>';

to this:
echo '<td class="windowbg2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" alt="" /></a></td>';
alt required ;)
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on January 27, 2009, 11:01:21 PM
In order to vote guests need to register otherwise a guest can vote as many times as they want.
Title: Re: SMF Links (1.7 Released)
Post by: Dude111 on January 30, 2009, 02:20:57 AM
Not if the DB keeps tracks of IPs they cant.... (Not as easily anyway)
Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on January 30, 2009, 09:07:13 PM
Yeah but at this time is not something I would spend time unless it was a paid request.
Title: Re: SMF Links (1.7 Released)
Post by: Apllicmz on February 01, 2009, 12:34:49 AM
Nice work
when update dont forget portuguese
thank you


<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[?>]]></search>
        <add><![CDATA[
//Begin SMF Links Text Strings translate by candidosa2 Portuguese
$txt['smflinks_menu'] = 'Links';
$txt['smflinks_admin'] = 'Liga&ccedil;&otilde;es Configura&ccedil;&atilde;o';


$txt['permissiongroup_smflinks'] = 'SMF Links';
$txt['permissionname_view_smflinks'] = 'Ver Links P&aacute;gina';
$txt['permissionhelp_view_smflinks'] = 'Define se o utilizador pode visualizar a p&aacute;gina Links.';
$txt['cannot_view_smflinks'] = 'Voc&ecirc; n&atilde;o pode ver os links da P&aacute;gina.';
$txt['permissionname_add_links'] = 'Adicionar Links';
$txt['permissionhelp_add_links'] = 'Se o utilizador &eacute; autorizado a apresentar links';
$txt['cannot_add_links'] = 'Voc&ecirc; n&atilde;o pode adicionar links.';
$txt['permissionname_edit_links'] = 'Editar Links';
$txt['permissionhelp_edit_links'] = 'Se o utilizador &eacute; autorizado a editar links';
$txt['cannot_edit_links'] = 'Voc&ecirc; n&atilde;o pode editar links.';
$txt['permissionname_delete_links'] = 'Apagar Links';
$txt['permissionhelp_delete_links'] = 'Se o utilizador &eacute; autorizado a apagar links';
$txt['cannot_delete_links'] = 'Voc&ecirc; n&atilde;o pode apagar links.';
$txt['permissionname_approve_links'] = 'Aprovar Links';
$txt['permissionhelp_approve_links'] = 'Se o utilizador &eacute; autorizado a aprovar Links';
$txt['cannot_approve_links'] = 'Voc&ecirc; n&atilde;o pode aprovar Links.';
$txt['permissionname_links_auto_approve'] = 'Links Auto Aprovado';
$txt['permissionhelp_links_auto_approve'] = 'Se os utilizadores de links s&atilde;o automaticamente aprovados quando submetidos.';
$txt['permissionname_rate_links'] = 'Taxa Links';
$txt['permissionhelp_rate_links'] = 'Se o utilizador &eacute; autorizado a taxar Links';
$txt['cannot_rate_links'] = 'Voc&ecirc; n&atilde;o est&aacute; autorizado a taxa Links.';
$txt['permissionname_links_manage_cat'] = 'Gerenciar Categorias';
$txt['permissionhelp_links_manage_cat'] = 'O utilizador pode adicionar/remover/editar/reordenar categorias';
$txt['cannot_links_manage_cat'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para gerenciar categorias.';

$txt['permissionname_delete_links_own'] = 'Link Pr&oacute;prio';
$txt['permissionname_delete_links_any'] = 'Qualquer Link';
$txt['permissionname_edit_links_own'] = 'Link Pr&oacute;prio';
$txt['permissionname_edit_links_any'] = 'Qualquer Link';
//END SMF Links Strings    suporte smfpt.net       
]]></add>
    </operation>
</file>


<file name="$languagedir/Who.portuguese_pt.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
//Begin SMF Links
$txt['whoall_links'] = 'Visualizando o <a href="' . $scripturl . '?action=links">' . $txt['smflinks_menu'] . '</a>';
//END SMF Links Strings           
]]></add>
    </operation>
</file>
<file name="$languagedir/Who.portuguese_pt-utf8.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
//Begin SMF Links
$txt['whoall_links'] = 'Visualizando o <a href="' . $scripturl . '?action=links">' . $txt['smflinks_menu'] . '</a>';
//END SMF Links Strings           
]]></add>
    </operation>
</file>



<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[?>]]></search>
        <add><![CDATA[
//Begin SMF Links Text Strings translate by candidosa2 Portuguese
$txt['smflinks_menu'] = 'Links';
$txt['smflinks_admin'] = 'Liga&ccedil;&otilde;es Configura&ccedil;&atilde;o';


$txt['permissiongroup_smflinks'] = 'SMF Links';
$txt['permissionname_view_smflinks'] = 'Ver Links P&aacute;gina';
$txt['permissionhelp_view_smflinks'] = 'Define se o utilizador pode visualizar a p&aacute;gina Links.';
$txt['cannot_view_smflinks'] = 'Voc&ecirc; n&atilde;o pode ver os links da P&aacute;gina.';
$txt['permissionname_add_links'] = 'Adicionar Links';
$txt['permissionhelp_add_links'] = 'Se o utilizador &eacute; autorizado a apresentar links';
$txt['cannot_add_links'] = 'Voc&ecirc; n&atilde;o pode adicionar links.';
$txt['permissionname_edit_links'] = 'Editar Links';
$txt['permissionhelp_edit_links'] = 'Se o utilizador &eacute; autorizado a editar links';
$txt['cannot_edit_links'] = 'Voc&ecirc; n&atilde;o pode editar links.';
$txt['permissionname_delete_links'] = 'Apagar Links';
$txt['permissionhelp_delete_links'] = 'Se o utilizador &eacute; autorizado a apagar links';
$txt['cannot_delete_links'] = 'Voc&ecirc; n&atilde;o pode apagar links.';
$txt['permissionname_approve_links'] = 'Aprovar Links';
$txt['permissionhelp_approve_links'] = 'Se o utilizador &eacute; autorizado a aprovar Links';
$txt['cannot_approve_links'] = 'Voc&ecirc; n&atilde;o pode aprovar Links.';
$txt['permissionname_links_auto_approve'] = 'Links Auto Aprovado';
$txt['permissionhelp_links_auto_approve'] = 'Se os utilizadores de links s&atilde;o automaticamente aprovados quando submetidos.';
$txt['permissionname_rate_links'] = 'Taxa Links';
$txt['permissionhelp_rate_links'] = 'Se o utilizador &eacute; autorizado a taxar Links';
$txt['cannot_rate_links'] = 'Voc&ecirc; n&atilde;o est&aacute; autorizado a taxa Links.';
$txt['permissionname_links_manage_cat'] = 'Gerenciar Categorias';
$txt['permissionhelp_links_manage_cat'] = 'O utilizador pode adicionar/remover/editar/reordenar categorias';
$txt['cannot_links_manage_cat'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para gerenciar categorias.';

$txt['permissionname_delete_links_own'] = 'Link Pr&oacute;prio';
$txt['permissionname_delete_links_any'] = 'Qualquer Link';
$txt['permissionname_edit_links_own'] = 'Link Pr&oacute;prio';
$txt['permissionname_edit_links_any'] = 'Qualquer Link';
//END SMF Links Strings    suporte smfpt.net       
]]></add>
    </operation>
</file>
Title: Re: SMF Links (1.7 Released)
Post by: ohioreef on February 05, 2009, 10:30:31 PM
I have installed this mod on my forum and really like it, however whenever someone clicks on one of the links the following error shows up in my forum error log:

Quotehttp://www.worcreef.org/index.php?action=links;sa=visit;id=11 
Unable to load the 'main' template.

The page that is linked appears to load fine so I'm not sure what the error is.

Any thoughts?

Title: Re: SMF Links (1.7 Released)
Post by: vbgamer45 on February 05, 2009, 10:36:40 PM
That is one error I have not been able to solve yet.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 08, 2009, 08:58:13 PM
New Release 1.8
+Added support for SMF 2.0.x
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: PerryM on February 09, 2009, 12:24:53 AM
Just installed 1.8 in RC1 and get this error:


Fatal error: Call to undefined function theme_postbox() in /home/m4inform/public_html/smf/Sources/Load.php(2070) : eval()'d code on line 698

When on the "add a link" page
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 09, 2009, 12:55:51 AM
Quote from: PerryM on February 09, 2009, 12:24:53 AM
Just installed 1.8 in RC1 and get this error:


Fatal error: Call to undefined function theme_postbox() in /home/m4inform/public_html/smf/Sources/Load.php(2070) : eval()'d code on line 698

When on the "add a link" page
Fixed released an update. Also  added bbc editor to the add/edit category page.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: max61 on February 09, 2009, 10:12:45 PM
Hey Everyone....I uploaded this mod w/o any issues. I tested it and it worked fine. I recently transfered to another host. Now I get this message when I try to click on the link or even edit:

Method Not Implemented
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8 Server at oldtoysforum.com Port 80

I contacted my host and they said everything was ok at their end. Any ideas?
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 09, 2009, 10:21:20 PM
Check this mod_security post
www.simplemachines.org/community/index.php?topic=34270
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: max61 on February 09, 2009, 10:40:23 PM
Quote from: vbgamer45 on February 09, 2009, 10:21:20 PM
Check this mod_security post
www.simplemachines.org/community/index.php?topic=34270

Checked it...followed it...still same message....now something else is happening....I cannot uninstall or even upload new mods....getting the old "file may be corrupt"...
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Petro on February 10, 2009, 01:23:22 PM
I can't find the required edits in my Admin.php, either automatically or manually.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 10, 2009, 08:25:58 PM
For what version of SMF?
What error you do get
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: willerby on February 11, 2009, 11:26:38 AM
This is a great mod. Having read through these posts I see a few have suggested an image url for each link rather than just the categories. I know you can insert the image in the description but the layout doesn't look right.

This should be a fairly simple amendment (I say that but it is probably beyond me!) but would really make this mod come alive instead of just listing text links.

Can anyone suggest the code changes necessary to add the Image URL to the bottom of each link's posting and editing page, create the necessary database field and enable it to be displayed to the left of the link Title (and be clickable) in the listings?

I'd really like to use this but without images/logos for each link the list becomes too 'text' based...

Any helpers really appreciated

Thanks

W

Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: flea2010 on February 12, 2009, 06:08:59 AM
Hello,

every user can edit or delete the categories (not links). How can I change this?

Sorry for asking, I searched a lot but didn't find the answer.

Regards,
flea2010
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: PfalzNacht on February 12, 2009, 06:11:14 AM
I've answered you at SMFPortal.de  ;)
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Stirling7 on February 13, 2009, 09:52:19 PM
I can't find where to make the edits in Admin.php.  I'm using version 1.1.8 and this doesn't appear in there anywhere:
'current_theme' => array(
'label' => $txt['theme_current_settings'],


Also, in /Sources/Subs.php this can't be found either:
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
),


This was a fresh install of 1.18 just this week.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 13, 2009, 10:11:42 PM
Those instructions are for SMF 2.0.x

Choose for SMF 1.1.x
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Stirling7 on February 13, 2009, 10:20:12 PM
Thanks for the speedy reply.
Those are the instructions for 1.1.8.  Those instructions are also in there for 1.1.7 and also when I try to install automatically.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 13, 2009, 10:25:06 PM
Choose 1.1.8 install instructions on
http://mods.simplemachines.org/index.php?mod=381
And that will get you the code needed
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Stirling7 on February 13, 2009, 11:00:45 PM
I must be losin' it 'cause that's what I'm doin' and here is what I'm seeing:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=381;attach=85583;smf_version=1.1.8 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=381;attach=85583;smf_version=1.1.8)
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 13, 2009, 11:30:51 PM
Bah that is a bug with the modsite their parser is showing the 2.0.x version instead of 1.1.8
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Stirling7 on February 13, 2009, 11:37:40 PM
But the auto installation is also failing one the same two files... so I don't think its just the Install Instructions download that is the problem.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vosje505 on February 15, 2009, 11:48:27 AM
Quote from: Stirling7 on February 13, 2009, 09:52:19 PM
I can't find where to make the edits in Admin.php.  I'm using version 1.1.8 and this doesn't appear in there anywhere:
'current_theme' => array(
'label' => $txt['theme_current_settings'],


Also, in /Sources/Subs.php this can't be found either:
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
),


This was a fresh install of 1.18 just this week.

im experiencing the same problem.

im using 1.1.8
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Stirling7 on February 15, 2009, 06:01:15 PM
I got it working but downloading the package at smfhacks.com
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: willerby on February 16, 2009, 12:09:15 PM
In my PHP error log I'm constantly getting records of this:

PHP Fatal error:  Call to undefined function  ob_exit() in /home2/.../forum/Sources/Links2.php on line 689

This file hasn't been played with and is as installed so suspect a bug in there? Any ideas...
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 16, 2009, 08:02:00 PM
Yeah should be obexit() instead of ob_exit()
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: depth on February 17, 2009, 01:33:39 AM
Hi members

I installed the package a few days ago, works like a charm. Unfortunally i messed it up now :(
I was resetting the permissions for the links package, and I accidently deleted the administrator permissions! So now I can not add permissions for anything in the SMF links package.
So I uninstalled the package, and re-installed again, hoping that this would reset the install but it just came out like before :(

How can I sort this out?

Install and php experience detail: SMF 2.0 RC1 and my experience level is about 1% out of 100%

ATB

Christian
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 17, 2009, 10:58:12 PM
How did you delete the permissions?

Admin's should always have access to anything inside SMF.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: depth on February 18, 2009, 02:22:24 PM
I deleted them  within the SMF links permission consule:

(http://www.soleq.com/permissions.jpg)

So now that I have deleted the administrator permissions, I am pretty stuck  :(

How do I get out of this mess?

Hope you can help...

/Christian
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: depth on February 18, 2009, 02:55:55 PM
Problem solved :)

I just added new permissions from the "manage categories" section.
So this was not a software issue, my brain had simple just been on standby i think ;)

Sorry for the trouble

ATB

Christian
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: gouri on February 20, 2009, 10:34:37 AM
from smfhacks.com i downloaded 1.6.7 version it is working with smf 1.1.8 and

1.8.1 version is not working.

i think it is for smf 2.0
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 22, 2009, 10:47:18 AM
!Fixed minor bug in SMF 2.0 not showing the title of permissions under simple permissions in SMF.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Neverhurry on February 28, 2009, 10:44:49 AM
Hello,

I download it the mod, but when am about to install, it says that ./Sources/Admin.php  and ./Sources/Subs.php    failed testing, how can I repair this? THank you very much!
I am using 1.1.8.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on February 28, 2009, 10:57:18 AM
bah it is trying to install it for SMF 2.0 not smf 1.1.x
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Neverhurry on February 28, 2009, 05:13:43 PM
Quote from: vbgamer45 on February 28, 2009, 10:57:18 AM
bah it is trying to install it for SMF 2.0 not smf 1.1.x
Thank you, do you know anywhere I can download a 1.1.8 version?
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: GazOutEast on March 03, 2009, 01:31:40 PM
Hi vb

Have installed the latest 1.8.1.1 SMF Links onto 2.0 RC1 - installation went straight through no problem

I've managed to find the double-blind permissions (in members - permissions - general permissions - modify (each group in turn)) as well as in the permission set up in several areas of the mod's pages.
(side topic - the Links system permissions list in the membergroup modify has no title showing so it's not at all obvious that it's there - still checking if this is an English vs English-utf8 issue although I'm currently on plain old English)

The issue I have is that having set up link categories and sub-categories, and added a few links and set all the permissions blah blah - when I click on any link (as an admin, a user, or a guest) I get the following -


Not Acceptable

An appropriate representation of the requested resource /board/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.buildaskill.com Port 80


I've tried the .htaccess patch you recommended a page or two back, and it did nothing at all.

Any further recommendations?

Gaz[/hr][/hr]
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: GazOutEast on March 03, 2009, 04:17:03 PM
Also getting the same error above when I try to edit or delete a link - either as admin or as user-creator with permissions

Looks like I'm going to have to knock this mod out - have already spent 8 hours trying to get it working on a live site and have other things to do.

Shame - it looked so right for what I was trying to do
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on March 03, 2009, 10:49:50 PM
Quote from: GazOutEast on March 03, 2009, 04:17:03 PM
Also getting the same error above when I try to edit or delete a link - either as admin or as user-creator with permissions

Looks like I'm going to have to knock this mod out - have already spent 8 hours trying to get it working on a live site and have other things to do.

Shame - it looked so right for what I was trying to do
That is an issue with mod_security please search forum for answer.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: GazOutEast on March 04, 2009, 07:29:48 AM
Quote from: vbgamer45 on March 03, 2009, 10:49:50 PM
That is an issue with mod_security please search forum for answer.

vb - you didn't read the earlier post did you?

Quote from: GazOutEast on March 03, 2009, 01:31:40 PM


I've tried the .htaccess patch you recommended a page or two back, and it did nothing at all.

Any further recommendations?

Gaz
[/h]

I'm not the first person to mention that, that mod-security patch DID NOT work, and I'm not the first person that you ignored reporting that result.

As it is ONLY the Links mod getting this result, it implies there is a bug in the mod, or at the very least an incompatibility with something in the hosting of a number of users.  Our hosts are latest php sql etc so it is not an old OS causing the issue.
Our hosts use typical configs (it's not godaddy or anyone like that).

As per my first request - Any further recommendations?

I would really like to get this to work, but if you're going to do an eBay Universal Support Script ("clear cache and cookies" + "click" as the phone hangs up) then I'll de-install now so I can get on with adding the other mods.

Gaz
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on March 04, 2009, 08:39:35 AM
If you need paid support I can help otherwise read over this topic for the issue in the past my time is very limited.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: GazOutEast on March 04, 2009, 03:05:42 PM
Phah - I stand by what I said - I've got your measure now
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Paolo Bitta on March 16, 2009, 08:06:01 AM
ok, i've read that i'm not the only one that has problems with installation on smf 1.1.8.

it tries to install the version for smf 2, and if i try to obtain the manual instructons, it shows me those for sfm 2.0 again....

could you please cut&paste here the manual instruction for installation on smf 1.1.8 ?
thanks a lot, this mod could be very useful  :)
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Xavi-Nena on March 16, 2009, 10:27:28 PM
Quote from: willerby on February 11, 2009, 11:26:38 AM
Can anyone suggest the code changes necessary to add the Image URL to the bottom of each link's posting and editing page, create the necessary database field and enable it to be displayed to the left of the link Title (and be clickable) in the listings?

Was there a solution for this yet that I am just overlooking? Thanks. :)
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Smoky "Rider" Blue on March 17, 2009, 10:25:57 AM
you will need to visit vbgamer's site and download the 1.67 version of this in order for it to work, the latest does not work for the 1.1.8 series that is uploaded to the smf mod repository.. ;)

just got the older version installed to the 1.1.8 with no issues. the other one, it hangs up on both the admin and subs file, and vbgamer does not wish to fix it.  :)

Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: ttuu on March 18, 2009, 06:05:45 PM
after i install this mod i see errors in error log:
8: Undefined index: permissionname_rate_links_any
files: /hsphere/local/home/ladaatne/ladaat.net/forum/new76/Sources/ManagePermissions.php
line: 1636
8: Undefined index: permissionname_rate_links_own
files: /hsphere/local/home/ladaatne/ladaat.net/forum/new76/Sources/ManagePermissions.php
line: 1632
8: Undefined index: permissionname_links_auto_approve_any
files: /hsphere/local/home/ladaatne/ladaat.net/forum/new76/Sources/ManagePermissions.php
line: 1636
8: Undefined index: permissionname_links_auto_approve_own
files: /hsphere/local/home/ladaatne/ladaat.net/forum/new76/Sources/ManagePermissions.php
line: 1632
8: Undefined index: permissionname_approve_links_any
files: /hsphere/local/home/ladaatne/ladaat.net/forum/new76/Sources/ManagePermissions.php
line: 1636
8: Undefined index: permissionname_approve_links_any
files: /hsphere/local/home/ladaatne/ladaat.net/forum/new76/Sources/ManagePermissions.php
line: 1632
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: ttuu on March 23, 2009, 07:13:50 AM
bump!
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: rgecy on March 30, 2009, 08:42:48 AM
OK, I got the SMF Links 1.67 to install on 1.1.8 and works in the default theme, but what code do I install in my themes to make it work on the others?

Thanks,

RGecy
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: rgecy on March 30, 2009, 01:41:10 PM
bump...... Any help on how to get it to work in other themes?
Title: Test failed
Post by: kitkat278 on March 30, 2009, 04:58:32 PM
I tried to install this and I get this...

(http://i241.photobucket.com/albums/ff32/fadeaway872/testfailed.jpg)

I am using SMF 1.1.8 and these mods...

(http://i241.photobucket.com/albums/ff32/fadeaway872/packages.jpg)

Is there a way to make it install correctly?

Thanks so much!
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: rgecy on March 30, 2009, 06:26:25 PM
kitkat,

You will have to do what I did and go to vbgamer's web site and download 1.67.  I have it working on 1.1.8 but only on the default theme.  I cannot find the code and where to put it for my other themes.

Any help anyone who has got this to work??????
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Paolo Bitta on March 31, 2009, 04:45:42 AM
Quote from: rgecy on March 30, 2009, 06:26:25 PM
kitkat,

You will have to do what I did and go to vbgamer's web site and download 1.67.  I have it working on 1.1.8 but only on the default theme.  I cannot find the code and where to put it for my other themes.

Any help anyone who has got this to work??????

I have smf 1.1.8 but the version 1.67 it doesn't install either.
I tried to guess how to make a manual installation, and it seems that the installation script searches for code section starting with "CDATA blablabla", but in my files i have just the "blablabla" stuff without CDATA.

I tried to patch the installation xml file, but i'm not expert enough to make it work (and i guess it won't uninstall, if needed..)

so, vbgamer, would you just jump in here and spend some minutes to explain how to manual install it?
you have the working code, don't bother packing it... just cut&paste it here with some instructions.....

byez
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Xavi-Nena on April 04, 2009, 09:40:50 PM
the package parser on the mod page will show you how to manually install the mod on the two test failed files.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Bec on April 05, 2009, 03:32:40 PM
Sorry if my questions have been answered already, I did have a looksie through the old posts but couldn't find anything...

I am wondering:-

Is it possible to sort the links once they are in their categories? Just think it would be a lot tidier if they were sorted...
Is it possible to have an image for the links (I know its possible for the categories)...

If so, would you please mind telling me how I can go about implementing them.

Thanks :)

----------------

I am also a little confused, just installed 1.8.1.1 onto my 1.1.8 forum and well it failed the install on admin.php and subs.php so I just went in to do the edits and well i cant find where to put them because the lines that are quoted in the package parser are not in my files....have attached both my files would someone please mind taking a look and telling me where i need to add the information...

thanks :)

Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Paolo Bitta on April 07, 2009, 06:43:34 AM
Quote from: NenaGb on April 04, 2009, 09:40:50 PM
the package parser on the mod page will show you how to manually install the mod on the two test failed files.

that's false

if you try, you will obtain the manual instruction for smf 2.0, there's an error in the script, and this issue has already be reported before.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Xavi-Nena on April 12, 2009, 05:21:22 PM
Quote from: Paolo Bitta on April 07, 2009, 06:43:34 AM
Quote from: NenaGb on April 04, 2009, 09:40:50 PM
the package parser on the mod page will show you how to manually install the mod on the two test failed files.

that's false

if you try, you will obtain the manual instruction for smf 2.0, there's an error in the script, and this issue has already be reported before.


well how bout that ....
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: PalmBeachPreps on April 12, 2009, 11:47:12 PM
Any other mods such as this one for links?

I've been searching for almost two days and have yet to find one.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Bec on April 14, 2009, 11:10:47 AM
well I have it installed on my 1.1.8 site and while it failed on those two files that everyone has been mentioning, it is working fine and not pulling any errors. 

Quote from: rgecy on March 30, 2009, 08:42:48 AM
OK, I got the SMF Links 1.67 to install on 1.1.8 and works in the default theme, but what code do I install in my themes to make it work on the others?

Thanks,

RGecy

you will need to create a new tab within your themes index template to show the links page - no other edits needed.

Quote from: AlreeGator on April 12, 2009, 11:47:12 PM
Any other mods such as this one for links?

I've been searching for almost two days and have yet to find one.

not that I am aware of, but I have been using this mod for quite some time and cannot fault it (except i wish it would sort the links in alphabetical order)

Quote from: Bec on April 05, 2009, 03:32:40 PM

Is it possible to sort the links once they are in their categories? Just think it would be a lot tidier if they were sorted...
Is it possible to have an image for the links (I know its possible for the categories)...

If so, would you please mind telling me how I can go about implementing them.


BUMP! :)

Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: willerby on April 14, 2009, 03:22:13 PM
Find /.../Themes/default/links.template.php and then search for

default:
$sort = 'l.ID_LINK';
}

}
else
{
$sort = 'l.ID_LINK';
}


Replace with:

default:
$sort = 'l.title';
}

}
else
{
$sort = 'l.title';
}


That should do it...
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Afro on April 20, 2009, 05:05:04 PM
Great mod.
Please how do i change the "LINKS" on the menubar to "LINKS DIRECTORY"

WHICH FILE DO I EDIT?
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Afro on April 22, 2009, 04:20:16 AM
is there anything i should do for the alexa ranks to show up?

none of the links on my directory has the alexa ranking
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: pgordemer on April 23, 2009, 12:15:36 AM
On a fresh install into SMF 2.0 RC1 with no mods, the SMF Links installs. When I create a catagory, then a link, everytime you click on the link you get..

PHP Fatal error: Call to undefined function ob_exit() in C:\Inetpub\test\Sources\Links2.php on line 689
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on April 23, 2009, 12:19:05 AM
Quote from: sam_milla on April 22, 2009, 04:20:16 AM
is there anything i should do for the alexa ranks to show up?

none of the links on my directory has the alexa ranking
Not supported, never got that feature working.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on April 23, 2009, 12:37:51 AM
Quote from: pgordemer on April 23, 2009, 12:15:36 AM
On a fresh install into SMF 2.0 RC1 with no mods, the SMF Links installs. When I create a catagory, then a link, everytime you click on the link you get..

PHP Fatal error: Call to undefined function ob_exit() in C:\Inetpub\test\Sources\Links2.php on line 689
Thanks fixed that issue

1.8.2
!Fixed issue with when visiting a link undefined function.
!Fixed missing text string for error on missing category title
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: pgordemer on April 23, 2009, 10:18:02 AM
Is there any way in a single category to list the links in alphabetical order. I have a catagory called Manufacturers that I will be adding to regularly, so for that category, order is important.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on April 23, 2009, 09:02:15 PM
Not at this time
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Bec on May 04, 2009, 10:43:09 AM
Quote from: Bec on April 05, 2009, 03:32:40 PM
Sorry if my questions have been answered already, I did have a looksie through the old posts but couldn't find anything...

I am wondering:-

Is it possible to sort the links once they are in their categories? Just think it would be a lot tidier if they were sorted...
Is it possible to have an image for the links (I know its possible for the categories)...

If so, would you please mind telling me how I can go about implementing them.

Thanks :)


Hi Guys, I would really appreciate an answer to my questions. I am about to setup paid advertising on my site using the links mod and really need to implement these items (well not both but the sorting of the links once in categories would be really really nice)

Thanks!!
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on May 04, 2009, 08:23:13 PM
1st, not possible
2nd if they use bbc code in the description they can do it.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: willerby on May 05, 2009, 02:04:42 PM
vbg, I'm not sure that's right. I've tried img tags and they just appear as text.

Post an example if you can get this to work...
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on May 05, 2009, 08:23:43 PM
There might be a require bbc option/setting I haven't checkd the mod in a while but I think I saw a person do this.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: willerby on May 06, 2009, 04:41:49 AM
You're right, vbg! Thanks and apologies for suggesting this wouldn't work

To get alignment to look right, worth using BBC tables eg.

[table][tr][td][img]http://www.(image location)[/img][/td][td]Link desciption goes in here[/td][/tr][/table]



W
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: MrMorph on June 19, 2009, 06:24:31 AM
Using SMF 1.1.9

Hi I am having the same problem as many other people, but no solution has been forthcoming.  When I install with the package manager I get :

6.   Execute Modification   ./Sources/Admin.php   Test failed
7.   Execute Modification   ./Sources/Subs.php   Test failed

Now as we know the parser for the manual hack is misleading.

Can we get the right manual modifications for admin.php and subs.php for use in SMF 1.1.x please VBGamer ?

Just post them here so we can all see.   Thanks.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: WindsorLive! on June 19, 2009, 07:46:13 PM
I am having issues with a few of smf hacks mods most of which are easy to solve but I cannot get the smf links info to be visible in the admin members permission screen. I have the radio buttons but no text in the fields.

This is making things difficult but I finally found the manual install info here just like the others cannot locate the places to manually verify the Admin.php and Subs.php. I did not get an error when I installed this mod but the edits are not there. What can I do?

I am Running 1.1.9 with tp v1 beta 3

Thanks
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: BarfBag on July 01, 2009, 09:10:04 AM
I'm getting this error as well.  Any ideas?

Quote from: MrMorph on June 19, 2009, 06:24:31 AM
Using SMF 1.1.9

Hi I am having the same problem as many other people, but no solution has been forthcoming.  When I install with the package manager I get :

6.   Execute Modification   ./Sources/Admin.php   Test failed
7.   Execute Modification   ./Sources/Subs.php   Test failed

Now as we know the parser for the manual hack is misleading.

Can we get the right manual modifications for admin.php and subs.php for use in SMF 1.1.x please VBGamer ?

Just post them here so we can all see.   Thanks.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: MrMorph on July 01, 2009, 10:16:34 AM
No ideas, we won't know until VBGamer tells us how to alter the files manually.  I like many people am still waiting for some response.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Joe N on July 01, 2009, 10:22:12 AM
Hey

Does anything go to the phpmyadmin?

I am going to do this mod manually with the edits
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: MrMorph on July 01, 2009, 10:24:17 AM
The  manual edits that the parser shows are for SMF 2, they won't work with SMF.1.1.9.....
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Joe N on July 01, 2009, 10:24:55 AM
There is a drop down
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: MrMorph on July 01, 2009, 10:39:17 AM
Yes there is.... and ?
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on July 01, 2009, 08:09:49 PM
Use those instructions to install it.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: MrMorph on July 02, 2009, 05:28:17 AM
Yeah like we keep saying they are not the right instructions...
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: karbaciun on July 02, 2009, 04:19:04 PM
hi

this mod is the best of links directory mod but:
for install it error in
/admin.php
/subs.php

and Manual Install is for smf 2 and donot for 1.1.9
please help me.
tnx
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: MrMorph on July 02, 2009, 04:26:03 PM
It's like there's an echo...
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: karbaciun on July 04, 2009, 04:01:45 PM
Quote from: karbaciun on July 02, 2009, 04:19:04 PM
hi

this mod is the best of links directory mod but:
for install it error in
/admin.php
/subs.php

and Manual Install is for smf 2 and donot for 1.1.9
please help me.
tnx

have not solution?
???
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: karbaciun on July 06, 2009, 05:01:01 PM
please ready it for smf 1.1.x

thanks a lot
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Angelotus on July 09, 2009, 05:10:15 AM
Quote from: vbgamer45 on December 01, 2006, 09:56:29 AM
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);
}


Can you provide the code for SMF 2.0 as well, because the code above will not work with 2.0???
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: ross85 on July 20, 2009, 10:20:19 PM
I keep getting this error on my PHP error logs:

[20-Jul-2009 18:29:22] PHP Fatal error: Call to undefined function ob_exit() in /home2/rotorhe1/public_html/Sources/Links.php on line 579

What do I need to do?
Thanks,
Ross
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on July 21, 2009, 01:15:12 PM
Quote from: ross85 on July 20, 2009, 10:20:19 PM
I keep getting this error on my PHP error logs:

[20-Jul-2009 18:29:22] PHP Fatal error: Call to undefined function ob_exit() in /home2/rotorhe1/public_html/Sources/Links.php on line 579

What do I need to do?
Thanks,
Ross
Upgrade to the latest release
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: ross85 on July 21, 2009, 01:20:38 PM
i have 1.8.1.1, That is what is listed for download on the mod site.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: DarkValentine on July 21, 2009, 09:26:58 PM
Hello.

I'm having a problem with installing the most recent version of SMFLinks.

I'm using SMF 2.0RC1-2 and I'm trying to install this mod on my forums. The only problem is that all except the following one goes through.

QuoteDatabase Error
SQL logic error or missing database
near "NOT": syntax error
File: /home/generati/public_html/forum/Packages/temp/linksql2.php
Line: 20

Everything checks out, without problems or issues. The correct folder permissions have been set. I've double & triple checked all files that were needed. Despite saying "Test Successful" on every last one of them, and trying both Manual Installation & through the Package Manager, That one listed problem is preventing me from installing it on my forums.

If it helps any, when that error is shown, and I look in the error log, this is the image of what I see, as to what is supposedly "missing".

(http://i31.tinypic.com/264rzlw.jpg)

When I look into the same line, in the directory, by way of FTP, I get this

(http://i29.tinypic.com/2el4bw6.jpg)

As you can see, what is shown in the error message, to the first pic. Is not there in the second pic.

To further extend the issue, When I looked into that line through Notepad++ to see if there was an issue, There was nothing on that line. Which most likely caused the error. Which is still strange by all means...

Any help with this issue, would be very much appreciated. I have searched all of the pages of this thread. I have also searched the forums of where this mod originates. So I have done the research, but no findings.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on July 22, 2009, 08:54:55 AM
Are you using MySQL?
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: DarkValentine on July 22, 2009, 08:56:24 AM
Yes, I'm using MySQL
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on July 22, 2009, 01:56:58 PM
Really confused then can you try manually running the create table for the articles in your database
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: Lord Feste on July 22, 2009, 06:37:56 PM
Hi, looks like a great mod, installed with NP on Rc1-1... buuuut... even though I've set all membergroups to view, only admins can see the link in the forum nav and actually access the Links? I searched this thread for an answer but didn't see anyone else with the same problem.

Any ideas?  thanks again. looking forward to getting this working.

Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: vbgamer45 on July 22, 2009, 07:29:58 PM
Admin -> Permisssions -> modify each group and give them permission to view the links page.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: willerby on July 26, 2009, 04:57:18 PM
vbg,

After reinstall of SMF2.0 RC1.2 and reupload of this mod over my existing database my hosts error log has multiple examples of following reported:

PHP Fatal error: Call to undefined function ob_exit() in /home2/xxxxxx/public_html/forum/Sources/Links2.php on line 689

Links is current version untouched?

Any help appreciated

W
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: FireDitto on July 28, 2009, 10:58:44 PM
Quote from: MrMorph on June 19, 2009, 06:24:31 AM
Using SMF 1.1.9

Hi I am having the same problem as many other people, but no solution has been forthcoming.  When I install with the package manager I get :

6.   Execute Modification   ./Sources/Admin.php   Test failed
7.   Execute Modification   ./Sources/Subs.php   Test failed

Now as we know the parser for the manual hack is misleading.

Can we get the right manual modifications for admin.php and subs.php for use in SMF 1.1.x please VBGamer ?

Just post them here so we can all see.   Thanks.


I'm also after the manual install for 1.1.x please.
Title: Re: SMF Links (1.8 Released with SMF 2.0 Support!
Post by: willerby on July 31, 2009, 09:11:48 AM
Quote from: willerby on July 26, 2009, 04:57:18 PM
vbg,

After reinstall of SMF2.0 RC1.2 and reupload of this mod over my existing database my hosts error log has multiple examples of following reported:

PHP Fatal error: Call to undefined function ob_exit() in /home2/xxxxxx/public_html/forum/Sources/Links2.php on line 689

Links is current version untouched?

Any help appreciated

W
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on July 31, 2009, 08:38:32 PM
Quote from: willerby on July 31, 2009, 09:11:48 AM
Quote from: willerby on July 26, 2009, 04:57:18 PM
vbg,

After reinstall of SMF2.0 RC1.2 and reupload of this mod over my existing database my hosts error log has multiple examples of following reported:

PHP Fatal error: Call to undefined function ob_exit() in /home2/xxxxxx/public_html/forum/Sources/Links2.php on line 689

Links is current version untouched?

Any help appreciated

W
Fixed

New version released
2.0
!Fixed bugs with install for SMF 1.1.X
!Fixed missing permission text for SMF 2.0
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: willerby on August 01, 2009, 06:18:52 AM
Thanks vbgamer.

Will upgrade tonight
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: zorro18 on August 01, 2009, 09:51:49 AM
Hello,

I have installed it on RC 2.0 1-2. The description is not being taken. When I write some thing and save it, it simply disappears.

What would be the problem and what would be the fix.?

Thanks for the help!
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: MrMorph on August 01, 2009, 10:27:21 AM
Thanks :)   I'll try installing again.
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Xavi-Nena on August 02, 2009, 10:22:02 AM
1. what file would I edit to add text above where the links start?

2. is there a way to hide the subcategories from under the parent category?

3. how can i move the parent category links above the sub category links w/in the category?
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Kindred on August 02, 2009, 10:59:45 AM
I added


echo '
<div style="border:solid 1px yellow;padding:5px;margin:5px;"><span class="smalltext">' ,$txt['smflinks_disclaimer'] , '</span></div><br />';



just below

echo '
<div style="padding: 3px;">', theme_linktree(), '</div>';

right near the top of links2.template.php

I then defined
$txt['smflinks_disclaimer']
in links.english.php
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: zorro18 on August 02, 2009, 12:14:41 PM
Quote from: zorro18 on August 01, 2009, 09:51:49 AM
Hello,

I have installed it on RC 2.0 1-2. The description is not being taken. When I write some thing and save it, it simply disappears.

What would be the problem and what would be the fix.?

Thanks for the help!

Sorry for the bump. Help with this will be really appreciated.
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Xavi-Nena on August 02, 2009, 12:51:53 PM
Quote from: Kindred on August 02, 2009, 10:59:45 AM
I added


echo '
<div style="border:solid 1px yellow;padding:5px;margin:5px;"><span class="smalltext">' ,$txt['smflinks_disclaimer'] , '</span></div><br />';



just below

echo '
<div style="padding: 3px;">', theme_linktree(), '</div>';

right near the top of links2.template.php

I then defined
$txt['smflinks_disclaimer']
in links.english.php

I am sorry who was this directed to?
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Kindred on August 02, 2009, 06:36:44 PM
Quote from: NenaGb on August 02, 2009, 12:51:53 PM
Quote from: Kindred on August 02, 2009, 10:59:45 AM
I added


echo '
<div style="border:solid 1px yellow;padding:5px;margin:5px;"><span class="smalltext">' ,$txt['smflinks_disclaimer'] , '</span></div><br />';



just below

echo '
<div style="padding: 3px;">', theme_linktree(), '</div>';

right near the top of links2.template.php

I then defined
$txt['smflinks_disclaimer']
in links.english.php

I am sorry who was this directed to?


Quote from: NenaGb on August 02, 2009, 10:22:02 AM
1. what file would I edit to add text above where the links start?

also, the answer to 2 and 3 is that you will have to modify the links2.template.php file...
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Xavi-Nena on August 02, 2009, 11:59:51 PM
oh ok thanks...i think i understand...here goes..
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: c-ron on August 10, 2009, 11:47:43 AM
I've installed SMF Links 2.0 on a 1.1.10 forum without any errors.
However, Administrators are the only ones who can Edit or Delete links on the link approval page, even though it's specified in the membergroup permissions that a few other groups have these abilities. Here's Global Moderator for instance:
(http://cron.benburhans.com/imgboard/src/1249919003837.png)

I can see the Edit and Delete links fine when I set my primary membergroup to Administrator, but when I change it back to Global Mod, those links are gone:
(http://cron.benburhans.com/imgboard/src/1249919055187.png)

Is this a bug?

Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on August 11, 2009, 10:03:21 PM
Edit and Delete links work only for owner of the link.
Admins are allowed to edit/delete any links
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: c-ron on August 12, 2009, 01:21:46 AM
I was also the owner/submitter of the link in that example.. so that shouldn't be the issue. Anything else that might cause those options to not show?

Other issues:

*The [up] and [down] links for reorganizing categories and subcategories don't do anything most of the time, yet do work -some- of the time. ???

*URLs with ampersand '&' in them become '&amp;' breaking the URL.

Example: http://forums.mapcore.net/viewtopic.php?f=58&t=6806 (http://forums.mapcore.net/viewtopic.php?f=58&t=6806)
becomes: http://forums.mapcore.net/viewtopic.php?f=58&amp;t=6806 (http://forums.mapcore.net/viewtopic.php?f=58&amp;t=6806)  <- Not a valid page

--

<3 <3 <3 Requests for future versions of SMF Links <3 <3 <3:

*Add the option to turn off 'Total Links' count. The current setup only counts links in categories (and subcategories, with that option enabled) but not sub-subcategories, which we're using a number of, so link counts show as '0' in each of the main cats. on the links page.
Example: If you had '2D & 3D Graphics' as a category, then 'Blender' as a subcategory, and then 'Video Tutorials' as a sub-subcategory with 50 links inside of it, the link count for '2D & 3D Graphics' would still display as '0', and users think there's nothing there to see.

*Redirect users to the last page viewed when you're done editing a link or category, instead of redirecting to the main links page.

*Add in support for horizontal rule bars to break the links up a bit, as an option to have them appear right above unclickable categories that appear as bold text headers in between the links for better organization. If they could also serve as an HTML anchor, that would awesome. This would also cut down on a few clicks to get the links you want.

Example:

Category One:
Link A
Link B


Category Two:  <-- Also has a HTML anchor (#cat2 or so) to jump down to here when specifying ?action=links#cat2 in the URL.
Link C
Link D


*Add a mouse-over preview of the URL you'll be going to if you're to click a link (currently there's no way to tell what you'll be visiting exactly).

Thanks vbgamer45! Keep up the good work!
Title: Read: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: ailarkaljurand on August 13, 2009, 02:23:00 AM
Error: Table 'vhost7052s0.smf_links' doesn't exist
Fail: /www/apache/domains/www.homezonefoorum.net/htdocs/Sources/Links.php
Line: 1073

What shoud I do?
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Kindred on August 13, 2009, 01:24:44 PM
add the table? :)

Look in the manual instructions for installing the mod and find th SQL statement to add the table to your database
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: c-ron on August 14, 2009, 09:46:08 AM
Quote from: c-ron on August 12, 2009, 01:21:46 AM
*URLs with ampersand '&' in them become '&amp;' breaking the URL.

Example: http://forums.mapcore.net/viewtopic.php?f=58&t=6806 (http://forums.mapcore.net/viewtopic.php?f=58&t=6806)
becomes: http://forums.mapcore.net/viewtopic.php?f=58&amp;t=6806 (http://forums.mapcore.net/viewtopic.php?f=58&amp;t=6806)  <- Not a valid page

Until this can be fixed, a workaround is to use tinyurl.com
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: c-ron on August 14, 2009, 09:13:54 PM
Quote from: c-ron
*The [up] and [down] links for reorganizing categories and subcategories don't do anything most of the time, yet do work -some- of the time. ???

This seems to only happen in subcategories, the main categories can be rearranged *most* of the time.

When the subcategories are refusing to move, it sometimes jumps back to the main links page and *apparently* moves the parent category up or down on the main page (it really doesn't, it just *looks* that way, but if you try to 'fix' it, it looks like it jumps 2 places, or, gives you and error that it's already the top category [it is, it just isn't displaying that way]).

However, when you go back into the subcategory, -sometimes- they've moved the way you wanted. In my case, it didn't work.

Here's a video showing this in action:

http://www.youtube.com/watch?v=3bKRk2eE8vg

As a temporary workaround, we've made all the subcategories into main categories, and limit subs to only 1 level deep.
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: c-ron on August 22, 2009, 11:23:13 AM
Can anyone else confirm these bugs?
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: rgecy on August 22, 2009, 09:46:35 PM
Is it possible to post a link under the main Links area without having to create a category?

If not, is it possible to modify?

Robert
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on August 22, 2009, 10:01:02 PM
Quote from: rgecy on August 22, 2009, 09:46:35 PM
Is it possible to post a link under the main Links area without having to create a category?

If not, is it possible to modify?

Robert
Not possible yes you can modify the code if you have knowledge of php/mysql
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: rgecy on August 22, 2009, 10:09:05 PM
I figured that! ;D  Any help on where to get started?

Robert
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on August 23, 2009, 12:14:57 AM
New update!
2.0.1
!Fixed bbc editor in SMF 2.0 not working in IE6/IE7
!Fixed bug with & in urls not being stored correctly
!Fixed changing category order up/down with subcategories
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: saggsab on August 25, 2009, 01:31:30 PM
I've loaded  Links 2.0.1 onto a SMF 2.0 RC 1.2 yesterday. I've gone over the permissions and made a couple of links to check out. My problem is that even though I've given Guests permissions to view links they cannot do so - it tells them that they have to sign in or register to view links.

Any suggestions?

Also, I think I saw this earlier in this thread - but didn't see an answer (sorry if I just missed it). I want the parent categories to show and the sub-categories to either show below them - or for them to be listed once the parent category is selected. Is there a way to do this?

Thanks!  :)
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on August 25, 2009, 07:27:14 PM
You have the permissions set under Admin -> Permission modify each group?
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: saggsab on August 25, 2009, 07:53:24 PM
I think that did it!! I guess I got everything but the SMF permissions.

Thanks!   :D
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on August 25, 2009, 07:55:51 PM
Glad you got it working
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: c-ron on August 29, 2009, 11:57:44 PM
Quote from: vbgamer45 on August 23, 2009, 12:14:57 AM
New update!
2.0.1
!Fixed bbc editor in SMF 2.0 not working in IE6/IE7
!Fixed bug with & in urls not being stored correctly
!Fixed changing category order up/down with subcategories

These work great now. Thank you for the bug fixes!
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Afro on September 29, 2009, 01:16:21 PM
my links suddenly doesnt allow me to approve added sites anymore.

i see 2 unapproved links but when i click on it , it doesnt take me to where to approve them ?
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on September 29, 2009, 05:53:55 PM
What version of SMF Links and what SMF version?
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Afro on September 30, 2009, 08:21:59 AM
Quote from: vbgamer45 on September 29, 2009, 05:53:55 PM
What version of SMF Links and what SMF version?

2.1

ok something strange is going on. someone added a link today and i clicked on approve links.

the approve window opened and i saw the new added link but the old 2 added links yet to be approved is not there. they still show up on the list of links needed to be approved
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: sulla on October 04, 2009, 10:04:16 PM
Hi I am getting lots of errors I think might be from the SMF Links addon. The message is...

8: Undefined index: x-links_manage File: /home/NAME/public_html/artphotofilm/forum/Sources/Subs.php Line: 2809
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on October 04, 2009, 10:08:14 PM
x-links_manage is not something SMF Links adds
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: sulla on October 04, 2009, 10:23:44 PM
OK thanks very much. At least I can rule that out.
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Powerbob on October 11, 2009, 05:10:15 AM
Great Mod mate 8)
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on October 12, 2009, 10:40:52 PM
Thanks! I plan on making updates so if you have any feature requests let me know.
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: sulla on October 12, 2009, 10:44:21 PM
I have a quick question. When I backup SMF using the built in backup is it also backing up the data for SMF links?
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on October 12, 2009, 10:49:09 PM
Yes it is. Includes any mods with the database prefix.
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: sulla on October 12, 2009, 10:51:04 PM
OK thanks:)
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: Powerbob on October 13, 2009, 05:32:08 PM
Just waiting patiently for the RC2 version ::)
Title: Re: SMF Links (2.0 Released with SMF 2.0 Support!
Post by: vbgamer45 on October 13, 2009, 07:36:07 PM
Soon once the public release is out just in case there are more surprises in RC2
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on November 09, 2009, 08:19:19 PM
Updated for SMF 2.0 RC2 support.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: InfoStrides on November 12, 2009, 03:01:26 PM
I just installed SMF links today and tested with a link. I am unable to approve the link. It keeps redirrecting me to homepage whenever I click on *Approve*.

Please Help!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on November 12, 2009, 03:06:34 PM
What version of SMF?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: FireDitto on November 12, 2009, 06:24:27 PM
ezPortal may be being difficult to install, but the Links installed beautifully for me and the test link and category also worked wonderfully.

-- SMF 2.0 RC2
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: InfoStrides on November 13, 2009, 06:47:21 AM
Quote from: vbgamer45 on November 12, 2009, 03:06:34 PM
What version of SMF?

I am using SMF 1.1.10 (www.infostridesforum.com). Meanwhile, I encountered "500 Internal Server Error" after I installed it.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on November 13, 2009, 09:03:46 AM
Can you access any part of the links system? Does the 500 error still occur?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: InfoStrides on November 15, 2009, 01:00:02 PM
Quote from: vbgamer45 on November 13, 2009, 09:03:46 AM
Can you access any part of the links system? Does the 500 error still occur?

I have resolved "500 Internal Server Error" but now I have issue with approving links. I can not approve link as Admin.

Pls help!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Liam. on November 15, 2009, 01:03:24 PM
What was the 500 Internal Server Error's cause, and how did you fix it?
As for approving links, have you tried on multiple accounts, or clearing your cache?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: InfoStrides on November 15, 2009, 04:08:30 PM
Quote from: iKorp on November 15, 2009, 01:03:24 PM
What was the 500 Internal Server Error's cause, and how did you fix it?
As for approving links, have you tried on multiple accounts, or clearing your cache?

What was the 500 Internal Server Error's cause?
I could not figure out was actually caused it. I knew that SMF links was last installed when I got the error. My host informed that the problem was not from their side.

how did you fix it?
I restored my last backup to fix it.

As for approving links, have you tried on multiple accounts, or clearing your cache?
I tried these but make no difference. Any attempt to approve keeps redirrecting me to homepage.

Please help!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on November 15, 2009, 06:26:58 PM
Released a new update on mod site download that version and see if it helps with your 500 error issue.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: InfoStrides on November 16, 2009, 03:27:20 PM
Quote from: vbgamer45 on November 15, 2009, 06:26:58 PM
Released a new update on mod site download that version and see if it helps with your 500 error issue.

Thank you for the information. I will update my version.

Meanwhile, the major problem is link editing and approval in the admin area. It keeps redirecting me to homepage.

Pls help!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on November 16, 2009, 07:33:37 PM
That update should fix that issue.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: InfoStrides on November 17, 2009, 04:40:43 AM
Quote from: vbgamer45 on November 16, 2009, 07:33:37 PM
That update should fix that issue.

Thank you. It works fine now. Great mods! You can check it now under 'directory'.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: xmh on November 19, 2009, 06:33:24 PM
Hi,

I can't seem to get regular members permissions set up so that they can delete or edit their own links.

Tried the mod on V2 RC1.2 & V2 RC2 with the same result. Attached are the settings I have made for the categories and smf permissions.

Any help greatly appreciated.

Thanks
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on November 19, 2009, 08:23:57 PM
I belive only admins can modify and delete links
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: xmh on November 20, 2009, 01:48:05 AM
Hi,

Thanks for clearing that up.  it was the edit own link & delete own link columns that threw me.

Any chance they (regular members) could have that option be in a future version ?

Cheers
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: c-ron on December 29, 2009, 04:29:35 AM
Hi, I'm installing SMF Links 2.1.2 on a fresh copy of SMF 1.1.11. The install goes off without a hitch, however, when it tries to re-direct to the settings page after applying the mod, I get this error:

Fatal error: Cannot redeclare showsubcats() (previously declared in /home/<my username>/forum/Sources/Links.php:1454) in /home/<my username>/public_html/unvanquished/forum/Sources/Load.php(1742) : eval()'d code on line 1383

Help! This seems to only affect this version of links, as I previously had an older version installed and working fine before (before I reinstalled SMF).
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Kindred on December 29, 2009, 08:25:20 AM
well, it looks like you have double installed...   you will have to manually remove the duplicate code
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: c-ron on December 29, 2009, 07:49:15 PM
Quote from: Kindred on December 29, 2009, 08:25:20 AM
well, it looks like you have double installed...   you will have to manually remove the duplicate code

Yes, that's what the problem was. I had an extra copy of links.php in my theme's folder which was screwing it up. I deleted that and everything worked fine. Thanks!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on December 29, 2009, 07:52:36 PM
Glad you got it working!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: hafizadam on January 06, 2010, 04:21:18 PM
Hi, I wanted a simple download system for my forum and looked it up in the Modifications but none suits my taste.

I want one that list all the links in one a page and when users click on them, they didnt have to open new window for description and such. so I chose SMF Links to do the trick.

But then I need to change some item:

1. the Menu name to be Download

2. the description for the Category will appear in Category page.

3. maybe some modification for the Mod Menu names (eg: Add Link to be "Add Download", etc) as well.

if you need more information, let me know.

thanks in advance.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Kindred on January 06, 2010, 05:27:55 PM
hafizadam,

this mod is not really intended as a download mod...   so you are stretching it to do something that it was not really intended to do...

text changes can be made by changing the values in modifications.english.php
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: hafizadam on January 06, 2010, 06:59:15 PM
Actually the idea is because of:

1. our users mainly using MediaFire as their hosting, external server
2. we have multiple files to download for a category (The same concept as Mangas, they have Volume 1, 2, 3 etc.)

I've took a look on another download Mod, but the users have to open each Volume in a New Page before they saw the Download Link. It's such a bother for them especially when they have crappy connection and missed a whole bunch of Volumes to download. So this Mod will be very helpful as all Volumes are in one page and the users can access them directly. One click will bring them the MediaFire page.

Anyway, thanks for the tips. I'll try to look into that.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: bound2bmine on January 17, 2010, 10:34:08 AM
How does this work on EZPortal with a custom theme. I see it on the portal page but how do you and links to it?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on January 17, 2010, 10:49:29 AM
You need to have SMF Links installed. Then there will be a links option in the menu to add link categories.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Afro on January 19, 2010, 06:49:23 AM
after upgrading to RC2 version,
guests and regurlar cannot add links again even though i enabled it for them in the general permission
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: TheListener on January 20, 2010, 12:22:26 AM
Can the "Links" tab in the menu be renamed?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Afro on January 20, 2010, 06:38:43 AM
Quote from: Brack1 on January 20, 2010, 12:22:26 AM
Can the "Links" tab in the menu be renamed?

Yes, You an rename it in the modifications.english.php file...or modifications.english-utf8.php file ....find LINKS. Change it
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Angelotus on February 06, 2010, 07:04:27 PM
Hi VB, I am using SMF 1.10, how can I get the total amount of hits? I tried this code, but it only outputs the nr of links, and not hits:

function template_linkhits($output_method = 'echo')
{
   global $db_prefix, $txt, $scripturl, $modSettings;

   $totals = array(
      'members' => $modSettings['totalMembers'],
      'posts' => $modSettings['totalMessages'],
      'topics' => $modSettings['totalTopics']
   );

   $result = db_query("
      SELECT COUNT(t.hits) as total
      FROM {$db_prefix}links as t", __FILE__, __LINE__);
   list ($totals['linkhits']) = mysql_fetch_row($result);
   mysql_free_result($result);

   if ($output_method != 'echo')
      return $totals;

   echo 'Totaal aantal hits: ', $totals['linkhits'], '.';
}
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Tulumer on February 20, 2010, 01:32:58 PM

Is there somewhere you can see a list of the current links available for download? 
I'd rather not do the install if the links aren't really compatible with my site.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on February 20, 2010, 01:37:18 PM
No but it works fine with SMF 1.1.x and SMF 2.0.x
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Kindred on February 20, 2010, 04:48:31 PM
Quote from: Tulumer on February 20, 2010, 01:32:58 PM

Is there somewhere you can see a list of the current links available for download? 
I'd rather not do the install if the links aren't really compatible with my site.

???   This mod does not install any links. It installed a feature for your board to allow people to add links in a link directory on your board
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Angelotus on February 20, 2010, 06:19:35 PM
Quote from: Angelotus on February 06, 2010, 07:04:27 PM
Hi VB, I am using SMF 1.10, how can I get the total amount of hits? I tried this code, but it only outputs the nr of links, and not hits:

function template_linkhits($output_method = 'echo')
{
   global $db_prefix, $txt, $scripturl, $modSettings;

   $totals = array(
      'members' => $modSettings['totalMembers'],
      'posts' => $modSettings['totalMessages'],
      'topics' => $modSettings['totalTopics']
   );

   $result = db_query("
      SELECT COUNT(t.hits) as total
      FROM {$db_prefix}links as t", __FILE__, __LINE__);
   list ($totals['linkhits']) = mysql_fetch_row($result);
   mysql_free_result($result);

   if ($output_method != 'echo')
      return $totals;

   echo 'Totaal aantal hits: ', $totals['linkhits'], '.';
}


Any ideas on this?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on February 20, 2010, 06:41:31 PM
Just remove the COUNT() you don't need it just t.hits
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Angelotus on February 21, 2010, 07:42:39 AM
I did tried that, but it only gives my the nr of hits of the first row. Not from all the rows as a total...
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Kindred on February 21, 2010, 08:14:03 AM
right...  because your code as written is only selecting one row from one column....  you need to place the t.hits into an array and then do a  foreach to read it back out.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: Angelotus on February 21, 2010, 11:54:57 AM
a thanks! Will do that!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: petesky on March 01, 2010, 01:52:41 PM
HI vbgamer !

Just found your LINK mod which is fine but i have linktree navigation twice. Same error as in downloads but i did not remeber what to modfy.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on March 01, 2010, 02:10:58 PM
Remove theme_linktree from the templates for SMF 2.0 will get that fixed thanks!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on March 01, 2010, 02:15:16 PM
Posted an update to fix the duplicate linktree for SMF 2.0
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: petesky on March 01, 2010, 02:17:29 PM
OK fine thanks. If there are no more changes i'll use it as it is. Is there a pro version available ?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: petesky on March 01, 2010, 03:10:45 PM
Btw. which file to edit for this error ?


8: Undefined index: smflinks_menu
Filter hinzufügen: Nur Fehler von dieser Datei zeigen
Datei: C:/www/docs/user/nls/Sources/Subs.php
Zeile: 4156
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on March 01, 2010, 03:37:56 PM
Missingn language file entry in your modifications.*.php file
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: petesky on March 01, 2010, 03:42:26 PM
OK and one thing, Global Moderator cannot edit links even i set it in Permissions of SMF AND category persmissions ?!
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on March 01, 2010, 03:55:34 PM
Correct only members them selves can edit links i think. Unless they have manage links permission
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: petesky on March 01, 2010, 10:35:16 PM
Bute Global Mod cannot edit his own links ?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on March 01, 2010, 10:38:47 PM
They can if they have permissions set.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: petesky on March 01, 2010, 10:48:08 PM
I have set to yes:

View Links Page     
Add Links    
Edit Links    
Delete Links    
Links Auto Approved    
Rate Links

and to NO:
Manage Categories    
Approve Links    

and User has no Option right next to his name. Also when setting category permission i have no options right beside the name to edit/delete whatever. Only admin can do this.
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: petesky on March 04, 2010, 11:10:36 AM
Is there any news about ? Global Mod still cannot edit his own links - there is only UN APPROVE but no EDIT LINK. Where to set rights ?
Title: Re: SMF Links (2.1.1 Released with SMF 2.0 RC2 Support!)
Post by: vbgamer45 on March 04, 2010, 11:49:00 AM
Haven't any time to look at this maybe in a couple weeks.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on March 08, 2010, 07:08:29 PM
Updated for SMF 2.0 RC3!
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: Farjo on March 09, 2010, 04:40:53 PM
Thank you, this package is very useful to us and works well  :)

I wonder if you know of this issue: when the mod adds the Links menu item it changes the 'mlist' code line such that the leading tabs are missing. "So what" you might say, the Members link still appears. However, other mods that look for:
'mlist' => array(
cannot find this line, a the code now looks like:
'mlist' => array(

This affects for example Aeva Media which returns an error on install. Please could this be resolved so that the SMF Links mod leaves the subs file 'tidy' so that other mods can install correctly, thanks.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: cryptic3 on March 11, 2010, 10:56:14 AM
I get this error when trying too install

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
3. Execute Modification ./Themes/default/languages/Who.english.php Test successful
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Themes/default/index.template.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test failed  
7. Execute Modification ./Sources/Subs.php Test successful
8. Extract File ./Sources/Links.php 
9. Extract File ./Themes/default/Links.template.php 
10. Extract File ./Themes/default/languages/Links.english.php 
11. Extract File ./Themes/default/languages/Links.english-utf8.php 
12. Execute Code linksql.php 


Any ideas please?
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on March 11, 2010, 11:11:58 AM
Install it manually would be the next thing to try for that one errror after you use the package manager.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: cryptic3 on March 11, 2010, 11:19:09 AM
Not sure I am that clever yet  :)

Have you got time for a walk through please?

Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on March 11, 2010, 11:24:13 AM
Isn't this basically the affiliates, I mean they both look like they do the exact same thing!
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: petesky on March 11, 2010, 11:26:35 AM
REMINDER: Global Mod still cannot edit his own links - there is only UN APPROVE but no EDIT LINK.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on March 11, 2010, 11:29:18 AM
Please try to be a little patient, he has A LOT OF MODS to take care of! I have to wait always for my questions, sometimes wait 2 weeks!
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: petesky on March 11, 2010, 11:40:47 AM
Sure Sure - it was an simple reminder ^^
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: Kindred on March 11, 2010, 12:00:07 PM
KC,

I consider this different from Affiliates.

Affiliates links have a banner and you expect a link-back.
This is just a link directory listing, for the most part...

(I use both, on my sites)
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on March 11, 2010, 12:15:26 PM
I will likely use the affiliates, and a board to post your forum/site in for that type of thing... (going to work on school assignment now)
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on March 12, 2010, 01:30:04 AM
This is one of first mods I made plan on adding more to it one day lol.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: petesky on March 13, 2010, 05:58:31 AM
Quote from: vbgamer45 on March 12, 2010, 01:30:04 AM
This is one of first mods I made plan on adding more to it one day lol.

..and don't forget to check for EDIT OWN LINKS for each member which doesn't work at the moment :-)

Title: SMF Links cannot add or update descriptions
Post by: jay.clark on March 15, 2010, 01:02:53 PM
This problem cropped up at some point and I think it may be related to doing an upgrade from smf 1.11 to 2.0 RC2.

When I add a new category or sub-category to the links everything proceeds normally.

However the description does not display, for admin or users.

When I go back to the same entry and do an edit, whatever text I put into the description field is no longer there.  Seems like the save for description is not working so the text never gets into the db.

So far I have tried uninstall/reinstall with no success, I was missing the englishutf8 language file so I installed that and tried the install uninstall again, still no luck.

Checking I found that the 2.2 release was available, so uninstalled 2.1, uploaded 2.2 and installed it, still no success.

Is anyone having similar problems ? Is there a fix ?  Where should I look next for the answer?

jayr

Update

Thinking I might find a clue, I checked out the instruction for doing a manual install for RC2.

I found that the file linksql2.php was missing from the root directory of the forum installation.

Tried uploading it and linksql.php to my /forums directory, changed permissions to 777 and tried editing a description again.

No luck, descriptions still do not display and apparently are not getting saved when I hit the edit button, nothing shows up in the error log either.

I checked the other files and they all appear to be in the correct place in /themes/default as well

any suggestions of what to try next gratefully appreciated
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: TheListener on March 17, 2010, 04:35:33 PM
Am looking at this mod as a possible addition to the forum.

Is it possible for jjust the actual links to be shown?
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: jay.clark on March 19, 2010, 09:11:39 PM
Quote from: Spuds on March 19, 2010, 08:58:38 PM

I had the same problem when adding a description to a category, I found that you need to toggle out of WYSIWYG editor when adding the description (and editing) for it to save.  The links descriptions don't have the full editor so seem to work just fine.

Thanks, that did the trick for me

jayr
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: dnuttall on March 21, 2010, 08:05:44 AM
Is it possible to provide a "Search SMF Links" option?

It seems to be working nicely with 1.1.11 :)

Thanks for the mod.

Dave Nuttall
San Antonio, TX
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on March 21, 2010, 01:49:53 PM
Good feature request for a later date.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: forfun on March 21, 2010, 03:38:35 PM
Hi Eveyone,
I already post a similar message on the other forum, but there is no help, so I have to post here.
I really like the script, but I am running into a problem that I don't know how to fix it.
After adding more sub-categories, the table under the main cat expanding horizontally too wide.
Please help.
Thanks MUCH in advanced
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on March 21, 2010, 03:54:34 PM
I believe that's a known issue no fix for it currently.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: forfun on March 21, 2010, 04:16:06 PM
Thanks for the quick reply.
This is really surprised me regarding this error.
Thanks again.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: petesky on March 22, 2010, 04:36:18 AM
REMINDER: EDIT OWN LINKS
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: forfun on March 22, 2010, 05:34:19 AM
What do you mean?
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: petesky on March 22, 2010, 06:16:59 AM
If you try to edit links you will see, that only admin can do. Every other cannot edit their own links; they only can submit.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: forfun on March 22, 2010, 05:43:58 PM
What the heck are you talking about?  ;D
I am asking for help about displaying error, there is nothing wrong about link or permission.
Am I missing something here?  ;D
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on March 22, 2010, 10:20:26 PM
Update!
2.1.3
!Fixed Editor issue in SMF 2.0 for categories/links
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: petesky on March 23, 2010, 01:31:20 AM
I'm talking about:

1) Only admin can edit links
2) Global Mod can only unapprove links but not edit even i set rights in rights management
3) Members incl. can only submit links but not edit their own links.

That's all
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on March 23, 2010, 01:34:54 AM
Permissions should set those options. I looked at the code it should be ok.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: petesky on March 23, 2010, 01:38:04 AM
And how can Global Admin edit other's links ?
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on March 23, 2010, 01:39:12 AM
They need manage links permission I believe.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: MarkoKg on April 02, 2010, 08:25:42 AM
Hello.
I installed this mod at girlyman theme, but the button isnt like others in manu, so i was wondering if someone can fix this for me.
Attached screenshot, and index.template.php
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on April 02, 2010, 09:25:00 AM
I would find another menu item from that theme  and compare it the links menu button and make the changes that are needed.
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: MarkoKg on April 02, 2010, 09:37:11 AM
i try that, but the code for this buttton and for others is quite the same.
Please take a look at my index.tempalte atttached before.

Regards.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on April 03, 2010, 01:07:49 PM
New update
2.2
+Updated some of style for SMF 2.0 curve
+Added permissions installed to view by default.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: Ramón Cutanda on April 04, 2010, 03:29:46 AM
Hi,

Attached you will find the Spanish files for SMF Links 2.2

Next you'll find the strings for the installation file.

Regards,

<file name="$languagedir/Modifications.spanish_es-utf8.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[?>]]></search>
        <add><![CDATA[
// Begin SMF Links Text Strings
$txt['smflinks_menu'] = 'Enlaces';
$txt['smflinks_admin'] = 'Configuración Enlaces';
$txt['smflinks_linkssettings'] = 'Ajustes Enlaces';
$txt['smflinks_managecats'] =  'Administrar Categorías';
$txt['smflinks_catpermlist'] = 'Lista de Permisos de Categoría';
$txt['smflinks_approvelinks'] = 'Aprobar Enlaces';


$txt['permissiongroup_simple_smflinks'] = 'Enlaces SMF';
$txt['permissiongroup_smflinks'] = 'Enlaces SMF';
$txt['permissionname_view_smflinks'] = 'Ver Página de Enlaces';
$txt['permissionhelp_view_smflinks'] = 'Define si el usuario puede ver la página de enlaces.';
$txt['cannot_view_smflinks'] = 'No tienes permiso para ver la página de enlaces.';
$txt['permissionname_add_links'] = 'Añadir Enlaces';
$txt['permissionhelp_add_links'] = 'Si el usuario tiene permiso para enviar enlaces';
$txt['cannot_add_links'] = 'No puedes añadir enlaces.';
$txt['permissionname_edit_links'] = 'Editar Enlaces';
$txt['permissionhelp_edit_links'] = 'Si el usuario puede editar enlaces';
$txt['cannot_edit_links'] = 'No tienes permiso para editar enlaces.';
$txt['permissionname_delete_links'] = 'Borrar enlaces';
$txt['permissionhelp_delete_links'] = 'Si el usuario tiene permiso para borrar enlaces';
$txt['cannot_delete_links'] = 'No tienes permiso para borrar enlaces.';
$txt['permissionname_approve_links'] = 'Aprobar enlaces';
$txt['permissionhelp_approve_links'] = 'Si el usuario podrá aprobar enlaces';
$txt['cannot_approve_links'] = 'No puedes aprobar enlaces.';
$txt['permissionname_links_auto_approve'] = 'Enlaces Auto-Aprobados';
$txt['permissionhelp_links_auto_approve'] = 'Si los enlaces de estos usuarios se aprobarán automáticamente cuando los envíe.';
$txt['permissionname_rate_links'] = 'Valorar Enlaces';
$txt['permissionhelp_rate_links'] = 'Si el usuario tiene permiso para valorar enlaces';
$txt['cannot_rate_links'] = 'No tienes permiso para valorar enlaces.';
$txt['permissionname_links_manage_cat'] = 'Administrar Categorías';
$txt['permissionhelp_links_manage_cat'] = 'El usuario puede añadir/eliminar/editar/reordar categorías';
$txt['cannot_links_manage_cat'] = 'No tienes permiso para administrar categorías.';

$txt['permissionname_delete_links_own'] = 'Propios Enlaces';
$txt['permissionname_delete_links_any'] = 'Cualquier Enlace';
$txt['permissionname_edit_links_own'] = 'Propios Enlaces';
$txt['permissionname_edit_links_any'] = 'Cualquier Enlace';
//END SMF Links Strings           
]]></add>
    </operation>
</file>

<file name="$languagedir/Who.spanish_es-utf8.php">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
//Begin SMF Links
$txt['whoall_links'] = 'Viendo los <a href="' . $scripturl . '?action=links">' . $txt['smflinks_menu'] . '</a>';
//END SMF Links Strings           
]]></add>
    </operation>
</file>

<file name="$languagedir/Modifications.spanish_es.php" error="skip">
    <operation error="ignore">
        <search position="after"><![CDATA[?>]]></search>
        <add><![CDATA[
// Begin SMF Links Text Strings
$txt['smflinks_menu'] = 'Enlaces';
$txt['smflinks_admin'] = 'Configuraci&oacute;n Enlaces';
$txt['smflinks_linkssettings'] = 'Ajustes Enlaces';
$txt['smflinks_managecats'] =  'Administrar Categor&iacute;as';
$txt['smflinks_catpermlist'] = 'Lista de Permisos de Categor&iacute;a';
$txt['smflinks_approvelinks'] = 'Aprobar Enlaces';


$txt['permissiongroup_simple_smflinks'] = 'Enlaces SMF';
$txt['permissiongroup_smflinks'] = 'Enlaces SMF';
$txt['permissionname_view_smflinks'] = 'Ver P&aacute;gina de Enlaces';
$txt['permissionhelp_view_smflinks'] = 'Define si el usuario puede ver la p&aacute;gina de enlaces.';
$txt['cannot_view_smflinks'] = 'No tienes permiso para ver la p&aacute;gina de enlaces.';
$txt['permissionname_add_links'] = 'A&ntilde;adir Enlaces';
$txt['permissionhelp_add_links'] = 'Si el usuario tiene permiso para enviar enlaces';
$txt['cannot_add_links'] = 'No puedes a&ntilde;adir enlaces.';
$txt['permissionname_edit_links'] = 'Editar Enlaces';
$txt['permissionhelp_edit_links'] = 'Si el usuario puede editar enlaces';
$txt['cannot_edit_links'] = 'No tienes permiso para editar enlaces.';
$txt['permissionname_delete_links'] = 'Borrar enlaces';
$txt['permissionhelp_delete_links'] = 'Si el usuario tiene permiso para borrar enlaces';
$txt['cannot_delete_links'] = 'No tienes permiso para borrar enlaces.';
$txt['permissionname_approve_links'] = 'Aprobar enlaces';
$txt['permissionhelp_approve_links'] = 'Si el usuario podr&aacute; aprobar enlaces';
$txt['cannot_approve_links'] = 'No puedes aprobar enlaces.';
$txt['permissionname_links_auto_approve'] = 'Enlaces Auto-Aprobados';
$txt['permissionhelp_links_auto_approve'] = 'Si los enlaces de estos usuarios se aprobar&aacute;n autom&aacute;ticamente cuando los env&iacute;e.';
$txt['permissionname_rate_links'] = 'Valorar Enlaces';
$txt['permissionhelp_rate_links'] = 'Si el usuario tiene permiso para valorar enlaces';
$txt['cannot_rate_links'] = 'No tienes permiso para valorar enlaces.';
$txt['permissionname_links_manage_cat'] = 'Administrar Categor&iacute;as';
$txt['permissionhelp_links_manage_cat'] = 'El usuario puede a&ntilde;adir/eliminar/editar/reordar categor&iacute;as';
$txt['cannot_links_manage_cat'] = 'No tienes permiso para administrar categor&iacute;as.';

$txt['permissionname_delete_links_own'] = 'Propios Enlaces';
$txt['permissionname_delete_links_any'] = 'Cualquier Enlace';
$txt['permissionname_edit_links_own'] = 'Propios Enlaces';
$txt['permissionname_edit_links_any'] = 'Cualquier Enlace';
//END SMF Links Strings           
]]></add>
    </operation>
</file>

<file name="$languagedir/Who.spanish_es.php">
    <operation error="ignore">
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
//Begin SMF Links
$txt['whoall_links'] = 'Viendo los <a href="' . $scripturl . '?action=links">' . $txt['smflinks_menu'] . '</a>';
//END SMF Links Strings           
]]></add>
    </operation>
</file>
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on April 04, 2010, 10:00:38 AM
Thanks for the translation!
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: Ramón Cutanda on April 04, 2010, 12:25:51 PM
Hi,

Here come's a suggested feature.

In Download System it's possible to change the owner of an item. Would it be possible to  add the same feature in Links?

Thanks in advance.

Regards,
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on April 04, 2010, 01:42:47 PM
Maybe in the future.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: Ramón Cutanda on April 06, 2010, 11:20:37 AM
Another suggested feature (I hope not to bother you)

In Download System you can set a board so that everytime a download is added a message is automatically posted in that forum. It would be great to see that feature in SMF Links.

Thanks for reading.

Regards,
Title: Re: SMF Links (2.1.2 Released with SMF 2.0 RC3 Support!)
Post by: MarkoKg on April 07, 2010, 04:34:40 AM
Quote from: MarkoKg on April 02, 2010, 08:25:42 AM
Hello.
I installed this mod at girlyman theme, but the button isnt like others in manu, so i was wondering if someone can fix this for me.
Attached screenshot, and index.template.php
Anyone can help me with this pls?
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: Sabre™ on April 07, 2010, 05:02:43 AM
Try the attached :)
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: MarkoKg on April 07, 2010, 05:31:25 AM
Thanks Sabre, it works now. :)
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: milkdribbly on April 10, 2010, 02:25:12 PM
Has the member's ability to edit their own links been proven to work yet?  I updated on my forum but members are still not allowed to do anything besides view the links, even when permissions are set correctly. :(  I'm using v2.2 with RC3 installed.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on April 10, 2010, 02:27:18 PM
Haven't made any updates other than curve style
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: milkdribbly on April 10, 2010, 03:42:46 PM
I reinstalled it and it works now.  Weird. Thanks anyway.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: 7Spire on May 02, 2010, 10:43:38 AM
Feature Request: Would it be possible to display a thumbshots image for each website.

e.g.
http://open.thumbshots.org/image.aspx?url=http%3A%2F%2Fwww.simplemachines.org
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on May 02, 2010, 03:02:08 PM
Possible good idea to add later on.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: choloman05 on May 06, 2010, 10:00:14 AM
Anyone have a demo of this running on their site?
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: Ramón Cutanda on May 06, 2010, 10:41:25 AM
Have a look here (but I warn you, the site it's in Spanish)

http://www.videoedicion.org/foro/index.php?action=links

Regards,
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: Kindred on May 06, 2010, 11:51:39 AM
http://askawitchcommunity.org has this running
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on May 06, 2010, 11:55:00 AM
Thanks for the demo links!
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: choloman05 on May 06, 2010, 01:01:27 PM
Awesome, thanks guys.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: shin111 on May 11, 2010, 04:01:02 PM
It would be a very nice feature if you could use this to reserve links in your forum, i.e. block out all links posted except approved ones here, using bbcode.  ;D

That at least is what I am looking for right now!
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on May 11, 2010, 04:10:32 PM
Not part of this mod.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: shin111 on May 12, 2010, 10:50:35 AM
Any possibility of it in the future?
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on May 12, 2010, 11:08:30 AM
No
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: uniektekniek on June 10, 2010, 08:59:54 PM
i've just upgraded to RC3.. and seem to have lost the ability to set permissions for membergroups.. no one but admin can see the links at all.. there's no options to set general permissions for SMF links at all in the admin panel.. only thing close to it is the permissons by category.. but that doesnt really help if access is denied in general..

is there something im missing??
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on June 10, 2010, 09:42:49 PM
It should still be listed Under Admin -> Permissions then modify each group
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: uniektekniek on June 10, 2010, 10:08:11 PM
yeah i thought so.. there's literally nothing there though.. no SMF links options at all in admin > permissions.. im guessing i missed something with the manual install..
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on June 10, 2010, 10:10:41 PM
Yeah check Manage Permissions

And make sure do you clear cache in forum maintance too
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: uniektekniek on June 10, 2010, 10:24:03 PM
yeah no love at all.. i'll try reinstall and see how that goes.. cheers anyway..
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on June 10, 2010, 10:25:48 PM
Good luck!
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on June 18, 2010, 01:46:21 AM
I second last feature someone suggested even tho vB said no. Maybe a year from now...
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: irwin on June 23, 2010, 10:20:01 AM
hello .. sorry but how can i change the theme of your link directory... i need to change how these link are displayed.. can u tell me please where i have to change?
thank you..
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on June 23, 2010, 10:33:19 AM
Edit links.template.php
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on June 26, 2010, 10:50:43 AM
Minor Bugfix
!Fixed issue with MySQL 5.5 since it no longer supports the Type for create tables uses Engine instead
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: kassie on July 08, 2010, 10:43:34 PM
I'm running the latest version of SMF Links with SMF 1.1.11
Everything installed fine & I've set the permissions for global mods to add/edit/delete links in both areas, Admin -> Permissions & Category Permission List. Global mods can only 'add' links & nothing else in both default theme & the current theme I am using.
What have I done wrong?
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 09, 2010, 04:47:51 PM
I still have a question, a random links shower, with simpleportal and a block. I want to show between 1-5 random links each pageload, how to achieve this?
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: irwin on July 14, 2010, 07:06:05 AM
i need to ask if there is the possibility to add "x" last  link to my portal page with Simple portal. I can add custom php block, but the way written here inside is out of date and doesn't work good..
thank you
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 14, 2010, 12:10:19 PM
You could just query the smf_links table and get the last link id and then format it how you wish.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: kassie on July 15, 2010, 10:35:20 PM
vbgamer45, can you please help me please.

Quote from: kassie on July 08, 2010, 10:43:34 PM
I'm running the latest version of SMF Links with SMF 1.1.11
Everything installed fine & I've set the permissions for global mods to add/edit/delete links in both areas, Admin -> Permissions & Category Permission List. Global mods can only 'add' links & nothing else in both default theme & the current theme I am using.
What have I done wrong?
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 15, 2010, 10:51:51 PM
Only members can edit and delete their own links.

Admins can do anything.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: irwin on July 16, 2010, 02:13:22 AM
sorry, another little question: i have a category only for "premium" member - and only who is inside this category can see the link. Now all is right.. until: 'Top Five Visited Links' because the link are visible there also for the guest...
but the guest can't choose ths link.. mybe is only  little mistake because in the Permission list they don't have this choosen.

Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: Abavagada on July 17, 2010, 02:44:06 PM
For those users that are running this under 1.11 and still can't allow users to edit and delete their own links, I suggest making this change to the Sources/ManagePermissions.php file:

Change:
'smflinks' => array(
            'view_smflinks' => false,
            'add_links' => false,
            'edit_links' => false,
            'delete_links' => false,
            'links_manage_cat' => false,
            'approve_links' => false,
            'links_auto_approve' => false,
            'rate_links' => false,
         ),

To:

'smflinks' => array(
            'view_smflinks' => false,
            'add_links' => false,
            'edit_links' => array (
               'edit_links_any' => true,
               'edit_links_own' => false
            ),
            'delete_links' => array (
               'delete_links_any' => true,
               'delete_links_own' => false
            ),
            'links_manage_cat' => false,
            'approve_links' => false,
            'links_auto_approve' => false,
            'rate_links' => false,
         ),

Then try changing the permissions in the normal forum permissions area, by groups.

Also, if anyone wants to see it running on my site (which is still under construction):
http://www.parleremo.org/forum/index.php?action=links

However, I have hacked mine a bit for appearances and the thumbnails.

Hope this helps someone.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: kassie on July 17, 2010, 08:07:07 PM
Members can't edit or delete their own links just as I wanted global mods to edit & delete there own links.
I've changed the permissions in both places & its still not working. I've uninstalled  & reinstalled .... still no good.

Quote from: vbgamer45 on July 15, 2010, 10:51:51 PM
Only members can edit and delete their own links.

Admins can do anything.
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: 1legspider on July 19, 2010, 02:41:41 PM
Hi Great Mod from what I have seen so far (have only been able to partially install it correctly)

In Installation, Having this problem when attempting to do this on a new 1.1.11 Install. Have downloaded package afresh and installed/uninstalled a number of times to no avail...

Can You help?

Template Parse Error!

There was a problem loading the /Themes/default/languages/Modifications.english-utf8.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_VARIABLE in .../Themes/default/languages/Modifications.english-utf8.php on line 3
1: <?php// Version: 1.1; Modifications//Begin SMF Links Text Strings$txt['smflinks_menu'] = 'Links';$txt['smflinks_admin'] = 'Links Configuration';$txt['smflinks_linkssettings'] = 'Links Settings';$txt['smflinks_managecats'] =  'Manage Categories';$txt['smflinks_catpermlist'] = 'Category Permission List';$txt['smflinks_approvelinks'] = 'Approve Links';$txt['permissiongroup_smflinks'] = 'SMF Links';$txt['permissionname_view_smflinks'] = 'View Links Page';$txt['permissionhelp_view_smflinks'] = 'Sets if the user can view the links page.';$txt['cannot_view_smflinks'] = 'You can not view the links page.';$txt['permissionname_add_links'] = 'Add Links';$txt['permissionhelp_add_links'] = 'If the user is allowed to submit links';$txt['cannot_add_links'] = 'You can not add links.';$txt['permissionname_edit_links'] = 'Edit Links';$txt['permissionhelp_edit_links'] = 'If the user is allowed to edit links';$txt['cannot_edit_links'] = 'You can not edit links.';$txt['permissionname_delete_links'] = 'Delete Links';$txt['permissionhelp_delete_links'] = 'If the user is allowed to delete links';$txt['cannot_delete_links'] = 'You can not delete links.';$txt['permissionname_approve_links'] = 'Approve Links';$txt['permissionhelp_approve_links'] = 'If the user is allowed to approve links';$txt['cannot_approve_links'] = 'You can not approve links.';$txt['permissionname_links_auto_approve'] = 'Links Auto Approved';$txt['permissionhelp_links_auto_approve'] = 'If the users links are auto approved when submitted.';$txt['permissionname_rate_links'] = 'Rate Links';$txt['permissionhelp_rate_links'] = 'If the user is allowed to rate links';$txt['cannot_rate_links'] = 'You are not allowed to rate links.';$txt['permissionname_links_manage_cat'] = 'Manage Categories';$txt['permissionhelp_links_manage_cat'] = 'User can add/remove/edit/reorder categories';$txt['cannot_links_manage_cat'] = 'You are not allowed to manage categories.';$txt['permissionname_delete_links_own'] = 'Own Link';$txt['permissionname_delete_links_any'] = 'Any Link';$txt['permissionname_edit_links_own'] = 'Own Link';$txt['permissionname_edit_links_any'] = 'Any Link';//END SMF Links Strings   
2: //Begin SMF Links Text Strings
3: $txt['smflinks_menu'] = 'Links';
4: $txt['smflinks_admin'] = 'Links Configuration';
5:
6:
7: $txt['permissiongroup_smflinks'] = 'SMF Links';
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 19, 2010, 03:03:00 PM
Attach the file isntead
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: 1legspider on July 19, 2010, 03:42:30 PM
Thank you vbgamer45 for your prompt response,

Coincidently had just found a corrupted Modifications.english-utf8.php file which when replaced, worked just fine...

Have made a small Donation today for great work  ;)

Regards,
1leg, Gerald
Title: Re: SMF Links (2.2 Released with SMF 2.0 RC3 Support!)
Post by: Spuds on July 19, 2010, 04:36:21 PM
Quote from: Spuds on July 16, 2010, 10:06:41 PM
When you have a multi page list of links, and you do a sort by column, for example title, the sort order is not passed to the second page (ie the page links are not built to respect the current sort order)

so for example, after sorting on title on the first page you get
index.php?action=links;cat=1;start=0;sort=title;sorto=ASC

but the page 2 link will be
index.php?action=links;cat=1;start=15

Here is my fix for 2RC3, in the Links2.template.php file (themes/default) 

find
$context['page_index'] = constructPageIndex($scripturl . '?action=links;cat=' . $cat, $_REQUEST['start'], $total, $modSettings['smflinks_setlinksperpage']);


replace
$context['page_index'] = constructPageIndex($scripturl . '?action=links;cat=' . $cat . (isset($_REQUEST['sort']) ? ';sort=' . $_REQUEST['sort'] : '') . (isset($_REQUEST['sorto']) ? ';sorto=' . $_REQUEST['sorto'] : ''), $_REQUEST['start'] , $total, $modSettings['smflinks_setlinksperpage']);


(Same fix should work on 1.1 but the file would be Links.template.php and I have only tested this on 2.0)

Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 20, 2010, 08:39:57 PM
Thanks spud for the fix.
Can't believe the permission one went for so long posted a new update to fix those two issues

2.3
!Fixed permission issue for edit/delete links now has own and any
!Fixed issue with lost sort order on paging
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 24, 2010, 01:54:44 PM
what about a php block to randomly show one (or 3) links?

i have asked before and need this!
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 24, 2010, 03:16:55 PM
Can be done just query the smf_links table
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 25, 2010, 02:18:15 AM
dont know to query it with php, all i know is "echo" and "include".

i have no prefix for smf tables its main site so "links" table?
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 25, 2010, 09:48:10 AM
Yeah so it is the main links table. It really is pretty easy to do. Just use the smf query functoin and you can fetch the row and display it with echo
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 26, 2010, 04:08:15 PM
What is the query code in PHP? I dunno how. I only know echo and include file code. That is all
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 26, 2010, 04:10:59 PM
How I started I looked at other mods and saw how they worked then made my own. There are only a handful of php statements that really need to be known
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 26, 2010, 04:13:37 PM
Thanks for the help, not!


<?php
echo ("links.sql");
?>



Is that part of it?
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 26, 2010, 04:17:27 PM
That's php code but that doesn't do much
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 26, 2010, 04:20:16 PM
Since I don't know how SQL and PHP work except to store DB info, I can't echo out that kind of information.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 26, 2010, 05:28:08 PM
hello? just the one command will do. Once this happens I will most likely never return to this topic!

EDIT:
Nevermind, I asked a question on www.vark.com

EDIT 2:
The answer wasn't very helpful.
Quote from: Mathias K; http://vark.com/channels/24640329
Try reading up on mysql and PHP. It's really easy to just select stuff from a database and display 'm at random. Check out php.net, forums.devshed.com (go to php section) or google for random row from mysql

I am too busy to research it!
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on July 26, 2010, 06:34:17 PM
I don't have time either
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 26, 2010, 06:46:16 PM
don't worry labradoodle helped. he happened to log onto google talk and ask how I was. he is making it, and it has his copyright, but I will post a link to a txt file here for others, is that ok?
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on July 28, 2010, 11:57:05 PM
Hmm... he almost finished but had to do client stuff.. I am asking if he is done.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: The-One-Neo on July 29, 2010, 05:42:52 AM
The Nice Mod! Great work...
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: DEEPSNUYB on August 20, 2010, 02:33:09 AM
I manually installed this mod and it is not working.

1.  After uploading linksql2.php and executing it, I get a blank white screen.  I check my database and the tables were not created.

I went and removed the coding until my site came back up.

The coding for subs.php was removed and it brought my site back up.

version rc3.  latest 5.x mysql

Any idea what I may have missed and why this file did not execute the creation of the tables in my database.

I have manually installed all my mods with no problems.

I'm a vbgamer45 whore, i use only his mods

ad management
smf gallery
smf trader
simple audio video embed
contact page
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on August 20, 2010, 12:45:42 PM
Did you upload linksql2.php  to the root directory of your forum? And then run it from the browser I would try one more time

The tables should start with smf_links
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: DEEPSNUYB on August 20, 2010, 12:49:05 PM
Quote from: vbgamer45 on August 20, 2010, 12:45:42 PM
Did you upload linksql2.php  to the root directory of your forum? And then run it from the browser I would try one more time

The tables should start with smf_links

Yes sir.  I tried that.  I then opened up the file that was uploaded to the root directory to see what tables should have been created.  They were not created when I checked the database.

I tried to run the file under Firefox, latest version, and IE, latest version, both three or four times each.

I only use your mods and all the mods I use are manually edited in.  I never use that package manager.  I like to see what is being changed so I can LEARN for myself later on and fix problems if they arise.

I believe everyone should manually hack their boards and disregard the package manager.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on August 20, 2010, 12:52:57 PM
Hmm open up linkssql2.php
Do a find and replace
Find

Engine=MyISAM

Replace with


Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: DEEPSNUYB on August 20, 2010, 12:56:23 PM
Quote from: vbgamer45 on August 20, 2010, 12:52:57 PM
Hmm open up linkssql2.php
Do a find and replace
Find

Engine=MyISAM

Replace with




Replace with what, it's blank.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on August 20, 2010, 12:57:20 PM
Exactly replace with nothing just remove it.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: DEEPSNUYB on August 20, 2010, 12:58:04 PM
I will try that and report back to you when I get it done.  Thanks.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: DEEPSNUYB on August 20, 2010, 04:41:44 PM
Just a quick question first.  What the reason why I got the blank screen is because the tables were not there?  I would think the board will still show since the mod wasn't activated.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on August 20, 2010, 04:46:13 PM
The database table installer never shows any completion information.
I still think this was called by an old versoin of mysql. Check your forum's errors log too
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: DEEPSNUYB on August 21, 2010, 01:31:41 AM
It worked.  I'm glad to be a vbgamer45 whore slut.  I use only your mods.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on August 21, 2010, 09:40:14 AM
Thanks glad you enjoy them!
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: DEEPSNUYB on August 22, 2010, 12:02:23 AM
Yes and thanks for making that simple video mod.  AVEA video mod doesn't have anything on you.  YOU know it, I know it, WE all know it here.
They don't like it then we can start a war.  They better recognize and realize.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Kindred on August 22, 2010, 08:22:55 AM
let's not get into that, please. Such attacks/suggestions are not appropriate and have already resulted in one ban. Let's not add you...
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: DEEPSNUYB on August 22, 2010, 10:30:22 PM
wow i wanna have mod powa like you one day
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: netshaq on October 19, 2010, 03:03:35 PM
SMF Links is a great mod but when I add links to the catagories it doesn't have a way to put them in alphabetical order unless I am missing something ??

Thanks
Steve

RUNNING 1.1.11

Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on October 19, 2010, 03:10:52 PM
No auto sorting is built in yet.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on November 03, 2010, 10:39:26 AM
When will this have support for RC4? I am waiting until my main modifications (the important ones) have RC4 support before I upgrade. This is holding me back.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on November 03, 2010, 11:34:06 AM
Updated for SMF 2.0 RC4
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: KensonPlays on November 03, 2010, 11:36:37 AM
thank you! Now I am only 1-2 mods away from updating! (Testing them on test installs to see if they work.)
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: mcmedal001 on December 15, 2010, 11:35:38 AM
Good day, i'd like to add adsense to the top of every page in smf links. I don't know much about coding. Please, where do i edit in the template? Thank you
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on December 15, 2010, 11:38:59 AM
Inside themes/default/links.template.php that is best place to look
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: mcmedal001 on December 15, 2010, 11:56:24 AM
Yes, i know but i need the line in the code to edit so that i don't crash the site.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Baloch on December 18, 2010, 10:49:31 PM
not supporting UNICODE (Arabic / Persian / Urdu / Balochi ) ?
http://baask.com/diwwan/index.php?action=links
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on December 18, 2010, 10:51:32 PM
You have to convert the tables to uft8 I belive.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Baloch on December 19, 2010, 03:21:13 AM
Quote from: vbgamer45 on December 18, 2010, 10:51:32 PM
You have to convert the tables to uft8 I belive.

Which tables and how?
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on December 19, 2010, 07:13:02 AM
The links table and links cat table using phpmyadmin under the operations tab
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Vincent Volmer on January 10, 2011, 04:52:04 PM
Hello VB,

Are the links and text crawled by search engines?

Thanks,
Vincent
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on January 10, 2011, 04:56:55 PM
Links no they are cloaked
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Vincent Volmer on January 10, 2011, 05:03:45 PM
I'm sorry, but I don't know exactly what you mean.

If I understand you right, this mod is not suitable for creating backlinks for SEO?

Thanks,
Vincent
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Kindred on January 10, 2011, 05:06:59 PM
that would be an affiliates mod....   this is for creating a list of links that would interest your users.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: vbgamer45 on January 10, 2011, 05:07:58 PM
Correct does not pass on seo benefits to the link
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Vincent Volmer on January 10, 2011, 05:09:20 PM
Okay, thanks!

Vincent
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Baloch on January 12, 2011, 11:35:34 PM
Quote from: vbgamer45 on December 19, 2010, 07:13:02 AM
The links table and links cat table using phpmyadmin under the operations tab

Thanks, its working now.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: Powerbob on February 13, 2011, 07:13:23 AM
The update to RC5 is not working :o

Package is corrupt!
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on February 13, 2011, 12:38:36 PM
Quote from: Powerbob on February 13, 2011, 07:13:23 AM
The update to RC5 is not working :o

Package is corrupt!
Fixed
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: Kike_GL on February 18, 2011, 10:09:40 AM
Will be able to sort and search links ? I can not find where.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on February 18, 2011, 10:23:31 AM
Not currently built in.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: woodsters on February 24, 2011, 04:48:40 PM
I can creat links without any problem, but I can not find the links anywhere. How does one get to them?
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on February 24, 2011, 04:56:20 PM
goto www.site.com/index.php?action=links
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: Abavagada on February 26, 2011, 09:01:26 AM
Quote from: Kike_GL on February 18, 2011, 10:09:40 AM
Will be able to sort and search links ? I can not find where.


I've installed both SMF Links and SMF Downloads by vbgamer. If you can do a little programming, it's not hard to use the same basic script from SMF Downloads in SMF Links. I did that on my own site, as well as some extra customization (like my stuff is language related, so I added links fields for both systems).

Both are excellent mods.

Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on February 26, 2011, 09:30:01 AM
Thanks yeah I use the same core for most of my  mods SMF Links was the older of the two while SMF Downloads was newer so has better code/features etc.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: Abavagada on February 27, 2011, 07:53:12 AM
Quote from: vbgamer45 on February 26, 2011, 09:30:01 AM
Thanks yeah I use the same core for most of my  mods SMF Links was the older of the two while SMF Downloads was newer so has better code/features etc.

If you are interested, these are how I have used these mods in my site:
Links:
http://www.parleremo.org/forum/index.php?action=links

Downloads: (I call them "file sharing")
http://www.parleremo.org/forum/index.php?action=downloads


Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: !RFAN on March 05, 2011, 01:12:02 AM
can we randomize the links??
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on March 05, 2011, 08:33:30 AM
How so? Display in random order?
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: !RFAN on March 05, 2011, 08:51:22 AM
Yup, whenever page is loaded the links should be in random order.

Is that possible?
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on March 05, 2011, 03:04:02 PM
Possible yes you will need to change sql to use ORDER BY RND()
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: !RFAN on March 05, 2011, 05:55:07 PM
okay i'll try :)
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: Baloch on March 05, 2011, 10:35:47 PM
I was already running 2.3 for SMF 2.0 RC 4, should I again download and install this for SMF 2.0 RC5?
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on March 05, 2011, 10:43:52 PM
If you are upgrading to RC5 you will need the new version
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: Baloch on March 06, 2011, 12:21:12 AM
But the link mod version is same in SMF MOD site.
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on March 06, 2011, 12:29:25 AM
Yes since nothing changed but RC5 support
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on April 01, 2011, 09:04:13 PM
2.3.1
!Fixed link tree to work with subcategories
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on April 02, 2011, 01:32:57 PM
Another update
2.3.2
+Added counting of unlimited depth subcategories link totals
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: WhiteEagle on April 30, 2011, 08:58:04 PM
This is just what I was looking for! I would like help to create a block for SimplePortal to display the latest links (unless there's a RSS feed?).


Edit: Thanks to Underdog, there's now a PHP portal block for this mod. Go here (http://askusaquestion.net/index.php/topic,2679.0.html) to get it, and if you want to see it in action, just visit Leet Link. Thanks again Underdog!
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: forfun on May 29, 2011, 05:09:47 PM
Quote from: vbgamer45 on April 02, 2011, 01:32:57 PM
Another update
2.3.2
+Added counting of unlimited depth subcategories link totals

I am using SMF Links v. 2.3.2, and I am running into a little problem.
I am also using SMF 2.0 RC5 default theme.

If I "checked" the box "Counts child categories link totals", then it will mess up the frame.
As shown in attached pic 1, the child category links are running outside of the screen to the right.

If I "unchecked" the box "Counts child categories link totals", then everything is fine, EXCEPT it does not count the child category links, which is NOT looked good, as it shows 0, while there are many under there.
As shown in attached pic 2, the first to Titles have shown 0 links

Please help to fix this error.
Thanks much in advanced
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on May 29, 2011, 07:42:45 PM
You have many many sub categorys so they are expanding to multiple lines
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: forfun on May 30, 2011, 12:42:31 AM
Quote from: vbgamer45 on May 29, 2011, 07:42:45 PM
You have many many sub categorys so they are expanding to multiple lines
I don't expect to get this answer from you, but can you make the text/links "wrap" inside the width of this cell (sub cat)?
Will this be the same with the PRO version?
I wish I know more about PHP. :(
Anyone else can help me.
Thanks much in advanced.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on May 30, 2011, 01:00:36 AM
Not sure about that in this case would have to think about but not sure if there is a good way to do it.
There is no pro version of this mod.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: forfun on May 30, 2011, 07:26:46 AM
Thanks much for your effort!
I hope you will find some time to correct this error.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: forfun on May 30, 2011, 06:18:51 PM
Quote from: vbgamer45 on May 29, 2011, 07:42:45 PM
You have many many sub categorys so they are expanding to multiple lines
Here is the example of this site, right here, which has many sub cat.
Would you take a look for something similar like this (see attached image)?
Thanks much in advanced
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: Witchboard on June 06, 2011, 10:27:43 AM
This is a great mod.  Thanks for providing it to the community.  I do have a permissions question though.  I'm wanting to only allow members to add links to a specific category.  The deny permissions work fine, but when I allow add link to my members, the option is not there.  This is in the permissions of SMF Links.

If I allow permissions to add links in the forum permissions, it allows them to add links to any category, which is not what I want.  I don't want to have to deny them permissions on every other catergory.  What am I doing wrong?
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on June 06, 2011, 10:34:20 AM
If you only want one specific category to add links you would need to use deny permissions on all other categories to get that to work.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: Witchboard on June 06, 2011, 04:56:01 PM
Thanks for the quick response.  May I ask why there's an option to allow in SMF Links, if it doesn't have any functionality, or am I missing something?
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on June 06, 2011, 04:58:09 PM
I am not familiar with that offhand. I know of the permissions under Admin -> Permissions.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: Witchboard on June 06, 2011, 05:06:03 PM
Sorry for the confusion.  I was meaning the Category Permissions as in the attached image.  Also, are the permissions automatically propagated to sub categories, or do those need to be individually created?  I hope I'm making sense, if not, I'll just create a test account and play with them.  Thanks.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on June 06, 2011, 05:11:00 PM
The membergroup must have the global permission Add Links, View Links etc whatever you set under category permissions in the normal SMF permissions in Admin -> Permissions in order for the category level permissions to work.

Quote
Also, are the permissions automatically propagated to sub categories, or do those need to be individually created
No they need to be individually created.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: forfun on June 06, 2011, 06:42:22 PM
Quote from: forfun on May 29, 2011, 05:09:47 PM
Quote from: vbgamer45 on April 02, 2011, 01:32:57 PM
Another update
2.3.2
+Added counting of unlimited depth subcategories link totals

I am using SMF Links v. 2.3.2, and I am running into a little problem.
I am also using SMF 2.0 RC5 default theme.

If I "checked" the box "Counts child categories link totals", then it will mess up the frame.
As shown in attached pic 1, the child category links are running outside of the screen to the right.

If I "unchecked" the box "Counts child categories link totals", then everything is fine, EXCEPT it does not count the child category links, which is NOT looked good, as it shows 0, while there are many under there.
As shown in attached pic 2, the first to Titles have shown 0 links

Please help to fix this error.
Thanks much in advanced


Anyone?
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: Witchboard on June 06, 2011, 07:28:27 PM
Quote from: vbgamer45 on June 06, 2011, 05:11:00 PM
The membergroup must have the global permission Add Links, View Links etc whatever you set under category permissions in the normal SMF permissions in Admin -> Permissions in order for the category level permissions to work.

Quote
Also, are the permissions automatically propagated to sub categories, or do those need to be individually created
No they need to be individually created.

Thanks for the quick responses.  Again, great mod.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: vbgamer45 on June 06, 2011, 08:27:50 PM
Glad you enjoy I hope to one day get back to adding additions to it.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 RC5 Support!)
Post by: Baloch on June 08, 2011, 11:19:36 PM
I want to see auto generated serial numbers of the links as well as repositioning of the links/categories as per admin choice.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: KensonPlays on June 14, 2011, 04:13:11 PM
Thanks for the update vb! Now i dont have to bookmark everything on my bookmarks, some links I want to share not in a topic, not in a webpage or a bookmark stored online that is publicly viewable.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: GlitchPC on June 24, 2011, 12:16:29 PM
Can anyone verify this validates XHTML?
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: GlitchPC on June 26, 2011, 09:57:34 AM
I guess I can take the lack of response as a "no", huh?
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on June 26, 2011, 10:05:05 AM
No idea I check for closing tags on img and br tags for xhtml and alt tags for images.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: savy118 on July 16, 2011, 06:19:00 PM
hi having problems with mod on 2.o final , i have installed again and everything passed and installed fine but now get errors relating to source/links2 and cant do nothing with it.

Unknown column 'ID_CAT' in 'where clause'
File: C:\wamp\www\Sources\Links2.php
Line: 1530

Unknown column 'l.title' in 'field list'
File: C:\wamp\www\Sources\Links2.php
Line: 1009

is this easy to fix so i know what to doin if something goes wrong.

thanks for your time

savy
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: sharks on July 16, 2011, 11:15:52 PM
Is it just me, or does this mod look ugly? I checked the screenshot from the mod download page and it's not something that makes me want to scramble to install any time soon.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: PureKaoz on October 23, 2011, 07:18:01 PM
Does using this mod make it to where the google bot and crawlers can't read links as well? Don't that hurt your SEO?
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on October 23, 2011, 07:24:05 PM
Yes the links are encoded for click tracking
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: Guillelmus on December 03, 2011, 10:53:50 AM
How do you increase the character limit of description?

Thanks for the great mod!
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: Baloch on December 05, 2011, 09:18:04 AM
is there any way to display latest links in HTML or PHP file?
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: Guillelmus on December 05, 2011, 09:48:00 AM
Quote from: Baloch on December 05, 2011, 09:18:04 AM
is there any way to display latest links in HTML or PHP file?


http://askusaquestion.net/index.php/topic,2679.msg4466.html?PHPSESSID=e773b6a4550432c0e92661c42c8120de#msg4466

Code written by "Underdog"
global $smcFunc;
$limit = 10;

/* sql queries */
$link_columns = array('ID_LINK', 'ID_MEMBER', 'ID_CAT', 'url', 'title', 'description', 'hits', 'approved', 'rating', 'date');
$cat_columns = array('title', 'description', 'image');

$result1 = $smcFunc['db_query']('', "SELECT * FROM {db_prefix}links_cat WHERE (ID_CAT > 0) ORDER BY ID_CAT");
while ($val = $smcFunc['db_fetch_assoc']($result1))
{
if (empty($val['ID_CAT']))  {continue;}
foreach ($cat_columns as $column)
{$cats[$column][$val['ID_CAT']] = $val[$column];}
}
$smcFunc['db_free_result']($result1);

$count1 = 0;
$result1 = $smcFunc['db_query']('', "SELECT * FROM {db_prefix}links WHERE (approved > 0) ORDER BY date DESC LIMIT {$limit}");
while ($val = $smcFunc['db_fetch_assoc']($result1))
{
foreach ($link_columns as $column)
{
if (empty($val[$column]))  {$val[$column] = false;}
$links[$column][$count1] = $val[$column];
}
foreach ($cat_columns as $column)
{
$links[ 'cat_' . $column][$count1] = $cats[$column][$val['ID_CAT']];
}
$count1++;
}
$smcFunc['db_free_result']($result1);

/* display */
$count2 = 0;
echo '<table cellspacing="14" style="margin:auto;">
<tr class="titlebg"><td>Link</td><td>Category</td><td>Description</td><td>Hits </td></tr>';

while ($count2 < $count1)
{
echo '<tr class="windowbg"><td><a href="'.$links['url'][$count2].'">',$links['title'][$count2],'</a></td><td>',$links['cat_title'][$count2],'</td><td>',$links['description'][$count2],'</td><td style="text-align:center;">', $links['hits'][$count2],'</td></tr>';
$count2++;
}
echo '</table>';


I assume this code can be distributed...
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on December 05, 2011, 10:08:52 AM
Quote from: Guillelmus on December 03, 2011, 10:53:50 AM
How do you increase the character limit of description?

Thanks for the great mod!
You have to alter the description column in sql

ALTER table smf_links change description description text;
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: Baloch on December 08, 2011, 12:21:11 AM
Quote from: Guillelmus on December 05, 2011, 09:48:00 AM
Quote from: Baloch on December 05, 2011, 09:18:04 AM
is there any way to display latest links in HTML or PHP file?


http://askusaquestion.net/index.php/topic,2679.msg4466.html?PHPSESSID=e773b6a4550432c0e92661c42c8120de#msg4466

Code written by "Underdog"
global $smcFunc;
$limit = 10;

/* sql queries */
$link_columns = array('ID_LINK', 'ID_MEMBER', 'ID_CAT', 'url', 'title', 'description', 'hits', 'approved', 'rating', 'date');
$cat_columns = array('title', 'description', 'image');

$result1 = $smcFunc['db_query']('', "SELECT * FROM {db_prefix}links_cat WHERE (ID_CAT > 0) ORDER BY ID_CAT");
while ($val = $smcFunc['db_fetch_assoc']($result1))
{
if (empty($val['ID_CAT']))  {continue;}
foreach ($cat_columns as $column)
{$cats[$column][$val['ID_CAT']] = $val[$column];}
}
$smcFunc['db_free_result']($result1);

$count1 = 0;
$result1 = $smcFunc['db_query']('', "SELECT * FROM {db_prefix}links WHERE (approved > 0) ORDER BY date DESC LIMIT {$limit}");
while ($val = $smcFunc['db_fetch_assoc']($result1))
{
foreach ($link_columns as $column)
{
if (empty($val[$column]))  {$val[$column] = false;}
$links[$column][$count1] = $val[$column];
}
foreach ($cat_columns as $column)
{
$links[ 'cat_' . $column][$count1] = $cats[$column][$val['ID_CAT']];
}
$count1++;
}
$smcFunc['db_free_result']($result1);

/* display */
$count2 = 0;
echo '<table cellspacing="14" style="margin:auto;">
<tr class="titlebg"><td>Link</td><td>Category</td><td>Description</td><td>Hits </td></tr>';

while ($count2 < $count1)
{
echo '<tr class="windowbg"><td><a href="'.$links['url'][$count2].'">',$links['title'][$count2],'</a></td><td>',$links['cat_title'][$count2],'</td><td>',$links['description'][$count2],'</td><td style="text-align:center;">', $links['hits'][$count2],'</td></tr>';
$count2++;
}
echo '</table>';


I assume this code can be distributed...

Its so much nice script but I need to display only random links from this directory. means single column with link ID from different categories.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: Guillelmus on December 08, 2011, 08:04:27 AM
Quote from: Baloch on December 08, 2011, 12:21:11 AMIts so much nice script but I need to display only random links from this directory. means single column with link ID from different categories.
Search
$result1 = $smcFunc['db_query']('', "SELECT * FROM {db_prefix}links WHERE (approved > 0) ORDER BY date DESC LIMIT {$limit}");

Replace$result1 = $smcFunc['db_query']('', "SELECT * FROM {db_prefix}links WHERE (approved > 0) ORDER BY RAND() DESC LIMIT {$limit}");

Here's a version that fetches three links at random.global $smcFunc;
$limit = 3;

/* sql queries */
$link_columns = array('ID_LINK', 'ID_MEMBER', 'ID_CAT', 'url', 'title', 'description', 'hits', 'approved', 'rating', 'date');
$cat_columns = array('title', 'description', 'image');

$result1 = $smcFunc['db_query']('', "SELECT * FROM {db_prefix}links_cat WHERE (ID_CAT > 0) ORDER BY ID_CAT");
while ($val = $smcFunc['db_fetch_assoc']($result1))
{
if (empty($val['ID_CAT']))  {continue;}
foreach ($cat_columns as $column)
{$cats[$column][$val['ID_CAT']] = $val[$column];}
}
$smcFunc['db_free_result']($result1);

$count1 = 0;
$result1 = $smcFunc['db_query']('', "SELECT * FROM {db_prefix}links WHERE (approved > 0) ORDER BY RAND() DESC LIMIT {$limit}");
while ($val = $smcFunc['db_fetch_assoc']($result1))
{
foreach ($link_columns as $column)
{
if (empty($val[$column]))  {$val[$column] = false;}
$links[$column][$count1] = $val[$column];
}
foreach ($cat_columns as $column)
{
$links[ 'cat_' . $column][$count1] = $cats[$column][$val['ID_CAT']];
}
$count1++;
}
$smcFunc['db_free_result']($result1);

/* display */
$count2 = 0;
echo '<table cellspacing="0" style="margin:auto;">
<tr class="titlebg"><td>Linkki</td><td>Luokka</td><td>Kuvaus</td></tr>';

while ($count2 < $count1)
{
echo '<tr class="windowbg"><td><a href="'.$links['url'][$count2].'">',$links['title'][$count2],'</a></td><td>',$links['cat_title'][$count2],'</td><td>',$links['description'][$count2],'</td></tr>';
$count2++;
}
echo '</table>';
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 26, 2011, 10:01:14 AM
Running SMF 2.0.2, along with the latest version of this mod.  (see attached image)

Why are there two different edit/delete links in this mod?

If the above is normal...then, why isn't there a description for the secondary drop-down menu?

Thanks, in advance...
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: Kindred on December 26, 2011, 10:11:57 AM
hmmmm?   Where do you see that?
Using v2.3.2,  In user permissions, I see the attached....
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 26, 2011, 10:20:53 AM
Go into Admin/Members/Permissions

I should note...I'm using the "Simple" view...as opposed the the "Classic" view.

Would also like to know the difference between General Permissions for this Mod and Category Permissions.

One last thing...

What template/file do I edit the catbg for categories?  (see attached image)

Thanks, in advance...
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on December 26, 2011, 11:04:59 AM
Quote from: GlitchPC on December 26, 2011, 10:20:53 AM
Go into Admin/Members/Permissions

I should note...I'm using the "Simple" view...as opposed the the "Classic" view.

Would also like to know the difference between General Permissions for this Mod and Category Permissions.

One last thing...

What template/file do I edit the catbg for categories?  (see attached image)

Thanks, in advance...
Under Classic  permission View the Edit and Delete Links should have radio buttons to edit own links or any link the same with delete. I don't believe the simple view shows the radio buttons.


General Permissions are global permissions. Category permissions override the global permissions. If you want certain membergroups to have different permissions such as viewing some categories or adding links or not adding links.

The file would be in themes/default/Links2.template.php
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 26, 2011, 11:12:43 AM
Thanks, vbgamer!  I appreciate it...
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 26, 2011, 01:50:19 PM
Another question...and hopefully, the last.  We all know how that goes, though...don't we?

Anyhow...I noticed for those groups that do not have the ability to edit link "Options"...the "Options" column still appears for them.

Is there any way to modify this so the "Options" column does not appear for those groups?
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on December 26, 2011, 04:18:40 PM
Quote from: GlitchPC on December 26, 2011, 01:50:19 PM
Another question...and hopefully, the last.  We all know how that goes, though...don't we?

Anyhow...I noticed for those groups that do not have the ability to edit link "Options"...the "Options" column still appears for them.

Is there any way to modify this so the "Options" column does not appear for those groups?
Released an update for this

2.4
!Fixed options column to only show if they have permission to manage a link in the result returned.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 26, 2011, 04:58:39 PM
Thanks for that...and that was quick!

Uninstall and reinstall?  or just update after zip file upload?
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on December 26, 2011, 05:10:25 PM
You can just install the new version on top as well.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 27, 2011, 04:18:27 PM
Suggestions for improvements:
Just sayin'...

Nice mod, all-around, though.  Very easy to use and implement.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on December 27, 2011, 04:24:12 PM
Yeah probably should move to five star ratings. This is was one of the first mods I have made and slowly update it over time.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 27, 2011, 04:28:07 PM
Quote from: vbgamer45 on December 27, 2011, 04:24:12 PM
Yeah probably should move to five star ratings. This is was one of the first mods I have made and slowly update it over time.

It's actually a great mod, vbgamer.  Like I said...it's very easy to install...setup...and use.  Some bling other mods use like thumbnail images...I could care less about.  The only thing I was missing on my site was an easy method for members to add links...and this has it ALL covered...hands down!

Thanks, for a great mod.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 28, 2011, 11:17:48 AM
Well...one last question...I hope.  Didn't I say that before?

What template and what code do I need to modify to change the titlebg for the below image?  (see attached)

Basically...I want to change the text of the words "Sub Categories:", to black and change the background color for the header.


Thanks, in advance...

Update...

Nevermind...I found it and made the changes to the code, myself.  I guess I should look before I leap, huh?
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on December 28, 2011, 03:34:59 PM
Glad you were able to figure it out. I try to keep things simple and most of the mods are coded the same way.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: GlitchPC on December 28, 2011, 03:51:02 PM
Yeah...just had to make an edit to the titlebg for that particular table row.  I also put in a couple of feature requests over at SMFHacks.  Hope you don't mind...
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: GlitchPC on January 04, 2012, 03:43:11 PM
Are you going to work on the number of queries this mod uses?

Page created in 0.249 seconds with 108 queries.

For the main page...phew!
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on January 04, 2012, 03:54:11 PM
Possibly if its from this mod. Would have to check why it is that high it shouldn't be more than 10. added
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: GlitchPC on January 04, 2012, 04:02:06 PM
Only happens when I check the following setting in Links Configuration:

Counts child categories link totals.
(Uses more queries)


Otherwise, it's around the high 20's...
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: zapiy on January 24, 2012, 02:53:01 PM
Is there a way to make the decription area show more text and show an image in place of the link.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on January 24, 2012, 02:54:18 PM
You can increase the description column field size inside the database using phpmyadmin and either increase the size or change to a text field.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: zapiy on January 26, 2012, 08:05:12 PM
Ok could you point me to the table i need to edit?

Cheers
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on January 26, 2012, 08:07:25 PM
Should be smf_links table
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: forfun on February 02, 2012, 04:14:03 PM
Thanks for the mod!
BUT, I need a little help.  If I checked the "Counts child categories link totals" option, all the sub-category titles will be displayed.  How can I prevent the sub-cat title display, without turning off the "Counts child categories link totals" ?
Thanks much for any help

UPDATED:  I got it!
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on February 02, 2012, 08:38:34 PM
Glad you were table to figure it out
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: forfun on February 06, 2012, 11:00:28 PM
Thanks much for the mod; i love it!
Again, I have a request: will you add a "report a bad link" option to the mod?
I know it sounds simple, but your time, and mind is very important, and I am just thinking out loud. :)
Thanks again
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on February 06, 2012, 11:12:18 PM
Will add it to the feature request list.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: forfun on February 07, 2012, 02:18:28 AM
Quote from: vbgamer45 on February 06, 2012, 11:12:18 PM
Will add it to the feature request list.
Thanks so MUCH!
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: zapiy on February 12, 2012, 07:58:21 PM
I am a little lost in making them edits mate.. I know your busy but any pointers please.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: medstorez on February 16, 2012, 01:52:44 PM
Is this like a link exchange ? Or just a one way link ?
I mean does the user have to link back to my forum on his site ? That would be cool to boost your search engine position..
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: forfun on February 16, 2012, 02:14:21 PM
Quote from: zapiy on February 12, 2012, 07:58:21 PM
I am a little lost in making them edits mate.. I know your busy but any pointers please.
What is your question?
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: forfun on February 16, 2012, 02:15:36 PM
Quote from: medstorez on February 16, 2012, 01:52:44 PM
Is this like a link exchange ? Or just a one way link ?
I mean does the user have to link back to my forum on his site ? That would be cool to boost your search engine position..
No, it is not a link exchange program.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: zapiy on March 27, 2012, 02:19:27 PM
Quote from: forfun on February 16, 2012, 02:14:21 PM
Quote from: zapiy on February 12, 2012, 07:58:21 PM
I am a little lost in making them edits mate.. I know your busy but any pointers please.
What is your question?

Is there a way to make the decription area show more text and show an image in place of the link.
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on March 27, 2012, 02:21:08 PM
You could use I think BBC codes in the description.
Also if you change the filedtype in the database from varchar to text it can hold a lot more text
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: forfun on April 05, 2012, 09:37:49 PM
Just a wish!
I wish that the creator will add the "comments" option to this mod.  That should bring this mod to another level.
Thanks much in advance
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 05, 2012, 09:50:26 PM
What is comments option?
Title: Re: SMF Links (2.4 Released with SMF 2.0 Support!)
Post by: forfun on April 05, 2012, 10:12:44 PM
Quote from: vbgamer45 on April 05, 2012, 09:50:26 PM
What is comments option?
The "comment" option that will allow viewers to post a comment about a link that may bring some useful info to them, or they can add their own opinion about the website.
I have done some research, and many "commercial" web sites have this kind of feature, which will also help to bring more viewer to the site.
Thanks for reading.
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 18, 2012, 01:01:34 PM
Update
2.5
!Better checking/validation checking for categories and links that exist.
+Added checksession functions to forms for the links system
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: GlitchPC on April 18, 2012, 04:27:16 PM
Quote from: vbgamer45 on April 18, 2012, 01:01:34 PM
Update
2.5
!Better checking/validation checking for categories and links that exist.
+Added checksession functions to forms for the links system

Instructions for upgrading from 2.4?  Also...what about those who have paid for copyright removal?
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: Kindred on April 18, 2012, 04:32:50 PM
seems to correctly install using the upgrade link.
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 18, 2012, 04:35:55 PM
Quote from: GlitchPC on April 18, 2012, 04:27:16 PM
Quote from: vbgamer45 on April 18, 2012, 01:01:34 PM
Update
2.5
!Better checking/validation checking for categories and links that exist.
+Added checksession functions to forms for the links system

Instructions for upgrading from 2.4?  Also...what about those who have paid for copyright removal?
Just install the new version. over top of the old one.

For copyright removal you have to remove the link from links.template.php
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: GlitchPC on April 18, 2012, 04:54:51 PM
Quote from: vbgamer45 on April 18, 2012, 04:35:55 PM
Quote from: GlitchPC on April 18, 2012, 04:27:16 PM
Quote from: vbgamer45 on April 18, 2012, 01:01:34 PM
Update
2.5
!Better checking/validation checking for categories and links that exist.
+Added checksession functions to forms for the links system

Instructions for upgrading from 2.4?  Also...what about those who have paid for copyright removal?
Just install the new version. over top of the old one.

For copyright removal you have to remove the link from links.template.php

Pardon me for being "stupid"...but, I did that...now I have the following...

SMF Links    2.4    [ Upgrade ] [ List Files ] [ Delete ]
SMF Links    2.5    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 18, 2012, 05:02:01 PM
That's ok that means 2.5 is installed as the main release.
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: GlitchPC on April 18, 2012, 05:15:58 PM
So...leave them both there...or, "Delete" 2.4?
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 18, 2012, 05:18:15 PM
Leave them both there unless you uninstalled 2.4 and then installed 2.5
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: GlitchPC on April 18, 2012, 05:19:16 PM
Gotcha!  Thanks!  Great support with your mods, bud...I really appreciate that.
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 18, 2012, 05:22:54 PM
No problem glad to help.
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: GlitchPC on April 18, 2012, 05:54:21 PM
It's me, again, Margaret!  LOL!   :laugh:

Is there a way to change the following text color to white without changing the css for the whole site?  See attached image...
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 18, 2012, 05:57:37 PM
Try changing the class of that area to either titlebg if it is catbg or catbg if it is already titlebg
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: GlitchPC on April 18, 2012, 06:14:50 PM
Quote from: vbgamer45 on April 18, 2012, 05:57:37 PM
Try changing the class of that area to either titlebg if it is catbg or catbg if it is already titlebg

That doesn't change the text color...it just changes the background.
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: Inti31 on April 24, 2012, 10:59:36 AM
Uh, an update..

did a quick test (full install v2.5) - seems to work fine but I get a session timeout when trying to save the settings in the admin section.
Okay, not a big deal to modify the values in the db directly.

then also I can't add permission
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Datei: /var/customers/webs/user1027/Sources/Links2.php
Zeile: 1565



link: http://alt.epica-forum.de/index.php?action=links

will send you the german translation when it is working

cheers Inti31

Addition:
Thinking of using description area for banners - it would be nice if this will also be counted because in current only clicks will be counted when clicking on the textlink...

Maybe the stats could be extend /changed with showing the banner?
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: Inti31 on April 26, 2012, 04:03:00 PM
i did a new install of smf v202 and installed this mod as the first one...

same problem: session timeout while trying to save settings.

Any statements to this...?
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 26, 2012, 05:03:12 PM
Will have it looked into.
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: pols1337 on April 27, 2012, 09:06:29 PM
Hi vbgamer,

I have SMF Links installed on my website, and for the most part it's great.  Two suggestions:

1.  Allow listing of links "Ascend / Descend"?  Right now the links are listed as they're added, which makes it a big jumble.  It would be nice if they could be alphabetically sorted like the categories. 

2.  In "Links Configuration" > "Category Permission List," it only lists two permissions even though I have about ten permissions set.  I know the permissions exist because when I delete one of the permissions that appear, another permission takes its place.  For some reason, the list only shows two.  See attachment. 
Title: Re: SMF Links (2.5 Released with SMF 2.0 Support!)
Post by: Matthew K. on May 07, 2012, 05:46:42 PM
Going to have an update out for this modification shortly :)
Title: Re: SMF Links (2.3 Released with SMF 2.0 RC3 Support!)
Post by: BaghdadGhost on May 21, 2012, 12:09:44 AM
Quote from: vbgamer45 on December 19, 2010, 07:13:02 AM
The links table and links cat table using phpmyadmin under the operations tab

Hi VB,

I installed the mod without any errors. when I tried to apply your fix I changed all smf links 4 tables to utf8_general_ci but it did not work. I changed only the one you mentioned and it also did not work. when I create a category and give it an Arabic name all I get is ? ? ? ? ? ? instead?

I also noticed when I deleted this category I get this message

Fatal error: Function name must be a string in /Sources/Links2.php on line 507

I thought that it could be related to the name if category being just question marks. so I changed the name to english letters and tried to delete it but it gave me the same error.

please help

thanks
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: SMFHacks.com Team on May 21, 2012, 09:00:32 AM
Update!

2.5.1
+Better support for utf8 data for links/categories
!Fixed bug with deleting categories
!Fixed catpermission bug smf 2.0
!Fixed session check in save settings
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: Eclipse16V on May 21, 2012, 09:03:15 AM
Thanks for this update.
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: Inti31 on May 21, 2012, 10:28:14 AM
Also thx for that update - the session conflict now moved to the link section. :(
A link ist automatical approved - if I want to withdraw that link - here is now the session conflict

Tried that also as a logged normal member - the message appear that I should log out and in again.

http://alt.epica-forum.de/index.php?action=links

It is in german, also I used pics for the option like Delete, Edit, ... - because I want that nice Linksystem also for banners - so I need the space...

you could try it if you want: Test / 12345678

cheers Inti31
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on May 21, 2012, 10:51:25 AM
Quote from: Inti31 on May 21, 2012, 10:28:14 AM
Also thx for that update - the session conflict now moved to the link section. :(
A link ist automatical approved - if I want to withdraw that link - here is now the session conflict

Tried that also as a logged normal member - the message appear that I should log out and in again.

http://alt.epica-forum.de/index.php?action=links

It is in german, also I used pics for the option like Delete, Edit, ... - because I want that nice Linksystem also for banners - so I need the space...

you could try it if you want: Test / 12345678

cheers Inti31

The only issue is unapproving links  is that correct?
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: Inti31 on May 21, 2012, 11:43:40 AM
yep, that's right - this is the only error I found
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: SMFHacks.com Team on May 21, 2012, 12:12:52 PM
Quote from: Inti31 on May 21, 2012, 11:43:40 AM
yep, that's right - this is the only error I found
Hopefully fixed now released an update.
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: Inti31 on May 21, 2012, 02:50:54 PM
you've done it - i tested 2.5.2 - the error is gone! Good job! I am glad to help out in this matter... - just informing you about this little bug.

http://alt.epica-forum.de/index.php?action=links

cheers Inti31
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on May 21, 2012, 02:52:22 PM
Thanks glad it is working now.
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: BaghdadGhost on May 21, 2012, 02:53:15 PM
Hi VB,

I installed the mod without any errors. when I tried to apply your fix I changed all smf links 4 tables to utf8_general_ci but it did not work. I changed only the one you mentioned and it also did not work. when I create a category and give it an Arabic name all I get is ? ? ? ? ? ? instead?

Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on May 21, 2012, 02:58:33 PM
Quote from: BaghdadGhost on May 21, 2012, 02:53:15 PM
Hi VB,

I installed the mod without any errors. when I tried to apply your fix I changed all smf links 4 tables to utf8_general_ci but it did not work. I changed only the one you mentioned and it also did not work. when I create a category and give it an Arabic name all I get is ? ? ? ? ? ? instead?


Did you try the update i posted today.
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: BaghdadGhost on May 21, 2012, 03:03:26 PM
yes I did.

did what I do with the tables was correct or I have to do something else?
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on May 21, 2012, 03:17:23 PM
That should have been it hmm.
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: Inti31 on May 21, 2012, 03:30:25 PM
here is a little tweak for 2.x - i like a welcome message - like i did for the Download System

find in Links2.template.php

// No category found show the links index
echo '
<table class="table_list">
         <tbody class="header">
<tr class="catbg">
<td align="center"><div class="cat_bar">
<h3 class="catbg">', $txt['smflinks_indextitle'], '</h3>
</div></td>

</tr>
</tbody>
</table><br />

';


ADD AFTER

echo '<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
', $txt['links_text_welcome'], '
</td>
</tr>';
echo '</table><br /><br />';


Then add in Linkslanguage(-utf8).php
$txt['links_text_welcome'] = '<br /><center>Welcome to Link System!</center>

it look like that: http://alt.epica-forum.de/index.php?action=links

cheers inti31
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: BaghdadGhost on May 21, 2012, 03:58:27 PM
Quote from: vbgamer45 on May 21, 2012, 03:17:23 PM
That should have been it hmm.

thanks I will try again

should I change all 4 tables or just the ones you mentioned?
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: BaghdadGhost on May 21, 2012, 04:22:13 PM
VB,

I just checked and found out that the link table and link_cat table are already utf8_general_ci

the other two tables are latin1_swedish_ci

I tried to create new cat then new link and all information in Arabic (cat name, link name and link description) came as question marks!


could you help me here?

thanks

Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: Inti31 on May 22, 2012, 11:45:10 AM
hi there - i implemented it now to my epica-forum.de (http://epica-forum.de/index.php?action=links) - works fine

one thing - it seems, the description text (which I use sometimes for banners is limited to x characters... - how do I get it increased - I need some more... - not much, guess need 20 charactors more
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on May 22, 2012, 11:49:57 AM
change the description database field column to text instead of tinytext
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: Inti31 on May 22, 2012, 01:58:40 PM
Thx - done it - i also changed the latin1_swedish to utf8_general_ci - now the entered text is shown as entered.

cheers inti31
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on May 22, 2012, 02:02:44 PM
Glad you got it working.
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: mageguild on May 24, 2012, 09:08:59 PM
I would prefer to link directly to the website.  this is the code that is used by default.  How can I change it so the href is the link value? 

<a href="' . $scripturl . '?action=links;sa=visit&id=' . $row['ID_LINK'] . '" target="blank">' . $row['title'] . '</a>
Title: Re: SMF Links (2.5.1 Released with SMF 2.0 Support!)
Post by: vbgamer45 on May 25, 2012, 11:52:34 AM
This might work
<a href="' . $row['link'] . '" target="blank">' . $row['title'] . '</a>
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 06, 2012, 10:48:55 PM
SMF Links 2.5.3 Released for both SMF 1.1.x and SMF 2.0.x! Quite a few bugfixes were addressed for both versions, so it is HIGHLY recommended that you upgrade immediately. To upgrade, please uninstall the old version of this modification before attempting to install the latest version.

Here is the latest version's changelog which is fairly broad, and incomplete as a lot was cleaned up.
Quote from: SMF Links 2.5.3 Changelog!bugfix: Superglobal variable substance checks implemented.
!bugfix: Some invalid XHTML cleaned up.
!bugfix: 2.0 queries now utilize proper sanitation methods.
!bugfix: session verification failed (SMF 1.1.x) due to $context['session_var'] (undefined in 1.1.x) being used.
!enhancement: submit buttons now use SMF styling (class: button_submit).

Here is a link to the modification: http://custom.simplemachines.org/mods/index.php?mod=381

Enjoy!
The SMFHacks.com Team
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: BaghdadGhost on June 07, 2012, 12:08:05 AM
Quote from: Labradoodle-360 on June 06, 2012, 10:48:55 PM
SMF Links 2.5.3 Released for both SMF 1.1.x and SMF 2.0.x! Quite a few bugfixes were addressed for both versions, so it is HIGHLY recommended that you upgrade immediately. To upgrade, please uninstall the old version of this modification before attempting to install the latest version.

Here is the latest version's changelog which is fairly broad, and incomplete as a lot was cleaned up.
Quote from: SMF Links 2.5.3 Changelog!bugfix: Superglobal variable substance checks implemented.
!bugfix: Some invalid XHTML cleaned up.
!bugfix: 2.0 queries now utilize proper sanitation methods.
!bugfix: session verification failed (SMF 1.1.x) due to $context['session_var'] (undefined in 1.1.x) being used.
!enhancement: submit buttons now use SMF styling (class: button_submit).

Here is a link to the modification: http://custom.simplemachines.org/mods/index.php?mod=381

Enjoy!
The SMFHacks.com Team

Hi,

Thanks for your effort and the new update. I just have a question, I had some difficulties in making the MOD recognizing Right to Left Languages, does the new update has the same issue?

Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 07, 2012, 12:10:31 AM
Not a problem. Would you be able to provide more details as to your issue so I can look into them for you?

Thank you!
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: BaghdadGhost on June 07, 2012, 12:27:11 AM
I just tested the new release and same RTL issue  :(

when I give an Arabic name of a category or a link it shows the Arabic script as ??????

do you have any suggestions please?


thanks
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: BaghdadGhost on June 07, 2012, 12:39:47 AM
Never mind man, I did it  :)

I had t do it through phpMyAdmin

go to smf_links

click structure tab (which I missed to do before)

change collection to utf8_general_ci

done

do the same steps to smf_links_cat

if anyone needs help or more explanation I am happy to do so. just post here and remind me on a PM

Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 07, 2012, 02:08:23 AM
Thanks for the information, hopefully it'll be useful to others as well :)
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: ApplianceJunk on June 07, 2012, 01:45:54 PM
Quote from: netshaq on October 19, 2010, 03:03:35 PM
SMF Links is a great mod but when I add links to the catagories it doesn't have a way to put them in alphabetical order unless I am missing something ??

Thanks
Steve

RUNNING 1.1.11

Is alphabetical order possible yet?
I have the mod installed and playing with it, but I don't see any way to even manually move the links up or down in the list.

Thanks,
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 07, 2012, 07:12:32 PM
Are you wanting to sort the actual table of links alphabetically?

What version of SMF are you running?
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: ApplianceJunk on June 07, 2012, 07:30:21 PM
QuoteAre you wanting to sort the actual table of links alphabetically?

Yes,

QuoteWhat version of SMF are you running?

2.0.2
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 07, 2012, 07:41:31 PM
I am working on an update (2.6.0) which will contain MANY bugfixes and enhancements. For now, it will only be written for SMF 2.0.x. Although SMF Links 2.5.3 still applies to SMF 1.1.x.

I'll do my best to make sure there is support for sorting links.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: ApplianceJunk on June 07, 2012, 07:42:49 PM
Quote from: Labradoodle-360 on June 07, 2012, 07:41:31 PM
I am working on an update (2.6.0) which will contain MANY bugfixes and enhancements. For now, it will only be written for SMF 2.0.x. Although SMF Links 2.5.3 still applies to SMF 1.1.x.

I'll do my best to make sure there is support for sorting links.

Cool, thanks
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 07, 2012, 07:47:46 PM
Not a problem
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Robert. on June 08, 2012, 11:23:50 AM
Congrats with the release, going to install this on my forum as soon as I have one :)
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 08, 2012, 12:34:26 PM
Awesome! The next update will be pretty big, hopefully y'all will like it.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: ApplianceJunk on June 08, 2012, 12:41:33 PM
Looking forward to the next update, thanks.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: pols1337 on June 09, 2012, 12:54:37 AM
Hi,

Can I make a suggestion for a future release of SMF Links?  In the "Links Configuration," you should offer an option to list links by ID (ascending / descending) or by alphabetical order based upon the link title (ascending / descending).  Maybe it's the ADD in me, but I find it so awkward to have the links in an non-alphabetical order so it would be nice if it was offered as an option to admins. 

Joel / pols1337
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 09, 2012, 01:12:22 AM
Hello Joel!

Thank you for stopping by and providing your opinion, it's definitely appreciated. Would you prefer links to have sortable columns rather than the ability to move a link up or down?
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: ApplianceJunk on June 09, 2012, 09:04:20 AM
QuoteWould you prefer links to have sortable columns rather than the ability to move a link up or down?

How about both options? ;)

Alphabetical order works for me. :)
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: faldegort on June 20, 2012, 02:09:31 PM
how can I make subcategories  to not appear in the main category list??
thanks for this great mod!
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 20, 2012, 02:10:51 PM
Quote from: faldegort on June 20, 2012, 02:09:31 PM
how can I make subcategories  to not appear in the main category list??
thanks for this great mod!
Hey there faldegort! Are you not wanting to show children categories at all? Or just a specific categor(y|ies)?
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: pols1337 on June 25, 2012, 02:32:12 AM
Quote from: Labradoodle-360 on June 09, 2012, 01:12:22 AM
Hello Joel!

Thank you for stopping by and providing your opinion, it's definitely appreciated. Would you prefer links to have sortable columns rather than the ability to move a link up or down?

@Labradoodle

Yes, sortable columns would be great.  I have Aeva Media installed, and I like how they allow sortable columns for files but in the settings it sets a "default" sort. 

At the very least, alphabetical ordering would be nice.  It's just so awkward to see links listed in a crazy order ...  :P
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on June 30, 2012, 11:53:03 PM
I've been crazily busy lately with a ton of updates to work on, but I've made a TON of progress on the next version which will be SMF Links 3.0. Almost a complete rewrite with an insanely big changelog.

Feel free to follow us on Facebook and Twitter to get previews and more notifications as we go: http://www.facebook.com/smfhacks
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Antechinus on July 10, 2012, 01:01:35 AM
Quote from: mageguild on May 24, 2012, 09:08:59 PM
I would prefer to link directly to the website.  this is the code that is used by default.  How can I change it so the href is the link value? 

<a href="' . $scripturl . '?action=links;sa=visit&id=' . $row['ID_LINK'] . '" target="blank">' . $row['title'] . '</a>
Quote from: vbgamer45 on May 25, 2012, 11:52:34 AM
This might work
<a href="' . $row['link'] . '" target="blank">' . $row['title'] . '</a>

It doesn't. TBH it would be better practice to link directly to the correct url. For one thing, the syntax currently used will throw a validation error for each link. Not a huige deal, but annoying. However, it is polite, if nothing else, to allow people to see where they are heading before they click a link. Masking destinations isn't really cool IMO.

It would also be great to haul the markup for function ShowSubCats out of Sources and into the template where it belongs. I've just been trying to get this mod looking decent for a custom theme and it is not fun. Once I have the markup and css sorted I'll release it for anyone who wants to use it.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Arantor on July 10, 2012, 01:03:34 AM
But one of the perks of 'masking' links is to be able to see how many people leave to that link, without that it is potentially less useful.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Antechinus on July 10, 2012, 01:24:46 AM
Well honestly a lot of sites wont care. It depends what you are using the links directory for. If you are wanting to see how many people download something, or visit your favourite game site, or whatever then you may care about such stats.

OTOH if, like the sites I am working on, you only want to provide links to useful external support resources for anyone in the world, you wont give a damn about counting chickens. You probably will care that your members and guests can see where they are being shunted before shunting occurs. Most security minded people do like to know where they are about to go before they click a link.

The sites I'm working on will be running with the link stats disabled anyway.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on July 15, 2012, 03:02:10 AM
The reason that it "masks" the URL is so that the request is passed through a processing function to count how many times it's been clicked.

Furthermore, I am close to finishing a new version (SMF Links 3.0) which will contain a crazy amount of updates.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Antechinus on July 15, 2012, 03:39:05 AM
Yeah I get that about the counting. Would be cool to have the option of counting or raw url, but not a huge deal.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: MiY4Gi on July 18, 2012, 10:30:42 PM
This sounds like just what I need. Also, when you release v3.0 you may want to upload new (or more) screenshots to the mod page, coz currently there's only one.

Are there any recent demo's of this mod?
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on July 18, 2012, 11:37:17 PM
Quote from: MiY4Gi on July 18, 2012, 10:30:42 PM
This sounds like just what I need. Also, when you release v3.0 you may want to upload new (or more) screenshots to the mod page, coz currently there's only one.

Are there any recent demo's of this mod?
I'll definitely add new updated screenshots.

And I do not believe there are currently any available demo's of this.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: MiY4Gi on July 19, 2012, 08:59:04 AM
I've been wondering. Say I have a direct download link, but I connect to the link via this mod, since the mod uses URL masking, would users still be able to obtain the actual URL link? I'm looking for a way to hide direct download links (DDL's) from users. I've been considering using a BBCode that I could wrap around links to mask them, but maybe this mod does something similar.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on July 21, 2012, 03:22:28 AM
The URL is displayed in the table. I'll do my best to add some more options for whether the URL should show or not, and whether or not there should be a mask or not, and if there's a mask the URL field would be hidden.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Gaza07 on August 08, 2012, 07:25:18 PM
Any news on the release of v3 yet  ::)
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on August 08, 2012, 07:27:36 PM
Am waiting to discuss future programming opportunities with vbgamer45 and he's not yet gotten back to me.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Gaza07 on August 08, 2012, 08:00:05 PM
Thanks for your very quick reply  ;)
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: pols1337 on August 09, 2012, 11:24:48 PM
Good luck on the progress for SMF Links 3.0.  Many of us are waiting for the new release  ;)
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: ApplianceJunk on October 01, 2012, 09:36:09 AM
Quote from: Labradoodle-360 on July 15, 2012, 03:02:10 AM
The reason that it "masks" the URL is so that the request is passed through a processing function to count how many times it's been clicked.

Furthermore, I am close to finishing a new version (SMF Links 3.0) which will contain a crazy amount of updates.

Anything new happening with this?
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: vbgamer45 on October 01, 2012, 12:57:25 PM
On hold at the moment.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: RoCKeT-88 on December 30, 2012, 04:37:31 PM
OK this is great mod but Im having some minor issues.

Some categories I am unable to move subcategories up or down and some I can no problem.  On the ones I can't they move on subpage but when going back to the main index pages they have not moved.  What could be causing this issues or what am I doing wrong?

Ty
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on December 30, 2012, 08:20:35 PM
There were quite a few bugs that I resolved in my rewrite which was about 80% complete.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: RoCKeT-88 on December 30, 2012, 11:10:12 PM
OK I just found out the Package Manger that states if your using the current mod or not doesn't work.  All my mods show green but there are a few I know right off hand that are not current.  This mod is one.

To install the latest version do I uninstall the mod then install the new one?  If yes is that standard for all mods?
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Colin on December 30, 2012, 11:19:08 PM
This mod is current, what is your SMF version?
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: RoCKeT-88 on December 30, 2012, 11:29:15 PM
Right, but I don't have the current mod of this.  I have 2.0.3 I think it is without looking.  I need to update the mod.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Westwegoman on February 06, 2013, 02:10:23 AM
Nice mod.

I have one problem and it may be that I'm just overlooking something. When I try to add a permission to a category, I get the following:
A permission already exists for this group and category please delete it first.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: SoLoGHoST on February 19, 2013, 03:17:29 AM
This Mod does not uninstall it's files!!  Atleast in SMF version 2.0.4, but I'm sure that is intentional, for reasons unknown.  Surprisingly, you are still using the old database functions in the database install file.

Well, surely this was an SMF Approved Mod.  Also, I am seeing tons of problems with this mod.

Cheers :)
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: vbgamer45 on February 19, 2013, 09:04:41 AM
What problems with the mod?
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: SoLoGHoST on February 19, 2013, 12:14:55 PM
For 1, I can not get this Mods permissions to work.  It keeps giving me an error stating that the permission is already set, when there are no permissions defined yet.  2, when rating a link, it is telling me that I already rated it, yet there are no ratings defined yet for that link.  3, it doesn't remove any of the files that it installs when removing the Mod through the SMF package manager.  4, In the Admin Panel, there are no descriptions for any of the Admin Pages for the links, the box underneath the Admin Heading is left empty (No errors in the error log), but display looks terrible.

Anyways, those were noticed initially upon installation, didn't really do that much even, with this Mod.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: vbgamer45 on February 19, 2013, 12:18:01 PM
That's for SMF 2.0?

Yeah I know the display/mod is a little outdated was one of the first mods I built.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Kindred on February 19, 2013, 12:18:33 PM
hmmm, SoLoGHoST, something screwy in your test then.   I have used this, successfully on 4 different forums with no problems like you describe... (although I have not uninstalled, so I can't comment on the leaving files behind (which is a minor thing, not a functionality bug))
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: SoLoGHoST on February 19, 2013, 12:23:05 PM
I downloaded this Mod yesterday, here at SMF, because, technically, I wasn't even interested in this Mod, just needed it to create a DP Module for someone by request that supports this mod.  So, was needing the best way to determine if this mod is installed (probably would've been best to use the SMF packages table instead).  But, after removing your SMF Mod, I noticed that the DP Module still showed all of the links that were in it before.  But that's because it's testing install of your Mod, by checking if file and functions exist.  But, now I'm seeing, I probably should've just used the SMF packages db table to determine if the mod is installed or not...

And, yeah, this was in SMF 2.0.4.

I don't have time to do another proper test... sorry.  I just wanted you to know what I discovered from it yesterday.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: SoLoGHoST on February 19, 2013, 02:20:00 PM
Also, I have put together a screenshot of the SMF Links Module that I created that supports this Mod.  If you'd like to use it for your mod, I have the image attached.  Feel free to use it, no need to give me any credit for it either... only took me 5 minutes in PS.  If you need the PSD file for it, let me know... having problems uploading PSD files on this site.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: vbgamer45 on February 19, 2013, 02:38:12 PM
Thank you SoLoGHoST that is very nice of you to do that. I will be reviewing SMF Links mod later today and go about fixing it up.
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Westwegoman on February 19, 2013, 10:52:43 PM
I'm also still having problems with it letting me set permissions. Says permission is already set.

SMF 2.0.4
Title: Re: SMF Links (2.5.3 Released with SMF 2.0.2 Support!)
Post by: Matthew K. on February 19, 2013, 10:56:15 PM
I do know that I fixed a whole heck of a lot of bugs in the version I did.
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: SMFHacks.com Team on March 22, 2013, 01:18:17 PM
SMF Links 3.0 released
3.0
+Alternate table row styles in different sections of the admin area to make it easier to read
+Updated html markup style to improve display for SMF 2.0
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 14, 2013, 06:37:40 PM
Installed, but when I try to create a category:
The database value you're trying to insert does not exist: image

If I try to insert a image link:
The database value you're trying to insert does not exist: ID_PARENT

Any idea? Table exists.
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 14, 2013, 06:38:32 PM
Are you using the newest version?
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 14, 2013, 07:06:09 PM
Yes, downloaded few minute ago.
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 14, 2013, 07:24:19 PM
What SMF Version?
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 14, 2013, 07:25:45 PM
SMF 2.0.4
SMF Links 3.0

Auto installed via smf.
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 14, 2013, 07:30:11 PM
.../index.php?action=links&amp;sa=addcat2
Applica filtro: Mostra solo gli errori con lo stesso messaggio
The database value you're trying to insert does not exist: ID_PARENT
Function: AddCat2
Applica filtro: Mostra solo gli errori relativi a questo file
File: .../Sources/Links2.php
Riga: 399



// Insert the category
$smcFunc['db_insert']('insert',
'{db_prefix}links_cat',
array(
'title' => 'string',
'description' => 'string',
'roworder' => 'int',
'image' => 'string',
'ID_PARENT' => 'int'
),
array(
$title,
$description,
$order,
$image,
$parent
),
array()
);    // this is the line 399

Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 14, 2013, 07:33:10 PM
Did you have any other link mod installed before this one?
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 14, 2013, 07:34:54 PM
No. Mod installed:

1.    Aeva Media - 1.4w
2.    WysiBB for SMF - 0.5
3.    SMF Links - 3.0
4.    Quick Spoiler - 0.9.4
5.    cbi 1.0 - 1.7.6
6.    shoutbox smfpack
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 14, 2013, 08:05:32 PM
Uninstalled.
Manually deleted db tables.
Reinstalled.

Same errors.
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 16, 2013, 04:31:45 AM
Sorry for the 3rd reply. Have you any idea? Or do you think it is better to uninstall and use an html page to edit by hand?  ;)
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: Kindred on April 16, 2013, 07:29:55 AM
basically it looks like your installation never ran the database portion and never set up the tables for the mod to use
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 16, 2013, 08:49:37 AM
Kindred,
yes, it seems, but it is not.
The tables have been created correctly. I tried - for greater certainty - to delete all and re-install the mod and tables - and as well as files - have been recreated.
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: vbgamer45 on April 16, 2013, 08:58:14 AM
Does your smf_links_cat contain the ID_PARENT column?
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 16, 2013, 09:02:40 AM
Yes.
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: Kindred on April 16, 2013, 09:40:51 AM
in which case, it would appear that $parent is not getting set before that insert routine.

just for giggles. add a line just in front of that insert the category comment
$parent = 1;
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: SMFHacks.com Team on April 16, 2013, 09:49:27 AM
Yeah changed it out update released fixed.

3.0.1a
!Fixed bug with add/edit category SMF 2.0.x
Title: Re: SMF Links (3.0 Released with SMF 2.0 Support!)
Post by: iacomac on April 16, 2013, 10:01:09 AM
Quote from: Kindred on April 16, 2013, 09:40:51 AM
in which case, it would appear that $parent is not getting set before that insert routine.

just for giggles. add a line just in front of that insert the category comment
$parent = 1;
in link2.template?


Quote from: SMFHacks.com Team on April 16, 2013, 09:49:27 AM
Yeah changed it out update released fixed.

3.0.1a
!Fixed bug with add/edit category SMF 2.0.x
what is the change?
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on April 16, 2013, 10:26:03 AM
Multiple changes in the Links2.php file in the sources folder.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: iacomac on April 16, 2013, 03:43:45 PM
Thank you, now it's perfect!
Just a little bit of work on template... take a look for the next release.


have a nice day
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on April 16, 2013, 04:49:23 PM
Glad you have it working.
What part of the template do you to change?
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: iacomac on April 16, 2013, 06:52:48 PM
// See if they are allowed to add catagories Main Index only
if ($m_cats)
{
echo '<br /><div class="cat_bar">
<h3 class="catbg centertext">
        ', $txt['smflinks_linkspanel'], '
        </h3>
  </div>
           
';
           
echo '<div align="center" class="windowbg2" style="padding:10px;"><a href="' . $scripturl . '?action=links;sa=addcat">' . $txt['smflinks_addcat'] . '</a>&nbsp;|';
if ($addlink)
echo '&nbsp;<a href="' . $scripturl . '?action=links;sa=addlink">' . $txt['smflinks_addlink'] . '</a>&nbsp;|';

echo '&nbsp;<a href="' . $scripturl . '?action=admin;area=links;sa=admin">' . $txt['smflinks_linkssettings'] . '</a>&nbsp;|';


echo '&nbsp;<a href="' . $scripturl . '?action=admin;area=links;sa=adminperm">' . $txt['edit_permissions'] . '</a>';

echo '</div>';
// echo '</div>';


To close correctly the page I must delete the second close-div in this portion of code.


But probably it's my theme the problem.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: iacomac on April 17, 2013, 11:41:19 AM
Here, again. This is not a problem, just a clarification.
All works correctly, but if I create a category, sub-category or links and I don't insert an image and / or description in the form I can see in log error:

Quote
.../index.php?action=links&amp;sa=addcat2

8: Undefined variable: description

File: /home/.../Sources/Links2.php

Riga: 384


Quote
.../index.php?action=links&amp;sa=addcat2

8: Undefined variable: image

File: /home/.../Sources/Links2.php

Riga: 384


For me it is not a big problem, I can lose two seconds, and clear the log, but maybe you do not want to happen...



I hope it help.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: iacomac on April 19, 2013, 01:12:17 PM
http://.../index.php?action=links&amp;sa=editcat2
8: Undefined variable: parent


    507: // Update the category
    508:     $smcFunc['db_query']('', "UPDATE {db_prefix}links_cat
==> 509: SET title = '$title', ID_PARENT = '$parent', description = '$description', image = '$image' WHERE ID_CAT = $catid LIMIT 1");
    510:         
    511:     
    512:     redirectexit('action=links');
    513: }
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: MiY4Gi on April 19, 2013, 09:04:34 PM
Will it require a lot of coding if I wanted the change the rating feature so that it refers to categories and not links? What about changing the rating feature so that it uses 10 stars instead? You can just tell me if it's going to be a lot of work or if it's easy, and which files I'll need to edit, then I'll take it from there and have a go at it.

I decided to use this mod as my Downloads Directory mod since it's ideal for multiple downloads at the same time. All the other mods only allow one download at a time. Also, I like the simple layout, although I've got some issues with the column widths. Do you perhaps know how I can go about adjusting the column widths?

Also, where do I place the code to center the directory headings and file info in the columns? I've tried CSS alignment, but my Options column disappears whenever I do it.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on April 19, 2013, 09:14:14 PM
Going to take some work. Ratings are tied each download.

Did you see my Downloads mod? Free version could be easier to convert maybe.
I am also have paid version which supports multiple files in a download
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: MiY4Gi on April 19, 2013, 09:37:28 PM
Mm, I'm rather short on cash. I've got quite a few mods that I want to buy, but I figured I'll first focus on ones I can afford (i.e. free ones) and then once I got money, I'll start spending. So you say your paid mod supports multiple downloads? I'll give it some thought. But in the meantime I'm gonna have a look at the mods code and see if I can wrap my mind around it. I which file would I find the code for the ratings? Yeah, I saw your mod, as well as the smfpacks one, and both are a little too much. Basically I just want a dedicated download section with url obfuscation, a simple tidy interface, the ability to download lots of files very quickly by listing them all on the same page, and the ability to rate "downloads" which in my case is the category that contains the downloads. Also, 2 days ago I figured out how to direct link to mediafire using some PHP code, so I'm eager to try it out. Once I implement it, it will look like I'm hosting the files myself. Yeah I know, it's not really a good thing since mediafire gets their money from ads, so what I'll be doing is almost like stealing. But yeah, I'm eager to try it out. I'm also seeing if I can adapt the php code to other hosts like 4shared and Zippyshare.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: SoLoGHoST on April 21, 2013, 11:02:37 AM
@MiY4Gi - You can grab anything from any page using the built-in PHP 5 DOMDocument Class (http://php.net/manual/en/class.domdocument.php)

The following is an example of grabbing just the element (and all contents within it) with the id attribute of "anything" from any other site...

$doc = new DomDocument;

// We need to validate our document before refering to the id
$doc->validateOnParse = true;
$doc->loadHtml(file_get_contents('{URL IS HERE}'));
$content = $doc->getElementById('anything');

echo $doc->SaveHTML($content);


Just change {URL IS HERE} to the actual url to grab the element with the id of "anything" to the actual URL.  Change anything to the actual ID of the element you wish to grab that exists at that url.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Stanyy on June 24, 2013, 05:04:24 AM
Hi all. I desperately would like to display the links from this mod in a new page in my forum. I created a new page using custom actions and would like to display links from this mod in it. Please it's urgent, I would be grateful to anyone willing to help.

@SoloGhost, would your grabber work in this case? If it would, can you write the exact code to use for this? Thanks.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on June 24, 2013, 07:48:37 AM
It would need to be a php page and you would need to query the smf_links table to get the links.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Stanyy on June 24, 2013, 12:27:30 PM
Yeah it's a php page. Could you provide the code for me, i'm not very knowledgeable in this kind of stuff. Thanks.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Stanyy on June 28, 2013, 12:49:45 PM
Could you provide more details at least? How do I query the smf_links table?

I can reproduce any of the source files and call it on the new page. I just don't know which file would be required. I really need help on this.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: littlenicki on July 01, 2013, 08:16:56 PM
Hello,

I just installed this mod and it went through without problems. However I now get this error when wanting to add a category:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
File: /home/public_html/smf/Sources/Links.php
Line: 315


Any help is greatly appreciated. Thank you!
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on July 01, 2013, 08:19:26 PM
Are you using MySQL?
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: littlenicki on July 02, 2013, 09:04:10 AM
Yes, I am using MySql.

Any advice on what I should do?

Thank you
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Stanyy on July 05, 2013, 09:28:51 AM
Quote from: vbgamer45 on July 01, 2013, 08:19:26 PM
Are you using MySQL?
Are you going to provide assistance or do I uninstall this mod as I do not have any other use of it?

If I can't display those links where I want them, then this mod would become useless to me.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on July 05, 2013, 10:26:10 AM
Sorry I do not have the time to do it. Unless you want to do a paid job.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: SoLoGHoST on July 13, 2013, 04:59:56 PM
Quote from: Stanyy on June 24, 2013, 05:04:24 AM
Hi all. I desperately would like to display the links from this mod in a new page in my forum. I created a new page using custom actions and would like to display links from this mod in it. Please it's urgent, I would be grateful to anyone willing to help.

@SoloGhost, would your grabber work in this case? If it would, can you write the exact code to use for this? Thanks.

Yes, it would work.  And you wouldn't have to worry about coding any database queries and/or all php code that is involved with permissions, since this is already coded on the SMF links page.  Like I said, you just replace with the URL where your SMF Links are, and than you can do a view source on the page to see the link and grab the ID from where these links are stored in.  In your situation, since the id is coming from a page that you host, it's sort of like stealing bandwidth from yourself.

If you don't know how to do this, just reply with the url of where your SMF Links exist.  I'll modify the DomDocument code I posted for you so that you can put it on any page and output those links.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Stanyy on July 15, 2013, 01:32:47 PM
Hello SoloGhost, I am very happy to see a reply from you. I will send you the link to you via pm.

Would it be possible to re-style the links? as I would like to display them in my mobile site.
Also would links I add in future appear in the grabber?
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: SoLoGHoST on July 15, 2013, 04:52:48 PM
You can use basic css or even jQuery/javascript to restyle the links however you want.  If you are grabbing from an id attribute that wraps all of the links within it, than yes, any links you add in the future will automatically be grabbed.

You can even use jQuery/javascript to grab only the links if need be, and put them inside of any element and destroy the table element also.  Or you could just use the DomDocument to just grab links (i.e. a tags within an id attribute).
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 01, 2013, 11:15:00 AM
Hi,

I know I may be about to ask a stupid question but here goes anyway:

I am currently running an older version of this Mod, can I just install the newer version over the top or do I have to uninstall the older version first?

SMF Version is: 1.1.18

The problem being I get the following message when I try that:

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Uninstall Actions
Installing this package will perform the following actions:
1.Execute Modification./Themes/default/languages/Modifications.english.php Test successful
2.Execute Modification./Themes/default/languages/Modifications.english-utf8.php Test successful
3.Execute Modification./Themes/default/languages/Who.english.php Test successful
4.Execute Modification./index.php Test successful
5.Execute Modification./Themes/default/index.template.php Test successful
6.Execute Modification./Sources/ManagePermissions.php Test failed
7.Execute Modification./Sources/Subs.php Test failed
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 01, 2013, 11:30:47 AM
You can just install the newer version on top of the old version.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 01, 2013, 12:26:09 PM

Quote from: vbgamer45 on September 01, 2013, 11:30:47 AM
You can just install the newer version on top of the old version.

Just tried that and whilst it reported no errors I now get the following errors in my Error log:

http://www.mydomain.co.uk/Forum/index.php?action=links;sa=admincat (http://www.mydomain.co.uk/Forum/index.php?action=links;sa=admincat)
Apply Filter: Only show the errors with the same message
8: Undefined index: session_var
File: /HOME_DIR_PATH/Forum/Themes/default/Admin.template.php (manage_cats sub template - eval?)
Line: 980

any ideas?



Thanks
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 01, 2013, 12:31:55 PM

Also these errors when I go to the links page:


8: Undefined index: session_var
File: /HOME_DIR_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79




http://www.bigbangburgerbar.co.uk/Forum/index.php?action=links;cat=7
2: Invalid argument supplied for foreach()
File: /HOME_DIR_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 324


http://www.bigbangburgerbar.co.uk/Forum/index.php?action=links;cat=7
8: Undefined index: links_cat_list
File: /HOME_DIR_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 324

Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 05, 2013, 03:13:26 PM

Anyone have any clues?


I am getting pages of errors like the ones I posted before and below everyday. Is there an easy fix for this or will I just have to workout how to manually remove this mod (as I still get the Test errors for the uninstall option)

http://www.mydomain.co.uk/Forum/index.php?action=links;cat=9;start=15
Invalid argument supplied for foreach()
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 324

http://www.mydomain.co.uk/Forum/index.php?action=links;cat=9;start=15
Undefined index: links_cat_list
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 324

http://www.mydomain.co.uk/Forum/index.php?action=links;cat=9
Invalid argument supplied for foreach()
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 324

http://www.mydomain.co.uk/Forum/index.php?action=links;cat=9
Undefined index: links_cat_list
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 324

http://www.mydomain.co.uk/Forum/index.php?action=links;sa=addlink
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/Post.template.php (addlink sub template - eval?)
Line: 659

http://www.mydomain.co.uk/Forum/index.php?action=links;sa=addlink
Undefined variable: catid
File: /HOME_DATA_PATH/Forum/Sources/Links.php
Line: 484

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79

http://www.mydomain.co.uk/Forum/index.php?action=links
Undefined index: session_var
File: /HOME_DATA_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)Line: 79



Many Thanks in advance.

Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 05, 2013, 03:17:55 PM
Try dispabling template eval there is a mod or guide on the SMF forums for this that will get the true error line number.
Title: Re: SMF Links (3.0.1 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Arantor on September 05, 2013, 03:23:49 PM
I'd be betting line 324 of whatever template would be generated by action=links;cat=9;start=15, wherever function template_mainview() is (which isn't a standard function)
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: SMFHacks.com Team on September 05, 2013, 03:39:28 PM
New update released should fix the errors listed above
3.0.2
!Fixed a couple undefined errors in SMF 1.1.x
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 05, 2013, 04:03:45 PM
Thanks both for your responses, I have uploaded and installed the latest updated version of the mod and can report those errors have now gone.




Now with the latest update I have tested editing an existing category and get the following errors:


http://www.mydomain.co.uk/Forum/index.php?action=links&amp;sa=editcat2
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' description = 'Links Related to board games', image = '' WHERE ID_CAT = 7 LIMIT' at line 2
File: /HOME_DATA_PATH/Forum/Sources/Links.php
Line: 408

http://www.mydomain.co.uk/Forum/index.php?action=links&amp;sa=editcat2
Undefined variable: image
File: /HOME_DATA_PATH/Forum/Sources/Links.php
Line: 408

http://www.mydomain.co.uk/Forum/index.php?action=links&amp;sa=editcat2
Undefined variable: parent
File: /HOME_DATA_PATH/Forum/Sources/Links.php
Line: 408



Many thanks for your help it is very much appreciated,  especially as you provide both the support and this mod freely.

Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 05, 2013, 04:06:40 PM
Sorry found this one as well when adding a new link:


http://www.mydomain.co.uk/Forum/index.php?action=links;sa=addlink
Undefined variable: catid
File: /HOME_DATA_PATH/Forum/Sources/Links.php
Line: 484




Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 05, 2013, 04:15:13 PM
Updated with a fix for those.
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 05, 2013, 04:28:12 PM
Sorry dude, hopefully these are the last ones  :-[


When editing an existing link

http://www.mydomain.co.uk/Forum/index.php?action=links&amp;sa=editlink2
No link selected


When launshing spell check when editing an existing link



http://www.mydomain.co.uk/Forum/index.php?action=spellcheck
pspell_new() [<a href='function.pspell-new'>function.pspell-new</a>]: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
File: /HOME_DATA_PATH/Forum/Sources/Subs-Post.php
Line: 1308

I might just have to find somewhere to hide giving you all this work...... Sorry
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 05, 2013, 04:33:27 PM
Ooops my bad ignore the spelling one, Looks like when I had my site moved to another server at my provider something got missed. Logging a call with them now for that.. Joy.


:-[ ::)
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 05, 2013, 04:54:16 PM
Updated fixed the editlink option
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: oridyne on September 05, 2013, 04:58:38 PM
Thanks vbgamer45 for your quick response and excellent help.


It is much appreciated, everything is working as expected again now.


Cheers

Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 05, 2013, 05:00:59 PM
Glad to help
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: ScrumpyJack on September 09, 2013, 04:32:39 PM
Hi,

I just installed the latest version of this mod on SMF 2.0.5 and get the following error messages

When I click on Manage Categories I get:

Unknown column 'ID_CAT' in 'where clause'
File: C:\wamp\www\SMF\Sources\Links2.php
Line: 1994

When I click on Approve Links I get:

Unknown column 'l.title' in 'field list'
File: C:\wamp\www\SMF\Sources\Links2.php
Line: 1291

Is anyone able to assist with this please?

I didn't get any errors during the installation test.

Thanks
:)
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 09, 2013, 04:39:41 PM
Did you have another links mod installed before installed SMF Links?
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: ScrumpyJack on September 09, 2013, 06:13:27 PM
Quote from: vbgamer45 on September 09, 2013, 04:39:41 PM
Did you have another links mod installed before installed SMF Links?

Hi vbgamer,

I did, yes. :(

Is there some code left over from that mod?

I'd like to be able to use one of the Links mods, but now none of them seem to work properly unfortunately.

I get the mentioned errors with SMF Links and the other mod doesn't seem to install the Admin Panel for links, despite their being no errors when installing.

:(

Thanks
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: SMFHacks.com Team on September 09, 2013, 06:34:55 PM
Uninstall SMF Links

Then in phpmyadmin do the following:

DROP table smf_links;
DROP TABLE IF EXISTS smf_links_cat;

Then reinstall SMF Links
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: ScrumpyJack on September 09, 2013, 07:03:44 PM
Quote from: SMFHacks.com Team on September 09, 2013, 06:34:55 PM
Uninstall SMF Links

Then in phpmyadmin do the following:

DROP table smf_links;
DROP TABLE IF EXISTS smf_links_cat;

Then reinstall SMF Links

Thanks for your help! :)

I'll try this tomorrow morning and let you know if it worked.

I really appreciate your help!

:)
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 09, 2013, 07:06:42 PM
No problem let me know how it goes.
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: ScrumpyJack on September 10, 2013, 02:12:47 PM
Hi again vbgamer,

I looked in the tables but there was nothing relating to the mod at all.

Any other ideas please?

Thanks

:
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 10, 2013, 02:13:22 PM
Did you drop those tables?
Title: Bug found in SMFLinks-3.0.2b.zip
Post by: iamjanco on September 25, 2013, 05:10:50 PM
Found a layout bug in Links2.template.php, as observed in latest versions of Chrome and Firefox on Win 7 64-bit. An extra closing div tag closes the content_section div before the footer section has a chance to load, when viewing the "links" page:
(http://i1329.photobucket.com/albums/w542/najnehoc/JAN-THINKS/Pictures/1d03be79-2f9d-47ac-8770-6398a263f54e_zpsd9d7b2dd.jpg)

Line 237 of the file reads:         echo '<div align="center" class="windowbg2">' . $txt['smflinks_thereare'] . '<strong>' . $cat_count . '</strong>' . $txt['smflinks_catand'] . '<strong>' . $link_count . '</strong>' . $txt['smflinks_linkssystem'] . '<><>';

Removing that extra closing div tag fixes the issue:


         echo '<div align="center" class="windowbg2">' . $txt['smflinks_thereare'] . '<strong>' . $cat_count . '</strong>' . $txt['smflinks_catand'] . '<strong>' . $link_count . '</strong>' . $txt['smflinks_linkssystem'] . '<>';

Edited (added): the bb editor here (uh, or the filtering functionality associated with using it here) is stripping code out the "code" formatted text. Look for the empty angle brackets to the right of each section, and you'll see what I'm trying to point out.
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on September 25, 2013, 05:27:26 PM
Thanks! Have posted an update with the fix included
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: iamjanco on September 26, 2013, 10:05:27 AM
You're welcome. Btw, looks like there's also an issue with the display of the bg image in the footer on the left side (see the links page at my site); my change may or may not have caused that. In any event, if I get time today I'll have a look at the code and post any additional updates I come up with.
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: AllanD on September 29, 2013, 03:16:57 PM
Just installed and working great. I keep getting an error in the logs though.


QuoteApply Filter: Only show the error messages of this URLhttp://cxxx.com/index.php?action=links;sa=addlinkApply Filter: Only show the errors with the same message8: Undefined variable: catidApply Filter: Only show the errors from this file File: /home/xxx/public_html/Sources/Links2.php
Line: 612

Any help would be great.
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: AllanD on October 06, 2013, 10:01:48 AM
Still getting this error message one someone makes post in the links - also how would I be able to change some the colors of the catbg without changing them on whole forum?
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Kindred on October 06, 2013, 10:13:00 AM
you can't change the colors without affecting the whole forum  --   that's the entire point of the theme designs --- your sub-pages inherit all of the colors and effect of the forum.
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: AllanD on October 06, 2013, 10:42:06 AM
I thought this was the case, never hurts to ask though.
Thank you for the reply.
Title: Re: SMF Links (3.0.2 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on October 08, 2013, 02:00:29 PM
Quote from: AllanD on September 29, 2013, 03:16:57 PM
Just installed and working great. I keep getting an error in the logs though.


QuoteApply Filter: Only show the error messages of this URLhttp://cxxx.com/index.php?action=links;sa=addlinkApply Filter: Only show the errors with the same message8: Undefined variable: catidApply Filter: Only show the errors from this file File: /home/xxx/public_html/Sources/Links2.php
Line: 612

Any help would be great.

3.0.3
!Fixed undefined error in SMF 2.0 on certain cases of add link
!Added alt tags for images on subcategory display
Title: Re: SMF Links (3.0.3 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: AllanD on October 08, 2013, 02:48:03 PM
Awesome, Thanks for the update.
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: SMFHacks.com Team on November 06, 2013, 10:44:09 PM
3.0.4
!Fixed some database issues with SMF 2.0.x
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Apllicmz on March 31, 2014, 07:28:04 PM
Any News about Portuguese files is done
send me when you  need it
Thank you
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: rexall9000 on April 10, 2014, 10:38:27 PM
Fri 11 Apr 2014, 9:36 am

Hi tried to look for this, but there are 54 (!!!) pages of comments.

Any chance of a version that allows for paid links?  Or anyway to customize this w/out too much blood, sweat and tears?

Thanks!
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on April 10, 2014, 11:33:16 PM
If you are php code you can do it otherwise I could do it but would be a paid job probably $150
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: rexall9000 on April 11, 2014, 01:24:19 AM
Thanks, vbgamer45!  $150 bucks isn't in the budget at the moment, but maybe down the road.  I was thinking of selling plain links for $1.  It would take 150 sales to recoup your fee!    :o
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: roshaoar on April 27, 2015, 03:53:36 PM
Would anyone know whether or not this passes pagerank? The links are all something like baseURL/?id=XXX so presumably they all point inside the site and prevent direct links to anything bad?

Thank you
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on April 27, 2015, 04:54:16 PM
Does not pass pagerank.
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: roshaoar on April 27, 2015, 05:39:07 PM
Thank you, vbgamer45!
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Elysia on June 24, 2015, 04:53:26 PM
Hello, I have a problem and am hoping for some advice please.

I've been using SMF Links for ages on my forum which was running on SMF 1.1.21 and it's worked perfectly. I have now moved hosting companies and migrated #the whole site across to the new server, but although SMF Links has a button on the menu bar and opens the Links screen, when I click on any action to set up a category or add a link, or do anything other than visit the main Links screen it gives me Forbidden message. Thinking it may be work better under SMF 2.0.10 I upgraded the forum via Softaculous but I am still getting the Forbidden message. In despair after trying everything I could think of, I removed SMF Links from the forum.

After more thinking about this I decded to have another try at making it work, and as I then suspected it may have been something left over from the v.1 installation that was causing the problem, I created a whole new SMF 2.0.10  forum on a spare domain on a different account on the new server, installed SMF Links 3.0.4 into SMF 2.0.10 and nothing else but am still getting the Forbidden message.   Here is the test on the spare domain forum: http://www.rhygnaron.org.uk/forum/index.php?action=links

I do not have an htaccess file in the webroot or in the forum subfolder, there is one in each of the SMF  Packages, backups and attachments folders which is a simple
<Files *>
   Order Deny,Allow
   Deny from all
   Allow from localhost
</Files>
and one in the cache folder which has the first two lines, but not the third line.

The old server ran PHP4.4.1, the new one runs PHP5.4.40.
Permissions on both servers are files 644, folders 755. 
Old server was a 2005 installation of FreeBSD 7.4-PRERELEASE #0: Fri i386,
new server is 2015 installation of Linux  2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 #1 SMP

I have tried accessing the Links on three browsers on my PC on one ISP and via Chrome on my tablet on another ISP and I get the same result on them all, so it does not appear to be a cache or cookie issue (unless I am missing something.)

Can anyone suggest what the problem may be please and how it may be fixed? Is it server-side (clearly there is something different in the way they work!) and if so what?

I can add links to the php info files on each server or copy/paste output to a post here if needed - the new server one runs to 20 pages printed A4 though! (Yes, I printed off both and went through them side by side to highlight every difference... and am still stuck!)

I hope I've given you all the info you may need to throw some light on this but if not please ask and I'll add more.

Thanks in hope! :)

Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on June 24, 2015, 06:30:48 PM
It is a mod_security problem check out
http://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Kindred on June 24, 2015, 07:02:02 PM
Also....   You should never, ever, ever use those auto installers like softaculous...
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Elysia on June 24, 2015, 07:06:51 PM
Thank you for responding so quickly, vbgamer45.

I have tried adding in an .htaccess file in for forum folder with the code you give above, but I am still getting the Forbidden message.  I can't find anything in the info.php file about mod_security - I assume it would show up there if it was on the server? 

I have also tried adding in the patch at the end of that topic, to see if that fixes things and it doesn't - still that pesky Forbidden message, so I am still well and truly stumped.  Is there anything I can do, or is it a speak to the hosting company situation?

What I don't understand is why it lets me access the Links index screen but no further? 

Kindred, why not please?
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Elysia on June 24, 2015, 07:12:32 PM
Just to test things a bit more, I copied and pasted into a new post the text from the Mod_Security post to see if it triggered anything (having first removed both the patch and the .htaccess file with the switch code in it) - and nothing changed, forum works as usual whereas I was expecting it to lock up...  this is awfully confusing.
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on June 24, 2015, 07:18:24 PM
If that doesn't work you may have to contact your host to disable mod_security for your website
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Elysia on June 24, 2015, 07:19:58 PM
OK I'll have a word and see what they say. Thanks for your help, much appreciated. :)
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: Looking on August 29, 2015, 08:40:56 AM
Good mod. A bug maybe: When trying to edit settings for regular members you get "No category selected". I saw someone mention it too but it wasn't addressed.
Title: Re: SMF Links (3.0.4 Released with SMF 2.0.x and SMF 1.1.x Support!)
Post by: vbgamer45 on August 29, 2015, 12:46:10 PM
New update
3.0.5
!Fixed a bug with category level permissions when editing for regular member group not working.
Title: Re: SMF Links
Post by: Looking on August 29, 2015, 05:01:07 PM
Thank you for the update and speedy service.
Title: Re: SMF Links
Post by: vbgamer45 on August 29, 2015, 11:12:28 PM
Glad to help.
Title: Re: SMF Links
Post by: t2hol on November 17, 2015, 10:23:08 PM
Hi,
I've just installed latest MOD version with SMF 2.0.11 but I got error when access the Link setting
=====================
Not Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SMF Links
Post by: Kindred on November 17, 2015, 10:47:05 PM
Would suggest a host side issue...   Either mod_security or a Wordpress security addon that intercepts the action
Title: Re: SMF Links
Post by: vbgamer45 on November 18, 2015, 12:27:03 AM
Yes it is a mod_security issue check out http://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security
Title: Re: SMF Links
Post by: mforum on April 09, 2016, 05:40:55 AM
Hi, i am using smf links 3.0.5 on SMF 2.0.11 ... forum language greek utf8 ... when i post in greek at category title, description i have a result of "Chinese"  characters  :o
Title: Re: SMF Links
Post by: vbgamer45 on April 09, 2016, 10:04:39 AM
Make sure all the links tables are utf8 instead of latin1 for the character set.
Title: Re: SMF Links
Post by: mforum on April 09, 2016, 11:28:13 AM
Quote from: vbgamer45 on April 09, 2016, 10:04:39 AM
Make sure all the links tables are utf8 instead of latin1 for the character set.

ohhh i have done only smf_links tables ... i switched all to utf8_general_ci and worked perfectly !!!
thanks a lot !
Title: Re: SMF Links
Post by: vbgamer45 on April 09, 2016, 11:36:09 AM
Glad to help
Title: Re: SMF Links
Post by: -Rock Lee- on April 09, 2016, 09:38:02 PM
Great job @vbgamer45 No doubt I'll use it for a project I'm starting to others :D Here I leave the translation to the Latin Spanish I hope will be useful :)

Regards!
Title: Re: SMF Links
Post by: vbgamer45 on April 09, 2016, 10:23:48 PM
Thanks for the translation!
Title: Re: SMF Links
Post by: Alpay on May 13, 2016, 02:06:07 AM
Does UTF-8 support?
Title: Re: SMF Links
Post by: vbgamer45 on May 13, 2016, 08:28:27 AM
Unknown give it a try. This is an old mod though.
Title: Re: SMF Links
Post by: Alpay on May 13, 2016, 02:32:09 PM
Links all Db tables => latin_swedish_ci => utf8_general_ci
problem solved ^^
Title: Re: SMF Links
Post by: vbgamer45 on May 13, 2016, 05:04:21 PM
glad you have it solved.
Title: Re: SMF Links
Post by: landyvlad on February 01, 2017, 09:31:25 PM
Am I missing something?  There doesn't appear to be any way to make this mod 'not active' (or rather, not visible to forum users ?

I want to get it all set up with the links and so on, before I "go live", if possible.

As it is, as soon as I install it 'Links' appears as a menu item for users.

If they click - nothing there yet - not a good look.


I apologise if I'm missing something that should be obvious :)
Title: Re: SMF Links
Post by: Kindred on February 01, 2017, 09:49:31 PM
Permissions
Title: Re: SMF Links
Post by: landyvlad on February 01, 2017, 09:56:26 PM
Ah ! under member permissions ! Got it!  I was looking for something in the mod settings themselves.  Cheers for that !
Title: Re: SMF Links
Post by: vbgamer45 on February 02, 2017, 01:02:36 PM
Glad you got it working! Yeah I try to make any of my mods that add a menu item permission based.
Title: Re: SMF Links (2.3.1 Released with SMF 2.0 Support!)
Post by: Westwegoman on November 05, 2017, 11:31:19 PM
Quote from: GlitchPC on December 26, 2011, 10:01:14 AM
Running SMF 2.0.2, along with the latest version of this mod.  (see attached image)

Why are there two different edit/delete links in this mod?

If the above is normal...then, why isn't there a description for the secondary drop-down menu?

Thanks, in advance...

I'm having a similar issue as in this post. https://www.simplemachines.org/community/index.php?topic=98911.msg3235889;topicseen#msg3235889

Some permissions are showing up twice. I have searched through the files but can't seem to find a duplication.

SMF Links 3.0.6 running on SMF 2.0.14
Title: Re: SMF Links
Post by: vbgamer45 on November 06, 2017, 12:48:02 AM
It was for own links and any links I guess the language strings were not setup correctly for 2.0
Title: Re: SMF Links
Post by: landyvlad on December 18, 2017, 07:33:27 AM
What is the update process please?  Is it just upload and install the new one, or do I uninstall./delete the old one first?
(It'd be cool if this info was included in the description of the mod, for easy reference)

Thanks
Title: Re: SMF Links
Post by: vbgamer45 on December 18, 2017, 09:09:54 AM
Either way works.
Title: Re: SMF Links
Post by: landyvlad on January 17, 2018, 05:16:14 AM
OK I am trying to uninstall v 3.0.5 to updated to latest version, but I'm getting this error in teh test..

Quote
5.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
   1.   Replace   ./Sources/ManagePermissions.php   Test failed
   2.   Replace   ./Sources/ManagePermissions.php   Test failed

Suggestions / help welcome please.
Title: Re: SMF Links
Post by: vbgamer45 on January 17, 2018, 11:10:08 AM
Install new version on top
Title: Re: SMF Links
Post by: landyvlad on January 17, 2018, 07:11:23 PM
Quote from: vbgamer45 on January 17, 2018, 11:10:08 AM
Install new version on top

So don't uninstall, install new version, and there should be no errors.
Assuming that works, do I then 'uninstall' the old one, or just 'delete' it from the package manager ?(but not files of course)  Thanks
Title: Re: SMF Links
Post by: vbgamer45 on January 17, 2018, 07:11:57 PM
You don't have to uninstall the old one just leave don't delete
Title: Re: SMF Links
Post by: landyvlad on January 17, 2018, 07:21:13 PM
OK will do.
To save me posting and you answering - does that same answer apply to your other mods?

Leaving old version in the package manager seems a bit untidy to me. Not having a go at you mate, just wondering. Perhaps you could clarify.  I thought that 'deleting' an entry from package manager only deleted the 'install' files, not any actual files that are used for the mod to work?
I may be wrong on this of course, jus wanting to get my head around it is all :)   

In any event, at least I'll be able to update some more of the mods tonight :)
Thank you :)
Title: Re: SMF Links
Post by: vbgamer45 on January 17, 2018, 07:25:09 PM
Well just saying if you ever have to uninstall things you would have to do it all manually in that case.
Title: Re: SMF Links
Post by: landyvlad on January 17, 2018, 08:22:39 PM
Oh OK, thanks mate.
Title: Re: SMF Links
Post by: landyvlad on January 20, 2018, 02:04:56 AM
The new version installed over the old no problem, I now have this in the package manager:

Quote
1.   SMF Links   3.0.5   Today at 05:02 pm   [ Upgrade ] [ List Files ] [ Delete ]
2.   SMF Links   3.0.6     Today at 05:02 pm   [ Uninstall ] [ List Files ] [ Delete ]

no green dot next to 3.0.5
green dot next to 3.0.6

Just leave as is now?
Title: Re: SMF Links
Post by: vbgamer45 on January 20, 2018, 08:37:49 AM
yes just leave it.
Title: Re: SMF Links
Post by: SaltedWeb on January 20, 2018, 08:27:30 PM
Wasn't sure reading the description what this mod does? Not trying to overload my forum with mods but was curious what it does exactly or where is the effective visuals seen in the mods actions?

Thanks.
Title: Re: SMF Links
Post by: vbgamer45 on January 20, 2018, 08:28:58 PM
It adds a button to your menu called Links which then displays a link directory
Title: Re: SMF Links
Post by: landyvlad on January 20, 2018, 09:53:09 PM
First pic is the menu bar

Second pic is an example of a page within the links.  You can have all sort s of nested categories etc etc
(Obviously the logged in user is an admin as the additional options to thew right illustrate)

Hope this helps.

:)

Title: Re: SMF Links
Post by: SaltedWeb on January 20, 2018, 11:30:02 PM
Oh.. ok thats cool. Thank you was reading thru the ID wasn't sure... appreciate it  :-)
Title: Re: SMF Links
Post by: landyvlad on January 21, 2018, 03:55:20 AM
No problems mate. :)
Title: Re: SMF Links
Post by: SaltedWeb on February 13, 2018, 11:52:51 PM
Must be losing it, forgot I already looked at this mod.

Installs and works great, I want to do a few edits >

1. Change the  LINKS name on top
2. Change the Description name to something else.
3. Add a pic on the top where the words Links are.

If anyone can tell me what file names I can probably get it fine from there.

Thank you
Title: Re: SMF Links
Post by: vbgamer45 on February 14, 2018, 12:09:04 AM
For 1/2 would be the language files should be in themes/default/languages
modifications.english.php
and links.english.php
Title: Re: SMF Links
Post by: SaltedWeb on February 14, 2018, 11:25:59 AM
Quote from: vbgamer45 on February 14, 2018, 12:09:04 AM
For 1/2 would be the language files should be in themes/default/languages
modifications.english.php
and links.english.php
Thank you appreciate it :-)
Title: Re: SMF Links
Post by: SaltedWeb on February 14, 2018, 12:48:34 PM
Ok so did those edits thank you again,

I have another question. Is there a way to add a Http:// in the description?
and or expand the description content as it only allows a few lines and a need more room.

Installed fine no issues, uninstalled no issues I have a couple mods installed and interacted so far just fine.
Title: Re: SMF Links
Post by: vbgamer45 on February 14, 2018, 12:52:39 PM
Could be done just requires coding.
Title: Re: SMF Links
Post by: SaltedWeb on February 14, 2018, 01:17:06 PM
Ok I'll see if I can figure it out some, not great at coding, any idea where one would start to do such a modification?
I would guess allowing more characterless would be the easiest?

Thanks for the quick response.
Title: Re: SMF Links
Post by: vbgamer45 on February 14, 2018, 02:34:09 PM
Hard to say I have someone update that mod for me I don't know where the code would be offhand.
Title: Re: SMF Links
Post by: SaltedWeb on February 14, 2018, 02:37:40 PM
That OK, its a great mod unfortunately just a couple limits to get past.
Just a tad  limited, not enough description area and no way to place items in order.

For what I was going to use it for it won't work as well, but thank you for the help.
I think I will just write up HTML for what I was going to do and do that, will take allot longer but will
allow me to have the areas I need. Again thank you. :)
Title: Re: SMF Links
Post by: vbgamer45 on February 14, 2018, 02:39:18 PM
Well the description content you can change the database field type to text and that should allow more space in the descriptions
Title: Re: SMF Links
Post by: Kindred on February 14, 2018, 02:39:50 PM
why add http in the description? the description is not the link and shouldn't have links....

adding more text may be as simple as adding more to the field length in the form (links.template.php) but might also require changing the database addition code and the database field, depending on how it's currently coded/set up.

However, I just tested and I get as many lines as I want...
https://los.turtleshellprod.com/index.php?action=links;cat=1
(see second entry)


Adding an image would be a little complicated...   you'd have to either duplicate the attachment or avatar file upload process  ---   or just allow a URL for the image and make sure the image is present at that URL.

Changing the sorting would be as simple as setting a variable and using it to determine the sort order in the read-out database array
Title: Re: SMF Links
Post by: landyvlad on March 14, 2018, 11:43:09 PM
Will this mod be made SMF2.1 compatible ?
Title: Re: SMF Links
Post by: vbgamer45 on March 15, 2018, 10:20:21 AM
When 2.1 final gets released.
Title: Re: SMF Links
Post by: landyvlad on March 15, 2018, 08:51:48 PM
thank you :)
Title: Re: SMF Links
Post by: Tricky-Ricky on September 16, 2018, 01:19:30 PM
Is there a simple portal block that shows last 5 links iv tried all of there site but non work thanks
Title: Re: SMF Links
Post by: vbgamer45 on September 17, 2018, 08:49:22 AM
I don't have one premade for simple portal I do do for ezportal similar code that could be copied though.

Bump up the topic on simple portal I can check it out too.
Title: Re: SMF Links
Post by: Tricky-Ricky on September 17, 2018, 02:43:43 PM
Quote from: vbgamer45 on September 17, 2018, 08:49:22 AM
I don't have one premade for simple portal I do do for ezportal similar code that could be copied though.

i could try the code you have for ezportal might work?

and hmmmmm iv just searched again on simple portal and im getting no hits today how strange.
Title: Re: SMF Links
Post by: vbgamer45 on September 17, 2018, 02:45:37 PM
The code is in ezportal embeded here it is simple code

$dbresult = $smcFunc['db_query']('', "
SELECT
l.ID_LINK,l.title,l.date, l.pagerank, l.alexa, l.rating, m.real_name, l.ID_MEMBER, l.description,l.hits
FROM {db_prefix}links AS l
LEFT JOIN {db_prefix}members AS m  ON (l.ID_MEMBER = m.ID_MEMBER)
WHERE l.approved = 1 ORDER BY l.ID_LINK DESC
LIMIT 5");
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
{
echo '<a href="' . $scripturl . '?action=links;sa=visit;id=' . $row['ID_LINK'] . '" target="blank">' . $row['title'] . '</a><br />';
}
$smcFunc['db_free_result']($dbresult);
Title: Re: SMF Links
Post by: Tricky-Ricky on September 17, 2018, 02:48:40 PM
Hmmmm its saying

Function name must be a string?
Title: Re: SMF Links
Post by: vbgamer45 on September 17, 2018, 02:49:56 PM
What SMF version are you using?
Title: Re: SMF Links
Post by: Tricky-Ricky on September 17, 2018, 02:50:51 PM
I'm using 2.0.15
Title: Re: SMF Links
Post by: vbgamer45 on September 17, 2018, 02:52:43 PM
Try
[code
global $smcFunc;

$dbresult = $smcFunc['db_query']('', "
SELECT
l.ID_LINK,l.title,l.date, l.pagerank, l.alexa, l.rating, m.real_name, l.ID_MEMBER, l.description,l.hits
FROM {db_prefix}links AS l
LEFT JOIN {db_prefix}members AS m  ON (l.ID_MEMBER = m.ID_MEMBER)
WHERE l.approved = 1 ORDER BY l.ID_LINK DESC
LIMIT 5");
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
{
echo '<a href="' . $scripturl . '?action=links;sa=visit;id=' . $row['ID_LINK'] . '" target="blank">' . $row['title'] . '</a><br />';
}
$smcFunc['db_free_result']($dbresult);
Title: Re: SMF Links
Post by: Tricky-Ricky on September 17, 2018, 03:00:58 PM
Wow man your good.

works a treat thanks ever so much.
Title: Re: SMF Links
Post by: vbgamer45 on September 17, 2018, 03:01:34 PM
Glad to help
Title: Re: SMF Links
Post by: landyvlad on April 08, 2019, 07:40:12 PM
I see it SMF 2.0.15 compat but 
Is this (or is it likely to be updated to be)  SMF 2.1 RC2 compatible?
Title: Re: SMF Links
Post by: vbgamer45 on April 08, 2019, 07:54:43 PM
Maybe one day.
Title: Re: SMF Links
Post by: landyvlad on April 08, 2019, 07:57:21 PM
A very prompt and very safe reply   :laugh:

Cheers mate
Title: Re: SMF Links
Post by: njtweb on April 08, 2019, 08:10:30 PM
I don't get what purpose a link directory serves? Who uses this and why? What is it for?
Title: Re: SMF Links
Post by: Kindred on April 08, 2019, 08:14:02 PM
I use a link directory on 4 different sites,  and only 3 of then run smf...

It serves exactly the purpose you would imagine. It's a directory.
Title: Re: SMF Links
Post by: njtweb on April 08, 2019, 08:18:06 PM
Quote from: Kindred on April 08, 2019, 08:14:02 PM
I use a link directory on 4 different sites,  and only 3 of then run smf...

It serves exactly the purpose you would imagine. It's a directory.

For what? Your links, somebody elses links? Links to what, a directory of what? I've seen links directory mods since the vbulletin days all the way back to 05. Does it help with SEO? I read about it but still don't see a purpose for it.
Title: Re: SMF Links
Post by: Kindred on April 08, 2019, 08:21:51 PM
No,   it doesn't help seo at all.
It's put there for the benefit of your users.

Links are typically to other sites.

This one is not smf, but it's a perfect example

https://www.chelmsforddogassociation.org/links/
Title: Re: SMF Links
Post by: landyvlad on April 09, 2019, 01:55:23 AM
and this is on a smaller SMF site
http://gsx1400owners.org/forum/index.php?action=links
Title: Re: SMF Links
Post by: njtweb on April 09, 2019, 08:06:22 AM
Ok, I see. So it's basically a page for links to anywhere.

I did that with coaches tools but I just made a post so others can comment on it to add or remove links or to ask questions. Pretty much the same idea, I think.

https://www.youthhockeyinfo.com/index.php?topic=627
Title: Re: SMF Links
Post by: Kindred on April 09, 2019, 08:54:07 AM
But that is a topic.... there is no tracking of what links are clicked,  how many times or gathered statistics...  its not a menu linked page that users can easily find.
Title: Re: SMF Links
Post by: MoonCat on January 17, 2020, 03:08:27 PM
Hi,

one of the boards on my forum is library of books.
The books are PDF files stored on google drive.

Every topic is book name, description, pictures and link to download book.

However, I'd like the link to be available or clickable only to users with certain permissions (based on the member's activity).

Would this mod help me to achieve that? If not, is there other available mod you can advise that may help?

Thanks
Title: Re: SMF Links
Post by: vbgamer45 on January 17, 2020, 03:27:59 PM
I don't believe this mod had link permissions by membergroups.

Maybe check out my download system mod might help.
Title: Re: SMF Links
Post by: MoonCat on January 18, 2020, 06:41:25 AM
Thanks, vbgamer45. I'll review the other mod, I know you also have Pro version of it in your store. Hopefully, it does what i need.
Title: Re: SMF Links
Post by: vbgamer45 on January 18, 2020, 09:29:05 AM
If you have any questions let me know.
Title: Re: SMF Links
Post by: humbleworld on June 19, 2020, 09:16:19 PM
Hi vbgamer, how to access the admin page of this mod? The installation went perfect but the admin setting page does not show up. Thanks.
Title: Re: SMF Links
Post by: vbgamer45 on June 19, 2020, 09:33:02 PM
There should be a Links section in the sidebar if not might require language file edits.
Title: Re: SMF Links
Post by: Shades. on September 22, 2020, 03:44:51 PM
Is there a way for members to suggest a category or let them add a category to be approved by admin?
Title: Re: SMF Links
Post by: vbgamer45 on September 22, 2020, 03:58:50 PM
There is not.
Title: Re: SMF Links
Post by: mickjav on August 07, 2021, 07:57:50 AM
Just installed this mod works a treat thanks vbgamer45

I'm on 2.0.18
Title: Re: SMF Links
Post by: Shades. on September 11, 2021, 11:02:48 PM
I would love to see this updated for 2.1. It works as is but has a few ignorable errors need fixed and css tweaks needed! ;)

I know youre busy vbgamer45, just adding to my wish list...lol! O:)
Title: Re: SMF Links
Post by: mickjav on October 16, 2021, 10:12:59 AM
Quote from: Shades. on September 11, 2021, 11:02:48 PMI would love to see this updated for 2.1. It works as is but has a few ignorable errors need fixed and css tweaks needed! ;)

I know youre busy vbgamer45, just adding to my wish list...lol! O:)

Ditto

Also adding to my wishlist for next version Feature:
Check links every xx Days/weeks to see if they are still working if not tag link for moderation.

mick
Title: Re: SMF Links
Post by: Speed King on November 07, 2021, 07:16:39 AM
Testing this mod with SMF 2.1 RC4+

- Installed without errors  8)
- Creating of categories and links - successful
- missing two images:
.../Themes/default/images/post/thumbdown.gif
.../Themes/default/images/post/thumbup.gif

Such files exist in SMF 2.1, but with PNG extension

- error messages in server log:

[07-Nov-2021 13:34:17 Europe/Sofia] PHP Warning:  Undefined variable $sc in /home/***/public_html/BNF/Sources/Admin.php on line 141
[07-Nov-2021 13:34:23 Europe/Sofia] PHP Warning:  Undefined array key "show_bbc" in /home/***/public_html/BNF/Themes/default/Links2.template.php on line 585
[07-Nov-2021 13:34:48 Europe/Sofia] PHP Warning:  Trying to access array offset on value of type null in /home/***/public_html/BNF/Sources/Links2.php on line 389
Title: Re: SMF Links
Post by: vbgamer45 on November 08, 2021, 02:49:47 PM
Thanks, yeah has not been updated for 2.1 yet.
Title: Re: SMF Links
Post by: landyvlad on February 09, 2022, 07:26:55 PM
I have this mod installed on 2.0.19.

It would be great to see tis updated for 2.1.0 now it has been released.

What are the chances, SMFHacks peeps?
Title: Re: SMF Links
Post by: Shades. on March 15, 2022, 04:48:18 PM
Quote from: landyvlad on February 09, 2022, 07:26:55 PMI have this mod installed on 2.0.19.

It would be great to see tis updated for 2.1.0 now it has been released.

What are the chances, SMFHacks peeps?
I need this on 2.1.1 too! O:)
Title: Re: SMF Links
Post by: Saftek on April 15, 2022, 09:12:58 PM
Are you planning to update this for 2.1?  Right now it throws a lot of errors after I re-installed 3.0.6 in SMF 2.1. I see someone else has asked the same question.
Title: Re: SMF Links
Post by: vbgamer45 on April 16, 2022, 07:26:00 AM
At some point.
Title: Re: SMF Links
Post by: vbgamer45 on May 14, 2022, 10:21:52 AM
Update

4.0
+Added support for SMF 2.1
!Fixed bug with reorder links.
+Check links submitted start with http or https
Title: Re: SMF Links
Post by: mickjav on May 14, 2022, 10:25:07 AM
Cool Thanks Will install On Test Site
Title: Re: SMF Links
Post by: mickjav on May 14, 2022, 10:32:14 AM
Installed and works fine please note the attached image
Title: Re: SMF Links
Post by: FrizzleFried on May 14, 2022, 10:41:45 AM
Was thinking that maybe mickjav above didn't tick to install in other themes hence the reason the thumbs up and down images are missing... but nope... stock theme... two icons are missing.

ScreenHunter 445.jpg
Title: Re: SMF Links
Post by: FrizzleFried on May 14, 2022, 10:44:41 AM
BTW... annoying behavior:  If you fail to include http or htts you have to go back... no problem,  but then all your info is gone and you have to re-type.  Any way to retain that info when you click back?
Title: Re: SMF Links
Post by: vbgamer45 on May 14, 2022, 10:45:23 AM
Fixed thanks for the report.
Title: Re: SMF Links
Post by: mickjav on May 14, 2022, 11:21:31 AM
Sorted Thanks
Title: Re: SMF Links
Post by: FrizzleFried on May 14, 2022, 11:27:19 AM
Quote from: vbgamer45 on May 14, 2022, 10:45:23 AMFixed thanks for the report.

Not sure if you meant that the BACK issue was fixed.  As I just checked and clicking the BACK button on your browser DOES retain the info ... but clicking BACK on the page and you lose the entry.

Icons are now showing.  Main page column alignment could be improved... (see below).

Thanks for updating to 2.1!

Title: Re: SMF Links
Post by: vbgamer45 on May 14, 2022, 11:53:27 AM
It was just the icon/gif fixed
Title: Re: SMF Links
Post by: Shades. on May 14, 2022, 12:39:01 PM
I've always liked this mod thanks for updating it! 8)

Any chance you can add the ability to add an image (logo or banner) per link in a future update? O:)

I know, we always want more huh!? ::)  ;D
Title: Re: SMF Links
Post by: mickjav on May 14, 2022, 12:58:42 PM
Quote from: Shades. on May 14, 2022, 12:39:01 PMAny chance you can add the ability to add an image (logo or banner) per link in a future update? O:) 

Somebodies been peaking at my Wishlist  ;D  ;D
Title: Re: SMF Links
Post by: vbgamer45 on May 14, 2022, 01:18:47 PM
I can't believe you guys like it so much lol.
This is one of my poorer mods, along the articles one.
Mainly because I don't have a premium version of it/lack of time to update it/add features.
Title: Re: SMF Links
Post by: mickjav on May 14, 2022, 02:37:02 PM
Should you find time to create a premium version I'll let you peak at my Wishlist  ;D  ;D  ;D   
Title: Re: SMF Links
Post by: Oldiesmann on May 16, 2022, 09:52:26 PM
A couple of bugs relating to category order:
In the admin center, categories are shown in a different order than on the links page
Trying to move a category up doesn't work - you just get an error saying "No category selected"
Title: Re: SMF Links
Post by: vbgamer45 on May 16, 2022, 11:05:37 PM
Quote from: Oldiesmann on May 16, 2022, 09:52:26 PMA couple of bugs relating to category order:
In the admin center, categories are shown in a different order than on the links page
Trying to move a category up doesn't work - you just get an error saying "No category selected"
Fixed both issues new release posted SMF Links 4.0.1
Title: Re: SMF Links
Post by: Oldiesmann on June 01, 2022, 10:56:33 PM
Found another issue. Trying to sort links doesn't work - you click on a column and links are still shown in the same order (date added) regardless of which column you click on.
Title: Re: SMF Links
Post by: _sebas_ on March 20, 2023, 06:45:52 PM
Does anyone know how SEO is currently for own and external links?
Title: Re: SMF Links
Post by: mickjav on March 25, 2023, 11:16:26 AM
My Version: 4.0.1

Just imported links to my links table and while testing.

I noticed the sorting for any category doesn't work , I've tried different categories with same result

Also made some edits to the links' table, adding index to ID_CAT & ID_MEMBER

I did have a look at links.2.php

The only thing I'm not sure about is:

on line 154
}
else
$sort = 'l.ID_LINK';

I may be missing something and probably am, but is the above needed if the switch has a default?

if (!empty($_REQUEST['sort']))
{
switch($_REQUEST['sort'])
{
case 'title':
$sort = 'l.title';
break;
case 'date':
$sort = 'l.date';
break;
case 'rating':
$sort = 'l.rating';
break;
case 'hits':
$sort = 'l.hits';
break;
case 'username':
$sort = 'm.real_name';
break;
default:
$sort = 'l.ID_LINK';
}
}
else
$sort = 'l.ID_LINK';


Title: Re: SMF Links
Post by: mickjav on March 25, 2023, 12:16:58 PM
Think I just found an Unneeded Query

        GetCatPermission($cat, 'view');
        // List all the catagories
        $dbresult = $smcFunc['db_query']('', '
            SELECT title, ID_CAT, art_id
            FROM {db_prefix}links_cat
            WHERE ID_CAT = {int:this_cat}
            LIMIT 1',
            array(
                'this_cat' => $cat
            )
        );
        $row = $smcFunc['db_fetch_assoc']($dbresult);
       
        if (empty($row['ID_CAT']))
            fatal_error($txt['smflinks_nocatselected'], false);
       
        // Set the page title
        $context['page_title'] = $mbname . $txt['smflinks_title'] . ' - ' . $row['title'];

        GetParentLink($cat);

        $smcFunc['db_free_result']($dbresult);
       
        $dbresult = $smcFunc['db_query']('', '
            SELECT ID_CAT, title, description, art_id
            FROM {db_prefix}links_cat
            WHERE ID_CAT = {int:this_cat}
            LIMIT 1',
            array(
                'this_cat' => $cat
            )
        );
        $row = $smcFunc['db_fetch_assoc']($dbresult);
        $context['linkscatrow'] = $row;
        $smcFunc['db_free_result']($dbresult);

I have edited It To

GetCatPermission($cat, 'view');

$dbresult = $smcFunc['db_query']('', '
SELECT ID_CAT, title, description, art_id
FROM {db_prefix}links_cat
WHERE ID_CAT = {int:this_cat}
LIMIT 1',
array(
'this_cat' => $cat
)
);
$row = $smcFunc['db_fetch_assoc']($dbresult);

if (empty($row['ID_CAT']))
fatal_error($txt['smflinks_nocatselected'], false);

$context['linkscatrow'] = $row;
$smcFunc['db_free_result']($dbresult);

// Set the page title
$context['page_title'] = $mbname . $txt['smflinks_title'] . ' - ' . $row['title'];

GetParentLink($cat);

Tested this on my test forum and seems to work as before please let me know if I missed something.

All The Best mick
Title: Re: SMF Links
Post by: mickjav on April 22, 2023, 05:25:03 AM
Quote from: Oldiesmann on June 01, 2022, 10:56:33 PMFound another issue. Trying to sort links doesn't work - you click on a column and links are still shown in the same order (date added) regardless of which column you click on.

I couldn't find a solution to this error, so decided to do a redesign of that section adding a search which I think is better for me as I have nearly 1500 links

https://www.databasedreams.co.uk/charts/index.php?action=links;cat=4


Anybody interest in code post reply Also have to give credit to @Diego Andrés for showing me how to do it with my gallery Mod.
Title: Re: SMF Links
Post by: mickjav on April 22, 2023, 06:37:40 AM
To clarify, the code was @Diego Andrés I just copied it and set it, so it would work with links, so prob need Diego's OK before posting code as he wrote the code I used??

Mick
Title: Re: SMF Links
Post by: Diego Andrés on April 22, 2023, 04:12:41 PM
Yes I'm fine with it  :D
Title: Re: SMF Links
Post by: mickjav on May 16, 2023, 01:44:15 PM
I will post more updates over the next few days

First:

These edits allow you to add a post to a user's post count, plus sends all admins a message when a new link is added that requires approval (Note I copied The Below function from @vbgamer45 Gallery mod)

Code (Add founction at end of file links2.php) Select
function LinksEmailAdmins($subject, $body, $additional_recipients = array())
{
global $smcFunc, $sourcedir;

    // Fix subject line/body
    $body = str_replace("&#039;","'",$body);
    $subject = str_replace("&#039;","'",$subject);

    // We certainly want this.
require_once($sourcedir . '/Subs-Post.php');

// Load all groups which are effectively admins.
$request = $smcFunc['db_query']('', '
SELECT id_group
FROM {db_prefix}permissions
WHERE permission = {string:admin}
AND add_deny = {int:add_deny}
AND id_group != {int:id_group}',
array(
'add_deny' => 1,
'id_group' => 0,
'admin' => 'smfgallery_manage',
)
);
$groups = array(1);
while ($row = $smcFunc['db_fetch_assoc']($request))
$groups[] = $row['id_group'];
$smcFunc['db_free_result']($request);

$request = $smcFunc['db_query']('', '
SELECT id_member, member_name, real_name, lngfile, email_address
FROM {db_prefix}members
WHERE (id_group IN ({array_int:group_list}) OR FIND_IN_SET({raw:group_array_implode}, additional_groups) != 0)
ORDER BY lngfile',
array(
'group_list' => $groups,
'group_array_implode' => implode(', additional_groups) != 0 OR FIND_IN_SET(', $groups),
)
);
$emails_sent = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
// Stick their particulars in the replacement data.

// Then send the actual email.
sendmail($row['email_address'], $subject, $body, null, 'errors', false, 1);

// Track who we emailed so we don't do it twice.
$emails_sent[] = $row['email_address'];
}
$smcFunc['db_free_result']($request);

// Any additional users we must email this to?
if (!empty($additional_recipients))
foreach ($additional_recipients as $recipient)
{
if (in_array($recipient['email'], $emails_sent))
continue;

// Send off the email.
sendmail($recipient['email'], $subject, $body, null, 'errors', false, 1);
}
}

Code (Add at end of links.english.php) Select
//Email Admin
$txt['Music_links_new_link'] = 'New Link needs approval';
$txt['Music_links_new_link_added'] = 'A new link has been added and needs approval. To review new link visit %url';

Code (Replace code in links2.php) Select
// Redirect back to category
if ($approved)
redirectexit('action=links;cat=' . $catid);
else
fatal_error($txt['smflinks_linkneedsapproval'], false);

Code ( Replace above with) Select
//Edit link below for your Forum
$AdminLnk = 'My Forum URL';
$body = $txt['Music_links_new_link_added'];
    $body = str_replace("%url", $AdminLnk . '/admin/?area=links;sa=alist',$body);

//Add To their post count
if ($user_info['id'] != 0)
{
require_once($sourcedir . '/Post.php');
     updateMemberData($user_info['id'], array('posts' => '+'));
}

// Redirect back to category
if ($approved){
redirectexit('action=links;cat=' . $catid);

}else{
LinksEmailAdmins($txt['Music_links_new_link'],$body);
fatal_error($txt['smflinks_linkneedsapproval'], false);
}
Title: Re: SMF Links
Post by: mickjav on May 29, 2023, 04:15:58 AM
This edit Sends The member who added a link a pm on approval of the link.

Code (find in links2.php function Approve()) Select
redirectexit('action=admin;area=links;sa=alist');

Code (Add Above) Select
Automated_Approval_PM($id);

Add function to bottom of links2.php "Note I haven't added any language strings"
Credit: @Doug Heffernan code edited from showcase mod (https://www.simplemachines.org/community/index.php?topic=580871.0)

function Automated_Approval_PM($id)
{
global $smcFunc, $modSettings, $sourcedir, $user_profile, $txt;

require_once($sourcedir . '/Subs-Post.php');

$mem_id = 1; //Update for your ID

$results = $smcFunc['db_query']('', '
SELECT ID_MEMBER, title
FROM {db_prefix}links
WHERE ID_LINK = {int:id}
LIMIT 1',
array(
'id' => $id,
)
);

list ($owner, $title ) = $smcFunc['db_fetch_row']($results);
$smcFunc['db_free_result']($results);

    $pm_sender = $mem_id;
    loadMemberData($pm_sender, false, 'normal');

        $pm_subject = 'Link Approval';
$pm_body = 'The link you added for ' . $title . ' has been approved.';

    $pm_to = array(
'to' => array($owner),
'bcc' => array(),
    );
   
        $pm_from = array(
'id' => $mem_id,
'name' => (isset($user_profile[$pm_sender]['real_name'])),
'username' => (isset($user_profile[$pm_sender]['member_name'])),
    );

sendpm($pm_to, $pm_subject, $pm_body, false, $pm_from);
}
Title: Re: SMF Links
Post by: mickjav on June 01, 2023, 05:48:28 PM
Finally, found what was causing the main category page to push my right column down below the left column

Code ("Around Line 207 of links.template Find") Select
    echo '</div></div>';
Code ("Replace with") Select
    echo '</div>';
Title: Re: SMF Links
Post by: peter_mein on June 02, 2023, 04:32:05 AM
Hello
I find many errors in the admin center.
The error is No link selected.
See attachment.

SMS 2.1.3
Mod:4.0.1

Title: Re: SMF Links
Post by: vbgamer45 on July 04, 2023, 10:41:22 PM
Update
4.1
!Fully hook for SMF 2.1.x
!Fixed bug with sorting inside categories
!Fix logging of errors for links that no longer exist.


@Oldiesmann  @peter_mein
Title: Re: SMF Links
Post by: mickjav on October 30, 2023, 05:51:46 PM
Added a final Edit which I sort of borrowed from the Galleries stats  ;D

Added info here: https://www.databasedreams.co.uk/support/index.php?action=showcases;sa=view;id=61