View Full Version : Links and Files Database
AndrewD
12-19-2004, 04:08 AM
I was wondering whether there was a language string. As in the vB Phrase system...cause I noticed that some of it was not expressed in variables...
I have not used the VB phrase system. One of those things to do someday, but someday never comes...
AndrewD
12-19-2004, 04:21 AM
If I click either Goto link then I get the follwing error:
PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Forum Site\includes\init.php on line 517 PHP Warning: Invalid argument supplied for foreach() in C:\Forum Site\includes\sessions.php on line 270 PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\Forum Site\includes\functions.php on line 3615
Any ideas?
Thanks!
What version of PHP are you using? These messages come from the main VBulletin initialisation code, and I suspect it is telling us about some uninitialised variables.
AndrewD
12-19-2004, 07:04 AM
Post removed - version 1.45 now available in first post in this thread.
Natch
12-19-2004, 11:52 PM
A few things I have noticed mate:
1. When you set a valid monitor_catid, but invalid monitor_dir, the error msg states invalid monitor_catid.
2. A lot of the page titles in the local_links_admin.php section have EIRMA Web Site - Links Administration in the title tag.
3. If a link is added via the "monitor_dir" facility, and moderated as deleted, it's then added the next time you trawl the directory. I think that maybe it needs to flag that filename, or that entry as "deleted" rather than deleting it totally.
Other than that, once again, great work!
Tbird66
12-20-2004, 04:22 AM
What version of PHP are you using? These messages come from the main VBulletin initialisation code, and I suspect it is telling us about some uninitialised variables.
I'm using PHP 5.0.2
AndrewD
12-20-2004, 04:55 AM
I'm using PHP 5.0.2
Suspected as much. Haven't tested anything with PHP5 - not even sure about the status of VB itself. Let me know how the fix suggested by PM goes.
Tbird66
12-20-2004, 12:58 PM
Suspected as much. Haven't tested anything with PHP5 - not even sure about the status of VB itself. Let me know how the fix suggested by PM goes.
VB works fine on 5.0.2, and I'm running vBadvanced CMPS, vbGarage, Dynamic Announcements, and Geek Articles. I only get errors when installing your hack, so I'm not sure what you're asking me.
AndrewD
12-20-2004, 01:23 PM
VB works fine on 5.0.2, and I'm running vBadvanced CMPS, vbGarage, Dynamic Annonucements, and Geek Articles. I only get errors when installing your hack, so I'm not sure what you're asking me.
You've told me the first thing I wanted to know - that VB works with PHP5 - so I think my suspicions are correct about uninitiatialised variables. Can you either try the fix I suggested by PM, or alternatively just try installing the beta version of 1.45 (see a couple of posts up), in which I've tried to spot the problems.
Tbird66
12-20-2004, 02:45 PM
You've told me the first thing I wanted to know - that VB works with PHP5 - so I think my suspicions are correct about uninitiatialised variables. Can you either try the fix I suggested by PM, or alternatively just try installing the beta version of 1.45 (see a couple of posts up), in which I've tried to spot the problems.
Oops - missed the mention of the PM in your previous post. That fix did the trick, I'm up and running now - thanks so much!
Clicks Install
GiJoe
12-23-2004, 07:10 PM
I'm having a VERY strange problem. No errors during install nor upgrade.
We had to change servers. Now that we have changed downloads (we use it for download links) will start but about half way through will just stop/pause. If we download directly from the server it works fine. It is only when downloading through Links 1.41 that this occurs.
PHP v 4.3.10
vBulletin 3.0.3
I looked through this thread alittle but with it being 50+ pages long it would take me days to look at all of them.
AndrewD
12-24-2004, 04:30 AM
I'm having a VERY strange problem. No errors during install nor upgrade.
We had to change servers. Now that we have changed downloads (we use it for download links) will start but about half way through will just stop/pause. If we download directly from the server it works fine. It is only when downloading through Links 1.41 that this occurs.
PHP v 4.3.10
vBulletin 3.0.3
I looked through this thread alittle but with it being 50+ pages long it would take me days to look at all of them.
Your symptoms look like exceeding the cpu time for a php script.
Have a look at the CPU and memory limits set for php scripts in php.ini. Also consider if you really need the facility of this script to "hide" the location of downloads. There's a setting on the admin page which forces the script to use browser redirects rather than server based read/writes. It will significantly reduce cpu overhead, but at the cost of making the location of your downloads visible at the time the redirect is executed.
CSS59
12-24-2004, 04:51 AM
who has a live demo of the new version?
Sadie Frost
12-24-2004, 05:28 AM
who has a live demo of the new version?
I do: http://www.buffy-boards.com/local_links.php?
GiJoe
12-24-2004, 01:37 PM
Your symptoms look like exceeding the cpu time for a php script.
Have a look at the CPU and memory limits set for php scripts in php.ini. Also consider if you really need the facility of this script to "hide" the location of downloads. There's a setting on the admin page which forces the script to use browser redirects rather than server based read/writes. It will significantly reduce cpu overhead, but at the cost of making the location of your downloads visible at the time the redirect is executed.
That seems to have been it... Thank you! :D Merry Christmas everyone!
AndrewD
12-27-2004, 07:29 AM
Version 1.45 is now the supported release, see first post in thread.
NB: slight changes in installation procedure (a couple of new files added).
aussiev8
12-27-2004, 09:58 AM
good work andrew! i respect the speed you got the newer more secure version out by.
i think everyone should update due to security issues in earlier versions.
Spinball
12-27-2004, 11:50 AM
Awesome, Andrew, thanks very much for your efforts.
I think I have found a bug, however.
Click on the 'What's Hot' and What's New' drop-down links and the [-Fav] option appears against all the links instead of [+Fav].
norvo
12-27-2004, 11:54 AM
Cheers! Great work!
N.
AndrewD
12-27-2004, 02:10 PM
Awesome, Andrew, thanks very much for your efforts.
I think I have found a bug, however.
Click on the 'What's Hot' and What's New' drop-down links and the [-Fav] option appears against all the links instead of [+Fav].
You're right of course - and what's more I'd already spotted it but forgotten...
Please can you unzip and upload the attached file and then re-run step 2 of the installation process (templates). When you confirm, then I'll update the zip file.
I'm not happy with the page sequence as one moves between what's hot/mark favourite/back to base category, but the full fix requires more work and will have to be in the next release.
Spinball
12-27-2004, 08:49 PM
Hi Andrew,
I did as instructed and it now displays [+Fav] against them all. Even against those already in your favourites list.
A minor point, I guess, but as a programmer, something I would notice :)
It's a great hack.
achtungbaby
01-01-2005, 05:46 PM
Great friggen hack! I just installed it two days ago and have been keeping it busy, using it as a resource list for tsunami relief & aid organizations.
http://forums.yellowworld.org/local_links.php
Thanks a bunch.
Russ_T
01-03-2005, 07:54 AM
The mod works fine for me and I changed the version in the vbLinks 2 importer and that worked a treat as well :)
One question, I have a moderator who used to look after links but to have full control of the links pages it appears he needs to be an administrator (i.e. add new categories etc).
Is this true or have I configured it wrongly? I have set moderators to have all permissions. In fact I can't even see how to add a new category so I probably haven't finished the install, doh!
AndrewD
01-03-2005, 07:59 AM
The mod works fine for me and I changed the version in the vbLinks 2 importer and that worked a treat as well :)
One question, I have a moderator who used to look after links but to have full control of the links pages it appears he needs to be an administrator (i.e. add new categories etc).
Is this true or have I configured it wrongly? I have set moderators to have all permissions. In fact I can't even see how to add a new category so I probably haven't finished the install, doh!
As you see on the admin page, there are a large number of permissions settings (add category, add link, delete link, etc). These are all based on VBulletin usergroups, so you must indicate which groups can cary out which actions. The only "fixed point" is that only members of the VB admin group can get at the admin page.
"Add category" is part of the drop down menu under "Categories" on the hack's toolbar. It is only visible to user groups that have permission to add categories, so if you can't see it, you've probably not given yourself permission!
Let me know if you still have difficulties, and I'll take a look.
Russ_T
01-03-2005, 11:34 AM
Hi,
Yes you're absolutely right and it's all fine. Theres no reason I suppose for my moderators to see the admin page so thats fine as well.
Thanks for your help!
Curzon564
01-03-2005, 08:50 PM
Great Hack. Everything works fine so far.
However, I'd like to add IRC Links.
They have the following format:
irc://irc.eu.gamesurge.net/channel
I already altered the local_links_include.php and added the Protocol:
// Protocols supported
$schemes = array( "http", "https", "ftp", "irc" );
Adding IRC Links works so far, but if I click on such a link a page with this url is opening:
http://www.empty123.inet01.de/local_links.php?action=jump&id=9
As result of this mIRC doesn't recognise the link.
Is there a possibility to open the Link directly so that it isn't hidden behind the php? link?
Changing the force redirect setting has no effects.
I'm grateful for every kind of assistance.
AndrewD
01-04-2005, 04:00 AM
Great Hack. Everything works fine so far.
However, I'd like to add IRC Links.
They have the following format:
irc://irc.eu.gamesurge.net/channel
I already altered the local_links_include.php and added the Protocol:
// Protocols supported
$schemes = array( "http", "https", "ftp", "irc" );
Adding IRC Links works so far, but if I click on such a link a page with this url is opening:
http://www.empty123.inet01.de/local_links.php?action=jump&id=9
As result of this mIRC doesn't recognise the link.
Is there a possibility to open the Link directly so that it isn't hidden behind the php? link?
Changing the force redirect setting has no effects.
I'm grateful for every kind of assistance.
OK, I'm not familiar with the IRC protocol - the problem is perhaps that php's fopen() routine does not work with it, so a more direct approach will be needed. Give me a few days - there's a tidy up release in preparation and I'll try to fit this in.
AndrewD
01-08-2005, 04:26 PM
Withdrawn, see beta 1.51 in later post
eva01_
01-08-2005, 05:18 PM
*will upgrade when gets home from work*
joeychgo
01-10-2005, 05:36 PM
You are great andrew - thanks!
Dontom
01-11-2005, 11:00 AM
Hi Andrew,
i upgraded an old (vb3) installation of links - now if someone (regular user or admin) tries to add a new link nothing happens (new page loads but link is not added) -same (nothing) happens whe trying to edit links as an admin (change entry, save it, page reloads and old entry is there again)
Moderation is set to no. I used the last zip provided by you - any idea? PHP is 4.3.10
thx
Thomas
AndrewD
01-11-2005, 11:05 AM
Hi Andrew,
i upgraded an old (vb3) installation of links - now if someone (regular user or admin) tries to add a new link nothing happens (link is not added)
Moderation is set to no. I used the last zip provided by you - any idea?
Not without more information, sorry!
Adding links works fine for me on my live and test board, both of which were upgraded to the code you say you've used. a) are you sure that you've uploaded all the five files; b) that you've run all stages of the upgrade script. I'm happy to have a look at your site, except that I see that it's in German!
Dontom
01-11-2005, 11:09 AM
thank you for your quick response :) I just edited my post above to include some more information.
the installation is here: http://www.rennrad-news.de/forum/local_links.php?action=links
yes, all files were uploaded and the install script went through without any errors.
Merci beaucoup :)
If you want to try use test/test to login
Thomas
AndrewD
01-11-2005, 11:31 AM
thank you for your quick response :) I just edited my post above to include some more information.
the installation is here: http://www.rennrad-news.de/forum/local_links.php?action=links
yes, all files were uploaded and the install script went through without any errors.
Merci beaucoup :)
If you want to try use test/test to login
Thomas
I took a look and see what you mean. Even if there is an error, there should be an intervening screen between trying to create the link and getting back to the category display. You've translated everything into German but as far as I can see from the page source, the form submission is still correct. Can you email me your uploaded version of local_links.php, just so that I can do a comparison with my master version ad_rodin (at) noos.fr?
AndrewD
01-11-2005, 04:13 PM
I took a look and see what you mean. Even if there is an error, there should be an intervening screen between trying to create the link and getting back to the category display. You've translated everything into German but as far as I can see from the page source, the form submission is still correct. Can you email me your uploaded version of local_links.php, just so that I can do a comparison with my master version ad_rodin (at) noos.fr?
Fix sent by email - bug was a result of the translation. Apologies.
Slave
01-12-2005, 06:17 AM
Just installed 1.45a and then noticed 1.50Beta .. so I upgraded :)
Here's a few comments ..
instructions.txt:
still mentions 1.45 (3.1.b)
irc needs to be added to list of files (3.1.f)
On the link listings you seem to have changed [edit] to [E] .. can you change it back as I much prefer the look of [edit] .. if not, let me know how I can do it and I'll sort it just for my version.
Any chance you can make it a </ br> between the name of the link/file and its size instead of a space? Just makes it look neater IMO.
On the show menu you click "Available Links" but get to a page called "Accessible Links"? Shouldn't it be the same name?
Also .. on the Accessible Links page, when a link is linked to more than one cat it shows all of the cat links. This isn't a problem when it is just 2 cat's but if it is linked with 3 or more cats the links to these cats get repeated. (hmm hard to explain that one, I'll point you towards mine if you like so you can see what I mean) - Edit - This also happens on the Also .. on the Accessible Links page, when a link is linked to more than one cat it shows all of the cat links. This isn't a problem when it is just 2 cat's but if it is linked with 3 or more cats the links to these cats get repeated. (Edit - This also happens on the My Favourites page too) (hmm hard to explain that one, I'll point you towards mine if you like so you can see what I mean)
Ok .. that's it I think ..
Very very cool Hack .. thank you for sharing :)
Slave
01-12-2005, 06:44 AM
A couple of suggestions/additions come to mind .. (Only if you find the time)
The ability for users to report a link which would send a PM to the admin .. with permissions so admin can decide what user groups can report.
In the Show drop down a "Random Link" option.
In the Description of a Category have a "Sub Categories:" list .. similar to how the forums show "Sub Forums:" on the forums front page. With an on/off switch in the admin area.
:)
Curzon564
01-12-2005, 04:05 PM
Just upgraded from 1.45 to 1.50.
I started the upgrade script and it seemed to work.
After upgrading there was an error message:
Critical error: software version 1.50, database version 1.45
Cannot continue - ask administrator to install correct verson
So i went to the DB and changed the version manually to 1.50. Now it seems to work so far. Perhaps a small error in the installation script?
Anyway, the new IRC Feature... it works perfectly!
Just as I hoped.
Thanks for your work.
Slave
01-12-2005, 04:21 PM
hmm .. I didn't get that when I updated ..
Were you using 1.45 or 1.45a? I was using 1.45a .. Perhaps it's something to do with 1.45?
Curzon564
01-12-2005, 04:35 PM
According to my database it was 1.45.
Even started the install script 2 times. No effect.
AndrewD
01-12-2005, 05:05 PM
According to my database it was 1.45.
Even started the install script 2 times. No effect.
There were no significant changes to the install script between 1.45 to 1.50, so I suspect that you either didn't upload the new install script or missed one of the steps of the script. Step 1 checks the database tables and record the new version number; step 2 upgrades the templates. AS you say, simply resetting the version number on the admin page works (for this upgrade at least) because there were no database changes.
Have a look on the admin page - if the text describing the force_redirect setting reads "1: redirect regardless of filetype (quicker/less bandwidth but file location visible and no header control).');" then you didn't run the latest script. It should read "1: use browser redirect regardless of filetype (quicker/less bandwidth but file location visible and no header control); 2: standard html hyperlink (file location visible, no checking, no hit counting).');"
OK?
AndrewD
01-12-2005, 05:09 PM
A couple of suggestions/additions come to mind .. (Only if you find the time)
The ability for users to report a link which would send a PM to the admin .. with permissions so admin can decide what user groups can report.
In the Show drop down a "Random Link" option.
In the Description of a Category have a "Sub Categories:" list .. similar to how the forums show "Sub Forums:" on the forums front page. With an on/off switch in the admin area.
:)
Thanks - will note these and your comments in the last post. Either for the final 1.50 or the next release. Definitely agree with the subcategory point - had dealt with this by a pop-over box on the category name on the menu list, but not fully satisfactory - will think further
Slave
01-12-2005, 05:47 PM
Thanks - will note these and your comments in the last post. Either for the final 1.50 or the next release. Definitely agree with the subcategory point - had dealt with this by a pop-over box on the category name on the menu list, but not fully satisfactory - will think further
Lovely .. cheers .. :)
Curzon564
01-12-2005, 07:45 PM
There were no significant changes to the install script between 1.45 to 1.50, so I suspect that you either didn't upload the new install script or missed one of the steps of the script. Step 1 checks the database tables and record the new version number; step 2 upgrades the templates. AS you say, simply resetting the version number on the admin page works (for this upgrade at least) because there were no database changes.
Have a look on the admin page - if the text describing the force_redirect setting reads "1: redirect regardless of filetype (quicker/less bandwidth but file location visible and no header control).');" then you didn't run the latest script. It should read "1: use browser redirect regardless of filetype (quicker/less bandwidth but file location visible and no header control); 2: standard html hyperlink (file location visible, no checking, no hit counting).');"
OK?
It's the first one. So it seems that the install script didn't run correctly.
The install script is the newest one, I checked it at least 3 times.
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'local_links_install');
define('THAT_SCRIPT', '../local_links');
define('ADMIN_SCRIPT', '../local_links_admin');
define('THIS_VERSION', '1.50');
There is also the right Version but it seems as if nothing gets assumed. Don't know why.
aussiev8
01-13-2005, 12:57 AM
i use this script for movie clip downloads, i was just wondering if we could find some way to get an addon made that has a points system attached? so the user has to post (and by posting earns points) and then gets to download the movies and stuff at a cost of 1 credit per movie (or admin defined) how hard would this be to make? i'm aware it'd be a great deal of hacking up one of the files, i have no idea where to start
aussiev8
01-13-2005, 09:29 AM
or maybe an integration with ucash?
AndrewD
01-13-2005, 09:38 AM
or maybe an integration with ucash?
Thinking about it...
AndrewD
01-15-2005, 01:52 PM
Withdrawn - 1.51 is now the official release, see first post
ogetbilo
01-16-2005, 02:10 AM
Andrew just a quick question. Both in 1.45 and 1.41 i cannot find the correct monitor dir :)
I tried http://download.ayyas.com - /home/xxxx/public_html/download - /public_html/download but none of them worked. Can you just give an example for that ?
AndrewD
01-16-2005, 04:15 AM
Andrew just a quick question. Both in 1.45 and 1.41 i cannot find the correct monitor dir :)
I tried http://download.ayyas.com - /home/xxxx/public_html/download - /public_html/download but none of them worked. Can you just give an example for that ?
The feature is not available in 1.41.
In 1.45 and beyond, *monitor_dir* depends on *local_file_root*.
With local_file_root=0, monitor_dir is relative to the website root, e.g. /members/docs/ should sweep docs. (With 1.50 and above, /members/docs/* will also sweep all subdirs. ) I've tried this on both my Windows test box and our main webserver which is a Sun box, running a rather old version of Solaris.
With local_file_root=1, the setting is relative to the file root, e.g. d:/websites/thissite/members/docs/ on Windows. Not sure about this setting on a unix m/c - that's not something I know l much about.
OK?
Slave
01-16-2005, 07:20 AM
Just upgraded 1.50Beta to 1.51Beta .. No problems to report.
The things you've added are superb .. :) .. and the "Show Anything" is much better than a single random link feature ..
If I were to be picky ..
In the "Show Anything" page you get links showing more than once ..
When you turn on Sub-categories to show in the catbit .. shouldn't it be "Sub-categories:" and not just "Sub-categories" .. (I did say picky :))
Can you split up the normal settings and the "portal" setting .. I take it the portal settings are only if you have some extra portal hack? If not can you tell me what "categories_seen_on_portal" does as I've just spent 10 mins trying to see what it does without success .. heh :p
AndrewD
01-16-2005, 07:48 AM
Just upgraded 1.50Beta to 1.51Beta .. No problems to report.
The things you've added are superb .. :) .. and the "Show Anything" is much better than a single random link feature ..
If I were to be picky ..
In the "Show Anything" page you get links showing more than once ..
When you turn on Sub-categories to show in the catbit .. shouldn't it be "Sub-categories:" and not just "Sub-categories" .. (I did say picky :))
Can you split up the normal settings and the "portal" setting .. I take it the portal settings are only if you have some extra portal hack? If not can you tell me what "categories_seen_on_portal" does as I've just spent 10 mins trying to see what it does without success .. heh :p
Thanks.
I'll have a look at the links showing up more than once - I think that is down to SQL's ORDER BY RAND() which dowsn't guarantee uniqueness - so needs an extra filter.
I hijacked the portal settings for other purposes - categories_seen_on_portal has no effect in the main hack. (The portal code was written by Natch, and an updated version of it, get_hotlinks.php - is in the natch subdirectory).
Natch
01-19-2005, 07:24 PM
You can use the "SELECT DISTINCT" instead of just "SELECT"... should do the trick :D
AndrewD
01-20-2005, 08:09 AM
You can use the "SELECT DISTINCT" instead of just "SELECT"... should do the trick :D
Indeed, thanks. Had just to check that this worked ok on a complex join and that there weren't other cases where we wanted duplication. It does and there weren't ;).
AndrewD
01-22-2005, 05:33 AM
Version 1.51 is now the supported release. See first post in thread.
Slave
01-22-2005, 06:06 AM
Upgrade went without a hitch .. :)
.. and I can't find anything to say!
* Slave goes off to have a think ..
Slave
01-22-2005, 06:53 AM
Ok .. had a think .. feature requests .. :)
Allow users to comment on links
Show -> New Comments
Allow users to subscribe to categories (if new link added they get an email)
Show -> Subscribed Categories
Allow users to subscribe to links (if link gets updated they get an email)
Show -> Subscribed Links
Show -> What's updated
Instead of "rated 5 star" .. have a pic of 5 stars (use the same gfx that vb does?)
Pick link rating from a dropdown menu instead of links 1/2/3/4/5
In Category column if a category has a new link or sub-cat this is highlighted next to the category name
I think that should keep you going .. but only if you want to :)
AndrewD
01-22-2005, 07:16 AM
Ok .. had a think .. feature requests .. :)
Ha, Ha.... I do try to live a life, you know. Actually some of these have already been suggested, thought about, done...
>Allow users to comment on links
>Show -> New Comments
>Allow users to subscribe to categories (if new link added they get an email)
>Show -> Subscribed Categories
>Allow users to subscribe to links (if link gets updated they get an email)
>Show -> Subscribed Links
These have been long-standing suggestions. I've given them some thought but would require quite a lot of effort to implement properly.
>Show -> What's updated
OK, will think about this
>Instead of "rated 5 star" .. have a pic of 5 stars (use the same gfx that vb does?)
Someone's already shown how to do this. It's a simple edit of the linkrate template.
>Pick link rating from a dropdown menu instead of links 1/2/3/4/5
You could probably achieve this also with the linkrate template
>In Category column if a category has a new link or sub-cat this is highlighted next to the category name
This already happens - categories with new entries appear in bold.
Slave
01-22-2005, 07:56 AM
Ha, Ha.... I do try to live a life, you know. Actually some of these have already been suggested, thought about, done...heh .. well I did say I could't find anything to say :) .. I did read through the thread when I first saw the hack and subconsciously must of know some of these had been mentioned before ..
These have been long-standing suggestions. I've given them some thought but would require quite a lot of effort to implement properly.
Ok .. nps .. always good to know someone else wants them though :p
OK, will think about thisCool .. thanks :)
Someone's already shown how to do this. It's a simple edit of the linkrate template.Really? I don't remember that .. I'll have another look through the thread ..
This already happens - categories with new entries appear in bold.
* Slave slaps his head ..
Of course it does .. completely forgot :)
Imperial Fritz
01-23-2005, 06:04 AM
Installed fine, but when I tried to add a cathegory, filled the "add cathegory" form, pressed "confirm" and... nothing? Tried several times, no result. What could it be?
vb 3.0.3 with the security patch.
AndrewD
01-23-2005, 06:23 AM
Installed fine, but when I tried to add a cathegory, filled the "add cathegory" form, pressed "confirm" and... nothing? Tried several times, no result. What could it be?
vb 3.0.3 with the security patch.
I need more information - this doesn't happen to me with a completely new installation. Maybe you can PM me with you board details and an account with admin privs?
Imperial Fritz
01-23-2005, 06:42 AM
PM sent.
Imperial Fritz
01-24-2005, 10:38 AM
All works fine now, thanks to Andrew's prompt help :)
Imperial Fritz
01-24-2005, 12:14 PM
And now something more general:
If users want to download a file using some download manager, they can copy the link but then the Save File name the manager gives is local_links.php, yet the file is actually the chosen file. Is there a way to go around this and give the real file name?
Also: currently people with dl managers can't resume the downloads, is there anything that can be done about this?
And another issue:
It would be nice if there was a way to mass-change permissions of links in a single category... I did a test run and now have to manually change some 20 links :)))
Amavisca
01-29-2005, 08:54 PM
@AndrewD : This is a great hack. I just have a quick question, for example I have some media file (.wma, .wmv) and I mask the link with this hack. When my user want to dload the media file, they have to do right click --> save target as... otherwise if they click on the link, it will auto pop up the window media.
So my question is how can I change to direct dload when I just left click mouse to the link?
Thanks inadvance.
AndrewD
01-30-2005, 05:58 AM
@AndrewD : This is a great hack. I just have a quick question, for example I have some media file (.wma, .wmv) and I mask the link with this hack. When my user want to dload the media file, they have to do right click --> save target as... otherwise if they click on the link, it will auto pop up the window media.
So my question is how can I change to direct dload when I just left click mouse to the link?
Thanks inadvance.
Thanks for your remarks. I struggled with a similar problem with Adobe Acrobat. If you edit the file local_links_include.php, you'll find the following lines:
// Download handling matches VBulletin. With Internet Explorer, left click
// with some mimetypes may open file in a browser window. Right click
// offers "Save As" option.
define('HEADER_BEHAVIOUR','inline');
// Or... left-click always offers Open/Save As dialogue. Can cause "Open"
// problems for pdf files with Internet Explorer and Adobe Acrobat.
// define('HEADER_BEHAVIOUR','');
Try commenting out the first 'define' and uncomment the second so that it looks like this:
// Download handling matches VBulletin. With Internet Explorer, left click
// with some mimetypes may open file in a browser window. Right click
// offers "Save As" option.
// define('HEADER_BEHAVIOUR','inline');
// Or... left-click always offers Open/Save As dialogue. Can cause "Open"
// problems for pdf files with Internet Explorer and Adobe Acrobat.
define('HEADER_BEHAVIOUR','');
This should do what you want - I've tried it with mp3 files using IE and Firefox - but some combinations of browsers and plug ins may cause other problems.
AndrewD
01-30-2005, 06:20 AM
And now something more general:
If users want to download a file using some download manager, they can copy the link but then the Save File name the manager gives is local_links.php, yet the file is actually the chosen file. Is there a way to go around this and give the real file name?
Also: currently people with dl managers can't resume the downloads, is there anything that can be done about this?
I tried this using the LeechGet download manager www.leechget.net. It correctly catches and creates the filename. I imagine some download managers insist on using the linkname as filename (which of course points to the script) rather than the information which the script correctly provides.
If you really want to make this work with all download managers, then I think you will have to set force_redirect to 2 on the links admin page. However, this will create two new problems which may or may not be important to you - the location of all your links will become completely visible and the hit counter will not work.
And another issue:
It would be nice if there was a way to mass-change permissions of links in a single category... I did a test run and now have to manually change some 20 links :)))
In the next version, I'll make it possible for certain usergroups to mass change the permissions of entries within a category.
Amavisca
01-30-2005, 07:34 AM
Hi AnDrewD!
Thanks for the reply, I did try your suggestion but it didn't work. Usually when you click on link mp3 the Windown Media will not start automatically but with files are .wmv, .wma it does.
Maybe you can take a look and help me out to solve this problem ?? I am sure many other users who use and love this hack also want the samething as I do.
Thank u.
Ps: mayb this will help you some: http://www.hotscripts.com/Detailed/34430.html
An easy to use force file download script, especially useful for sites that have large media files and would like people to download the files locally instead of playing them remotely off the web server. Usage: http://www.yoursite.com/force-download.php?file=filepath
AndrewD
01-30-2005, 08:50 AM
Hi AnDrewD!
Thanks for the reply, I did try your suggestion but it didn't work. Usually when you click on link mp3 the Windown Media will not start automatically but with files are .wmv, .wma it does.
Maybe you can take a look and help me out to solve this problem ?? I am sure many other users who use and love this hack also want the samething as I do.
Thank u.
Ps: mayb this will help you some: http://www.hotscripts.com/Detailed/34430.html
I think you can solve the problem by going to your normal VB admin page, Attachments, Extensions and Sizes, and adding a new attachment type. Specify the extension as wma and the Mime Type as "Content-type: application/force-download" (no quotes)
Amavisca
01-30-2005, 10:24 AM
Awsome, it works. All bow down to u. A big thank from my community.
AndrewD
01-30-2005, 03:41 PM
** Post deleted - beta 1.55 now available
Lizard King
01-31-2005, 01:53 AM
I have it installed and translated to Turkish perfectly.Working very good.
The only problem is the local file root. In no condition I got this working but having no problem in anything else. Perfect Job Andrew.
Catch-22|BL
02-07-2005, 07:16 AM
AndrewD, I have a stupid question. I tried to read the instructions and I tried to review the code but am still not sure.
Let's pretend I have a message board with five forums and each forum has a different moderator. Can I give each forum its own "category" and set it so that forum's moderator must manage all incoming links/files in that category? In other words, each moderator would care about his/her area and not be bothered with the rest.
AndrewD
02-07-2005, 05:32 PM
AndrewD, I have a stupid question. I tried to read the instructions and I tried to review the code but am still not sure.
Let's pretend I have a message board with five forums and each forum has a different moderator. Can I give each forum its own "category" and set it so that forum's moderator must manage all incoming links/files in that category? In other words, each moderator would care about his/her area and not be bothered with the rest.
Not a stupid question. Currently, there is no distinction between moderators of different categories - either you can moderate (i.e. everything) or you can't (i.e. nothing). It would not be very difficult to change this in the way you suggest (i.e so that moderation was also linked to the category forum) - how big a deal is this to anyone?
Imperial Fritz
02-07-2005, 06:48 PM
Excellent. Although I'll probably wait for the official release. :) I won't lose anything after upgrading, right?
AndrewD
02-08-2005, 04:13 AM
Excellent. Although I'll probably wait for the official release. :) I won't lose anything after upgrading, right?
If you email me a) your full VB phrase translations and b) the translations you made for this hack, I'll make sure that you don't lose anything.
MustangLisa
02-09-2005, 02:14 AM
Works perfectly, thanks.
Craigr
02-10-2005, 11:38 AM
Here is an early beta of v1.52. The main change is that all the text messages in the main templates and script have been "phrased", i.e. use VBulletin's language system. So it should be straightforward to offer translated versions of this hack.
I have not (yet) done this for the text messages used on the admin page.
There are a couple of other changes
- users with can_set_permissions can change the forum permissions en-masse for all the links in a category
- if the hack spots that the size or url or a link has changed, either during an edit or a regular vlinks validation, then the link is flagged as 'new', i.e. appears in bold in the category listings
I'd appreciate it if someone can test this beta, perhaps by installing it and trying to provide a translation using the normal vb facilities.
Installation now requires uploading also the file local_links_phrases.xml to the main forum directory
Installed it last night and it works great. :) Thanks for the nice hack and easy to follow instructions.
I know it does not explicitly say but I want to confirm if this Mod works with MySql v3.23??
if anyone has it running on MySql3.2x..do let me know.
thanks
Imperial Fritz
02-10-2005, 07:38 PM
If you email me a) your full VB phrase translations and b) the translations you made for this hack, I'll make sure that you don't lose anything.
I meant the uploaded links. :) Don't worry about the translations, I'll redo them manually, not much work as I did only a few pages. :)
AndrewD
02-11-2005, 04:45 AM
I know it does not explicitly say but I want to confirm if this Mod works with MySql v3.23??
if anyone has it running on MySql3.2x..do let me know.
thanks
The hack installer checks that you have MySQL version 3.23.23 or higher. It will not work with anything earlier. It will work fine with 3.23.23, etc, although it handles searches differently with version 3 than with version 4 (Boolean mode, if that means anything to you).
Good luck
AndrewD
02-11-2005, 04:47 AM
I meant the uploaded links. :) Don't worry about the translations, I'll redo them manually, not much work as I did only a few pages. :)
Then you will be able to upgrade without problems. There is a minor bug on the admin pages of the available 1.52 , which will be fixed with the next upload this weekend.
darcyb
02-11-2005, 07:02 PM
Oh wow! I love this hack! THANK YOU SO MUCH!
darcyb
02-11-2005, 09:37 PM
I had a table full of categorized link items already and wanted to migrate it into Links 1.51 so that it could become the foundation of my collection. It was a duplicated system up to this point where people would use a forum for URL discussion and I was manually updating a table with phpmyadmin. Anyway, this solution fixes all that.
So I wrote my own php script to import the stuff and I figured I'd share it here in case anyone else has to do something similar.
First, use the Links interface to create enough categories to match the ones you were using before;
Then, run a script sort of like the one I've included before to get the toc and linkslinks tables populated with stuff. I used a counter for the key indices and ignored whatever indices I had. I made my items query from newest to oldest (using whatever key IDs I had), as I didn't want to populate Links with older links at the top of pages. I used my own user account for the userid, and a datestamp from a manual link entry to generate the integer for the time.
Although I did notice Links recount how many items were in each category and update the Category records while testing and clicking around, I did it manually anyway by querying (through phpmyadmin) with WHERE catid='n' (cat number) or whatever to get a count for how many items had imported into each category.
Edit category records and insert the actual count of items imported for each.
All of this is a sloppy way of doing it and it shows that I'm a little new to all this. I couldn't get phpmyadmin to generate a CSV file while escaping the commas in my news article quotes, and it was tricking imports into thinking a grammatical comma was defining a new field, and it just wouldn't work.
I then had trouble with apostrophes from words like can't, so I had to use the addslashes() function on the titles and descriptions I was importing.
But it worked, and very well. I was able to populate Links with about 400 links, all into the right categories. Here's the ugly amateurish php script with some extra echo commands I used for testing. You can omit those:
<?php
$link_id = mysql_connect("localhost", "username", "password");
$result=mysql_list_dbs($link_id);
mysql_select_db("dbase_name", $link_id);
$result=mysql_query("SELECT * FROM tbl_news where newsType in ('Media', 'Research', 'Opinion', 'Inspiration') order by newsID desc", $link_id);
if($result) {
$idx_count=0;
while($query_data=mysql_fetch_row($result)){
$idx_count++;
echo "IDX = $idx_count<br>";
if ($query_data[2]=="Media")
$catid=1;
if ($query_data[2]=="Research")
$catid=3;
if ($query_data[2]=="Opinion")
$catid=4;
if ($query_data[2]=="Inspiration")
$catid=5;
echo "$query_data[2] catid=$catid<br>";
$result2=mysql_query("INSERT local_linksltoc SET
ltoc='',
linkid='$idx_count',
catid='$catid',
displayorder='$idx_count'", $link_id);
echo "$idx_count, $catid, $idx_count<br>";
$query_data[3]=addslashes($query_data[3]);
$query_data[4]=addslashes($query_data[4]);
$result3=mysql_query("INSERT local_linkslink SET
linkid='$idx_count',
linkname='$query_data[3]', // newsTitle field
linkdesc='$query_data[4]', // newsBody field
linkurl='$query_data[5]', // newsURL field
linkhits='0',
linkforum='-999',
linkcheck='1108148258', // whatever is "now"
linkstatus='1',
linkdate='1108148258', // whatever is "now"
linkusername='username',
linkuserid='1', // my userid
linkmoderate='0',
linkmoddate='0',
linkreviewfreq='0'", $link_id);
if ($result3==1)
echo "$idx_count, $query_data[3], $query_data[4], $query_data[5]<br><hr><br>";
else
echo "<h1>$idx_count - $query_data[3] - ERROR</h1>";
}
}
mysql_close($link_id);
?>Hope this is useful to somebody.
Attached are FROM (the original news/links database) and TO (Links 1.51) screen caps.
Imperial Fritz
02-12-2005, 06:44 PM
I noted earlier that mass move of links to a different category or mass change of permissions would be very welcome, is there any hope of seeing this in the future? :)
AndrewD
02-13-2005, 04:04 AM
I noted earlier that mass move of links to a different category or mass change of permissions would be very welcome, is there any hope of seeing this in the future? :)
Mass change of permissions is already coded for release in v1.55; I missed the request for mass move, but will give that some thought.
Zain Jaffer
02-13-2005, 01:25 PM
I have a simple question
How can I remove the image on the section place.
For example on a HD links database I run: http://www.juicyduff.com/forum/local_links.php?action=links&catid=2
The avatar at the top messes things up and I don't want it to be there, how would I make it NOT display there?
"Avatars [img(removethis)]http://www.juicyduff.com/dloadz/avatars/wellysm/2.gif[/img(removethis)]" - Also, that displays on the title at the top near forum navigation ... I want that removed too.
BTW - AWESOME HACK!
AndrewD
02-13-2005, 06:24 PM
I have a simple question
How can I remove the image on the section place.
For example on a HD links database I run: http://www.juicyduff.com/forum/local_links.php?action=links&catid=2
The avatar at the top messes things up and I don't want it to be there, how would I make it NOT display there?
"Avatars [img(removethis)]http://www.juicyduff.com/dloadz/avatars/wellysm/2.gif[/img(removethis)]" - Also, that displays on the title at the top near forum navigation ... I want that removed too.
BTW - AWESOME HACK!
Thanks.
Put your image tag into the category description (if you want it to appear in the category listings) or into the extended description (if you want it to show up only in the category itself). Don't put it into the category name.
Zain Jaffer
02-13-2005, 09:45 PM
Hi Andrew,
Perhaps I was too vague and should make myself more clear:
Sorry, but the 2 solutions failed to solve the problem:
Bascically, I want the avatar to remain where it is on the front page but its image NOT be displayed how it is in the link above but to remain where it is.
Here is the main page: http://www.juicyduff.com/forum/local_links.php
You can see that the "wallpapers" images is moved, basically I only want the thumbnails to be on the left handside (category) and no where else.
Thanks, your help is appreciated...
AndrewD
02-14-2005, 04:29 AM
Hi Andrew,
Perhaps I was too vague and should make myself more clear:
Sorry, but the 2 solutions failed to solve the problem:
Bascically, I want the avatar to remain where it is on the front page but its image NOT be displayed how it is in the link above but to remain where it is.
Here is the main page: http://www.juicyduff.com/forum/local_links.php
You can see that the "wallpapers" images is moved, basically I only want the thumbnails to be on the left handside (category) and no where else.
Thanks, your help is appreciated...
Then you will have to edit a couple of the templates, links_main and links_catbit. links_main is the one that gives you the category title near the top of the page and links_catbit gives you the listing of categories within a page. There are three bits of information that you play with: the category name, its description and its extended description.
As you observe, if you put an image tag (or any other tag) into the category name, then the tag also shows up in the navigation bar as text. (I'll see if I can check for that condition and remove it, but I need to be careful that I don't kill anything else in the process.)
What you could do (easier if you are the only person creating categories on your board) is use the description or its extended description purely to hold the bbcode image tage, and modify the template accordingly.
For example. you could use the description to hold only the image tag and put the accompanying text into the extended description. So, you might edit these lines in the links_main template:
<tr align="center">
<td class="tcat" align="center"><strong>$viewcatname</strong>
<if condition="$catclosed != 0"><span class="smallfont">[closed]</span></if>
</td>
</tr><tr>
<td class="alt1"><span class="smallfont">$viewcattext</span></td>
</tr></tbody>
replacing $viewcatname by $viewcatdesc $viewcatname
You would also have to make a similar change in the links_catbit template, where the three variables are $catname, $catdesc amd $cattext.
<tr valign="top">
<td class="alt$catstyle">
<span class="smallfont">
<if condition="$catnew">
<b>
</if>
<a href="local_links.php?action=links&catid=$catid">$catname</a>
<if condition="$catnew">
</b>
</if>
</span>
</td>
<td class="alt$catstyle">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td width="75%">
<span class="smallfont">
<if condition="$catnew">
<b>
</if>
$catdesc
<if condition="$catnew">
</b> (new entry $catdate)
</if>
<if condition="$links_permissions[can_edit_category]">
<a href="local_links.php?action=editcat&catid=$catid">[edit]</a>
</if>
<if condition="$subcatnames"><br /><strong>Sub-categories:</strong> $subcatnames</if>
</span>
</td>
<td class="alt$catstyle" width="25%" align="right">
<span class="smallfont">
<if condition="$links_defaults[count_depth]==0">
[$catsub categ/$catentry entries]
<else />
[$catchildentry entries]
</if>
</span>
</td>
</tr>
</table>
</td>
</tr>
Good luck
Zain Jaffer
02-14-2005, 10:32 AM
Unfortunately that didn't work :(
AndrewD
02-14-2005, 10:34 AM
Unfortunately that didn't work :(
What didn't work?
AndrewD
02-14-2005, 06:10 PM
Post withdrawn
UManiac
02-14-2005, 07:32 PM
Thanks Andrew!
I updated from 1.41 to 1.51 an now I have two minor problems when administering links I was hoping you could help me with...
1. When I click on Administer on the links page the browser just reloads the page - the address cycles through and sets the "action" to links
To try and resolve that I simply changed the link on the head template to point to "local_links_admin.php" which it does. However, none of the changes I make (like path to icon directory, or group permissions) ever take hold. Any ideas?
Thanks in advance!
Zain Jaffer
02-14-2005, 10:38 PM
v1.55 has the following features/fixes not in 1.51: .....
- strip out bbcodes in category names when constructing navbar (Zain Jaffer didn't think his bbcodes look too good there...)
Hey Andrew, I just upgraded!
How do I enable this option?
Secondly, I'm pretty sure this already exits, just that i'm not seeing it ... how do I set permissions for one usergroup to view a particular section. For example, the downloads section should only be accessed by "registered users" or "any usegroup" I choose?
Thanks, a lot Andrew for your hard work!!! :laugh:
AndrewD
02-15-2005, 04:06 AM
Thanks Andrew!
I updated from 1.41 to 1.51 an now I have two minor problems when administering links I was hoping you could help me with...
1. When I click on Administer on the links page the browser just reloads the page - the address cycles through and sets the "action" to links
To try and resolve that I simply changed the link on the head template to point to "local_links_admin.php" which it does. However, none of the changes I make (like path to icon directory, or group permissions) ever take hold. Any ideas?
Thanks in advance!
Yes, I'm sorry about that - its seems you are the first person (apart from me!!) to notice that little bug in 1.51 and 1.52. I split the admin code into sections and screwed something up in the process. Just upgrade to 1.55, see post just above yours, and the admin settings should stick again.
AndrewD
02-15-2005, 04:14 AM
Hey Andrew, I just upgraded!
How do I enable this option?
Secondly, I'm pretty sure this already exits, just that i'm not seeing it ... how do I set permissions for one usergroup to view a particular section. For example, the downloads section should only be accessed by "registered users" or "any usegroup" I choose?
Thanks, a lot Andrew for your hard work!!! :laugh:
Zain, either I'm not understanding your problem, or your problem is already fixed. I thought that what you didn't like was that the text of your bbcode appeared in the navigation bar, and version 1.55 has removed that.
For setting usergroup permissions, you do the following:
a) Either select a forum that already has the viewing permissions that you want to use, or create such a forum on your main board (you can hide it if necessary) and (using the main VB admin page) give that the permissions you want to apply to your downloads category
b) Go into your links admin page and make sure you've given yourself can_set_permissions privilege
c) Edit the category that you want to restrict and associate it with the forum in a)
If you only want to restrict some of the links in the category, you can simply edit those and set their associated forum.
Zain Jaffer
02-15-2005, 08:33 AM
Hi Andrew, in regard to the last question ... I want all usegroups to be able to view the page, but not download it unless I choose which usegroups.
In regards to the first problem, I think I didn't make it very clear:
The actual thumbnail itself shows where I don't want it to show... for example on here: http://www.juicyduff.com/forum/local_links.php?action=links&catid=2 (beside "avatars")... I only want the image to show on the main page.
But, thanks a lot for solving the other problem (image url appears in the nav menu!) !
lol .. i'm sorry if I ask too much! :(
UManiac
02-15-2005, 03:18 PM
Yes, I'm sorry about that - its seems you are the first person (apart from me!!) to notice that little bug in 1.51 and 1.52. I split the admin code into sections and screwed something up in the process. Just upgrade to 1.55, see post just above yours, and the admin settings should stick again.
Thanks Andrew. problem fixed - I noticed all the new features :)
I very much appreciate your time and effort in providing us with this valuable resource!
AndrewD
02-15-2005, 04:33 PM
Hi Andrew, in regard to the last question ... I want all usegroups to be able to view the page, but not download it unless I choose which usegroups.
In regards to the first problem, I think I didn't make it very clear:
The actual thumbnail itself shows where I don't want it to show... for example on here: http://www.juicyduff.com/forum/local_links.php?action=links&catid=2 (beside "avatars")... I only want the image to show on the main page.
But, thanks a lot for solving the other problem (image url appears in the nav menu!) !
lol .. i'm sorry if I ask too much! :(
Zain, I tried to explain in a previous post how to do what you want to do. You have to edit the links_main template and play around with the $viewcatname, $viewcatdesc and $viewcattext variables, which hold the category name + contents of the brief and extended category descriptions. For example, when you set up your category entry, do what you are already doing with the category name, but (e.g.) use the extended description to hold just the title without the img tag. Then kill the line <td class="tcat" align="center"><strong>$viewcatname</strong> in the links_main template.
As far as your permission question goes, I think you've changed your question! You achieve this as follows:
a) on the links admin page, set can_see_protected_links_on_portal permission for those usergroups that you want to be able to see but not download files.
b) for the links that you want this to apply to, associate them with a VB forum that you protect as I explained in my previous post.
Catch-22|BL
02-16-2005, 08:39 AM
Thanks but the discussed circumstances have changed. Congratulations on a very good hack and thanks for your work. :)
Not a stupid question. Currently, there is no distinction between moderators of different categories - either you can moderate (i.e. everything) or you can't (i.e. nothing). It would not be very difficult to change this in the way you suggest (i.e so that moderation was also linked to the category forum) - how big a deal is this to anyone?
blue jammer
02-16-2005, 11:58 AM
Andrew, thanks for this Hack, it seems to have everything I need! :)
The only problem I have with it is that guests are able to download the files.
Any help in being able to stop guests from being able to click the links and download files.
I haven't associated the page with any forums, and haven't as yet linked it anywhere, as it's still in 'test mode' as don't want people to download anything as yet.
If you need any settings/info/screen caps, I will be able to provide those.
Thanks.
AndrewD
02-16-2005, 03:20 PM
Andrew, thanks for this Hack, it seems to have everything I need! :)
The only problem I have with it is that guests are able to download the files.
Any help in being able to stop guests from being able to click the links and download files.
I haven't associated the page with any forums, and haven't as yet linked it anywhere, as it's still in 'test mode' as don't want people to download anything as yet.
If you need any settings/info/screen caps, I will be able to provide those.
Thanks.
One approach is as follows:
1 Create a new forum, and restrict access to the usergroup restrictions you want (i.e. set it so that only admins can read posts)
2 On the links admin page, set this forum as the default_forumid
3 Also on the links admin page, give can_see_protected_links_on_portal permissions to all groups (or all groups except not logged-in), etc
4 Create your category and links
This will make everything visible to all groups set in stage 3, but only downloadable to groups set in stage 1
When you're ready to turn things on, either go back to your vb admin and change the permissions on the associated forum or change the associated forum.
OK?
AuroraMike
02-17-2005, 12:50 AM
I'm chompin' at the bit for a new "final" version that incorporates your 1.52 and 1.55 changes...you can't speed up the process now can you? ;-) In all seriousness, this is an AWESOME hack. I really am looking forward to the next release.
Imperial Fritz
02-17-2005, 02:50 AM
I completely second that. :)
Zain Jaffer
02-17-2005, 09:01 AM
Thanks Andrew - I will try this out soon.
Sorry I wasn't able to reply promptly - Tis was my birthday yesterday!
Slave
02-17-2005, 02:05 PM
Just installed 1.55 .. all went smoothly .. :)
Just noticed a couple of things ..
If a cat has a new entry it now has "(New Entry )" next to the description .. can you spot the mistake ;) (the extra space) ..
Following on from that .. when you add a new link to a cat it shows as bold (OK) .. but when you go up a level nothing is showing as bold .. perhaps make the sub-cat show in bold in the sub-cat listing within the main cat's description? (If that makes sense) ..
I like the "send to a friend" idea .. but when you click on it the pre-filled text is relating to a music file? (I've gone into the phase manager and changed it to a more generic "I think you might be interested in this...") ..
That's it for the mo .. I'll come back if I find anything more :)
Slave
02-17-2005, 02:43 PM
Possible bug!
You know how, at the moment, Links doesn't store the size of a file until you click on the link .. it seems that this causes the system to think that that file is new again .. which then means it shows up in the "New Links" list as well as going back to being bold. Bug?
BTW .. am I right in thinking that the "What's Hot" link shows links with the highest hit count? .. but doesn't take into account ratings? Maybe have a "What's Good" listing which relates to ratings (If a site has lots of 5 star ratings maybe look at how many people have rated the file 5 star to cut the list down?) ..
hmm .. anything else ..
Oh .. the "Sort by" links don't seem to work in the "What's new" page .. not sure about any of the other pages yet .. (doesn't work in "My Links" either) ..
Talking of "Sort by" .. as well as Title, Date and Hits .. perhaps also have "Rating" as an option ..
Got to say the "Create linked subforum" is inspired! .. I LOVE it :) .. although I'm not sure what the "Apply parent also to its current links" tick box is for? and why don't you get that option when you add a cat .. only when you edit a cat?
You can have a life!! .. just don't come back to these forums! .. :D
Slave
02-17-2005, 02:56 PM
The only problem I have with it is that guests are able to download the files.
Andrew .. Would you be able to add 2 new permissions?
can_see_links
and
can_use_links
What do you think?
AndrewD
02-17-2005, 05:12 PM
Thanks Andrew - I will try this out soon.
Sorry I wasn't able to reply promptly - Tis was my birthday yesterday!
and I hope you will enjoy many more.....
AndrewD
02-17-2005, 05:15 PM
Possible bug!
You should be called eagle eyes...
Seriously, I'll try to deal with these bugs/suggestions at the weekend, and then make 1.55 the stable release. I've some other things I need to work on.
The faulty space after 'new entry' was actually a different bug - it should have said 'new entry dd/mm/yy" but the date got omitted.
blue jammer
02-18-2005, 06:29 AM
One approach is as follows:
1 Create a new forum, and restrict access to the usergroup restrictions you want (i.e. set it so that only admins can read posts)
2 On the links admin page, set this forum as the default_forumid
3 Also on the links admin page, give can_see_protected_links_on_portal permissions to all groups (or all groups except not logged-in), etc
4 Create your category and links
This will make everything visible to all groups set in stage 3, but only downloadable to groups set in stage 1
When you're ready to turn things on, either go back to your vb admin and change the permissions on the associated forum or change the associated forum.
OK?
Andrew, thanks for the speedy reply.
I followed those steps to the letter and spent hours yesterday adding a new forum with the right permissions, but as the forum was in an 'xtra' section, it wouldn't show up whilst trying to select it under the drop down menu for "default_forumid". It would only show the first two forum categories. So, after restoring all the default values on the 3rd 'xtra' category, and it still not being selectable, I just added the new forum under the main category and was then able to select it.
Once I had selected it, and followed all the other steps, I tested it out, having linked the new forum to the links page, that worked for me logged in as Admin, but once I logged out, although the 'Downloads' forum I have added isn't viewable, if I know the link (which users could pass onto non-users) I was still able to view the links page that way, AND to download the files still.
I've been over it all several times and still can't fathom out why it's still allowing access to the links page and letting guests download the files...
AndrewD
02-18-2005, 06:05 PM
Andrew, thanks for the speedy reply.
I followed those steps to the letter and spent hours yesterday adding a new forum with the right permissions, but as the forum was in an 'xtra' section, it wouldn't show up whilst trying to select it under the drop down menu for "default_forumid". It would only show the first two forum categories. So, after restoring all the default values on the 3rd 'xtra' category, and it still not being selectable, I just added the new forum under the main category and was then able to select it.
Once I had selected it, and followed all the other steps, I tested it out, having linked the new forum to the links page, that worked for me logged in as Admin, but once I logged out, although the 'Downloads' forum I have added isn't viewable, if I know the link (which users could pass onto non-users) I was still able to view the links page that way, AND to download the files still.
I've been over it all several times and still can't fathom out why it's still allowing access to the links page and letting guests download the files...
Hey, I'm sorry about the extra work - perhaps you could pm me with your board details - ideally with an admin username and password - and I'll take a look.
Andrew
Slave
02-19-2005, 06:42 AM
Got to say the "Create linked subforum" is inspired! .. I LOVE it :)
I'd love it even more if I could give the linked subforum a custom name :)
Reason being .. a lot of my link cats are called the same as the forum I'm linking them to .. and it looks "silly" to have a subforum of the same name as the one above on the forums front page ..
Maybe make it that it grabs the cat name and calls the linked subforum "catname links" .. or something? ..
I prefer the custom option mind .. ;)
I guess I could just go into admincp and change the name .. but that seems just that bit too easy .. heh .. :p
AndrewD
02-19-2005, 07:10 AM
I'd love it even more if I could give the linked subforum a custom name :)
Reason being .. a lot of my link cats are called the same as the forum I'm linking them to .. and it looks "silly" to have a subforum of the same name as the one above on the forums front page ..
Maybe make it that it grabs the cat name and calls the linked subforum "catname links" .. or something? ..
I prefer the custom option mind .. ;)
I guess I could just go into admincp and change the name .. but that seems just that bit too easy .. heh .. :p
Thanks,
Taking your three posts together:
- Sorting by rating requires a mod to the database tables, so I'll leave these two for now
- Have fixed some of the others (new entry, sort by, send to friend)
- Am still thinking about the rest
Watch this space...
AndrewD
02-19-2005, 09:07 AM
Version 1.55a has now been posted as the supported release of this hack. Please report any problems.
Bugs reported in the beta 1.55 have been fixed if I could duplicate them. A couple of Slave's suggestions have been handled as well:
Bug - Cats with new entries say "(New Entry )" next to the description .. (fixed, shows date as well)
Suggestion - New link in cat makes sub-cat show in bold in the main cat's description? (implemented)
Bug - I like the "send to a friend" idea .. but when you click on it the pre-filled text is relating to a music file?.. (text corrected)
Bug - "Sort by" links don't seem to work in the "What's new" page, etc (fixed)
Question - what is "Apply parent also to its current links" for? (text changed - should be clear now - allows admins to mass change permissions)
Suggestion - Give the linked subforum a custom name (done)
Suggestions about showing "Show well rated" and "Sort by rating" will have to wait - they require changes to the database
LeeWicKeD
02-19-2005, 02:40 PM
hi,
today i've installted this mod, and i'm very glad that it work?s so good!
but there is a great bug in it. in my link & file database just special usergroups can view& download something. guest or "normal" users cannot download anything. but if they click onto Show->hottest files (or something), they can see the files too.
and i would offer you to translate your hack into german, if you say me where to translate what ;) i've changed the templates, but it seems, that this wasn't all, there are still english words...
regards
lee
AndrewD
02-19-2005, 02:48 PM
hi,
today i've installted this mod, and i'm very glad that it work?s so good!
but there is a great bug in it. in my link & file database just special usergroups can view& download something. guest or "normal" users cannot download anything. but if they click onto Show->hottest files (or something), they can see the files too.
and i would offer you to translate your hack into german, if you say me where to translate what ;) i've changed the templates, but it seems, that this wasn't all, there are still english words...
regards
lee
Will investigate the bug - thanks
If you've just installed the latest version (1.55), then all the text in the main part of the hack is handled using the standard VB phase system, and you will find everything in local_links_phrases.xml. The admin page is not phrased - everything is in the templates and code, and I'd advise you not to try to do anything with these.
LeeWicKeD
02-19-2005, 02:58 PM
hi andrew,
ok i will download the new version and take a look at the .xml
i think it should be no problem then to translate it. are you interested in a german version? i could send you the german-xml if you want. but first i should take a look at it now ;)
maybe (if everything works fine) it's finished tonight...
rds
Lee
AndrewD
02-19-2005, 03:02 PM
hi andrew,
ok i will download the new version and take a look at the .xml
i think it should be no problem then to translate it. are you interested in a german version? i could send you the german-xml if you want. but first i should take a look at it now ;)
maybe (if everything works fine) it's finished tonight...
rds
Lee
That would be great, thanks.
I can't reproduce the bug you report. Can you try again using the new release (v1.55) - and pls confirm that you are using the forum permission system to define which usergroups are allowed to see/dowload links? The permissions that are set on the links/files admin page are about who can enter/edit/delete links, not about who can view them.
spence2
02-19-2005, 04:43 PM
AndrewD:
I know this thread would quickly get really cluttered if everyone who installed this hack thanked you again with each new release.
But, this is a superb hack! And you are just making it better and better.
So, thank you for your hack and your on-going support. U da man!
Hi,
how can i disalowed unregistered User to download a File.
AndrewD
02-19-2005, 06:35 PM
Hi,
how can i disalowed unregistered User to download a File.
You create (or choose) a forum on your board, and give that forum the permissions you want to use for the file (for example, only registered users can view posts in the forum). Then you associate the file with the forum. You do this within the form for adding or editing the link. You can do the same for categories.
If you want to apply this condition to every new file you make available, then on the links admin page, you set that forum to be the default forum for new links/categories.
LeeWicKeD
02-19-2005, 10:33 PM
so..i just came home..and now i'm not going to work any more on the translation...tomorrow i think ;)
and tomorrow i will try again with version 1.55
and yes i'm using the forum-permission-system.
ok, have a good night
lee
Imperial Fritz
02-19-2005, 10:36 PM
Yay! When I have time later tonight I'll upgrade.
Slave
02-20-2005, 08:35 AM
1.55a now installed ..
Thanks for adding the suggestions .. Brill .. This hack just keeps on giving :)
I think I've found something .. on the new cat page you can give a custom name to the linked cat, but on the edit cat page you can't edit it .. is this as planned?
Apart from that .. perfect! :)
Slave
02-20-2005, 08:54 AM
Oh .. and one more suggestion if you have time/it can be done ..
I used to use a cgi script called Links 2.0 as my links page (I think it's been mentioned before in the thread) ..
No! I'm not asking for an importer! ;)
But .. one thing, it was able to do, was very handy indeed .. If you went to a web page and wanted to add it to your links page you could highlight some text as your description and then click on an IE favourite and it would take you to the "add link" page, auto-fill the URL, Title and Description in the entry boxes. Then, all that was left to do was, pick which cat you wanted the link to be in and click the entry button.
It made adding links to the back-end very easy .. and quick!
Here's the code that was used for the favourite:
javascript:Q='';if(top.frames.length==0)Q=document .selection.createRange().text;void(btw=window.open ('http://www.domain.com/links2.cgi?db=links&add_form=1&URL='+escape(location.href)+'&Title='+document.title+'&Description='+escape(Q),'AddToLinks','menubar=1,lo cation=1,resizable=1,scrollbars=1,status=1,toolbar =1'));btw.focus();
I think this would be easy to do for this hack .. as long as the .php file, for adding links, is built to expect the text from the URL in the above code to be placed in the entry boxes ..
I've had a go at changing the code to be compatible with the hack ..
javascript:Q='';if(top.frames.length==0)Q=document .selection.createRange().text;void(btw=window.open ('http://www.domain.com/local_links.php?action=addlink&url='+escape(location.href)+'&Title='+document.title+'&Description='+escape(Q),'addlink','menubar=1,locat ion=1,resizable=1,scrollbars=1,status=1,toolbar=1' ));btw.focus();
But of course it doesn't work as, like I said, I think the .php needs to be built expecting the text .. (and I've probably got the .php extensions wrong anyway ;) )
What do you think?
AndrewD
02-20-2005, 09:06 AM
1.55a now installed ..
Thanks for adding the suggestions .. Brill .. This hack just keeps on giving :)
I think I've found something .. on the new cat page you can give a custom name to the linked cat, but on the edit cat page you can't edit it .. is this as planned?
Apart from that .. perfect! :)
Yup, that's planned. Basically, I try to keep this hack as separate as possible from the main VB code. It turned out to be easy enough to create/delete a VB forum, but I'm wary about trying to do too much before I really understand what's going on in the rest of the VB code. So if you want to rename the sub-forum, you'll have to go to the main VB admin page.
AndrewD
02-20-2005, 09:09 AM
Oh .. and one more suggestion if you have time/it can be done ..
I used to use a cgi script called Links 2.0 as my links page (I think it's been mentioned before in the thread) ..
No! I'm not asking for an importer! ;)
But .. one thing, it was able to do, was very handy indeed .. If you went to a web page and wanted to add it to your links page you could highlight some text as your description and then click on an IE favourite and it would take you to the "add link" page, auto-fill the URL, Title and Description in the entry boxes. Then, all that was left to do was, pick which cat you wanted the link to be in and click the entry button.
It made adding links to the back-end very easy .. and quick!
Here's the code that was used for the favourite:
javascript:Q='';if(top.frames.length==0)Q=document .selection.createRange().text;void(btw=window.open ('http://www.domain.com/links2.cgi?db=links&add_form=1&URL='+escape(location.href)+'&Title='+document.title+'&Description='+escape(Q),'AddToLinks','menubar=1,lo cation=1,resizable=1,scrollbars=1,status=1,toolbar =1'));btw.focus();
I think this would be easy to do for this hack .. as long as the .php file, for adding links, is built to expect the text from the URL in the above code to be placed in the entry boxes ..
I've had a go at changing the code to be compatible with the hack ..
javascript:Q='';if(top.frames.length==0)Q=document .selection.createRange().text;void(btw=window.open ('http://www.domain.com/local_links.php?action=addlink&url='+escape(location.href)+'&Title='+document.title+'&Description='+escape(Q),'addlink','menubar=1,locat ion=1,resizable=1,scrollbars=1,status=1,toolbar=1' ));btw.focus();
But of course it doesn't work as, like I said, I think the .php needs to be built expecting the text .. (and I've probably got the .php extensions wrong anyway ;) )
What do you think?
This looks a great idea, and I'll give it some thought. When I have the time.....
I also plan to provide a new interface for mass checking/editing/adjusting viewing/dowload permissions, as this seems to be the most frequently asked question.
Slave
02-20-2005, 09:27 AM
Nps about the linked cat thing .. just didn't know if it was planned ..
Glad you like the favourites idea .. :)
LeeWicKeD
02-20-2005, 06:58 PM
andrew here are my translated .xml files...
just noticed some little phrases that are still english...will fix it maybe tomorrow ;) but about 99% of the important things are translated :)
intrigue
02-20-2005, 08:48 PM
get this error
The following setting(s) are invalid
monitor_dir :
i tried a 1 and a 0
.matt
AndrewD
02-21-2005, 04:07 AM
get this error
The following setting(s) are invalid
monitor_dir :
i tried a 1 and a 0
.matt
If you set this at all, it should be set to the name of a directory. local_file_root tells the code where to find the directory.
If local_file_root=0, then setting monitor_dir (e.g.) to /downloads would tell the code to base its scans on http://yoursite/downloads
If local_file_root=1, then you might set moitor_dir (e.g., on a windows m/c) to d:/websites/yoursite/downloads
AndrewD
02-21-2005, 04:10 AM
Will be travelling for the next week, so please don't break anything important :rolleyes:
Imperial Fritz
02-21-2005, 04:43 PM
Upgraded successfully after upgrading to 3.0.7 as well, works fine.
Imperial Fritz
02-21-2005, 07:14 PM
Well, you forgot to phrase two of the most visible words :)
<tr align="center">
<td class="tcat" align="center" width="20%"><strong>Entry</strong></td>
<td class="tcat"><strong> Description</strong></td>
</tr>
AndrewD
02-22-2005, 05:09 AM
Well, you forgot to phrase two of the most visible words :)
<tr align="center">
<td class="tcat" align="center" width="20%"><strong>Entry</strong></td>
<td class="tcat"><strong> Description</strong></td>
</tr>
Why do I feel as if you wanted to find these! :speechless: Will fix when I get back home. Thanks.
RustedBucket
02-22-2005, 04:44 PM
You create (or choose) a forum on your board, and give that forum the permissions you want to use for the file (for example, only registered users can view posts in the forum). Then you associate the file with the forum. You do this within the form for adding or editing the link. You can do the same for categories.
If you want to apply this condition to every new file you make available, then on the links admin page, you set that forum to be the default forum for new links/categories.
The problem with this methodology appears to be that you still end up hiding the fact there is anything to download from the user. The unregistered user either can't see it or they see a link in another forum they can't access. So in the first scenerio, why would they do anything, the assumption is going to be there is nothing to download. The second scenerio would end up turning on the hidden links so you end up with two forums with the same stuff in them.
Why not base this on the grup attachment properties. Consider a link to a file the same thing as a physical attachment, because in essence it really is that. So if it's clicked, and the usergroup doesn't have permission to download attachment the permission error is generated?
AndrewD
02-22-2005, 06:39 PM
The problem with this methodology appears to be that you still end up hiding the fact there is anything to download from the user. The unregistered user either can't see it or they see a link in another forum they can't access. So in the first scenerio, why would they do anything, the assumption is going to be there is nothing to download. The second scenerio would end up turning on the hidden links so you end up with two forums with the same stuff in them.
Why not base this on the grup attachment properties. Consider a link to a file the same thing as a physical attachment, because in essence it really is that. So if it's clicked, and the usergroup doesn't have permission to download attachment the permission error is generated?
Quite a number of the recent questions have been about this or related points of visibility versus access. I understand that others may want to use the availability of downloads to attract new people to register. However, this hack was written from a different perspective, which is to offer different types of document to different user communities, one public, the other fee paying. In our case, most of those who are in the public category do not have the option (because of the nature of the association I run) to become fee paying (& so we hide the register button from them), and should not know that the other documents exist.
So the design objective was to build all access permissions on the forums permissions system for VB. That way, links and posts become equivalent, either fully visible or invisible, according to usergroup. There are one or two minor adjustments to that (i.e the can_see_protected_links_on_portal permission), to meet a particular user need. The decision was taken way back, and it would require a complete overhaul of the code to change it.
Imperial Fritz
02-22-2005, 07:01 PM
To add another perspective - in my case I absolutely don't want unregistered and even general registered users to know that I'm offering stuff for download (it's mostly articles and documents). The permission system as it is now is perfect for me. :)
Xtrm2Matt
02-23-2005, 05:17 PM
Hi,
Is there a way we can make it so users MUST register on the forum to download files? I just checked, and a guest can download a file without registering :(
Matt
LeeWicKeD
02-23-2005, 07:37 PM
@Xtrm2Matt
You create (or choose) a forum on your board, and give that forum the permissions you want to use for the file (for example, only registered users can view posts in the forum). Then you associate the file with the forum. You do this within the form for adding or editing the link. You can do the same for categories.
If you want to apply this condition to every new file you make available, then on the links admin page, you set that forum to be the default forum for new links/categories.
Xtrm2Matt
02-23-2005, 08:35 PM
Thanks :)
cclaerhout
02-24-2005, 08:58 AM
Thanks for this hack. It's really good.
I've translated it into french (only the user visible part). I've also made a little style modification. Hope you'll like it :-)
Zain Jaffer
02-25-2005, 08:53 PM
I'm getting a "status unknown" for all of the dloadz atm, what's going on?
http://www.juicyduff.com/forum/local_links.php
get a small problem when i tried to install
Error
SQL-query:
--
-- Table structure for table `local_linkslink`
--
CREATE TABLE `local_linkslink` (
`linkid` int( 11 ) NOT NULL AUTO_INCREMENT ,
`linkname` varchar( 255 ) NOT NULL default '',
`linkdesc` text NOT NULL ,
`linkurl` text NOT NULL ,
`linkhits` mediumint( 8 ) unsigned NOT NULL default '0',
`linkforum` smallint( 5 ) NOT NULL default '0',
`linkcheck` int( 10 ) unsigned NOT NULL default '0',
`linkstatus` int( 10 ) NOT NULL default '0',
`linkdate` int( 10 ) NOT NULL default '0',
`linkusername` text NOT NULL ,
`linkuserid` int( 10 ) NOT NULL default '0',
`linkmoderate` int( 2 ) NOT NULL default '0',
`linkmoddate` int( 10 ) NOT NULL default '0',
`linkreviewfreq` smallint( 5 ) NOT NULL default '0',
PRIMARY KEY ( `linkid` ) ,
FULLTEXT KEY `namedesc` ( `linkname` , `linkdesc` )
) TYPE = MYISAM AUTO_INCREMENT =1
MySQL said: Documentation
#1283 - Column 'linkname' cannot be part of FULLTEXT index
any ideas how to fix it plz
taxfree
02-26-2005, 12:03 AM
Excellent hack! Just got a quick question for you (don't we all?). I'm using this as a URL link manager for my reciprocal links. Right now, the links are all pointing to an internal link, like http://www.mydomain.com/forum/local_links.php?action=jump&id=3. Is there a for the link to show the actual link? My link exchange partners won't be too pleased when they find their inbound links gone.
AndrewD
02-27-2005, 10:36 AM
I'm getting a "status unknown" for all of the dloadz atm, what's going on?
http://www.juicyduff.com/forum/local_links.php
The hack only checks the availability/size of your links/files at certain times. For simple links or for downloadable files which are obviously within the file structure of your own web server (i.e. have no URL associated with them), this happens when the entry is set up. However, if it is a download which involves a URL, the check happens the first time someone (including possibly yourself) accesses it, because the check involves reading the whole file from the remote site.
I've just done this to one of your entries that was showing "status unknown". After accessing it and refreshing the links page, the description has changed to saying [52 kbytes] i.e. the file size.
If you don't like this behaviour, you can always edit the links_linkbit template. Find and delete the line which reads as follows:
<if condition="$linkstatus==0"> [$vbphrase[ll_unknown_status]]</if>
AndrewD
02-27-2005, 10:46 AM
Excellent hack! Just got a quick question for you (don't we all?). I'm using this as a URL link manager for my reciprocal links. Right now, the links are all pointing to an internal link, like http://www.mydomain.com/forum/local_links.php?action=jump&id=3. Is there a for the link to show the actual link? My link exchange partners won't be too pleased when they find their inbound links gone.
There's an easy but not perfect way, and a less easy way which I could include in the next release if you prefer.
The easy way is to go to the links admin page and change the setting of force_redirect to 2. This makes all your links completely visible, but it has the side effect that the hit counter no longer works.
An alternative is to edit the links_linkbit template. Find the line which reads
<if condition="$linkurl"><a href="local_links.php?action=jump&id=$linkid" target="_blank"></if>$linkname<if condition="$linkurl"></a></if>
Before the text target="_blank", insert title="$linkurl", i.e.
<if condition="$linkurl"><a href="local_links.php?action=jump&id=$linkid" title="$linkurl" target="_blank"></if>$linkname<if condition="$linkurl"></a></if>
That way, the actual url will become a pop-up when someone hovers over the link.
Please note that this will make the location of all your links and downloads visible, so you will not be able to hide things.
AndrewD
02-27-2005, 10:47 AM
get a small problem when i tried to install
Error
SQL-query:
--
-- Table structure for table `local_linkslink`
--
CREATE TABLE `local_linkslink` (
`linkid` int( 11 ) NOT NULL AUTO_INCREMENT ,
`linkname` varchar( 255 ) NOT NULL default '',
`linkdesc` text NOT NULL ,
`linkurl` text NOT NULL ,
`linkhits` mediumint( 8 ) unsigned NOT NULL default '0',
`linkforum` smallint( 5 ) NOT NULL default '0',
`linkcheck` int( 10 ) unsigned NOT NULL default '0',
`linkstatus` int( 10 ) NOT NULL default '0',
`linkdate` int( 10 ) NOT NULL default '0',
`linkusername` text NOT NULL ,
`linkuserid` int( 10 ) NOT NULL default '0',
`linkmoderate` int( 2 ) NOT NULL default '0',
`linkmoddate` int( 10 ) NOT NULL default '0',
`linkreviewfreq` smallint( 5 ) NOT NULL default '0',
PRIMARY KEY ( `linkid` ) ,
FULLTEXT KEY `namedesc` ( `linkname` , `linkdesc` )
) TYPE = MYISAM AUTO_INCREMENT =1
MySQL said: Documentation
#1283 - Column 'linkname' cannot be part of FULLTEXT index
any ideas how to fix it plz
Hello, what version of MySQL are you using?
AndrewD
02-27-2005, 01:50 PM
version 4.1.9
I have not tested this hack with version 4.1 of MySQL. Someone else did get it going ok. Presumably something has changed with FULLTEXT indices. I'll investigate. Sorry.
AndrewD
02-27-2005, 02:01 PM
I have not tested this hack with version 4.1 of MySQL. Someone else did get it going ok. Presumably something has changed with FULLTEXT indices. I'll investigate. Sorry.
This was reported earlier, see
https://vborg.vbsupport.ru/showthread.php?p=570044&highlight=mysql#post570044
dlouly47, 8th November 2004 said
I just downloaded this and installed it, however in step one It failed and gives me the error from mysql stating the table does not support full text indexes? How do I fix this...
I'm using Version 4.1...
Ah.. All resolved !! I did the fix last nite but did not reboot. I just had to change the filesystem type to myisam.. rebooted this morning and whala..
So there is a straightforward fix which seems to be about forcing the table type to MyISAM. If dlouly's reading this, perhaps he could comment.
Arial
02-27-2005, 02:46 PM
Hi
Sorrry to be lazy but I have read the first 14 pages in full, but I've lost the will to live, any chance somebody could just give me a few quick answers before I pay to have this installed.
a) We would only really use it for downloads, does the download portion of the mod allow any extensions or even better do you just get like a box you can enter a url in where the file is?
b) Does it let people who download it write a short bit of text on what they thought of it
c) Can they rate it with like a star system or equivalent
d) Does it show how often the file was downloaded.
E) Is all the above as standard or require further hacks to make it work.
Cheers Andrew et al.
AndrewD
02-27-2005, 03:09 PM
Hi
Sorrry to be lazy but I have read the first 14 pages in full, but I've lost the will to live, any chance somebody could just give me a few quick answers before I pay to have this installed.
a) We would only really use it for downloads, does the download portion of the mod allow any extensions or even better do you just get like a box you can enter a url in where the file is?
b) Does it let people who download it write a short bit of text on what they thought of it
c) Can they rate it with like a star system or equivalent
d) Does it show how often the file was downloaded.
E) Is all the above as standard or require further hacks to make it work.
Cheers Andrew et al.
a) You enter your download using a form in which you provide (at minimum) a title, the url to the download or the filename if it's on your own server, and a description
b) Not currently
c) Yes
d) Yes, to usergroups that you give this permission
e) all these features are there by default. All configuration is done using its own admin page.
OK?
Arial
02-27-2005, 03:27 PM
Cheers for the prompt responce Andrew, all sounds good. Shame about the 'comments' feature is this planned or just not enough interest?
One last question must a user be registered on the forum to access the download or can this be turned on and off depending on catagory etc?
EDIT
Plus also can you we add an image next to the download link? For instance we want members to be able to download maps (for games) and would be nice to be able to upload a still shot of the map.
thanks alot all sorted was my fault to start with
AndrewD
02-27-2005, 05:00 PM
Cheers for the prompt responce Andrew, all sounds good. Shame about the 'comments' feature is this planned or just not enough interest?
One last question must a user be registered on the forum to access the download or can this be turned on and off depending on catagory etc?
EDIT
Plus also can you we add an image next to the download link? For instance we want members to be able to download maps (for games) and would be nice to be able to upload a still shot of the map.
There are two sorts of permissions protection used with this hack
- Who can see/access a download: This is controlled using the standard VBulletin forums permissions system. You choose a forum that is visible to the usergroups you want to be able to see each link/category of links. You then associate the link/category with that forum. By default, this system is turned off, so everyone can see every entry.
- Who can create/edit/etc links. This is also controlled by usergroups, but these are set directly within the hacks admin page.
- Yes you can put images (using standard bbcodes) in any of the fields.
- Being able to comment on entries has been suggested by others. It's just not something that I have got round to coding yet. I'll make no promises.
If you download the hack, in the zip file, there's a full set of instriuctions which should answer your questions.
Arial
02-27-2005, 05:05 PM
Thanks Andrew, my guy will be installing it shortly.
AndrewD
02-27-2005, 05:11 PM
Thanks for this hack. It's really good.
I've translated it into french (only the user visible part). I've also made a little style modification. Hope you'll like it :-)
Thanks/merci, c'est tres gentil - I'll include this with the standard hack, and at some stage will work out how to do an auto install of the right languages.
eva01_
02-27-2005, 09:26 PM
hey look ignore me we got it to work.
and it works on MySQL 3.23 in case anyone wanted to know
thanks
Slave
02-28-2005, 03:06 AM
There's an easy but not perfect way, and a less easy way which I could include in the next release if you prefer.
Another way would be to have a "tooltip" entry box per link where you could type what you liked and have that appear when you hover over a link ..
:)
Slave
02-28-2005, 03:34 AM
Andrew .. Currently I'm using the plug-in for vBa CMPS to show my latest links ..
How would I change the plug-in to show the category the link is from?
So instead of ..
LINKNAME ¦ DATE
it would be ..
LINKNAME ¦ DATE
CATEGORY
Any ideas?
AndrewD
02-28-2005, 06:10 PM
Andrew .. Currently I'm using the plug-in for vBa CMPS to show my latest links ..
How would I change the plug-in to show the category the link is from?
So instead of ..
LINKNAME ? DATE
it would be ..
LINKNAME ? DATE
CATEGORY
Any ideas?
Assuming that you're using the original vba code posted by ixus, you need to do two things:
- edit the get_hotlinks_cat_date file as per the attached
- edit the links_hotlinks template to refer to $catid and/or $catname as you see fit.
Andrew
Slave
02-28-2005, 09:22 PM
Thanks for that Andrew ..
Unfortunately I'm using the attached file .. any chance you could take a look at it and add the required extra code?
I think it's a slightly updated file by the same author .. but I can't find where I got it from ..
Arial
03-02-2005, 08:11 AM
Hi
Thanks for your time in answering pre-installation enquiries Andrew. Had my guy install it and we are very happy with it as our all our members
Here's one of the catagories we setup yesterday
http://www.global-army.com/forum/local_links.php?action=links&catid=1
I would like to have a small thumbnail image in a column there showing the picture of the map , is that possible?
AndrewD
03-02-2005, 08:45 AM
Hi
Thanks for your time in answering pre-installation enquiries Andrew. Had my guy install it and we are very happy with it as our all our members
Here's one of the catagories we setup yesterday
http://www.global-army.com/forum/local_links.php?action=links&catid=1
I would like to have a small thumbnail image in a column there showing the picture of the map , is that possible?
Arial, that's good.
To display thumbnail images, just upload these somewhere sensible on your web site, and edit the links or categories. You can include VBulletin img BBCodes in the name and the description fields. For example, if you have a subdirectory called thumbnails immediately under your home page, and a thumbnail file called amberville.jpg, you could include a tag like this:
http://yoursite/thumbnails/amberville.jpg
Arial
03-02-2005, 10:59 AM
Hi Andrew
Thanks for that:-
http://www.global-army.com/forum/local_links.php?action=links&catid=2
What kind of code do you need to insert a <br> between communication and the image, so the image appears underneath the word communications.
AndrewD
03-03-2005, 02:42 PM
Hi Andrew
Thanks for that:-
http://www.global-army.com/forum/local_links.php?action=links&catid=2
What kind of code do you need to insert a <br> between communication and the image, so the image appears underneath the word communications.
Arial, one way is to enable the use of html in links displays (links admin page, there is a setting for this). Then you can simply drop a <br> tag into the relevant field during category edit.
However, a better way may be to edit the links_main template. This gets a bit technical, and I'm happy to exchange a PM or two with whoever is doing your web management.
Arial
03-03-2005, 02:51 PM
Thanks Andrew will have a play.
BioVader
03-03-2005, 02:57 PM
Andrew, will I be able to update my version of links without losing my data? It's been a while since I've been on but I just haven't had any problems with the program. Yet I would like to use the new version without to much hassle... Just not sure what version I'm using.
http://www.team-undercover.com/forums/local_links.php?
AndrewD
03-04-2005, 05:54 AM
Andrew, will I be able to update my version of links without losing my data? It's been a while since I've been on but I just haven't had any problems with the program. Yet I would like to use the new version without to much hassle... Just not sure what version I'm using.
http://www.team-undercover.com/forums/local_links.php?
The upgrade should be completely safe, but just to be sure, please back up your database (actually, just backup the tables called local_*) before starting.
Upload the files and rerun all steps in the installation script according to the instructions in the "instructions.txt" file in the zip. *Do not* tell it to uninstall - if you do that, you will lose everything.
Let me know if you experience any difficulties.
BioVader
03-04-2005, 06:11 AM
K. I will prolly do it first thing after work.
Zain Jaffer
03-08-2005, 08:22 PM
Is there a way to "search" the files in vbulletin links database, if not - will Andrew be kind enough to add it? :P ?
AndrewD
03-09-2005, 04:14 AM
Is there a way to "search" the files in vbulletin links database, if not - will Andrew be kind enough to add it? :P ?
Zain, are you wanting to search inside the files? Or just search the titles and descriptions - because that facility is already there?
havefun
03-17-2005, 01:49 AM
thanks :) works fine for me.
(but i do not use download..)
CHIngs
03-19-2005, 05:12 AM
you know how you can prevent double hits by disallowing hits for 60 seconds after being clicked. In a similar manner, how can I limit the number of downloads for a paticular amount of time after being click for the entire database?
Meaning, lets say I have file1.zip and file2.zip. I want to make sure that after the user clicks on file1.zip, he cant download file2.zip for another 60 seconds and vice versa. This must apply to ALL the files.
AndrewD
03-19-2005, 07:41 AM
you know how you can prevent double hits by disallowing hits for 60 seconds after being clicked. In a similar manner, how can I limit the number of downloads for a paticular amount of time after being click for the entire database?
Meaning, lets say I have file1.zip and file2.zip. I want to make sure that after the user clicks on file1.zip, he cant download file2.zip for another 60 seconds and vice versa. This must apply to ALL the files.
I'll put this on the wishlist.
thanks
Lizard King
03-19-2005, 12:04 PM
Andrew I have a question to you. Is it possible to change the look of links and file database like https://vborg.vbsupport.ru/attachment.php?attachmentid=21649&stc=1&thumb=1 in some close future :) why i am asking this this can give a very good look to links and file database and i am not good with html :)
AndrewD
03-19-2005, 12:22 PM
Andrew I have a question to you. Is it possible to change the look of links and file database like https://vborg.vbsupport.ru/attachment.php?attachmentid=21649&stc=1&thumb=1 in some close future :) why i am asking this this can give a very good look to links and file database and i am not good with html :)
I think I could do something like this by adjusting one or two of the templates - I'm not very good at my Russian any longer - what do you want to have displayed in the box - name, star rating, image, username, size, number of downloads?
Lizard King
03-19-2005, 12:31 PM
I think I could do something like this by adjusting one or two of the templates - I'm not very good at my Russian any longer - what do you want to have displayed in the box - name, star rating, image, username, size, number of downloads?
Yes exactly the sane information and maybe a small thumbnail just below the file name.
CHIngs
03-19-2005, 03:37 PM
I'll put this on the wishlist.
thanks
thanx for considering it for future versions. But I was kinda looking for a instant solution. I just need some starters, like database table should be made and some starters. I know its very similar to how the hits work. I tried it and it was saving time and stuff in the database but it was not disallowing downloads if a user click on the links below 60 seconds. I think partly because the hits system works on PER-FILE basis, I was kinda trying making it work globally, for all files.
AndrewD
03-19-2005, 04:09 PM
thanx for considering it for future versions. But I was kinda looking for a instant solution. I just need some starters, like database table should be made and some starters. I know its very similar to how the hits work. I tried it and it was saving time and stuff in the database but it was not disallowing downloads if a user click on the links below 60 seconds. I think partly because the hits system works on PER-FILE basis, I was kinda trying making it work globally, for all files.
What you've seen in the code is to disallow double recording of a hit in the database if the user clicks the same link twice in quick succession - I found that we were recording multiple hits if people got tired or were trigger happy.
If you're looking to prohibit multiple hits, then you have to put some similar code in another place. Go down to the lines that read
if ($_REQUEST['action'] == "jump" or $_REQUEST['action'] == "stream") {
$time = TIMENOW;
unset($url);
and add something like:
$jumplink = $DB_site->query("
SELECT * FROM ".THIS_TABLE."linksdownloads
WHERE userid='$userid'
ORDER BY usertime DESC
LIMIT 1
");
while ($jump=$DB_site->fetch_array($jumplink)) {
if ($time-$jump['usertime']) < YOUR_LIMIT) {
eval(print_standard_error('You will have to wait...',0));
exit;
}
exit;
}
Slave
03-22-2005, 02:48 PM
Hi Andrew .. :)
I think I've found a bug .. :p
I was in the process of adding a few more links to my site when I noticed something ..
I'd added 2 new links to the 2nd subcat within a main cat and when looking at the front page the subcat I'd added the links to was bold within the Description area .. but so were all the subcats after it in the same cat and I'd not added anything in those subcats. I clicked on the main cat link and the list of subcats were correct on that page with only the 2nd subcat showing bold as it should. I went back to the front page and all the others were still bold ..
Is there a missing close bold tag in the code?
Slave
03-22-2005, 02:53 PM
Sussed it ..
In the links_subcatbit template the closing bold tag is < b > instead of < / b >
:)
AndrewD
03-22-2005, 04:15 PM
Sussed it ..
In the links_subcatbit template the closing bold tag is < b > instead of < / b >
:)
Thanks...
havefun
03-22-2005, 09:35 PM
thanks slave :)
CHIngs
03-26-2005, 12:48 PM
What you've seen in the code is to disallow double recording of a hit in the database if the user clicks the same link twice in quick succession - I found that we were recording multiple hits if people got tired or were trigger happy.
If you're looking to prohibit multiple hits, then you have to put some similar code in another place. Go down to the lines that read
if ($_REQUEST['action'] == "jump" or $_REQUEST['action'] == "stream") {
$time = TIMENOW;
unset($url);
and add something like:
$jumplink = $DB_site->query("
SELECT * FROM ".THIS_TABLE."linksdownloads
WHERE userid='$userid'
ORDER BY usertime DESC
LIMIT 1
");
while ($jump=$DB_site->fetch_array($jumplink)) {
if ($time-$jump['usertime']) < YOUR_LIMIT) {
eval(print_standard_error('You will have to wait...',0));
exit;
}
exit;
}
all that code is giving me is a BLANK page. I replaced YOUR_LIMIT with 60 for 60 seconds, that didnt work.
AndrewD
03-28-2005, 09:32 AM
** 1.56 beta withdrawn ** We found a bug which hits only some users and produces invisible categories.
Attached, find the first beta for release 1.56. This is a 'tidying up' release, completing (I hope) the phrasing throughout the main and admin scripts. It also adds a few features that have been requested recently:
- (Slave) addlink script accepts optional url=, name=, description= parameters to allow scripted new link creation
- (Chings) optional admin timeout parameter added to prevent multiple hits in quick succession
- (Lizard King) two choices for the linkbit template, selected on the admin page. The new template uses a fieldset layout.
The main changes from 1.55b are in the admin script, giving better insight into category/forum associations and allowing you to download a csv file of hits when cleaning up the database. There are also two options for how category selection is handled within the addlink script (the existing pulldown menus and a fully expanded set of checkboxes).
The choice of template for linkbit and addlink are specified on the admin page.
I am separately uploading partially translated French and German xml phrase files. I'd be grateful if someone would go through these and translate the remaining English phrases (of course for any other languages too).
As always with a beta, bug reports appreciated
Lizard King
03-28-2005, 03:48 PM
Upgraded from 1.55 to 1.56 and faced no problem. Everything is working good under 3.0.7 Thanks for the new layout Andrew
Slave
03-29-2005, 10:12 AM
Just upgraded ..
I'm getting a mysql error when trying to get to the following link ..
http://www.domain.com/local_links_admin.php?action=admin&set=categories (Category Structure)
Database error in vBulletin 3.0.3:
Invalid SQL:
SELECT forumid, forumpermissions
FROM forumpermission
WHERE usergroupid = 1
AND forumid IN()
mysql error: 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
mysql error number: 1064
Date: Tuesday 29th of March 2005 12:07:37 PM
Script: http://www.domain.com/local_links_admin.php?action=admin&set=categories
Referer: http://www.domain.com/local_links_admin.php?action=admin&set=statistics
Username: Slave
Slave
03-29-2005, 10:43 AM
Just noticed that we seem to of got back the old bug of showing a link more than once in the "Some Random Links" section ..
Slave
03-29-2005, 10:47 AM
Within the instructions.txt at 3.1.c ..
local_links_template.xml
should be ..
local_links_templates.xml
Slave
03-29-2005, 10:51 AM
Another bug with the "Some Random Links" page ..
When a link has a "See also" section .. it's only showing one cat even when the link is linked to multiple cats ..
Slave
03-29-2005, 11:33 AM
For those wanting to take advantage of the "addlink script accepts optional url=, name=, description= parameters to allow scripted new link creation" that AndrewD has kindly added .. I've found the following code to work with IE 6 ..
javascript:Q='';if(top.frames.length==0)Q=document .selection.createRange().text;void(btw=window.open ('http://www.yoururl.com/local_links.php?action=addlink&url='+escape(location.href)+'&name='+document.title+'&description='+escape(Q),'AddToLinks','menubar=1,lo cation=1,resizable=1,scrollbars=1,status=1,toolbar =1'));btw.focus();(Be warned .. it looks like vB adds some spaces into the above code for some reason .. please cleck that you have no spaces before saying it doesn't work! :p)
Instructions for use ..
1/ Create a favorite within IE6 using any URL
2/ Right click this new favorite within the "Favorites" drop down and click "Properties"
3/ Within the "Web Document" tab replace the current URL with the code above remembering to change the "yoururl.com" part of the URL for the correct path to your local_links.php file
4/ Within the "General" tab replace the name to something like "Add URL to Link Database"
5/ Click OK, at which point it will ask if you really want to do it .. click YES
6/ Finally click "Tools" on your menu bar, click "Pop-up Blocker" and click "Turn off Pop-up Blocker". This will stop IE complaining that the site is trying to open a new window when you click "Add URL to Link Database" from your "Favorites" menu
To add a link to your Links Database you can now do the following ..
1/ Goto URL using IE6
2/ Highlight some text you'd like as the description for this link
3/ Pick "Add URL to Link Database" from your favorites list
4/ A new page will open pre-filling the Name, URL and Description of your link
5/ Finalise the completion of this page as normal
Finished! :)
AndrewD .. your more than welcome to use the above in the instructions.txt if you'd like .. or do some of your own if you think I've not explained it very well .. ;)
ShadowFun
03-30-2005, 03:49 AM
When renewed to the version 1.56, I don`t see any my categories..
Only: Home & Add (Cat)
I can pass for link "action=links&catid=N", but a category is nonactive and I cann`t add links.
At addition of category the choice of Parent Category I don`t see any my categories also.
The options are proposed by default:
template_category_selection - links_addnewlink_catselect
template_linkbit - links_linkbit_table
How to correct ? :ermm:
Rgds.
I just ran into a similar issue. Seems I missed the last couple of upgrades and after version 1.41 of this script, somehow the ability to define your own table prefixes disappeared and the installer insists on prefixing the tables as local_ so it just adds new blank tables if you were using another table prefix. I see no way to solve this without moving all the data around manually.
AndrewD
03-30-2005, 12:06 PM
I just ran into a similar issue. Seems I missed the last couple of upgrades and after version 1.41 of this script, somehow the ability to define your own table prefixes disappeared and the installer insists on prefixing the tables as local_ so it just adds new blank tables if you were using another table prefix. I see no way to solve this without moving all the data around manually.
Ouch - sorry guys - will check and provide a fix
ShadowFun
03-30-2005, 12:12 PM
I think problem not on prefixing (i`m upgrading from version 1.55), but in something other...
Only where ? :)
AndrewD
03-30-2005, 12:46 PM
Just upgraded ..
I'm getting a mysql error when trying to get to the following link ..
I think you'll find you associated a link or category with a forum, then deleted the forum. I'll fix the code so that it doesn't croak on this problem.
AndrewD
03-30-2005, 12:49 PM
Another bug with the "Some Random Links" page ..
When a link has a "See also" section .. it's only showing one cat even when the link is linked to multiple cats ..
This is the same bug that caused multiple copies of the same random link to show up. Basically the "random hit" code isn't working properly when a link was in more than one category. (The "hottest hits" code was also broken, although less visibly.) Will upload a fix quite soon.
AndrewD
03-30-2005, 12:56 PM
I just ran into a similar issue. Seems I missed the last couple of upgrades and after version 1.41 of this script, somehow the ability to define your own table prefixes disappeared and the installer insists on prefixing the tables as local_ so it just adds new blank tables if you were using another table prefix. I see no way to solve this without moving all the data around manually.
Welo, I realise you may have missed something..
After version 1.41, I split the main code into several files. You must set the required table prefix in local_links_include.php (which goes into your include directory) and local_links_install.php (which goes into your admincp directory).
AndrewD
03-30-2005, 01:03 PM
I think problem not on prefixing (i`m upgrading from version 1.55), but in something other...
Only where ? :)
Did you re-run all the steps in the install script (Verify database, verify templates, verify phrases)?
If you did, please PM me details of your board + a username with admin privs, so that I can take a look.
ShadowFun
03-30-2005, 01:19 PM
Ah sorry...but I`m test this on localhost..
No prob with vers. 1.55.. I add how many a lot of categories and links..
But when upgrade to 1.56 I can`t see any my categories :(
Clean installed 1.56 gives those errors... can`t see categories
AndrewD
03-30-2005, 01:26 PM
Ah sorry...but I`m test this on localhost..
No prob with vers. 1.55.. I add how many a lot of categories and links..
But when upgrade to 1.56 I can`t see any my categories :(
OK, can you backup the database tables called 'local_*' and email them to me - ad_rodin at noos.fr
I'll have a look here.
Welo, I realise you may have missed something..
After version 1.41, I split the main code into several files. You must set the required table prefix in local_links_include.php (which goes into your include directory) and local_links_install.php (which goes into your admincp directory).
Indeed. I re-ran the setup while assigning my table prefix in local_links_install.php (and local_links_include.php) and put local_links_include.php into the proper directory, and everything now seems to be working as it should. My issue was compounded by stepping aside as admin at the beginning of the year and making a lateral move to a new admin usergroup, so I had to shuffle some data due to that so I could regain admin access.
About the only bug I'm encountering so far is when using Administer > Category Structure. Looks like you hardwired the ACP dir on line 343 of local_links_admin.php, so if someone has changed their ACP dir name for security reasons, then the links under Access Permissions won't work.
funfone
03-31-2005, 06:48 PM
When renewed to the version 1.56, I don`t see any my categories..
Only: Home & Add (Cat)
I can pass for link "action=links&catid=N", but a category is nonactive and I cann`t add links.
At addition of category the choice of Parent Category I don`t see any my categories also.
The options are proposed by default:
template_category_selection - links_addnewlink_catselect
template_linkbit - links_linkbit_table
How to correct ? :ermm:
Rgds.
I just installed and upgraded to latest version I too cant see any categories only if I type in manually each catid - and there is no way of adding in a link..
AndrewD
04-01-2005, 03:20 AM
I just installed and upgraded to latest version I too cant see any categories only if I type in manually each catid - and there is no way of adding in a link..
OK, clearly something wierd going on - job for the weekend.
Funfone, is your board on a public web site - if so, can you pm me details plus an account with admin privs so that I can take a look.
Lizard King
04-01-2005, 03:56 AM
Andrew is it possible to add a custom field for this modification for the new layout that a user can enter a url for a image and this field will auto resize the thumbnail for 100x100 px ? Or maybe get https://vborg.vbsupport.ru/showthread.php?t=73040 this mode work with this hack ? My members want to include small thumbnails so bad and i can't find a stable way to do it.
AndrewD
04-01-2005, 04:01 AM
Andrew is it possible to add a custom field for this modification for the new layout that a user can enter a url for a image and this field will auto resize the thumbnail for 100x100 px ? Or maybe get https://vborg.vbsupport.ru/showthread.php?t=73040 this mode work with this hack ? My members want to include small thumbnails so bad and i can't find a stable way to do it.
I'll take a look this weekend - should be straightforward.
AndrewD
04-02-2005, 05:29 AM
A couple of you (Funfone, Shadowfun) reported that you upgraded to beta 1.56 and can no longer see the categories you add/nor add any links.
I think the reason is that you did not re-run all the steps in the install/upgrade script. For this reason, some of the required templates and phrases are not available. Unfortunately, this means that any new categories that you add to your database are corrupt (to be precise, their parent is not being set properly).
You can fix the problem by re-running the install script and making sure you carry out all the steps as indicated. I will correct the installation script so that this problem is caught before it becomes a problem.
ShadowFun
04-02-2005, 08:35 AM
I already informed...
I tried installing clear 1.56 on a clear forum (without any hack`s)... The same prob... :(
Lizard King
04-02-2005, 08:47 AM
I dont know about a clean install but upgrading works perfect as i already did. And in this mod upgrading and installing are same so you shall now have any problem when installing. Read the instructions and after that start installation.
AndrewD
04-02-2005, 09:15 AM
I already informed...
I tried installing clear 1.56 on a clear forum (without any hack`s)... The same prob... :(
There are several steps in installing and in upgrading. You have to run each of them through to completion: step 1 - check the database, step 2 - install the templates (two stage to this), step 3 - install the phrases. If you only go part way through, then you're left with the wrong templates in the database. Unfortunately the hack seems to run correctly but it behaves the way you have observed.
ShadowFun
04-02-2005, 10:56 AM
Installation is very simple and there it`s not possible to make a mistake..
Step1 -> Step2 -> Step3... no prob... :D
I simply caution other...
Not I one who has a problem..
I just installed and upgraded to latest version I too cant see any categories only if I type in manually each catid - and there is no way of adding in a link..
Below I placed some screenshots.
For test I added one category named "Test".
AndrewD
04-02-2005, 11:34 AM
Installation is very simple and there it`s not possible to make a mistake..
Step1 -> Step2 -> Step3... no prob... :D
I simply caution other...
Not I one who has a problem..
Below I placed some screenshots.
For test I added one category named "Test".
Yes, I understand and I want to help, but it's a bit difficult because I cannot get at your site. The images you have just uploaded are completely consistent with having version 1.55 templates installed on a version 1.56 database.
Please can you do the following:
- Go into your main admincp and turn on "Add Template Name in HTML Comments" (General Settings)
- Go into the links/files and select Add Category
- When that screen opens, do a View Source / View Page Source in your browser. Save the raw html code to file and PM it to me.
Then I can try to see what is happening.
AndrewD
04-03-2005, 06:36 AM
Using ShadowFun's reply, I found a bug in the beta 1.56 code but it only seems to hit some sites - so I am withdrawing this beta for the time being.
If you installed the 1.56 beta and want to see if you have been 'hit', use phpmyadmin or similar tool and take a look at the linkscat table. If there are entries which have a parent=0 or parentlist with a zero in the list, then this bug has caught you. Sorry.
Will upload a fix asap.
This bug does not hit the official release (1.55).
MikeGK
04-04-2005, 10:30 AM
There seems to be a problem with linking files from different server. The file size not correctly count. example, if the file size were 10mb then it would just count as 4mb or less. This only applies to certain files, don't know why, some files are correct and some are not. Linking from localhost seems to be fine.
AndrewD
04-04-2005, 03:40 PM
There seems to be a problem with linking files from different server. The file size not correctly count. example, if the file size were 10mb then it would just count as 4mb or less. This only applies to certain files, don't know why, some files are correct and some are not. Linking from localhost seems to be fine.
Pls PM me with details of some files that are being given wrong file sizes, so that I can investigate. Thanks.
VampireMan
04-05-2005, 03:37 PM
With reference to Lizard King's suggestion, perhaps the size of the image can be set using the admin section.
At the moment i am doing this process to add links.
Submit link , copy the url so the link gets counted.
Then inserting code similar to this ...
https://vborg.vbsupport.ru/ (http://www.our-site.co.uk/forum/local_links.php?action=jump&id=80)
So if we had a image to put in the feilds - perhaps we could have the image clickable - that goes to the url specified.
Like how i have it here (http://www.cinderellas-wedding.co.uk/forum/local_links.php?action=links&catid=9)
I know i am asking a bit here.
If i am asking too much then just say. I quite understand ;)
Thanks
AndrewD
04-05-2005, 04:06 PM
With reference to Lizard King's suggestion, perhaps the size of the image can be set using the admin section.
At the moment i am doing this process to add links.
Submit link , copy the url so the link gets counted.
Then inserting code similar to this ...
http://www.remotesite.com/images/linktoremotesite5.gif (http://www.our-site.co.uk/forum/local_links.php?action=jump&id=80)
So if we had a image to put in the feilds - perhaps we could have the image clickable - that goes to the url specified.
Like how i have it here (http://www.cinderellas-wedding.co.uk/forum/local_links.php?action=links&catid=9)
I know i am asking a bit here.
If i am asking too much then just say. I quite understand ;)
Thanks
In fact, this has been implemented - it's being tested at the moment and I plan to release it at the weekend
Lizard King
04-05-2005, 04:21 PM
Andrew is it possible to autolink the image also ?
AndrewD
04-06-2005, 05:02 AM
Andrew is it possible to autolink the image also ?
Very easy - will include
Slave
04-07-2005, 06:58 AM
Hi Andrew :)
Is there an easy way to roll back to 1.55? or am I stuck with 1.56 for the moment?
Reason I ask is that I'm having problems when creating new sub-cats .. they don't seem to want to go into the cats I tell them too and only go into the very first cat I created.
Thanks :)
AndrewD
04-07-2005, 07:39 AM
Hi Andrew :)
Is there an easy way to roll back to 1.55? or am I stuck with 1.56 for the moment?
Reason I ask is that I'm having problems when creating new sub-cats .. they don't seem to want to go into the cats I tell them too and only go into the very first cat I created.
Thanks :)
Slave, sorry about that - you've been hit by the bug. There should be no problems going back - just upload the 1.55 code and rerun the installation script. Take a backup of your local_links tables to be sure.
I've fixed the bug and plan to release it this weekend.
Slave
04-07-2005, 08:04 AM
Ok .. ta .. I'll give it a go :)
RichieBoy67
04-10-2005, 02:54 AM
I am having a hard time setting the following..
monitor_catid
Category id in which to place entries found during directory scans.
monitor_dir
Comma-separated list of directories to scan for new links (check setting of local_file_root).
I keep getting errors.... what is the format for these...
My categorie ID for placement is 13
what exactly are directory id's????
AndrewD
04-10-2005, 12:03 PM
I am having a hard time setting monitor_catid and monitor_dir
A bit unclear, I realise.
monitor_catid is the numeric id for the category into which you want to place trawled files from your web site. You find out this number by displaying the category of interest or floating the mouse over the main category display and seeing the value given for catid=NN.
monitor_dir specifies one or more directories to scan. The catch is that these directories are within or around your website, not your local PC. A second point is that the interpretation depends on how you have set local_fileroot
If local_fileroot = 0 (the default), then the hack looks for these directories relative to the web site root. It is important to start the specification with a "/".
- if you want to search the directory "fred" which sits at the top of your website tree, set monitor_dir to "/fred"
- to search "fred" and "george", set monitor_dir to "/fred, /george"
- to search "fred" and all its subdirectories, set monitor_dir to "/fred/*"
(technically, the code sticks $_SERVER["DOCUMENT_ROOT"] at the front of whatever you specify.)
If local_fileroot = 1, then the list is treated as absolute or relative file names on the server, and ignores the whereabouts of the web site tree sits on that server.
(technically, the code calls realpath() on whatever you specify).
RichieBoy67
04-10-2005, 04:23 PM
Thank you for the response!! :)
So for the cat Id I just have to put the number of one of my categories?? No specific format?? cat id = or anything... just the number???
and for the monitor directory I can just have it scan everything off the root by putting "/" ??
My forum is in the root??? would this work??? By the way-- This is one of my favorute site additions!! Support even makes it better!! Thanks
AndrewD
04-10-2005, 05:36 PM
Thank you for the response!! :)
So for the cat Id I just have to put the number of one of my categories?? No specific format?? cat id = or anything... just the number???
and for the monitor directory I can just have it scan everything off the root by putting "/" ??
My forum is in the root??? would this work??? By the way-- This is one of my favorute site additions!! Support even makes it better!! Thanks
You just put in the catid number. In the next release, I've simplified things to give a category list, as in the rest of the code.
You can scan your entire tree by specifiying /* for the directory.
Let me know if you have problems and thanks for the remarks
RichieBoy67
04-10-2005, 06:55 PM
Thanks Andrew... That worked :)
I was wondering... is there a scheduled task or something that makes it scan the site??? I might have missed something in the settings...
Thanks again
skip that.... I found it but it is finding no links.... I must have something wrong...lol
AndrewD
04-10-2005, 07:08 PM
Thanks Andrew... That worked :)
I was wondering... is there a scheduled task or something that makes it scan the site??? I might have missed something in the settings...
Thanks again
skip that.... I found it but it is finding no links.... I must have something wrong...lol
NO, there isn't a scheduled task - I thought about this once, but never finished it. One problem with scheduled tasks is that you have to make sure that they don't go haywire if the job gets too big.
RichieBoy67
04-10-2005, 08:34 PM
Yeah, I found out where you click on scan but it is finding nothing..... where it said diectory to scan I put /* and it got nothing??
AndrewD
04-11-2005, 04:30 AM
Yeah, I found out where you click on scan but it is finding nothing..... where it said diectory to scan I put /* and it got nothing??
I'm getting a little confused - and maybe there's something else I hadn't explained.
- The directory scan only presents you with the option of selecting file that have mimetypes recognised by VBulletin - have a look at the top of the links and files admin page / settings and permissions. Not sure what this is on a clean install of Vbulletin - something like gif, jpeg, doc, etc
- The first time you carry out a scan on a directory, the listing should include all the files it finds, with three columns offering select, ignore and omit. The ones that you 'select' are inserted as downloadable links into the specified category. The ones that you 'ignore' are registered in a file 'ignore.txt' in the web directory, so that they will not be presented to you again the next time you run a scan on the same directory. The ones you 'omit' are ignored this time only.
- The next time you scan the same directory, the listing will *only* include files that are either a) new or b) were 'omitted' the previous time. It does not show the ones that you 'selected' or 'ignored'
If you're having problems with /*, try it first on a directory where you know there are files of interest, e.g. put a jpeg file into a directory and use the scan to look for it.
RichieBoy67
04-11-2005, 11:42 AM
No problem.....
I really don't even need that specific feature anyways. I am happy just adding links and downloads :)
Sometime when I have time I'll mess around more with it...... Great Hack... and thanks for the support :)
Rich
Slave
04-12-2005, 03:28 PM
AndrewD .. a suggestion .. :)
When you go to add a link does it check to see if it's already in the database? .. if not could there be a check put into the add link page to flag this up (with a link to the link edit page incase you want to add it to another cat)
AndrewD
04-12-2005, 03:34 PM
AndrewD .. a suggestion .. :)
When you go to add a link does it check to see if it's already in the database? .. if not could there be a check put into the add link page to flag this up (with a link to the link edit page incase you want to add it to another cat)
There's no check at that stage, but there is a check for duplicates in the admin page.
Thanks Slave, I'll think about this - seems a good idea. I'm getting a bit worried as the code is reaching the stage of being too complicated to test properly before each release. Need to make sure I don't keep breaking things.
Slave
04-12-2005, 06:04 PM
k .. no problem ..
I'm happy to be a ginni pig pig if you'd like :)
RichieBoy67
04-13-2005, 03:50 PM
Easy one....
Sorry if this was covered already...
I have been looking for desc limit so I can change the amount of links listed before a new page starts but I cannot find it....
Where is this?????
Thanks
AndrewD
04-13-2005, 08:01 PM
Easy one....
Sorry if this was covered already...
I have been looking for desc limit so I can change the amount of links listed before a new page starts but I cannot find it....
Where is this?????
Thanks
There are three levels of control.
On the links admin page, if you set *links_per_page* option to a value>0, this applies to everyone in every case.
If you leave this set at 0, then the code picks up in this order:
a) The value the user has set for Number of Posts to Show Per Page on his UserCP
or
b) Maximum displayed posts vefore page split from the main admincp/thread display options
reitube
04-15-2005, 03:04 PM
Hi folks,
I know, there are several posts for this issue. I just want to put an easy one, too.
I took the rating images from vbulletin ( images/rating...) and flipped it, cause there right aligned. I used "irfanview" (Flip Horizontal Function).
The images called "rating_left_<number>.gif".
Then I changed the links_ratebit like this:
Change it from:
<br /><span class="smallfont">rated <b>$linkrate</b> Stars <if condition="$links_permissions[can_admin_links]"> <a href="local_links.php?action=doratelink&vote=-1&id=$linkid&catid=$viewcatid&page=$pagenumber">clear</a></if></span>
To:
<span class="smallfont"><img class="inlineimg" src="images/rating/rating_left_$linkrate.gif" /><if condition="$links_permissions[can_admin_links]"> <a href="local_links.php?action=doratelink&vote=-1&id=$linkid&catid=$viewcatid&page=$pagenumber">clear</a></if></span>
That does all what I want.
Regards
P.S Don't hit me if it has been posted already... :knockedout:
skokarl
04-17-2005, 04:22 AM
excuse my bad english ...
in step 4 :
Fatal error: Cannot re-assign $this in C:\xampp\htdocs\biz\local_links_admin.php on line 642
What is the problem ?
AndrewD
04-17-2005, 04:59 AM
excuse my bad english ...
in step 4 :
Fatal error: Cannot re-assign $this in C:\xampp\htdocs\biz\local_links_admin.php on line 642
What is the problem ?
Line 642 is in the middle of the code for checking the value of "monitor_dir" so I assume that you are trying to set a value for this parameter?
Can you tell me exactly what value you put into the form?
Andrew
AndrewD
04-17-2005, 05:00 AM
Line 642 is in the middle of the code for checking the value of "monitor_dir" so I assume that you are trying to set a value for this parameter?
Can you tell me exactly what value you put into the form?
Andrew
Sorry I was a bit too quick. Are you using PHP5 or PHP4?
Andrew
skokarl
04-17-2005, 05:23 AM
Can you tell me exactly what value you put into the form?
Andrew
sorry, what value ?
I have installed XAMPP with VB 3.0.7 ( local !! )
then I have download your file and try it to install.
I don't have changed anything.
XAMPP use PHP 5.0.4 + PHP 4.3.11 ( in the moment 5.0.4 )
skokarl
04-17-2005, 05:43 AM
can help this ?
AndrewD
04-17-2005, 06:41 AM
can help this ?
PHP5 has stricter error checking than PHP4 (which most of us are using). It is picking up a bit of poor code which I need to fix. This is the source of the fatal error you are observing. Sorry. I will get a fix loaded as soon as possible.
skokarl
04-17-2005, 07:57 AM
Okay, thanks.
For the moment I have changed to php 4 ( its no problem with XAMPP),
and now it's okay., no errors.
Thanks for the nice hack, now I will try it.
-----------------------------------------
I have tested it ....
great Hack ! :banana: :banana:
AndrewD
04-17-2005, 10:43 AM
First beta of version 1.60. Grateful as always for a couple of testers.
* Removed - official version released *
Allan
04-17-2005, 10:57 AM
have to you it an installation in French, or there is just the phrase (xml)?
skokarl
04-17-2005, 11:44 AM
Thanks for the new Version.... :banana:
I will tested it on php5.
( excuse my bad english )
Comes there a version included upload-function in the future ?
Bernd
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.