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)
CompatibilityWorks with SMF 2.1.X and SMF 2.0.x and SMF 1.1.x
DescriptionA 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 LinksSMF 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)
Very nice, Do you have a screenshot at all that we can check out. This sounds real good.
Yeah, screenshot would be nice
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)
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
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
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.
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.
you try use <img src="image url">
A really nice mod - just what I was looking for :D A "nice if" for the future would be subcategories.
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.
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?
ah ok I see. Still great mod.
I will add option though in next release to include an image next to a link or a picture of your site.
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.
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
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.
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"
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.
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
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 :)
I agree with the banners, that is what I was attempting with the whole image thing.
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 ?
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.
Can the admin not add a link themselves?
**Edit** Thanks for the PM vbgamer.
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.
how i make to work whit the elios theme?
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.
You need to make sure that links.template.php is the theme's folder and that links.php is in the sources folder.
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
Ok, I figured it out - The default Theme Folder didin't have the right permissions, now it works! THX
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... :)
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.
Thanks man.. I'll test it out shortly
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!
Next version buddy. I will have an option for that heh.
glad to hear that ^^
look forward to the next version !! :)
wow there is a next version too?
cool cant wait :D
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?
Change all the memberName in Links.template.php to realName
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.
Another awesome mod from vbgamer45 ;D
Will try to install it in my board later :D
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
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
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.
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.
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?
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)
OK I am sorry.. which files?
Do I unzip it and load them by ftp and alll by hand?
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
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 :(
i can't use it in chinese smf. could it make to support in chinese smf? i want to link to another website
Is it broken with chinese? Might need to add utf support but I do not know how to do that yet.
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.
Yeah you can create a link to all it needs to is point to yourforum.com/index.php?action=links
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?
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?
how about adding Google PR?
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.
Well the PR wouldn't change that quick would it?.. or how about having it so that the members updates it themselves..
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.
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
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
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
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 ::))
I could realy use something like this for TinyPortal! Can you make a TP compatible package that will add a menu button to TP?
I hear that there may be a link manager in TP next version, not sure what it will be like but it is planned..
Well, 0.95 was just released to the public, could take month for the final version...
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)
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.
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
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.
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
i have problems with rights, Admin can use it, but not standardusers
Tips
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
I get crasy over this admin-rights thing..
Can u walk me throu it?
/A
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.
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]
Has that got anything to do with this MOD?
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.
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
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 :)
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 :)
I've just installed this mod on 1.1.rc3. Nice one.
Some suggestions - some already mentioned.
Creation of sub catagories
Switch on/off different columns (which allow the description more space) such as Hits, Rating, Member Name and Date.
Alphabetical display of the links, not the order they were added
Option to not have descriptions of catagories, and allow more on screen space using tables (2 columns for example)
Anyway, great mod.
m
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
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 :)
Its currently a one way link. There is link approval option though.
vbgamer45: That is great !!! With the link approval just made my day !!
Thanks a lot ! :D
btw.. Is there a FRENCH language file for this mod ?
No language packs have been made yet but feel free to make them heh.
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
Something in december I think for the next update. Been very busy lately though.
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 ) ;)
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.
sounds good
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
Incorrect table name ''
File: /var/www/chaosempire.info/html/forum/Packages/temp/linksql.php
Line: 13
any idea on this???
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.
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 :)
It seems to be a server config issue. Generally on most servers they install fine.
if i install other packages, everything works fine...
since month
Yeah, I'd like to have it in a TP Block too... seems still quite some time until TTP got something like that itself
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);
}
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
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!
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.
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?
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
2. I added sub categoreis in the latest release and a lot of other changes.
Check it out.
So it is.. Apologies for not seeing that! Nice one!
works very well on my site. Thanks! using 1.1 too!
no problem here. good job, tks.
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
check your permissions for the Links module
ull have to click those membergroups who can access and add link
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.
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
Is there any way to get the links that are added in alphabetical order?
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 :(
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
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.
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?
Alexa and pagerank do not work yet.
Is there a way for users to vote on links and set the top most voted links to the top? :D
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.
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!!
The image column is not really needeed yet. tinytext is about the same length as the varchar setting. So nothing to worry about.
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 . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
]]></add>
</operation>
- just made a few changes to reflect the SMF style used.
Thanks again :D
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
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 . '"> </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 . '"> </td>' : '';
Add after
// the [links] button
if ($context['allow_view_smflinks'])
echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
Thank you, vbgamer45! :)
That did the truck!! ;)
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 . '"> </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 . '"> </td>' : '';
Add after
// the [links] button
if ($context['allow_view_smflinks'])
echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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
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
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'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $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 © 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> | <a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a> | <a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a> | <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> | <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 ' » ';
}
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" /> ';
}
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" /> ';
}
else
{
echo '» ';
}
// 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" /> ';
echo '<b><a class="nav-tree" href="http://www.webtechnica.com/">WebTechnica</a></b> » ';
// 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" /> ';
// 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 ' » ';
}
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;" />
<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> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td valign="middle" class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}
?>
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'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $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 © 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> | <a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a> | <a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a> | <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> | <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 ' » ';
}
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" /> ';
}
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" /> ';
}
else
{
echo '» ';
}
// 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" /> ';
echo '<b><a class="nav-tree" href="http://www.webtechnica.com/">WebTechnica</a></b> » ';
// 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" /> ';
// 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 ' » ';
}
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;" />
<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> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td valign="middle" class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}
?>
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?
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
It works great now!!! :D
Many thanks once again akulion! :)
ur welcome
Does this mod have the ability to delete all links by a certain poster?
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.
how do u show image..how big should it be ?
Show an image for what? The a link? The only way for a link is to use bbc code in the description
look at attach..the image i'm talking about is the cat image
any category dump for this mod?
Dave
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?
do i have to edit code.because i put the complete url in cat setup also how wide can image be
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.
finally its working thanks
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
That is not built in and I do not understand how that would work.
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
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.
The button appears now but an error loading 'main' template ???
Can you post the index.template.php file that you modified.
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'];
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.
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.
You will need to edit the index.template.php of the custom theme to include a link to the gallery
and if we use default theme but it other non-english language?
non english you will have the copy the text strings from modifications.english.php to modificatoins.yourlanguage.php
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
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/
Graphic is missing.
how do I add that. Please excuse my ignorance I am new to this
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.
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.
No too busy to work on that.
oh, will it be removed in the next update then?
No just won't work.
It would be sweet if you could do a search on the links. I have a lot under one particular subject.
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.
Its turned off by defult. If you have in the settings checked alexa and pagerank then just uncheck them.
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!
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.
Really nice mod,thank you. ;)
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)?
Links.template.php
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.
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 . '"> </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 . '"> </td>' : '';
This code is wrong
if ($context['current_action'] == 'smflinks')
$current_action = 'smflinks';
Should be just links and not smflinks
still dont work
link is not show showing in admin panel or on nav bar please help
Check the other posts in this thread read every one of them.
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.
Is there any possible way to put the top 10 submitted link to the home page....like using ssi.php?
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??
That means the mod was not installed make sure that all the files are writable or needs to be installed manually.
Are there manual install instructions??
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 :-)
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
You would need to do a manually install then check the doc site.
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.
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
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.
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
sry but this mod doesn't work
i have dilber as theme
please help me
greetz
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
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!
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.
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.
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.
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. :-(
I know I'm being dense, here, but I can't, really, tell what you're trying to do.
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..
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?
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.
Is there a quick and easy way of doing that? Or do I have to go through each of them one by one?
You will need to go though each one by one.
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?
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.
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
Well...i hereby reiterate my suggestion to include it in ssi.php in order to show the latest submitted links at the main page....
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
That should work I really don't have enough time to look into it maybe someone else will help.
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
please help me !
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 . '"> </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 . '"> </td>' : '';
yes the code in
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.
kat,
Thank you for the information the link was ON
All working, now?
Yes ..and thank you so much
Pleasure, my friend. ;)
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
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
Admin -> Permissions
thanks... maybe it's something with my theme but i don't see any text that references Links Permissions..
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".
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)
Quote from: shomazta on May 01, 2007, 10:42:12 PM
nothing shows up in there.??
You ARE using the SMF default theme...?
no.
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.
This explains it:
http://docs.simplemachines.org/index.php?topic=402
all i had to do was copy modifications.english.php from the default theme over to my themes language folder =)
The simplest ways are, usually, the best. ;D
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
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
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)
If you know they exist, that is... :-[
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?
There should be a setting for that I believe.
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?
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
I would suggest that there's an error in your database, rather than there being a problem with SMF.
Any suggestions on how to fix it? Thanks :)
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?
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
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...
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.
That is a known issue not sure of a good way to fix that without using more queries.
No worries - I'll just avoid using subcategories (simpler anyway) :P
Fantastic mod BTW ;D
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?
yes you would need to alter the Links.template.php mysql query to sort the links alphabetically
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
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__);
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
khvitaliy,
You need to manually create a link on the header to SMFLinks.
see mine at:
www.pentaxworld.com
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 ?
If you click on the links button, you can configure a load of stuff, there.
i cant see the button ? it dose not show up ??
You ARE using the SMF default theme, aren't you?
I can only see the link button when I am logged in as admin ??? it is not showing on the other member screens ???
Using the SMF Default Core theme Try
Admin --> Members --> Permissions --> Regular Members Modify --> SMF Links View Links Page
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
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.
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
Depends on whats needed
Is there a way to alphabetize the links?
Thanks!
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)
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
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?
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
Screeny:
http://www.katzy.dsl.pipex.com/Screeny.jpg
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.
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.
Yes, that would be nice. Thanks for trying to help anyway.
I've sent him a message.
Worth a try, ay?
Yes, I appreciate you taking the time to try and help and ask him/her/them.
Cheers
No sweat!
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?
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 :) .....
With the SMF default theme, you'll see a button labelled "Links". You can configure things, there.
what about properly counting links inside nested categories?
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.
@ 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/)
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
Version 1.6.5 released added a setting to count child categories link totals.
Excellent thread :)
Any other new features in new version? Alphabetize links inside categories? Is there a way to do that manually?
Nope no other new features.
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.
@ 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...
that's a really great feature!!!!
Thank you!!!!!!!!!!!!
in languages/links.english.php
there are double translations:
$txt['smflinks_submittedby'] = ...
$txt['smflinks_returnindex'] = ...
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
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'
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§ionid=5&id=17&Itemid=41
get's to
http://www.handball-neusaess.de/index.php?option=com_content&task=category&sectionid=5&id=17&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]
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 ?
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 403Anyone else have this same problem?
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));
Does mod work with local languages?
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.
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??? :(
Strange. Works for me after upgrading from 1.1.3 -> 1.1.4
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.
Here are my edited files(attached) :'(
The edits seem to be the same as those indicated modifications... ... :( What's wrong?
I have clear the 4 tables pertaining to smf_links each time I re-install manually or by package installer.Neither methods work ...
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.
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?
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.)
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 ...
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.
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 ;)
Clutching at straws...are they the file size you would expect them to be?
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 . :)
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. :)
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 ... ...
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...
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.
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? :)
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.
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!
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.
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.
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
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');
}
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
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.
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.
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
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
@Dean B
why not share your solution then.....
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 . '"> </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 . '"> </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.
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!
no one
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 ?
:'(
I think you must change permission for your members! Maybe they are not allowed to view the links!
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 ? :'(
Hi, this is great mod.
Can we show latest links in the main page (boardindex.template.php)?
Thank you..
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
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.
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.
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?
Is it possible......??
I want to escape category section/ list.
I want all Listed websites links shows at root/main page of "Links"
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.
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
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
Just new improvements
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
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.
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?
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
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
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)
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)
Alexa and page rank settings currently do not work.
Thanks! I think so
if ($m_cats)
{
echo '<tr class="titlebg" height="5">
<td colspan="6"> <span class="smalltext">',($subcats_linktree != '' ? $txt['smflinks_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
}
else
echo '<tr class="titlebg" height="5">
<td colspan="5"> <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"> <span class="smalltext">',($subcats_linktree != '' ? $txt['smflinks_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
}
else
echo '<tr class="titlebg" height="5">
<td colspan="5"> <span class="smalltext">',($subcats_linktree != '' ? $txt['smflinks_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
}
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!!
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
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...
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
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??
Actually, ignore that last message. I figured it out.
New version works a treat. Thanks a lot.
Very good mod by the way :)
I haven't installed this yet but I'm wondering, can it show banners instead of just text links?
Not yet
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.
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. :)
I attached the Print screen for my problem.
Just want to know where to correct it. Thanks
Themes/default/index.template.php look in the menu function
Okay thanks a lot vbgamer..... done. :)
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.
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.
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.
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 ;)
Add it to my mod tracker
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.
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.
You will need to convert the database tables to support unicode.
ah~ thanks alot, i got it to work, and this might also solve a couple of the other mods with similar problems, much appreciated.
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
My link page not working in my theme ...
The link page show in default theme .... but the rest not working .... :(
For custom themes you will need to install a link/button on the index.template.php of that custom theme.
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!!!
That would be inside the Links.template.php file.
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....... >:(
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.
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
Great Mod.
Run it on SMF 2.0 Beta 3.1 Public ? ? ?
Thx
No mod currently only runs for SMF 1.1.x will be updated once SMF 2.0 final is released
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 :)
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.
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?
vbgamer45, I added my request to your bug tracker on the "SMF hacks" site.
(about ordering the links alphabetically).
:)
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
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...
Yes you will need to convert the links tables to utf8 inside the database then it should work ok.
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....
Check tinyportal they might have a block code.
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
Maybe we will see very busy.
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!
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
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
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.
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 ?
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
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.
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!
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?
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.
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.
Does the latest version have the option for ordering links alphabetically (instead of by date added)?
No it does not.
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&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
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&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???
Hi vbgamer45
Thank you very much for the update!
Great Mod! not tested it yet but have installed. A good way to share links between websites.
Mathew
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
Not sure the code looks ok to me.
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
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
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
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
I really don't have any idea. I looked at it and it looked the same fine for me.
ok thanks,
sadly i will have to uninstall the mod :(
Mathew
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
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.
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.
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 :)
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.
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?
Just the database server is loosing the connection "MySQL server has gone away" might be overloaded
I have a notification that there are 4 links awaiting approval but when i go in there are non???
Any help appreciated thanks.
Check under Link Settings. Did the member delete their account?
Also version of the links system are you using?
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
Gallery.template.php it is the h1 tag
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. :-\
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.
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.
(//)
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
You need to do permissions. Admin -> Permissions
Then modify each group and given them permissions needed for links
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.
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
Are you use the latest edition of the mod? If not the last update fixes the error.
nay27uk, I removed the link in your post as it is redirecting to an inappropriate site.
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
Hehehe,,,,
i should try this
resolution?
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.
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? ;)
**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..
Released an update might fix that issue.
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 :'(
Hi,
I have installed this mod and the administration panel I have this error in the log:
Unable to load the template 'main'
Why?
Confirmed 1.7.2 update does not resolve unable to load main template error when clicking link. Database tables and code entries verified.
im going back to the 1.6 release of the links till this is resolved
**Bump** 8)
I am unable to replicate that error on my test when clicking a link.
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.. :)
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..
: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. :'(
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? :)
i would just be happy if the new update would work.. ;)
**bump** ;)
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. :)
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.. ;)
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.
I removed the mod, (1.72 ) for this problem
Unable to load the template 'main'
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!
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!
roflmao.. ok.. will give a feedback on this,
too bad vbgamner is M.I.A.. ;)
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 ;)
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...?)
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.
**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.
If someone has a fix please post it so I can update the modification.
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..
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)
???
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
What version of the Links mod?
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..
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 ... >:( )
Anyone know if this will be updated for 2.0?
Yes it will be eventually.
Great, thanks!
how can we show the latest link added in tp-blocks?
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
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. :)
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
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 <a href="http://eqjywsjieaoo.com/">eqjywsjieaoo</a>, [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 <a href="http://yxkacyghyekj.com/">yxkacyghyekj</a>, [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 <a href="http://wwdcaebbtmem.com/">wwdcaebbtmem</a>, [url=http://xugcgwwmisbc.com/]xugcgwwmisbc[/url], [link=http://khyxtjtjchyv.com/]khyxtjtjchyv[/link], http://ojsukpquhjgu.com/","0","0","0","1227520763","0","0"
Do you allow guests to add links if so that would cause that issue.
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
ive uploaded this to my site and when i go to install it says this
"Execute Modification ./Sources/ManagePermissions.php Success ".
any help guys
That is good. It is bad if says failed
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
That is part of another modification not part of SMF Links
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)
Shouldn't hurt anything since smf links uses different permissions settings.
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 ;)
In order to vote guests need to register otherwise a guest can vote as many times as they want.
Not if the DB keeps tracks of IPs they cant.... (Not as easily anyway)
Yeah but at this time is not something I would spend time unless it was a paid request.
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ções Configuração';
$txt['permissiongroup_smflinks'] = 'SMF Links';
$txt['permissionname_view_smflinks'] = 'Ver Links Página';
$txt['permissionhelp_view_smflinks'] = 'Define se o utilizador pode visualizar a página Links.';
$txt['cannot_view_smflinks'] = 'Você não pode ver os links da Página.';
$txt['permissionname_add_links'] = 'Adicionar Links';
$txt['permissionhelp_add_links'] = 'Se o utilizador é autorizado a apresentar links';
$txt['cannot_add_links'] = 'Você não pode adicionar links.';
$txt['permissionname_edit_links'] = 'Editar Links';
$txt['permissionhelp_edit_links'] = 'Se o utilizador é autorizado a editar links';
$txt['cannot_edit_links'] = 'Você não pode editar links.';
$txt['permissionname_delete_links'] = 'Apagar Links';
$txt['permissionhelp_delete_links'] = 'Se o utilizador é autorizado a apagar links';
$txt['cannot_delete_links'] = 'Você não pode apagar links.';
$txt['permissionname_approve_links'] = 'Aprovar Links';
$txt['permissionhelp_approve_links'] = 'Se o utilizador é autorizado a aprovar Links';
$txt['cannot_approve_links'] = 'Você não pode aprovar Links.';
$txt['permissionname_links_auto_approve'] = 'Links Auto Aprovado';
$txt['permissionhelp_links_auto_approve'] = 'Se os utilizadores de links são automaticamente aprovados quando submetidos.';
$txt['permissionname_rate_links'] = 'Taxa Links';
$txt['permissionhelp_rate_links'] = 'Se o utilizador é autorizado a taxar Links';
$txt['cannot_rate_links'] = 'Você não está 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ê não tem permissão para gerenciar categorias.';
$txt['permissionname_delete_links_own'] = 'Link Próprio';
$txt['permissionname_delete_links_any'] = 'Qualquer Link';
$txt['permissionname_edit_links_own'] = 'Link Pró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ções Configuração';
$txt['permissiongroup_smflinks'] = 'SMF Links';
$txt['permissionname_view_smflinks'] = 'Ver Links Página';
$txt['permissionhelp_view_smflinks'] = 'Define se o utilizador pode visualizar a página Links.';
$txt['cannot_view_smflinks'] = 'Você não pode ver os links da Página.';
$txt['permissionname_add_links'] = 'Adicionar Links';
$txt['permissionhelp_add_links'] = 'Se o utilizador é autorizado a apresentar links';
$txt['cannot_add_links'] = 'Você não pode adicionar links.';
$txt['permissionname_edit_links'] = 'Editar Links';
$txt['permissionhelp_edit_links'] = 'Se o utilizador é autorizado a editar links';
$txt['cannot_edit_links'] = 'Você não pode editar links.';
$txt['permissionname_delete_links'] = 'Apagar Links';
$txt['permissionhelp_delete_links'] = 'Se o utilizador é autorizado a apagar links';
$txt['cannot_delete_links'] = 'Você não pode apagar links.';
$txt['permissionname_approve_links'] = 'Aprovar Links';
$txt['permissionhelp_approve_links'] = 'Se o utilizador é autorizado a aprovar Links';
$txt['cannot_approve_links'] = 'Você não pode aprovar Links.';
$txt['permissionname_links_auto_approve'] = 'Links Auto Aprovado';
$txt['permissionhelp_links_auto_approve'] = 'Se os utilizadores de links são automaticamente aprovados quando submetidos.';
$txt['permissionname_rate_links'] = 'Taxa Links';
$txt['permissionhelp_rate_links'] = 'Se o utilizador é autorizado a taxar Links';
$txt['cannot_rate_links'] = 'Você não está 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ê não tem permissão para gerenciar categorias.';
$txt['permissionname_delete_links_own'] = 'Link Próprio';
$txt['permissionname_delete_links_any'] = 'Qualquer Link';
$txt['permissionname_edit_links_own'] = 'Link Próprio';
$txt['permissionname_edit_links_any'] = 'Qualquer Link';
//END SMF Links Strings suporte smfpt.net
]]></add>
</operation>
</file>
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?
That is one error I have not been able to solve yet.
New Release 1.8
+Added support for SMF 2.0.x
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
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.
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?
Check this mod_security post
www.simplemachines.org/community/index.php?topic=34270
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"...
I can't find the required edits in my Admin.php, either automatically or manually.
For what version of SMF?
What error you do get
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
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
I've answered you at SMFPortal.de ;)
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.
Those instructions are for SMF 2.0.x
Choose for SMF 1.1.x
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.
Choose 1.1.8 install instructions on
http://mods.simplemachines.org/index.php?mod=381
And that will get you the code needed
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)
Bah that is a bug with the modsite their parser is showing the 2.0.x version instead of 1.1.8
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.
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
I got it working but downloading the package at smfhacks.com
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...
Yeah should be obexit() instead of ob_exit()
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
How did you delete the permissions?
Admin's should always have access to anything inside SMF.
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
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
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
!Fixed minor bug in SMF 2.0 not showing the title of permissions under simple permissions in SMF.
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.
bah it is trying to install it for SMF 2.0 not smf 1.1.x
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?
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]
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
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.
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
If you need paid support I can help otherwise read over this topic for the issue in the past my time is very limited.
Phah - I stand by what I said - I've got your measure now
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 :)
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. :)
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. :)
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
bump!
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
bump...... Any help on how to get it to work in other themes?
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!
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??????
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
the package parser on the mod page will show you how to manually install the mod on the two test failed files.
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 :)
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.
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 ....
Any other mods such as this one for links?
I've been searching for almost two days and have yet to find one.
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! :)
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...
Great mod.
Please how do i change the "LINKS" on the menubar to "LINKS DIRECTORY"
WHICH FILE DO I EDIT?
is there anything i should do for the alexa ranks to show up?
none of the links on my directory has the alexa ranking
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
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.
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
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.
Not at this time
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!!
1st, not possible
2nd if they use bbc code in the description they can do it.
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...
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.
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
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 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
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.
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.
Hey
Does anything go to the phpmyadmin?
I am going to do this mod manually with the edits
The manual edits that the parser shows are for SMF 2, they won't work with SMF.1.1.9.....
There is a drop down
Yes there is.... and ?
Use those instructions to install it.
Yeah like we keep saying they are not the right instructions...
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
It's like there's an echo...
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?
???
please ready it for smf 1.1.x
thanks a lot
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???
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
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
i have 1.8.1.1, That is what is listed for download on the mod site.
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.
Are you using MySQL?
Yes, I'm using MySQL
Really confused then can you try manually running the create table for the articles in your database
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.
Admin -> Permisssions -> modify each group and give them permission to view the links page.
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
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.
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
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
Thanks vbgamer.
Will upgrade tonight
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!
Thanks :) I'll try installing again.
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?
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
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.
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, 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...
oh ok thanks...i think i understand...here goes..
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?
Edit and Delete links work only for owner of the link.
Admins are allowed to edit/delete any links
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 '&' 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&t=6806 (http://forums.mapcore.net/viewtopic.php?f=58&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!
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?
add the table? :)
Look in the manual instructions for installing the mod and find th SQL statement to add the table to your database
Quote from: c-ron on August 12, 2009, 01:21:46 AM
*URLs with ampersand '&' in them become '&' 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&t=6806 (http://forums.mapcore.net/viewtopic.php?f=58&t=6806) <- Not a valid page
Until this can be fixed, a workaround is to use tinyurl.com
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.
Can anyone else confirm these bugs?
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
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
I figured that! ;D Any help on where to get started?
Robert
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
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! :)
You have the permissions set under Admin -> Permission modify each group?
I think that did it!! I guess I got everything but the SMF permissions.
Thanks! :D
Glad you got it working
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!
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 ?
What version of SMF Links and what SMF version?
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
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
x-links_manage is not something SMF Links adds
OK thanks very much. At least I can rule that out.
Great Mod mate 8)
Thanks! I plan on making updates so if you have any feature requests let me know.
I have a quick question. When I backup SMF using the built in backup is it also backing up the data for SMF links?
Yes it is. Includes any mods with the database prefix.
OK thanks:)
Just waiting patiently for the RC2 version ::)
Soon once the public release is out just in case there are more surprises in RC2
Updated for SMF 2.0 RC2 support.
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!
What version of SMF?
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
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.
Can you access any part of the links system? Does the 500 error still occur?
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!
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?
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!
Released a new update on mod site download that version and see if it helps with your 500 error issue.
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!
That update should fix that issue.
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'.
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
I belive only admins can modify and delete links
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
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).
well, it looks like you have double installed... you will have to manually remove the duplicate code
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!
Glad you got it working!
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.
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
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.
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?
You need to have SMF Links installed. Then there will be a links option in the menu to add link categories.
after upgrading to RC2 version,
guests and regurlar cannot add links again even though i enabled it for them in the general permission
Can the "Links" tab in the menu be renamed?
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
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'], '.';
}
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.
No but it works fine with SMF 1.1.x and SMF 2.0.x
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
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?
Just remove the COUNT() you don't need it just t.hits
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...
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.
a thanks! Will do that!
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.
Remove theme_linktree from the templates for SMF 2.0 will get that fixed thanks!
Posted an update to fix the duplicate linktree for SMF 2.0
OK fine thanks. If there are no more changes i'll use it as it is. Is there a pro version available ?
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
Missingn language file entry in your modifications.*.php file
OK and one thing, Global Moderator cannot edit links even i set it in Permissions of SMF AND category persmissions ?!
Correct only members them selves can edit links i think. Unless they have manage links permission
Bute Global Mod cannot edit his own links ?
They can if they have permissions set.
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.
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 ?
Haven't any time to look at this maybe in a couple weeks.
Updated for SMF 2.0 RC3!
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.
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?
Install it manually would be the next thing to try for that one errror after you use the package manager.
Not sure I am that clever yet :)
Have you got time for a walk through please?
Isn't this basically the affiliates, I mean they both look like they do the exact same thing!
REMINDER: Global Mod still cannot edit his own links - there is only UN APPROVE but no EDIT LINK.
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!
Sure Sure - it was an simple reminder ^^
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)
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)
This is one of first mods I made plan on adding more to it one day lol.
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 :-)
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
Am looking at this mod as a possible addition to the forum.
Is it possible for jjust the actual links to be shown?
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
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
Good feature request for a later date.
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
I believe that's a known issue no fix for it currently.
Thanks for the quick reply.
This is really surprised me regarding this error.
Thanks again.
REMINDER: EDIT OWN LINKS
What do you mean?
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.
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
Update!
2.1.3
!Fixed Editor issue in SMF 2.0 for categories/links
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
Permissions should set those options. I looked at the code it should be ok.
And how can Global Admin edit other's links ?
They need manage links permission I believe.
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
I would find another menu item from that theme and compare it the links menu button and make the changes that are needed.
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.
New update
2.2
+Updated some of style for SMF 2.0 curve
+Added permissions installed to view by default.
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ó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.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>
Thanks for the translation!
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,
Maybe in the future.
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,
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?
Try the attached :)
Thanks Sabre, it works now. :)
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.
Haven't made any updates other than curve style
I reinstalled it and it works now. Weird. Thanks anyway.
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
Possible good idea to add later on.
Anyone have a demo of this running on their site?
Have a look here (but I warn you, the site it's in Spanish)
http://www.videoedicion.org/foro/index.php?action=links
Regards,
http://askawitchcommunity.org has this running
Thanks for the demo links!
Awesome, thanks guys.
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!
Not part of this mod.
Any possibility of it in the future?
No
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??
It should still be listed Under Admin -> Permissions then modify each group
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..
Yeah check Manage Permissions
And make sure do you clear cache in forum maintance too
yeah no love at all.. i'll try reinstall and see how that goes.. cheers anyway..
Good luck!
I second last feature someone suggested even tho vB said no. Maybe a year from now...
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..
Edit links.template.php
Minor Bugfix
!Fixed issue with MySQL 5.5 since it no longer supports the Type for create tables uses Engine instead
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?
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?
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
You could just query the smf_links table and get the last link id and then format it how you wish.
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?
Only members can edit and delete their own links.
Admins can do anything.
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.
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.
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.
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';
Attach the file isntead
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
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)
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
what about a php block to randomly show one (or 3) links?
i have asked before and need this!
Can be done just query the smf_links table
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?
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
What is the query code in PHP? I dunno how. I only know echo and include file code. That is all
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
Thanks for the help, not!
<?php
echo ("links.sql");
?>
Is that part of it?
That's php code but that doesn't do much
Since I don't know how SQL and PHP work except to store DB info, I can't echo out that kind of information.
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!
I don't have time either
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?
Hmm... he almost finished but had to do client stuff.. I am asking if he is done.
The Nice Mod! Great work...
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
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
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.
Hmm open up linkssql2.php
Do a find and replace
Find
Engine=MyISAM
Replace with
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.
Exactly replace with nothing just remove it.
I will try that and report back to you when I get it done. Thanks.
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.
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
It worked. I'm glad to be a vbgamer45 whore slut. I use only your mods.
Thanks glad you enjoy them!
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.
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...
wow i wanna have mod powa like you one day
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
No auto sorting is built in yet.
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.
Updated for SMF 2.0 RC4
thank you! Now I am only 1-2 mods away from updating! (Testing them on test installs to see if they work.)
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
Inside themes/default/links.template.php that is best place to look
Yes, i know but i need the line in the code to edit so that i don't crash the site.
not supporting UNICODE (Arabic / Persian / Urdu / Balochi ) ?
http://baask.com/diwwan/index.php?action=links
You have to convert the tables to uft8 I belive.
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?
The links table and links cat table using phpmyadmin under the operations tab
Hello VB,
Are the links and text crawled by search engines?
Thanks,
Vincent
Links no they are cloaked
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
that would be an affiliates mod.... this is for creating a list of links that would interest your users.
Correct does not pass on seo benefits to the link
Okay, thanks!
Vincent
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.
The update to RC5 is not working :o
Package is corrupt!
Quote from: Powerbob on February 13, 2011, 07:13:23 AM
The update to RC5 is not working :o
Package is corrupt!
Fixed
Will be able to sort and search links ? I can not find where.
Not currently built in.
I can creat links without any problem, but I can not find the links anywhere. How does one get to them?
goto www.site.com/index.php?action=links
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.
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.
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
can we randomize the links??
How so? Display in random order?
Yup, whenever page is loaded the links should be in random order.
Is that possible?
Possible yes you will need to change sql to use ORDER BY RND()
okay i'll try :)
I was already running 2.3 for SMF 2.0 RC 4, should I again download and install this for SMF 2.0 RC5?
If you are upgrading to RC5 you will need the new version
But the link mod version is same in SMF MOD site.
Yes since nothing changed but RC5 support
2.3.1
!Fixed link tree to work with subcategories
Another update
2.3.2
+Added counting of unlimited depth subcategories link totals
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!
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
You have many many sub categorys so they are expanding to multiple lines
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.
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.
Thanks much for your effort!
I hope you will find some time to correct this error.
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
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?
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.
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?
I am not familiar with that offhand. I know of the permissions under Admin -> Permissions.
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.
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.
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?
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.
Glad you enjoy I hope to one day get back to adding additions to it.
I want to see auto generated serial numbers of the links as well as repositioning of the links/categories as per admin choice.
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.
Can anyone verify this validates XHTML?
I guess I can take the lack of response as a "no", huh?
No idea I check for closing tags on img and br tags for xhtml and alt tags for images.
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
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.
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?
Yes the links are encoded for click tracking
How do you increase the character limit of description?
Thanks for the great mod!
is there any way to display latest links in HTML or PHP file?
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...
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;
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.
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>';
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...
hmmmm? Where do you see that?
Using v2.3.2, In user permissions, I see the attached....
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...
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
Thanks, vbgamer! I appreciate it...
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?
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.
Thanks for that...and that was quick!
Uninstall and reinstall? or just update after zip file upload?
You can just install the new version on top as well.
Suggestions for improvements:
- Instead of a "thumbs-up/thumbs-down" rating...use the "5-star" method. The way it is now...just doesn't look very appealing.
- Admins should be able to set the length of the link description, as well as the link title.
Just sayin'...
Nice mod, all-around, though. Very easy to use and implement.
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.
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.
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?
Glad you were able to figure it out. I try to keep things simple and most of the mods are coded the same way.
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...
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!
Possibly if its from this mod. Would have to check why it is that high it shouldn't be more than 10. added
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...
Is there a way to make the decription area show more text and show an image in place of the link.
You can increase the description column field size inside the database using phpmyadmin and either increase the size or change to a text field.
Ok could you point me to the table i need to edit?
Cheers
Should be smf_links table
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!
Glad you were table to figure it out
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
Will add it to the feature request list.
Quote from: vbgamer45 on February 06, 2012, 11:12:18 PM
Will add it to the feature request list.
Thanks so MUCH!
I am a little lost in making them edits mate.. I know your busy but any pointers please.
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..
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?
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.
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.
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
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
What is comments option?
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.
Update
2.5
!Better checking/validation checking for categories and links that exist.
+Added checksession functions to forms for the links system
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?
seems to correctly install using the upgrade link.
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
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 ]
That's ok that means 2.5 is installed as the main release.
So...leave them both there...or, "Delete" 2.4?
Leave them both there unless you uninstalled 2.4 and then installed 2.5
Gotcha! Thanks! Great support with your mods, bud...I really appreciate that.
No problem glad to help.
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...
Try changing the class of that area to either titlebg if it is catbg or catbg if it is already titlebg
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.
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?
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...?
Will have it looked into.
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.
Going to have an update out for this modification shortly :)
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
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
Thanks for this update.
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
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?
yep, that's right - this is the only error I found
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.
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
Thanks glad it is working now.
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?
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.
yes I did.
did what I do with the tables was correct or I have to do something else?
That should have been it hmm.
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
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?
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
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
change the description database field column to text instead of tinytext
Thx - done it - i also changed the latin1_swedish to utf8_general_ci - now the entered text is shown as entered.
cheers inti31
Glad you got it working.
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>
This might work
<a href="' . $row['link'] . '" target="blank">' . $row['title'] . '</a>
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=381Enjoy!
The
SMFHacks.com Team
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?
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!
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
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
Thanks for the information, hopefully it'll be useful to others as well :)
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,
Are you wanting to sort the actual table of links alphabetically?
What version of SMF are you running?
QuoteAre you wanting to sort the actual table of links alphabetically?
Yes,
QuoteWhat version of SMF are you running?
2.0.2
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.
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
Not a problem
Congrats with the release, going to install this on my forum as soon as I have one :)
Awesome! The next update will be pretty big, hopefully y'all will like it.
Looking forward to the next update, thanks.
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
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?
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. :)
how can I make subcategories to not appear in the main category list??
thanks for this great mod!
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)?
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
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
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.
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.
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.
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.
Yeah I get that about the counting. Would be cool to have the option of counting or raw url, but not a huge deal.
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?
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.
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.
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.
Any news on the release of v3 yet ::)
Am waiting to discuss future programming opportunities with vbgamer45 and he's not yet gotten back to me.
Thanks for your very quick reply ;)
Good luck on the progress for SMF Links 3.0. Many of us are waiting for the new release ;)
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?
On hold at the moment.
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
There were quite a few bugs that I resolved in my rewrite which was about 80% complete.
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?
This mod is current, what is your SMF version?
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.
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.
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 :)
What problems with the mod?
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.
That's for SMF 2.0?
Yeah I know the display/mod is a little outdated was one of the first mods I built.
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))
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.
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.
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.
I'm also still having problems with it letting me set permissions. Says permission is already set.
SMF 2.0.4
I do know that I fixed a whole heck of a lot of bugs in the version I did.
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
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.
Are you using the newest version?
Yes, downloaded few minute ago.
What SMF Version?
SMF 2.0.4
SMF Links 3.0
Auto installed via smf.
.../index.php?action=links&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
Did you have any other link mod installed before this one?
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
Uninstalled.
Manually deleted db tables.
Reinstalled.
Same errors.
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? ;)
basically it looks like your installation never ran the database portion and never set up the tables for the mod to use
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.
Does your smf_links_cat contain the ID_PARENT column?
Yes.
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;
Yeah changed it out update released fixed.
3.0.1a
!Fixed bug with add/edit category SMF 2.0.x
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?
Multiple changes in the Links2.php file in the sources folder.
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
Glad you have it working.
What part of the template do you to change?
// 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> |';
if ($addlink)
echo ' <a href="' . $scripturl . '?action=links;sa=addlink">' . $txt['smflinks_addlink'] . '</a> |';
echo ' <a href="' . $scripturl . '?action=admin;area=links;sa=admin">' . $txt['smflinks_linkssettings'] . '</a> |';
echo ' <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.
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&sa=addcat2
8: Undefined variable: description
File: /home/.../Sources/Links2.php
Riga: 384
Quote
.../index.php?action=links&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.
http://.../index.php?action=links&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: }
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.
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
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.
@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.
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.
It would need to be a php page and you would need to query the smf_links table to get the links.
Yeah it's a php page. Could you provide the code for me, i'm not very knowledgeable in this kind of stuff. Thanks.
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.
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!
Are you using MySQL?
Yes, I am using MySql.
Any advice on what I should do?
Thank you
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.
Sorry I do not have the time to do it. Unless you want to do a paid job.
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.
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?
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).
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
You can just install the newer version on top of the old version.
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
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
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.
Try dispabling template eval there is a mod or guide on the SMF forums for this that will get the true error line number.
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)
New update released should fix the errors listed above
3.0.2
!Fixed a couple undefined errors in SMF 1.1.x
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&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&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&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.
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
Updated with a fix for those.
Sorry dude, hopefully these are the last ones :-[
When editing an existing link
http://www.mydomain.co.uk/Forum/index.php?action=links&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
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.
:-[ ::)
Updated fixed the editlink option
Thanks vbgamer45 for your quick response and excellent help.
It is much appreciated, everything is working as expected again now.
Cheers
Glad to help
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
:)
Did you have another links mod installed before installed SMF Links?
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
Uninstall SMF Links
Then in phpmyadmin do the following:
DROP table smf_links;
DROP TABLE IF EXISTS smf_links_cat;
Then reinstall SMF Links
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!
:)
No problem let me know how it goes.
Hi again vbgamer,
I looked in the tables but there was nothing relating to the mod at all.
Any other ideas please?
Thanks
:
Did you drop those tables?
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.
Thanks! Have posted an update with the fix included
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.
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.
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?
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.
I thought this was the case, never hurts to ask though.
Thank you for the reply.
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
Awesome, Thanks for the update.
3.0.4
!Fixed some database issues with SMF 2.0.x
Any News about Portuguese files is done
send me when you need it
Thank you
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!
If you are php code you can do it otherwise I could do it but would be a paid job probably $150
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
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
Does not pass pagerank.
Thank you, vbgamer45!
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! :)
It is a mod_security problem check out
http://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security
Also.... You should never, ever, ever use those auto installers like softaculous...
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?
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.
If that doesn't work you may have to contact your host to disable mod_security for your website
OK I'll have a word and see what they say. Thanks for your help, much appreciated. :)
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.
New update
3.0.5
!Fixed a bug with category level permissions when editing for regular member group not working.
Thank you for the update and speedy service.
Glad to help.
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.
Would suggest a host side issue... Either mod_security or a Wordpress security addon that intercepts the action
Yes it is a mod_security issue check out http://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security
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
Make sure all the links tables are utf8 instead of latin1 for the character set.
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 !
Glad to help
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!
Thanks for the translation!
Does UTF-8 support?
Unknown give it a try. This is an old mod though.
Links all Db tables => latin_swedish_ci => utf8_general_ci
problem solved ^^
glad you have it solved.
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 :)
Permissions
Ah ! under member permissions ! Got it! I was looking for something in the mod settings themselves. Cheers for that !
Glad you got it working! Yeah I try to make any of my mods that add a menu item permission based.
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
It was for own links and any links I guess the language strings were not setup correctly for 2.0
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
Either way works.
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.
Install new version on top
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
You don't have to uninstall the old one just leave don't delete
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 :)
Well just saying if you ever have to uninstall things you would have to do it all manually in that case.
Oh OK, thanks mate.
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?
yes just leave it.
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.
It adds a button to your menu called Links which then displays a link directory
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.
:)
Oh.. ok thats cool. Thank you was reading thru the ID wasn't sure... appreciate it :-)
No problems mate. :)
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
For 1/2 would be the language files should be in themes/default/languages
modifications.english.php
and links.english.php
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 :-)
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.
Could be done just requires coding.
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.
Hard to say I have someone update that mod for me I don't know where the code would be offhand.
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. :)
Well the description content you can change the database field type to text and that should allow more space in the descriptions
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
Will this mod be made SMF2.1 compatible ?
When 2.1 final gets released.
thank you :)
Is there a simple portal block that shows last 5 links iv tried all of there site but non work thanks
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.
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.
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);
Hmmmm its saying
Function name must be a string?
What SMF version are you using?
I'm using 2.0.15
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);
Wow man your good.
works a treat thanks ever so much.
Glad to help
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?
Maybe one day.
A very prompt and very safe reply :laugh:
Cheers mate
I don't get what purpose a link directory serves? Who uses this and why? What is it for?
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.
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.
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/
and this is on a smaller SMF site
http://gsx1400owners.org/forum/index.php?action=links
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
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.
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
I don't believe this mod had link permissions by membergroups.
Maybe check out my download system mod might help.
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.
If you have any questions let me know.
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.
There should be a Links section in the sidebar if not might require language file edits.
Is there a way for members to suggest a category or let them add a category to be approved by admin?
There is not.
Just installed this mod works a treat thanks vbgamer45
I'm on 2.0.18
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:)
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
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
Thanks, yeah has not been updated for 2.1 yet.
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?
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:)
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.
At some point.
Update
4.0
+Added support for SMF 2.1
!Fixed bug with reorder links.
+Check links submitted start with http or https
Cool Thanks Will install On Test Site
Installed and works fine please note the attached image
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
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?
Fixed thanks for the report.
Sorted Thanks
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!
It was just the icon/gif fixed
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
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
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.
Should you find time to create a premium version I'll let you peak at my Wishlist ;D ;D ;D
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"
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
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.
Does anyone know how SEO is currently for own and external links?
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';
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
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.
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
Yes I'm fine with it :D
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)
function LinksEmailAdmins($subject, $body, $additional_recipients = array())
{
global $smcFunc, $sourcedir;
// Fix subject line/body
$body = str_replace("'","'",$body);
$subject = str_replace("'","'",$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);
}
}
//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';
// Redirect back to category
if ($approved)
redirectexit('action=links;cat=' . $catid);
else
fatal_error($txt['smflinks_linkneedsapproval'], false);
//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);
}
This edit Sends The member who added a link a pm on approval of the link.
redirectexit('action=admin;area=links;sa=alist');
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);
}
Finally, found what was causing the main category page to push my right column down below the left column
echo '</div></div>';
echo '</div>';
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
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
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