View Full Version : Major Additions - Links and Downloads Manager
Pages :
1
2
[
3]
4
5
6
7
8
9
10
11
12
13
xadoa
10-20-2006, 01:12 PM
what is the estimated time for the full 2.2.6 AndrewD ?? i've been waiting day by day.. everyday come and look at this thread.. only 2.2.6beta1 ..hehe..
thanks for the hard work
XD
AndrewD
10-20-2006, 01:18 PM
what is the estimated time for the full 2.2.6 AndrewD ?? i've been waiting day by day.. everyday come and look at this thread.. only 2.2.6beta1 ..hehe..
thanks for the hard work
XD
I know, I know. I didn't want to make 2.2.6 'official' until I was certain that the bugs were all identified and corrected. I'm pretty sure that this is now the case, so let me promise that it will go gold this weekend (unless of course someone finds something to stop me...)
xadoa
10-21-2006, 06:03 AM
i am excited .. it's 3AM here and still checking on your hack :D .. today is saturday .. that meant in no time now .. heheh ..
thanks Andrew
elsupremo
10-21-2006, 06:31 AM
I finally caught up with everyone, upgrading both my VB to 3.6.2 and my LDM to 2.2.6. I ended up having the problem with the constant MYSQL error e-mails like this: Database error in vBulletin 3.6.2:
Invalid SQL:
INSERT IGNORE INTO session
(sessionhash, userid, host, idhash, lastactivity, location, styleid, languageid, loggedin, inforum, inthread, incalendar, badlocation, useragent, bypass, profileupdate)
VALUES
('', 1, '', '', 1161414394, '', 0, 0, 1, 0, 0, 0, 0, '', 0, 0);
MySQL Error :
Error Number :
Date : Saturday, October 21st 2006 @ 12:06:38 AM
Script : http://www.MyWebSite.com/local_links.php?action=jump&id=1131&catid=18
Referrer :
- Hide quoted text -
IP Address : [removed for privacy]
Username : Name
Classname : vB_Database
Anyway, I just uploaded your fixed local_links.php. The e-mails were coming in at a very consistent rate before. I'll wait through the evening before my final verdict.
One question: I ended up adjusting wait_timeout to 90 seconds when I was troubleshooting this problem. LDM told me that was a low wait_timeout setting, so I changed the setting back to default. What is an optimal wait_timeout setting?
Thanks again Andrew.
AndrewD
10-21-2006, 12:12 PM
I finally caught up with everyone, upgrading both my VB to 3.6.2 and my LDM to 2.2.6. I ended up having the problem with the constant MYSQL error e-mails
I fell into the trap of trying to be too friendly to the web server by releasing the database before everything was finished - I'd missed that VB keeps hold of some database accesses which are performed when the job finally ends. The error messages were actually telling you (not very clearly) that there was no longer a connection to the database.
One question: I ended up adjusting wait_timeout to 90 seconds when I was troubleshooting this problem. LDM told me that was a low wait_timeout setting, so I changed the setting back to default. What is an optimal wait_timeout setting?
I've not got right to the bottom of all the timeout settings. The basic point is to ensure that downloads complete before the database or the php script decide to give up in desparation. So, if you are offering downloads of large files - particularly if these are being streamed directly to a media player - the value for wait_timeout (and the similar value for php timeout - I can't recall its name) should be longer than the download takes to finish.
The php timeout is more critical on windows servers than on linux, as it seems to count also the time when the script has actually been told to sleep for a while. Under linux, this time is ignored.
AndrewD
10-22-2006, 08:36 AM
I have uploaded the release candidate for version 2.2.6 of LDM in the first post of this thread. I would welcome reports. To upgrade, simply upload the files again and reinstall via the VB product manager. Please remember to backup your database first.
Installation - Very important
If your web site runs Microsoft's IIS web server in cgi mode (you can find this out by looking at the main VB admincp page), the php environment variable DOCUMENT_ROOT is not defined by default. This causes serious problems with the placement of files managed by LDM on your server. Version 2.2.6 of LDM detects this problem and issues a fatal error if necessary. In this case, you must edit the file includes/local_links_init.php to define LDM_DOCUMENT_ROOT. The code makes clear where to edit. Alternatively, you could patch your web server so that DOCUMENT_ROOT is correctly defined.
changes
Since the 2.2.6 beta, I believe that all reported bugs have been fixed and a few new extras provided, as follows:
new features:
VB Profile
Parameters added in plugins to configure number of 'My Entries'/'Visited Entries' to display in profile
new 'extras'
force-mp3-to-m3u converts downloads of mp3s to download a matching m3u, to force winamp, etc, to stream the file
stream-mms-videos improves the security of LDM's handling of mms: streams and adds the option to save a stream to file
bugs fixed:
bbcode, smiles, images, html admin settings work correctly and editor toolbars adjust accordingly
usernames with quotes no longer produces sql error
LDM icons can now be in gif, jpg or png format
navbar errors fixed in search module
mp3 files with no id3 image no longer crash certain versions of php
downloads into slow channels (e.g. streaming into winamp) no longer die mid-way through transfer
curl transfer work ok when urls contain spaces
invalid 'file rename' requests detected during add/edit entry form
correct messages displayed when file uploads exceed allowed space
autothread extras do a better job of displaying the associated image in the thread
Ophelia
10-22-2006, 12:49 PM
Andrew,
Just got the new 2.2.6 installed.
One issue that I see right away. When you click on the magnify glass to see the full version, it used to show it correctly, now it's showing everything at 100x100. I reset thumbs hoping that would change it, but it doesn't. I know that originally, the previews are usually roughly 400x400 on our site (it's what we require for our team).
Best wishes and thank you so much for the hard work you do!
Stacy
Ophelia
10-22-2006, 01:16 PM
One more small issue.
1. Go into a download.
2. Click on the comments/ratings
3. Click on the View Comments and Ratings
I get the following error:
Warning: Division by zero in /includes/local_links_include.php on line 2233
Warning: Division by zero in /includes/local_links_include.php on line 2233
In the first table that shows up, I'm not for sure what used to be there, but now all that is there is this:
http://img.photobucket.com/albums/0903/Stacy_1009/LD_example.jpg
Not for sure if it did this before, as I never went this deep into the comments.
Also (sorry)
When you try to edit a download, even if you don't change anything at all, you get the following error when you click submit
Fatal error: Call to undefined function: check_url() in /home/website/public_html/forum/local_links_actions.php on line 837
I can hide things, I can delete things.. I can not however upload or edit.
When I try to upload for the first time. I get this error:
Fatal error: Call to undefined function: check_url() in /home/webattit/public_html/forum/local_links_actions.php on line 445
AndrewD
10-22-2006, 01:39 PM
When you try to edit a download, even if you don't change anything at all, you get the following error when you click submit
Fatal error: Call to undefined function: check_url() in /home/website/public_html/forum/local_links_actions.php on line 837
I can hide things, I can delete things.. I can not however upload or edit.
When I try to upload for the first time. I get this error:
Fatal error: Call to undefined function: check_url() in /home/webattit/public_html/forum/local_links_actions.php on line 445
Ophelia, please check that you have actually uploaded all the php files. It looks to me as if you still have the old local_links_actions.php file there. Line 837 in the old code refers to check_url(). Line 839 in the new code refers to check_ldm_url().
This may be the cause of your other problem too - I'll try to check.
AndrewD
10-22-2006, 01:54 PM
Ophelia, please check that you have actually uploaded all the php files. It looks to me as if you still have the old local_links_actions.php file there. Line 837 in the old code refers to check_url(). Line 839 in the new code refers to check_ldm_url().
This may be the cause of your other problem too - I'll try to check.
Yes, if looks as if you also got the old local_links.php installed.
I can reproduce both of your bug reports by installing the new files in the includes directrory but the files from release 2.2.6a1 in your forums directory.
Ophelia
10-22-2006, 03:30 PM
Ah man... I am so sorry for bothering you with my mess up! I paid attention to all the files except for those directly in forums :blush Uploaded the new files and all works great ;) Sorry!!!
WebmasterSimds
10-22-2006, 10:27 PM
Getting a weird mesage now when someone uploads using the prior version not 2.2.6
Im getting this message;
"This page is not designed to be access directly."
Any idead why I would be getting this message?
I have checked the permissions, they are all set correctly
never mind when i did a update to this, with 2.2.6 it fixed the problem, sorry i posted it but at leasts it info for you :)
WebmasterSimds
10-23-2006, 01:49 AM
I take it back, I dont know what happened, but after i did the updates of the extras, that i aded like the forumshome and 2 others dealing with forums home then i started to get that message again. and I did the upgrade?
Now here is a question. what would cause this to give that message above?? a small glitch with using an extra? a change in the forum i change to have the posts about the downloads go there? I am comnfused, cause all i did was upgrade , recheck the settings, add a new forum so that the LDM system will post into that topic instead of the one i had before. and that was it. ( Trying to give you the most information I can for you to help me)
So im stuck.
Again when I do a upload it takes me to the message
"This page is not designed to be access directly"
now the upload will post, but i have to click the back button 3 times to get back to where i wanted tobe at. to see it.
So again confused. I hate to bother you with this, but its the weiredest thing that I cant figure out.
Thanks in Advance
AndrewD
10-23-2006, 04:14 AM
I take it back, I dont know what happened, but after i did the updates of the extras, that i aded like the forumshome and 2 others dealing with forums home then i started to get that message again. and I did the upgrade?
Now here is a question. what would cause this to give that message above?? a small glitch with using an extra? a change in the forum i change to have the posts about the downloads go there? I am comnfused, cause all i did was upgrade , recheck the settings, add a new forum so that the LDM system will post into that topic instead of the one i had before. and that was it. ( Trying to give you the most information I can for you to help me)
So im stuck.
Again when I do a upload it takes me to the message
"This page is not designed to be access directly"
now the upload will post, but i have to click the back button 3 times to get back to where i wanted tobe at. to see it.
So again confused. I hate to bother you with this, but its the weiredest thing that I cant figure out.
Thanks in Advance
I'm also confused. If you are quoting the phrase correctly, it doesn't appear anywhere in LDM or in VBulletin (not even "not designed"). Are you saying that you have other hacks installed alongside LDM? That's all I can think of - that the different hacks are interfering with each other. If you can narrow it down a bit (try disabling the plugins/hacks one at a time and find out when things work again), it may help.
WebmasterSimds
10-23-2006, 04:28 AM
I think I may have figured it out, and I dont know why this is not working, but when I install the one that you can have like a recent downloads on the main forms page, ( I added it below the Whats new area) thats when it started to give me that message,
it was iether that one, or the one that added the stats of the downloads in the whats new along side the posts, but im almost positive its when i installed the one that lets you show the latest downloads on the forums home page.
I do have several hack thype things but mostly the VBadvanced, and catagory images, VB Image hosting, and a few others here and there, all tested for 3.6 and above.
but what i di, I went and re installed the main XML file, and it stopped it from doing it again, so thats how i deducted it was that module that took it and gave me those messages.
Thanks AndrewD for helping me try to figure this one out
Ray
rasun
10-23-2006, 10:18 AM
Thank you for the new release :)
The BBCode thing which I have reported, now works perferkt. ;)
Sorry, maybe I am blind....but how you can report a broken link?
"can_report_link" is set correctly, but I can?t find any button to report an entry.
I use the "modern" style, but also in the others I can?t find anything...
AndrewD
10-23-2006, 10:30 AM
Thank you for the new release :)
The BBCode thing which I have reported, now works perferkt. ;)
Sorry, maybe I am blind....but how you can report a broken link?
"can_report_link" is set correctly, but I can?t find any button to report an entry.
I use the "modern" style, but also in the others I can?t find anything...
see attached image. It's the red triangle. It only appears for entries that you did not submit yourself...
rasun
10-23-2006, 11:32 AM
It only appears for entries that you did not submit yourself...
OK it was my fault, sorry.^^ Have checked with an other user account and it appears. :)
EasyTarget
10-24-2006, 07:34 AM
is there a way to edit all entries which have a url of /forum/files to be changed to http://sitename.com/files?
I moved my hosting to have access to the machine but its a much slower file host. I left all my files on the previous host and want to just keep the path the same except lose the /forum part of it since there will no longer be forums at the old url.
even if its using the db to do it that's fine, I just don't want to go through 1 by 1 and edit them all if I don't have to. (I have a lot of files mixed in with other urls as well so I can't just edit every single entry)
glenvw
10-24-2006, 01:05 PM
I am using your hack but also had someone create a phrase and integrate it so that the welcome header box appeared the same whether logged in or not not registered. Obviously the message is different on the registered welcome header. I just like the uniform look. Maybe this could be worked into your hack?
See: http://www.warmislands.com
Ophelia
10-24-2006, 01:43 PM
Hi Andrew (boy are you going to dread seeing me).
http://www.gottapixel.net/forum/showthread.php?p=74347
Folks are still having an issue with the Accept / Decline page. It appears that there are still some issues with download managers affecting it... but there is one person who claims they don't have a DL Manager. I wish I could sit at a computer that it does this on so I can get the true configurations of what is on it :sigh
Ophelia
10-24-2006, 02:47 PM
I might not be understanding how to do this... so bear with me :)
We have 1001 pages of download stats.
I go to Admin > Stats > View Hits
I check Delete Download Records
nothing happens
So I click Archive. It allows me to download the records, but it does not delete the records.
Am I doing something wrong?
AndrewD
10-24-2006, 04:10 PM
is there a way to edit all entries which have a url of /forum/files to be changed to http://sitename.com/files?
I moved my hosting to have access to the machine but its a much slower file host. I left all my files on the previous host and want to just keep the path the same except lose the /forum part of it since there will no longer be forums at the old url.
even if its using the db to do it that's fine, I just don't want to go through 1 by 1 and edit them all if I don't have to. (I have a lot of files mixed in with other urls as well so I can't just edit every single entry)
There's a mass edit feature built into the LDM admin/categories - at least per category. See attached image.
AndrewD
10-24-2006, 04:12 PM
I am using your hack but also had someone create a phrase and integrate it so that the welcome header box appeared the same whether logged in or not not registered. Obviously the message is different on the registered welcome header. I just like the uniform look. Maybe this could be worked into your hack?
See: http://www.warmislands.com
Isn't this just a straightforward edit to the links_main template?
AndrewD
10-24-2006, 04:17 PM
I might not be understanding how to do this... so bear with me :)
We have 1001 pages of download stats.
I go to Admin > Stats > View Hits
I check Delete Download Records
nothing happens
So I click Archive. It allows me to download the records, but it does not delete the records.
Am I doing something wrong?
No, it's me - I 'back installed' an extension that I have written for version 2.2.7 into 2.2.6 without checking it. There's a bug.
If you need to clean things out, do the archive, then use a database tool (phpmyadmin) and empty the links_downloads table.
AndrewD
10-24-2006, 04:20 PM
Hi Andrew (boy are you going to dread seeing me).
http://www.gottapixel.net/forum/showthread.php?p=74347
Folks are still having an issue with the Accept / Decline page. It appears that there are still some issues with download managers affecting it... but there is one person who claims they don't have a DL Manager. I wish I could sit at a computer that it does this on so I can get the true configurations of what is on it :sigh
My friend, the next time I'm wherever you live, you buy me a really nice dinner.....
I'll take another look !!
EasyTarget
10-24-2006, 05:39 PM
thanks andrew, the project was a breeze. Not only can you mass update categories but you can mass update the mass update lol.. so I didn't have to go category by category but I could do every single file that it applied to.
With over 1000 files it was only a matter of minutes to do. I also appreciate the color coding so that I could distinguish easily from local and remote hosting.. that made it so much faster.
Ophelia
10-24-2006, 07:25 PM
If you need to clean things out, do the archive, then use a database tool (phpmyadmin) and empty the links_downloads table.
Thank you!
My friend, the next time I'm wherever you live, you buy me a really nice dinner.....
I'll take another look !!
Deal! My favorite is the Outback... you can even order the Alaskan King Crab :)
obmob
10-24-2006, 10:36 PM
Outback is good... geez, i love meat :D
OK, here is my spanish translation for 2.2.6... no, i didn't forget, i was just lazy :)
Now, back to business... well, i lost all my templates again when updating to 2.2.6, that was meant to be? :confused:
And... Andrew, how do i use that image resizing feature you told me about?
Is it somewhere in the wiki? :classic:
Thanks
EasyTarget
10-25-2006, 05:03 AM
I recently moved all the files off of the server I'm hosting on to a remote url which I also own. If I use the ldm to download the file my speed is MUCH slower than if I link to the file in my browser. (I'm not talking about the time for the download to start, I mean the duration of the entire download). Is there a way to avoid this? it counteracts the whole reason I moved the files.
AndrewD
10-25-2006, 07:37 AM
I recently moved all the files off of the server I'm hosting on to a remote url which I also own. If I use the ldm to download the file my speed is MUCH slower than if I link to the file in my browser. (I'm not talking about the time for the download to start, I mean the duration of the entire download). Is there a way to avoid this? it counteracts the whole reason I moved the files.
I wondered if you'd find this. It's all explained in the wiki, but probably lost in the annals of time.
If you set up LDM with all the (default) security settings turned on, then you've told LDM to keep the file location hidden from the end user. To do this securely for 'downloads' (i.e. files with filetypes that appear in your VB attachments table), it reads the file a block at a time and then transfers these blocks to the user.
This process is:
a) very quick if the file is on the same server as LDM and is referenced just using a local filename
b) slow and expensive if the file is on another server, because the code has to physically read the file over the internet and then retransmit it to the user - everything goes over the internet twice
c) somewhere in between if the file is actually on the same server but is referenced using a full url rather than a local filename.
I 'guestimate' that there is a factor of 1000 difference between case a and b.
When you simply type the url into the browser, then the file is obtained directly from the server on which it is held. There is no need to buffer the file somewhere, and there is also no need to involve a php script in the transfer - everything is dealt with by Apache/IIS/etc, which are 'hard coded' for efficiency.
Now, you can tell LDM to behave the same way as Apache, by setting LDM/admin/settings/force_redirect to 1 or 2. This will recover the speed, but it will no longer guarantee that the file location is secure from prying users. Case 2 is the most visible. Case 1 is partly hidden, but the really inquisitive user can discover where the file is held. Case 0 is fully secure at the cost of slow speed and extra cpu and double bandwidth.
Incidentally, if the file type is not in the VB attachments table, LDM always behaves as if force_redirect = 1
So this is the choice you have to make.
hotwheels
10-25-2006, 01:26 PM
I am kind of confused on this. After the install and going to set the local_file_root and local_file_root_prefix. What exactly am i going to put in there.....? I attached an image of the local and icon's not being enabled......I set a path for the icons and they will not appear with ldm. If i go to the icon's through my server and click on the link inside the ldm icons file, i am directed to the icon, but using the same addy inside the ldm setting's page, it keep's saying that it can't find the file......
|oR|Greg
10-25-2006, 01:44 PM
Andrew, I added this and a little advertising for ya. https://vborg.vbsupport.ru/showthread.php?t=129933
Ophelia
10-25-2006, 02:12 PM
Outback is good... geez, i love meat :D
Meat is good!
EasyTarget
10-25-2006, 02:47 PM
Thanks Andrew, I went with option #1. I'll just add some redirect index pages to keep people from indexing the file server.
hotwheels
10-25-2006, 04:27 PM
As well as this 532 (532) where exactly is the php.ini file located......I have looked everywhere that i can think of and i just can't locate it for some reason.
I tried to install a video and it said that it was to large for my php.ini settings.....
|oR|Greg
10-25-2006, 04:48 PM
PHP.INI I think is a file PER folder on your server. You can adjust it also usually by the PHPMYADMIN settings on your site. I set mine to 80mb I think.
AndrewD
10-25-2006, 06:41 PM
I am kind of confused on this. After the install and going to set the local_file_root and local_file_root_prefix. What exactly am i going to put in there.....? I attached an image of the local and icon's not being enabled......I set a path for the icons and they will not appear with ldm. If i go to the icon's through my server and click on the link inside the ldm icons file, i am directed to the icon, but using the same addy inside the ldm setting's page, it keep's saying that it can't find the file......
local_file_root and local_file_root_prefix are, if you like, specialised features for people who are running the web site on a server that is fully under their own control. They give you the possibility to increase security, but only if you really understand what you are doing and only if you do have full control of your server. If you don't, leave the settings alone.
Basically, these are used to control how LDM locates the downloadable files which it manages and which are stored on the server itself. LDM by default does a pretty good job of hiding the location of file downloads. However, if you really want to make sure that no-one can get at your files except through LDM, then you use these parameters to tell the program whereabouts on the web server the files are to be placed. All 'lookups' are translated to this part of the file system.
Concerning the icons setting, if you upload the icons into subdirectory ldm_icons of your *forums* directory, then set file_icons_dir to ldm_icons.
AndrewD
10-25-2006, 06:44 PM
As well as this 532 (532) where exactly is the php.ini file located......I have looked everywhere that i can think of and i just can't locate it for some reason.
I tried to install a video and it said that it was to large for my php.ini settings.....
or_greg's answer is not quite correct.
php.ini is a file that is used by your web server (e.g. Apache) to control how the server handles php scripts. It sets things like maximum time limits for scripts to execute, maximum file upload sizes, and many other settings.
Where the file is stored depends on the web server and the operating system. For example, with a Windows box running Apache, the file is usually dropped into the windows directory itself.
If you do not have full control of your web server, then you will have to ask the system administrators to edit the file on your behalf. Generally, they will know exactly what you are talking about if you mention 'php.ini' and the specific parameters that need changing.
|oR|Greg
10-25-2006, 07:02 PM
Andrew, I thought on linux servers you could drop the php.ini per folder and have it be more micro-managed, or, drop it in your root and let it trickle down, assuming you didn't drop another further in your site?
AndrewD
10-26-2006, 05:22 AM
Andrew, I thought on linux servers you could drop the php.ini per folder and have it be more micro-managed, or, drop it in your root and let it trickle down, assuming you didn't drop another further in your site?
You may be right - I'm not a Linux expert - some parts of the apache configuration can certainly be over-ridden, but I'm not sure about php.
AndrewD
10-26-2006, 06:04 PM
Outback is good... geez, i love meat :D
OK, here is my spanish translation for 2.2.6... no, i didn't forget, i was just lazy :)
Now, back to business... well, i lost all my templates again when updating to 2.2.6, that was meant to be? :confused:
And... Andrew, how do i use that image resizing feature you told me about?
Is it somewhere in the wiki? :classic:
Thanks
Thanks... I'll include these in the official 2.2.6 in a few days.
I wasn't aware that updating would lose templates. I thought I'd corrected that, but will check again. Sorry...
I can't recall your question about image resizing - can you remind me?
obmob
10-26-2006, 09:14 PM
Hello... well, Andrew, i wanted to show a a thumbnail, a midsized image and maybe a fullsized image... and you told me there was certain code that can be used in linkbit templates to resize the images.
So i'd be able to set different size for a different template o.o
I'm sure it was here... i don't use any other LDM ^.^
Thanks
AndrewD
10-27-2006, 05:10 AM
Hello... well, Andrew, i wanted to show a a thumbnail, a midsized image and maybe a fullsized image... and you told me there was certain code that can be used in linkbit templates to resize the images.
So i'd be able to set different size for a different template o.o
I'm sure it was here... i don't use any other LDM ^.^
Thanks
The url you need to add into your linkbit template will look something like this:
<if condition="$linkimg">http://yoursite/yourforums/local_resize.php?linkid=$linkid&size=M</if>
where M is the size at which you want to display the image.
For example, these links pull the same image from my site in tiny, small and medium sizes:
http://www.eirma.org/f3/local_resize.php?linkid=96&size=10
http://www.eirma.org/f3/local_resize.php?linkid=96&size=20
http://www.eirma.org/f3/local_resize.php?linkid=96&size=50
rasun
10-28-2006, 12:53 PM
When someone reports a bad link, all mods and admins gets an e-mail with this information. How can I change that. I want that reported links will be displayed in the "moderation" field or that only some mods will get a PN with this information...is this possible?
rasun
10-28-2006, 09:30 PM
*deleted*...sorry for double poste, please delete this
phovanxua
10-29-2006, 03:11 AM
Hi AndrewD
I Installed LDM tonight on my 3.6.2
Look great ,but when I try to Play ...it's open the Juke box for second and then go straight to Download and save file , This file I used the link URL to Add Link
Did I miss something here ?
The other file I used browser to upload ...it's play fine and No problem .
Thanks .
AndrewD
10-29-2006, 05:59 AM
When someone reports a bad link, all mods and admins gets an e-mail with this information. How can I change that. I want that reported links will be displayed in the "moderation" field or that only some mods will get a PN with this information...is this possible?
Thanks for bringing this to my attention. I discover that VB3.6 behaves differently than VB3.5 (in 3.5 there was a per-forum 'warn all admins' feature, which in 3.6 has changed a selection in the vb/options/user infractions). I had not noticed the change, and there's a bug in the current code for vb3.6 as a result.
However, onto your qestion - if the category containing the reported link is 'associated' with a forum with one or more named moderators, then LDM will (should!!) only inform those moderators. Otherwise it warns all mods and admins. I believe that that logic is still working correctly.
I'll look into the best way of handling this correctly in the 'gold' version of 2.2.6.
AndrewD
10-29-2006, 06:00 AM
Hi AndrewD
I Installed LDM tonight on my 3.6.2
Look great ,but when I try to Play ...it's open the Juke box for second and then go straight to Download and save file , This file I used the link URL to Add Link
Did I miss something here ?
The other file I used browser to upload ...it's play fine and No problem .
Thanks .
Difficult for me to imagine what is going on. Can you send me a PM with your site's url, so that I can take a look? Thanks
rasun
10-29-2006, 08:01 AM
OK thank you for you answer, looking forward to the "gold" version :)
An other question:
I want that external links use a dereferrer (anonym.to) to hide my site as referrer...the final link should looks like this: http://anonym.to?http://www.posted_site.com
Where should I add this to parse the external links automatically like this?
If it?s possible, local links shouldn?t use the dereferrer.
Can you help me with this?
AndrewD
10-29-2006, 09:02 AM
OK thank you for you answer, looking forward to the "gold" version :)
An other question:
I want that external links use a dereferrer (anonym.to) to hide my site as referrer...the final link should looks like this: http://anonym.to?http://www.posted_site.com
Where should I add this to parse the external links automatically like this?
If it?s possible, local links shouldn?t use the dereferrer.
Can you help me with this?
This is the first occasion for months when I have used the LDM slimmed down mod_rewrite feature....
Create and upload a file (e.g.) 'anon.txt' containing the following:
RewriteRule http: http://anonym.to?http:
and go to LDM/admin/settings/mod_rewrite and point the setting at this file.
rasun
10-29-2006, 09:32 AM
Yes this works, thank you! :)
Is it possible to use the dereferrer only for external links and local files do not use it...?
Now all links use it.
AndrewD
10-29-2006, 09:36 AM
Yes this works, thank you! :)
Is it possible to use the dereferrer only for external links and local files do not use it...?
Now all links use it.
Are you setting up your local files with a full url? e.g. http://yoursite/yourdir/file.type? This format will trigger the rule
You can just use /yourdir/file.type for local files, which should not trigger it.
rasun
10-29-2006, 10:18 AM
Ah ok I see.
Yes I used the full url also for local links...
OK will use the short url´s insted of it.
Any other solutions to recognize local links in full url isn´t possible?
AndrewD
10-29-2006, 10:28 AM
Ah ok I see.
Yes I used the full url also for local links...
OK will use the short url?s insted of it.
Any other solutions to recognize local links in full url isn?t possible?
Sandwich the rule between rules that temporarily patch your own site, e,g,
RewriteRule http://yoursite gttp://yoursite
RewriteRule http: http://anonym.to?http:
RewriteRule gttp://yoursite http://yoursite
(I haven't yet implemented Apache's mod_rewrite option of breaking out of the rewrite tests at first match, which would make this simpler.)
rasun
10-29-2006, 11:35 AM
Thanky you, this seems to work. :)
PitchouneN64ngc
10-29-2006, 12:27 PM
AndrewD, can you add a little thing for local_links_admin.php?set=statistics (version 2.2.6)?
When there is nothing to be downloaded in the last 24 hours, for the "Access during last 24 hours" line, you have this:
0 Hits
bytes
The query is ok, but the bytes field from the query is empty (only when you have nothing to be downloaded since 24 hours).
After this:$linkstats['downloads'] = $count['downloads'];Can you add this? if (empty($count['bytes']))
{
$count['bytes'] = 0;
}
The result of this code change will display this: 0 Hits
0bytes
Thanks ;)
PS: The french file for 2.2.6 is ready ;)
phovanxua
10-29-2006, 12:44 PM
Difficult for me to imagine what is going on. Can you send me a PM with your site's url, so that I can take a look? Thanks
Hi AndrewD ,
Check PM .
AndrewD
10-29-2006, 01:10 PM
AndrewD, can you add a little thing for local_links_admin.php?set=statistics (version 2.2.6)?
When there is nothing to be downloaded in the last 24 hours, for the "Access during last 24 hours" line, you have this:
0 Hits
bytes
The query is ok, but the bytes field from the query is empty (only when you have nothing to be downloaded since 24 hours).
After this:$linkstats['downloads'] = $count['downloads'];Can you add this? if (empty($count['bytes']))
{
$count['bytes'] = 0;
}
The result of this code change will display this: 0 Hits
0bytes
Thanks ;)
PS: The french file for 2.2.6 is ready ;)
Thanks - noted - will be fixed in the final upload of 2.2.6.
kompakt
10-29-2006, 03:30 PM
I like how LDM has grown to be AndrewD. Thanks for the great work.
I noticed that if I edit a category and try go to the control settings or permisisons page, then right before the page finishes loading it redirects to the forum home page. Has anyone else experienced this? [EDIT- This isnt working for me: #176 (https://vborg.vbsupport.ru/showpost.php?p=1052656&postcount=176)]
The directory sync seems to be working great, though it does not pick up the id3 tags of the files like it does when scanning the folders. How can I modify it to do so?
Also, how can I create a newest categories module, similar to the newest links module for vba cmps? also keep the autocreated threads limited to categories instead of links?
Thanks again :)
AndrewD
10-29-2006, 05:41 PM
I noticed that if I edit a category and try go to the control settings or permisisons page, then right before the page finishes loading it redirects to the forum home page. Has anyone else experienced this? [EDIT- This isnt working for me: #176 (https://vborg.vbsupport.ru/showpost.php?p=1052656&postcount=176)]
This is what needs to be in the header... I moved the javascipt into include files recently
<script type="text/javascript" src="clientscript/ldm_global.js"></script>
<script type="text/javascript" src="clientscript/ldm_ajax_keysugg.js"></script>
The control/permissions tabs are working fine for me on a clean install, and I helped Slave through the change quite recently - later than the post you refer to
The directory sync seems to be working great, though it does not pick up the id3 tags of the files like it does when scanning the folders. How can I modify it to do so?
When you upgrade, you need to reinstall the 'extras' - the id3 tag processing code is now called 'jukebox enhancements'. I've just tested this with the directory sync feature, and it works fine. Bear in mind that it's quite an expensive bit of processing, so don't expect to fully sync a large directory tree in one pass.
I'm using this as part of my test code for LDM - syncing my music library - a couple of thousand discs - it takes probably ten or fifteen passes through to complete the syncronisation. In version 2.2.7, I've improved the code, so that it doesn't waste so much time re-doing the same checks over and over again, but I'm not ready to release these improvements with 2.2.6.
Also, how can I create a newest categories module, similar to the newest links module for vba cmps? also keep the autocreated threads limited to categories instead of links?
Thanks again :)
The first part of this will be very easy - I'll take a look at the existing code and post a suggestion in the next few days. The second part may need more modifications to code - again, I'll let you know.
kompakt
10-29-2006, 09:45 PM
Thanks AndrewD, the control/permissions are working fine now and id3s are showing up with the scans & syncs
Since I have a lot of categories created, it doesn't seem to use them (even if they were identical to the server) and it creates new ones instead. So I'm doing the sync slowly, different categories at a time.
I saw that in the ldm-new hits template there is a conditional for displaying the name of the categories but I didn't know where it triggers from. Also, is it possible to display the upper category as well?
I'm looking forward to your suggesiton on the newest categories module...
Thank You
Slave
10-29-2006, 11:29 PM
HI AndrewD :)
I've just updated to 2.2.6 RC and I've noticed a couple of things ..
When viewing a single entry (if you've clicked a link from the vBa module as an example) the system still shows the subcats for the category the link is in. I would expect not to see this. (I've got a feeling this was in the older version of 2.2.6, but I've only just noticed it)
When viewing a Comments/ratings of an entry, if you have template_altbit set as "Modern" you still get the quick view dropdown - see screenshot (just seems silly to have both on that particular page ;))
No other bugs to report at the moment .. :)
Suggestions:
Any chance of getting the above mentioned dropdown on the "Tabular" linkbit template?
Change the show_hit_parade template to look something like I have at http://www.yaxleyvillage.com/local_links.php .. but without the dodgy final comma and the breaking up of multi worded entries :p
On the "Show" dropdown menu add a "Latest Comments" option - possibly add this sort of data to the Statistics admin page?
Add the ability to search comments on the Advanced Search page (third tickbox after title/description and keywords, but leave it unticked?)
I'll let you know if I think of anything else :)
Slave
10-29-2006, 11:46 PM
Oh, btw ..
I have can_add_link ticked and can_moderate_links unticked for registered users .. I take this to mean a registered user can add a link which then goes into the moderated queue. I've just tested this with my test user (using the Add Entry link) and I keep getting the no permission page .. have I missed a setting, or a bug?
xadoa
10-30-2006, 05:15 PM
Hi AndrewD,
somehow, after i've upgraded to the 2.2.6 my links don't listed in multi-columns anymore, even though i have set it 2 or 3 col like before, but it keep stand still as one column listing .. am I missing something not set here?
thanks Andrew
AndrewD
10-30-2006, 06:12 PM
Hi AndrewD,
somehow, after i've upgraded to the 2.2.6 my links don't listed in multi-columns anymore, even though i have set it 2 or 3 col like before, but it keep stand still as one column listing .. am I missing something not set here?
thanks Andrew
Which linkbit have you selected, and which version of LDM have you upgraded from?
I discovered that the standard linkbit is locked indeed onto a 1-column maximum display, but it seems to have been that way for some time. An oversight on my part.
AndrewD
10-31-2006, 04:46 PM
When viewing a single entry (if you've clicked a link from the vBa module as an example) the system still shows the subcats for the category the link is in. I would expect not to see this. (I've got a feeling this was in the older version of 2.2.6, but I've only just noticed it)
Agreed, I'll fix in the final 2.2.6
When viewing a Comments/ratings of an entry, if you have template_altbit set as "Modern" you still get the quick view dropdown - see screenshot (just seems silly to have both on that particular page ;))
Agreed, I'll fix in the final 2.2.6
Any chance of getting the above mentioned dropdown on the "Tabular" linkbit template?
Agreed, I'll fix in the final 2.2.6
Change the show_hit_parade template to look something like I have at http://www.yaxleyvillage.com/local_links.php .. but without the dodgy final comma and the breaking up of multi worded entries :p
On the "Show" dropdown menu add a "Latest Comments" option - possibly add this sort of data to the Statistics admin page?
Add the ability to search comments on the Advanced Search page (third tickbox after title/description and keywords, but leave it unticked?)
2.2.7 - sorry, I'm too close to finishing this release to make major changes to the code.
AndrewD
10-31-2006, 04:50 PM
Oh, btw ..
I have can_add_link ticked and can_moderate_links unticked for registered users .. I take this to mean a registered user can add a link which then goes into the moderated queue. I've just tested this with my test user (using the Add Entry link) and I keep getting the no permission page .. have I missed a setting, or a bug?
Have you by any chance unset both can_link_files and can_upload_files for registered users, in which case there's nothing that they can add.
obmob
11-01-2006, 03:10 AM
The url you need to add into your linkbit template will look something like this:
<if condition="$linkimg">http://yoursite/yourforums/local_resize.php?linkid=$linkid&size=M</if>
where M is the size at which you want to display the image.
For example, these links pull the same image from my site in tiny, small and medium sizes:
http://www.eirma.org/f3/local_resize.php?linkid=96&size=10
http://www.eirma.org/f3/local_resize.php?linkid=96&size=20
http://www.eirma.org/f3/local_resize.php?linkid=96&size=50Sweet, thanks, i'll test it this week :D
Slave
11-01-2006, 05:06 AM
Have you by any chance unset both can_link_files and can_upload_files for registered users, in which case there's nothing that they can add.
Ahh .. yes I did have both of those unticked :)
Thanks :D
Slave
11-01-2006, 05:09 AM
2.2.7 - sorry, I'm too close to finishing this release to make major changes to the code.
That's cool, I wouldn't of expected large changes until 2.2.7 :)
Slave
11-01-2006, 09:24 AM
Ahh .. yes I did have both of those unticked :)
Thanks :D
Ok .. after ticking the right box I then entered a test link with my test user. I have a bug :)
If a link is still waiting to be moderated, the user who submitted it can see it and the admin can see it. If another normal user looks they can't see it, but the category the moderated link is in changes to bold, with a new link date of the date of the submitted link.
Shouldn't this only happen once the link has been accepted?
Oh, and a suggestion ..
When deleting a moderated link could we please have a place to enter a reason for the deletion of the link, which could then be added to the email that's sent out to the member who added the link. I've not seen the rejection mail, but I'd like to be able to put something in there per link as to the reason it wasn't suitable.
AndrewD
11-01-2006, 09:30 AM
Ok .. after ticking the right box I then entered a test link with my test user. I have a bug :)
If a link is still waiting to be moderated, the user who submitted it can see it and the admin can see it. If another normal user looks they can't see it, but the category the moderated link is in changes to bold, with a new link date of the date of the submitted link.
Shouldn't this only happen once the link has been accepted?
Correct, it should... :tired:
But...
Correcting this opens up a real hornets' nest, as determining the most recent and the number of entries in a category depends on who's asking. This is fine when listing the detailed contents of the category - in this situation, one can pull all the correct items from the database. However, for the summary information (total entries, new entry in category), the code is optimised to avoid having to check everything. All the options seem unpleasant, so this is not a bug I am going to fix too quickly.
Slave
11-02-2006, 05:07 AM
Correct, it should... :tired:
But...
Correcting this opens up a real hornets' nest, as determining the most recent and the number of entries in a category depends on who's asking. This is fine when listing the detailed contents of the category - in this situation, one can pull all the correct items from the database. However, for the summary information (total entries, new entry in category), the code is optimised to avoid having to check everything. All the options seem unpleasant, so this is not a bug I am going to fix too quickly.
Ok :)
I suppose the way around it would be to put moderated entries into a separate area until they are ok'ed?
Whatever though, if it's a big job then don't worry about it, as it's something little really :)
|oR|Greg
11-02-2006, 02:52 PM
Instead of Wimpy player, I substituted the flvplayer, but I don't know what settings to change in the wimpy.js file. Can we get a little help on this one?
|oR|Greg
11-03-2006, 04:13 PM
Never mind I figured it out.
AndrewD
11-03-2006, 04:18 PM
Never mind I figured it out.
Can you post how - it will save me having to work it out :)
|oR|Greg
11-03-2006, 05:58 PM
Can you post how - it will save me having to work it out :)
Maybe, we'll see... I can't figure out why, but with the wimpy plugin installed that you specified in the extras, I hacked it up to work for the FLV player instead, the problem is that there is no where to specify what extentions for that player ONLY... if I want to use the jukebox now, I can only specify FLV files, and have to deny the rest. I don't know why, the IF statement about $player=="wimpy" is still intact along with all the others.... I can make you an admin on my site to see if you can correct that problem, then we can publish the code together honey bear.
It must have to do with the fact that the plugin changes ALL $player variables to "wimpy" and there is no specific section for FLV files to use the FLV player. Only Windows Media Player, QuickTime, DivX, and RealPlayer. How do I add a section to say that if extension = X, then $player = "flvplayer" ?
AndrewD
11-03-2006, 06:43 PM
Maybe, we'll see... I can't figure out why, but with the wimpy plugin installed that you specified in the extras, I hacked it up to work for the FLV player instead, the problem is that there is no where to specify what extentions for that player ONLY... if I want to use the jukebox now, I can only specify FLV files, and have to deny the rest. I don't know why, the IF statement about $player=="wimpy" is still intact along with all the others.... I can make you an admin on my site to see if you can correct that problem, then we can publish the code together honey bear.
It must have to do with the fact that the plugin changes ALL $player variables to "wimpy" and there is no specific section for FLV files to use the FLV player. Only Windows Media Player, QuickTime, DivX, and RealPlayer. How do I add a section to say that if extension = X, then $player = "flvplayer" ?
That's right - Wimpy plays most things and this was a quick plugin to demonstrate how to use it. Bear with me...
|oR|Greg
11-03-2006, 07:21 PM
Bear? Honey?
obmob
11-04-2006, 12:38 AM
Bear = to endure, to stand up to... not the fluffy stuffed animal or the honey eater XD
|oR|Greg
11-04-2006, 01:31 AM
Yes, but I called him honey bear... and he said bear with me... so... ya know..
AndrewD
11-04-2006, 06:06 AM
Yes, but I called him honey bear... and he said bear with me... so... ya know..
The irony is overwhelming me...
AndrewD
11-04-2006, 08:09 AM
How do I add a section to say that if extension = X, then $player = "flvplayer" ?
if (strtolower($type)=="flv") {
$player = "flvplayer";
}
obmob
11-06-2006, 03:57 PM
Thanks... I'll include these in the official 2.2.6 in a few days.
I wasn't aware that updating would lose templates. I thought I'd corrected that, but will check again. Sorry...
I can't recall your question about image resizing - can you remind me?You know, actually this time i needed to revert templates, there seem to be many corrections and new addons in them. :)
Now, i made a two icon links_favbit... huh? yeah, two stages, if it's in the favorite, then it shows an icon with a minus, letting the user know he/she can delete it from favorites.
Now, if i click, it returns me to the category... is it possible to make it ajax and avoid that redirection? :tired:
Have never played with ajax, i'd need some help :p
Here is the template, i removed the highlight, but it can be added with no problem.
Oh and i used my templates misc folder, i had no idea how to call the LDM folder :(
<if condition="$linkfav and $viewcatid!=-2">
<a href="$ACTION_SCRIPT.php?action=dofavlink&id=$linkid&set =<if condition="$linkfav">-1<else />1</if>&catid=$linkcatid&page=$pagenumber" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>">
<img class="inlineimg" src="$stylevar[imgdir_misc]/ll_favdel.gif" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>" alt="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>
" border="0" /></a>
<else />
<a href="$ACTION_SCRIPT.php?action=dofavlink&id=$linkid&set =<if condition="$linkfav">-1<else />1</if>&catid=$linkcatid&page=$pagenumber" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>">
<img class="inlineimg" src="$stylevar[imgdir_misc]/ll_favadd.gif" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>" alt="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>
" border="0" /></a>
</if>
obmob
11-06-2006, 04:37 PM
Well, i start playing with the resize mod in 2.2.6
But somehow i can't make it work as i want... i think there must be a way to do this.
First, i base my category browsing in the links_linkbit_short. Then, by clicking the image i see the details of this in the links_linkbit template.
OK, so i replaced the simple $linkimg in "short" with something like this:
<if condition="$linkimg"><a href="WHAT IN HERE?"><img class="inlineimg" src="http://mysite.com/dll_resize.php?linkid=$linkid&size=200" alt="$linkname" border="0" /></a></if>
So, i get the resizing, but how can i call the url that takes me to the details in "linkbit".
Somehow i know the right URL is in $linkurllink. but this one creates the whole text link, is there a variable that calls the url inside that link? :hurt:
Thanks :D
AndrewD
11-06-2006, 06:53 PM
Well, i start playing with the resize mod in 2.2.6
But somehow i can't make it work as i want... i think there must be a way to do this.
First, i base my category browsing in the links_linkbit_short. Then, by clicking the image i see the details of this in the links_linkbit template.
OK, so i replaced the simple $linkimg in "short" with something like this:
<if condition="$linkimg"><a href="WHAT IN HERE?"><img class="inlineimg" src="http://mysite.com/dll_resize.php?linkid=$linkid&size=200" alt="$linkname" border="0" /></a></if>
So, i get the resizing, but how can i call the url that takes me to the details in "linkbit".
Somehow i know the right URL is in $linkurllink. but this one creates the whole text link, is there a variable that calls the url inside that link? :hurt:
Thanks :D
local_links.php?catid=$linkcatid&linkid=$linkid
should do it
AndrewD
11-06-2006, 06:56 PM
You know, actually this time i needed to revert templates, there seem to be many corrections and new addons in them. :)
Now, i made a two icon links_favbit... huh? yeah, two stages, if it's in the favorite, then it shows an icon with a minus, letting the user know he/she can delete it from favorites.
Now, if i click, it returns me to the category... is it possible to make it ajax and avoid that redirection? :tired:
Have never played with ajax, i'd need some help :p
Here is the template, i removed the highlight, but it can be added with no problem.
Oh and i used my templates misc folder, i had no idea how to call the LDM folder :(
<if condition="$linkfav and $viewcatid!=-2">
<a href="$ACTION_SCRIPT.php?action=dofavlink&id=$linkid&set =<if condition="$linkfav">-1<else />1</if>&catid=$linkcatid&page=$pagenumber" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>">
<img class="inlineimg" src="$stylevar[imgdir_misc]/ll_favdel.gif" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>" alt="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>
" border="0" /></a>
<else />
<a href="$ACTION_SCRIPT.php?action=dofavlink&id=$linkid&set =<if condition="$linkfav">-1<else />1</if>&catid=$linkcatid&page=$pagenumber" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>">
<img class="inlineimg" src="$stylevar[imgdir_misc]/ll_favadd.gif" title="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>" alt="<if condition="$linkfav">$vbphrase[ll_myfav_del]<else />$vbphrase[ll_myfav_add]</if>
" border="0" /></a>
</if>
Making things work with ajax is not straightforward - it needs a whole accompanying javascript in the background. I'd suggest some practice before playing with this - e.g. take a look at clientscript/ldm_ajax_keysugg.js and see if you can figure out how it works :)
germinus
11-07-2006, 07:50 AM
well i have spent hours trying to find the link to get the jukebox on screen so that it can be used and now this program has crashed my database and my web hosts advise me that they can not repair the db error, so I have lost my complete site.
AndrewD
11-07-2006, 08:16 AM
well i have spent hours trying to find the link to get the jukebox on screen so that it can be used and now this program has crashed my database and my web hosts advise me that they can not repair the db error, so I have lost my complete site.
Could you please explain what you mean by saying that this program has crashed your database. And why do your web hosts not take regular backups?
I'm very happy to help you get LDM installed and working - just send me a PM and we can take it from there.
germinus
11-07-2006, 08:20 AM
ok back to square 1, instead of me spending another 6 hours trying to find out how to bring the jukebox up perhaps some1 would like to tell me as it in not in the instructions, it talks about the jukebox alot but fails to actually tell you how to get it on your screen
germinus
11-07-2006, 10:13 AM
Could you please explain what you mean by saying that this program has crashed your database. And why do your web hosts not take regular backups?
I'm very happy to help you get LDM installed and working - just send me a PM and we can take it from there.
Thats very kind of you Andrew, shame the net does not have more folks like you :)
|oR|Greg
11-07-2006, 12:22 PM
How would I integrate this (https://vborg.vbsupport.ru/showthread.php?threadid=130868)? Seems like it should be easy... for someone else.
reitube
11-07-2006, 12:35 PM
Hi Andrew,
LDM (2.2.5) works fine, but when I use the "allow_duplicates"-option with "no", it seems to have no effect. The users get the option "New entry even if it exits". And some of them use it with "yes".
Is there any chance to prevent duplicates effectively? Or did I miss another option?
Thanx
Regards
Alfa1
11-07-2006, 08:35 PM
How do I upload a bulk of files from my pc to LDM 2.2.5? Is there a limit in number of files? I want to add a few 1000's.
kompakt
11-08-2006, 02:43 AM
Upload them to your forum's server via ftp then, depending on how you need to organize them, scan them into a category of your choice or sync them with one .
AndrewD
11-08-2006, 05:01 AM
Hi Andrew,
LDM (2.2.5) works fine, but when I use the "allow_duplicates"-option with "no", it seems to have no effect. The users get the option "New entry even if it exits". And some of them use it with "yes".
Is there any chance to prevent duplicates effectively? Or did I miss another option?
Thanx
Regards
I think this was intended as a warning rather than a total block - will give you a clear answer when I'm back home again - it will be a simple template edit for you to fix this.
obmob
11-08-2006, 04:18 PM
local_links.php?catid=$linkcatid&linkid=$linkid
should do itSweet, that did the trick! Thanks. :D
Making things work with ajax is not straightforward - it needs a whole accompanying javascript in the background. I'd suggest some practice before playing with this - e.g. take a look at clientscript/ldm_ajax_keysugg.js and see if you can figure out how it worksOh, ok, well, i'll take a look at that file, and search for some references :)
Now, i have a feature request... hope Andrew won't kick me :laugh:
Well, there is a links_favbit, and links_editbit... you think it might be possible, in a future release, to include a links_downloadbit?
This would be a simple download link to be shown, the same as edit ot favorites... well, just that ^^
Thanks for everything!
|oR|Greg
11-08-2006, 05:27 PM
I'm SO close to making Google Video and You Tube videos play within LDM... I just need one last step!!!!
Andrew, I got the IF statement working inside the links_playbit template by adding some more code to the original WIMPY Player plugin that I changed for the FLV Player. Here is the code that I added to the plugin:
if(stristr($url, 'video.google.com/videoplay?docid=') == TRUE) {
$player = "google";
$google_patterns = array(
'http://video.google.com/videoplay\?docid=(.*?)&(.*?)',
'http://video.google.com/videoplay\?docid=(.*?)',
);
$google_rep = array(
'http://video.google.com/videoplay?docid=$1',
'http://video.google.com/videoplay?docid=$1',
);
$url = preg_replace($google_patterns, $google_rep, $url);
}
if(stristr($url, 'youtube.com/watch?v=') == TRUE) {
$player = "youtube";
$youtube_patterns = array(
'http://www.youtube.com/watch\?v=(.*?)&(.*?)',
'http://www.youtube.com/watch\?v=(.*?)',
'http://youtube.com/watch\?v=(.*?)&(.*?)',
'http://youtube.com/watch\?v=(.*?)',
);
$youtube_rep = array(
'http://www.youtube.com/watch?v=$1',
'http://www.youtube.com/watch?v=$1',
'http://www.youtube.com/watch?v=$1',
'http://www.youtube.com/watch?v=$1',
);
$url = preg_replace($youtube_patterns, $youtube_rep, $url);
}
Now, here is the code I added to the links_playbit:
<if condition="$player=='youtube'">
<object width="640" height="480" type="application/x-shockwave-flash" data="$url">
<param name="movie" value="$url" />
<param name="wmode" value="transparent" />
<em><strong>ERROR:</strong> If you can see this, then <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em>
</object>
</if>
<if condition="$player=='google'">
<object width="640" height="480" type="application/x-shockwave-flash" data="$url">
<param name="movie" value="$url" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="quality" value="best" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="salign" value="TL" />
<param name="FlashVars" value="playerMode=embedded" />
<em><strong>ERROR:</strong> If you can see this, then <a href="http://video.google.com/">Google Video</a> is down or you don't have Flash installed.</em>
</object>
</if>
There are 2 prolems I think...
When I add a new url entry to LDM like http://www.youtube.com/watch?v=X4ery9QRfpA, it goes OFF-site and opens a new window rather then opening in the same window with an embeded player, all because it's not a local file.
The jukebox settings require a file type. There is none for this, so I don't know what to do for that either.
Pretty please help me out, I'm SOOO close to embedding these (I think). Aren't you proud of me too, because I wrote my first plugin code?
elsupremo
11-08-2006, 05:57 PM
Andrew,
I don't know how long this has been going on, but it seems the 2.2.6 series of upgrades have created a problem with Firefox. For one thing, "Save Link As" does not work, and it instead tries to download an html page instead of the download. Secondly, and more significantly, if I left click on the link, the save as dialogue box only has the first 2 characters in my file name - and no extension. Example: I have a file name named: CC 10-07-06 720.wmv. When I left click on it in Firefox, the dialogue box only has "CC" in the save as line, with no extension added.
The left click and save target as functions work normally in both Opera and Internet Explorer (6 and 7).
Thank you for any advice in resolving this issue. I hope you are able to replicate this issue.
|oR|Greg
11-08-2006, 07:14 PM
Ok, I know it's controlled somewhere between lines 1587 and 1680 in the local_links.php... I just don't know how, or what...
AndrewD
11-08-2006, 07:47 PM
Andrew,
I don't know how long this has been going on, but it seems the 2.2.6 series of upgrades have created a problem with Firefox. For one thing, "Save Link As" does not work, and it instead tries to download an html page instead of the download. Secondly, and more significantly, if I left click on the link, the save as dialogue box only has the first 2 characters in my file name - and no extension. Example: I have a file name named: CC 10-07-06 720.wmv. When I left click on it in Firefox, the dialogue box only has "CC" in the save as line, with no extension added.
The left click and save target as functions work normally in both Opera and Internet Explorer (6 and 7).
Thank you for any advice in resolving this issue. I hope you are able to replicate this issue.
Yes, there was a change in the HTTP headers sent before the file, to try to get round another problem. I spotted this in 2.2.6 rc1 but hadn't yet made the new rc available.
Edit local_links.php and go down to line 2094, for the sequence that reads:
if (HEADER_BEHAVIOUR == "inline") {
// @header("Content-disposition: inline; filename=\"".$dfname."\"");
@header("Content-disposition: inline; filename=".$dfname."");
} else {
@header("Content-type: application/x-download");
// @header("Content-disposition: attachment; filename=\"".$dfname."\"");
@header("Content-disposition: attachment; filename=".$dfname."");
}
You can do one of two things, depending on your preference. Either swap round the comment flags, so that code reads:
if (HEADER_BEHAVIOUR == "inline") {
@header("Content-disposition: inline; filename=\"".$dfname."\"");
// @header("Content-disposition: inline; filename=".$dfname."");
} else {
@header("Content-type: application/x-download");
@header("Content-disposition: attachment; filename=\"".$dfname."\"");
// @header("Content-disposition: attachment; filename=".$dfname."");
}
(which takes it back to 2.2.5 behaviour) or replace the lines by the following:
if (HEADER_BEHAVIOUR == "inline") {
@header("Content-disposition: inline; filename=".str_replace(" ", "_", $dfname)."");
} else {
@header("Content-type: application/x-download");
@header("Content-disposition: attachment; filename=".str_replace(" ", "_", $dfname)."");
}
which is how I intend to handle this in the final 2.2.6 (space in file names will be translated into underscore characters).
Let me know how this works.
As far as the first problem goes, I can't think straight about this - I've just got off the train from a 5 hour journey and need to sleep...
AndrewD
11-08-2006, 07:54 PM
I'm SO close to making Google Video and You Tube videos play within LDM... I just need one last step!!!!
Andrew, I got the IF statement working inside the links_playbit template by adding some more code to the original WIMPY Player plugin that I changed for the FLV Player. Here is the code that I added to the plugin:
if(stristr($url, 'video.google.com/videoplay?docid=') == TRUE) {
$player = "google";
$google_patterns = array(
'http://video.google.com/videoplay\?docid=(.*?)&(.*?)',
'http://video.google.com/videoplay\?docid=(.*?)',
);
$google_rep = array(
'http://video.google.com/videoplay?docid=$1',
'http://video.google.com/videoplay?docid=$1',
);
$url = preg_replace($google_patterns, $google_rep, $url);
}
if(stristr($url, 'youtube.com/watch?v=') == TRUE) {
$player = "youtube";
$youtube_patterns = array(
'http://www.youtube.com/watch\?v=(.*?)&(.*?)',
'http://www.youtube.com/watch\?v=(.*?)',
'http://youtube.com/watch\?v=(.*?)&(.*?)',
'http://youtube.com/watch\?v=(.*?)',
);
$youtube_rep = array(
'http://www.youtube.com/watch?v=$1',
'http://www.youtube.com/watch?v=$1',
'http://www.youtube.com/watch?v=$1',
'http://www.youtube.com/watch?v=$1',
);
$url = preg_replace($youtube_patterns, $youtube_rep, $url);
}
Now, here is the code I added to the links_playbit:
<if condition="$player=='youtube'">
<object width="640" height="480" type="application/x-shockwave-flash" data="$url">
<param name="movie" value="$url" />
<param name="wmode" value="transparent" />
<em><strong>ERROR:</strong> If you can see this, then <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em>
</object>
</if>
<if condition="$player=='google'">
<object width="640" height="480" type="application/x-shockwave-flash" data="$url">
<param name="movie" value="$url" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="quality" value="best" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="salign" value="TL" />
<param name="FlashVars" value="playerMode=embedded" />
<em><strong>ERROR:</strong> If you can see this, then <a href="http://video.google.com/">Google Video</a> is down or you don't have Flash installed.</em>
</object>
</if>
There are 2 prolems I think...
When I add a new url entry to LDM like http://www.youtube.com/watch?v=X4ery9QRfpA, it goes OFF-site and opens a new window rather then opening in the same window with an embeded player, all because it's not a local file.
The jukebox settings require a file type. There is none for this, so I don't know what to do for that either.
Pretty please help me out, I'm SOOO close to embedding these (I think). Aren't you proud of me too, because I wrote my first plugin code?
For your second question, edit includes/local_links_include.php, and go to line 2451 (in 2.2.6 rc), which reads
if (($user_mac or $user_windows) and get_mimetype($urlType) and in_array($urlType, $musicboxtypes)) $is_musicbox = 1;
Try adding something like:
if(stristr($linkurlurl, 'video.google.com/videoplay?docid=')) $is_musicbox = 1;
FARMER
11-08-2006, 08:57 PM
I don't know which file I can browse it to play music (using jukebox) & I don't know where I can manager me media???
plz help me!
elsupremo
11-08-2006, 09:05 PM
Edit local_links.php and go down to line 2094...
...replace the lines by the following:
which is how I intend to handle this in the final 2.2.6 (space in file names will be translated into underscore characters).
Let me know how this works.
Andrew you fixed it. :) Save link as still doesn't work, but that's a smaller issue. Thanks!
AndrewD
11-09-2006, 06:29 AM
Sweet, that did the trick! Thanks. :D
Now, i have a feature request... hope Andrew won't kick me :laugh:
Well, there is a links_favbit, and links_editbit... you think it might be possible, in a future release, to include a links_downloadbit?
This would be a simple download link to be shown, the same as edit ot favorites... well, just that ^^
Thanks for everything!
You mean you'd like to show the green download arrow icon when the user is allowed to download the file? That's easy - I'll include this in the final 2.2.6.
If you mean something else, could you give me more details?
|oR|Greg
11-09-2006, 12:05 PM
For your second question, edit includes/local_links_include.php, and go to line 2451 (in 2.2.6 rc), which reads
if (($user_mac or $user_windows) and get_mimetype($urlType) and in_array($urlType, $musicboxtypes)) $is_musicbox = 1;
Try adding something like:
if(stristr($linkurlurl, 'video.google.com/videoplay?docid=')) $is_musicbox = 1;
I'll wait till the final 2.2.6... any idea on a date?
AndrewD
11-09-2006, 04:21 PM
I'll wait till the final 2.2.6... any idea on a date?
soon... someone's doing what I hope is the final testing on it at present.
AndrewD
11-09-2006, 04:35 PM
Andrew,
... It seems the 2.2.6 series of upgrades have created a problem with Firefox. For one thing, "Save Link As" does not work, and it instead tries to download an html page instead of the download.
This is not due to LDM. It is a well-discussed 'feature' of Firefox (see https://bugzilla.mozilla.org/show_bug.cgi?id=299372#c89). Basically, IE/Opera go to the server to find out some header information, whereas Firefox doesn't. The arguments for Firefox's behaviour are straightforward - they want to make downloads start up more quickly.
Maybe Firefox gurus have developed an addin, but I don't think this is something I can solve...
Alfa1
11-09-2006, 06:27 PM
never mind.
AndrewD
11-09-2006, 07:15 PM
Hi Andrew,
LDM (2.2.5) works fine, but when I use the "allow_duplicates"-option with "no", it seems to have no effect. The users get the option "New entry even if it exits". And some of them use it with "yes".
Is there any chance to prevent duplicates effectively? Or did I miss another option?
Thanx
Regards
For the time being, you can fix this by editing the links_addnewlink template. Find the sequence that reads:
<if condition="$links_defaults['allow_duplicates']">
<input type="radio" name="linkdups" value="1" checked="checked" /> $vbphrase[ll_yes]
<input type="radio" name="linkdups" value="-1" /> $vbphrase[ll_no]
<else />
<input type="radio" name="linkdups" value="1" /> $vbphrase[ll_yes]
<input type="radio" name="linkdups" value="-1" checked="checked" /> $vbphrase[ll_no]
</if>
and replace it by the following
<if condition="$links_defaults['allow_duplicates']">
<input type="radio" name="linkdups" value="1" checked="checked" /> $vbphrase[ll_yes]
<input type="radio" name="linkdups" value="-1" /> $vbphrase[ll_no]
<else />
<if condition="$links_permissions['can_set_permissions']">
<input type="radio" name="linkdups" value="1" /> $vbphrase[ll_yes]
<input type="radio" name="linkdups" value="-1" checked="checked" /> $vbphrase[ll_no]
<else />
<input type="hidden" name="linkdups" value="-1" /> $vbphrase[ll_no]
</if>
</if>
This will effectively stop anybody who does not have LDM's can_set_permissions priv from adding a duplicate entry when allow_duplicates is off.
The error message they get when they try is not great, and I will correct this in the next release.
obmob
11-09-2006, 08:53 PM
You mean you'd like to show the green download arrow icon when the user is allowed to download the file? That's easy - I'll include this in the final 2.2.6.
If you mean something else, could you give me more details?Yeah, exactly, to show the download icon and maybe the text... and of course to be able to click on it or the text and download the file. :D
Thank you!
Andrew, Loving this product but I can't seem to figure one problem out. My users can upload files, and in some cases, some of them are images. Documents are fine because they have no thumbnail associated with them. But some upload images and the thumbnails don't seem to be working.
I have my link_image size set to 150 and my thumbnail directory set to /bb/ldmthumbs (bb is my forum directory). And when I FTP to my server, sure enough the thumbnail directory is completely empty. So I started to just explore the admin area thinking maybe I missed something and found a link for reset thumbs. I clicked that, and the thumbnails showed up. I was relieved! Until I hit refresh, and the thumbnails were gone again. And of course they aren't in my thumbnail directory.
Edited to add: I just noticed when I right click on the missing image it is giving the correct URL of where the image should be pulling from, but I finally found the thumbnails on the server. It is making another folder "bb" under the folder "bb" that is already there. It's like the uploading of the thumbnails is not pulling from the same place is the downloading for viewing of the thumbnails. ANy idea where i can fix this at?
amnesia623
11-10-2006, 04:56 AM
Having a wimpy problem.
I had to reinstall wimpy and LDM and now I'm having a problem getting wimpy to play the mp3. I see the wimpy player, the file name shows (as a string of numbers - anyway to get the ID3 or name to show?) but the file doesn't stream.
It almost seems as if wimpy can't find the file, but I look in the source code of the pop-up that plays the jukebox and the file path seems to be correct.
I had this problem before when I set it up, but figured it out. I think it has something to do with file paths, but I can't remember.
any thoughts?
AndrewD
11-10-2006, 06:58 AM
Andrew, Loving this product but I can't seem to figure one problem out. My users can upload files, and in some cases, some of them are images. Documents are fine because they have no thumbnail associated with them. But some upload images and the thumbnails don't seem to be working.
I have my link_image size set to 150 and my thumbnail directory set to /bb/ldmthumbs (bb is my forum directory). And when I FTP to my server, sure enough the thumbnail directory is completely empty. So I started to just explore the admin area thinking maybe I missed something and found a link for reset thumbs. I clicked that, and the thumbnails showed up. I was relieved! Until I hit refresh, and the thumbnails were gone again. And of course they aren't in my thumbnail directory.
Edited to add: I just noticed when I right click on the missing image it is giving the correct URL of where the image should be pulling from, but I finally found the thumbnails on the server. It is making another folder "bb" under the folder "bb" that is already there. It's like the uploading of the thumbnails is not pulling from the same place is the downloading for viewing of the thumbnails. ANy idea where i can fix this at?
This is a caching problem - the first time LDM draws the thumbnail, it creates the image from the original file. If you have provided a thumbnail directory, then it tries to store a copy in that directory, which it should use in future to save time. (If you do not give a thumbnail directory, then it will recreate the thumb every time.) This is why you are seeing the image the first time round.
The question is why the software is looking in the wrong place for the pre-created thumbs. Sometimes this is happening because the main settings on your vb admincp are wrong, sometimes because of server settings. The easiest way for me to answer this is to take a look at your site. If you want me to do this, send me a PM with the url and a username/password that has vb admin privs. Glad to help.
AndrewD
11-10-2006, 07:08 AM
Having a wimpy problem.
I had to reinstall wimpy and LDM and now I'm having a problem getting wimpy to play the mp3. I see the wimpy player, the file name shows (as a string of numbers - anyway to get the ID3 or name to show?) but the file doesn't stream.
It almost seems as if wimpy can't find the file, but I look in the source code of the pop-up that plays the jukebox and the file path seems to be correct.
I had this problem before when I set it up, but figured it out. I think it has something to do with file paths, but I can't remember.
any thoughts?
Wimpy's a bit sensitive to the characters in the url it plays. Try editing the wimpy plugin to read as follows:
$sltype = strtolower($type);
if ($sltype=='mp3' or $sltype=='swf' or $sltype=='flv') {
// Either use this...
$wimpy_url = "local_stream.php?action=stream&id=".$linkid;
// Or just use this (will not work if you have set local_file_root/local_file_root_prefix) ...
// $wimpy_url = $url;
$wimpy_url = urlencode($wimpy_url);
$player = "Wimpy";
}
You can also try the attached plugin, which launches the wimpy button instead of the main player (you'll need to put the wimpy_button.swf into your getid3 directory)
Concerning the text in the wimpy window, I'm still looking into thtis. The main javascript toolkit that the wimpy people provide does not interpret the id3 info correctly.
amnesia623
11-10-2006, 01:19 PM
Thanks Andrew, I will try the suggestions above!
I am wondering if you could explain the local_file_root and local_file_root_prefix because I am not sure how this effects the way I specify the uploads directory root.
I have nothing set in the local_file_root_prefix and the local_file_root set to no. I have the uploads dir specified as media/demo/.
If I were to call the mp3 file from a browser I would put www.domain.com/forum/media/demo/1/filename.mp3 (the 1/filename is appended by LDM).
Thanks for your help, this add-on is going to be a key feature for my site and I appreciate your help!!!
amnesia623
11-10-2006, 01:31 PM
Another question -
Would there be a way to just append the user's name to the beginning of the file instead of completely renaming the file? For example if my mp3 file was named 'demo.mp3' I would upload it and the name would be changed to 'amnesia623_demo.mp3'?
I realize this isn't the best practice for the intended use of LDM, but I am using it to allow musicians/DJs to upload their demos and stream their work back thru the wimpy player
Thanks so much
AndrewD
11-10-2006, 01:49 PM
Thanks Andrew, I will try the suggestions above!
I am wondering if you could explain the local_file_root and local_file_root_prefix because I am not sure how this effects the way I specify the uploads directory root.
I have nothing set in the local_file_root_prefix and the local_file_root set to no. I have the uploads dir specified as media/demo/.
If I were to call the mp3 file from a browser I would put www.domain.com/forum/media/demo/1/filename.mp3 (the 1/filename is appended by LDM).
Thanks for your help, this add-on is going to be a key feature for my site and I appreciate your help!!!
Normally local_file_root and local_file_root_prefix are unset. They are available to increase security on your site.
Setting local_file_root tells LDM to locate local files (ie file held on the server) relative to the root directory of the server, rather than the default which is relative to the root directory of the web site. (e.g. your web site might actually be sitting somewhere like /users/your/website/dir)
Setting local_file_root_prefix places a fixed prefix in front of all local file names. This is *always* a good idea if local_file_root is set, and *may be* a good idea if it is not set. It ensures that people can't go walkabouts on your server.
If you set local_file_root and local_file_root_prefix, then these also modify where LDM looks for the specified uploads directory.
e.g., suppose you set upload_dir to /forum/media/demo/ and do not set local_file_root and local_file_root_prefix. Then the files will be found where you say, i.e. www.domain.com/forum/media/demo/1/filename.mp3
If you leave local_file_root unset and set local_file_root_prefix to /forum, then the same setting of upload_dir would mean that files could be found at www.domain.com/forum/forum/media/demo/1/filename.mp3
If you set both, then it would place the files outside your web tree, and no diurect url could find them.
However, the url www.domain.com/forum/local_stream?action=stream&id=NNN would find the file correctly.
Clear?
amnesia623
11-10-2006, 02:15 PM
I understand. So it *could* be used to upload/store dirs that are away from forum dirs, etc.
somehow, it works!
So is there anyway to control the trackname that is displayed in the wimpy player (yet?)
Thanks
AndrewD
11-10-2006, 02:19 PM
I understand. So it *could* be used to upload/store dirs that are away from forum dirs, etc.
Just so
amnesia623
11-10-2006, 02:21 PM
seems I edited my last post when you were replying.
can files be stored and called that are outside of the web root?
maroceve
11-10-2006, 02:23 PM
What about integrating the newly uploaded file into a podcast xml file directly ? that'd be nice.
amnesia623
11-10-2006, 02:24 PM
....and how can I protect my files that are uploaded so they can't be downloaded thru a direct request from the browser? I take it I have to mess with the directory permissions?
AndrewD
11-10-2006, 02:30 PM
somehow, it works!
So is there anyway to control the trackname that is displayed in the wimpy player (yet?)
Thanks
Am working on that, this weekend...
amnesia623
11-10-2006, 02:33 PM
Thank you so much for this add-on andrew, I really appreciate your hard work and efforts on this.
AndrewD
11-10-2006, 02:40 PM
....and how can I protect my files that are uploaded so they can't be downloaded thru a direct request from the browser? I take it I have to mess with the directory permissions?
That's part of the point of the local_file_root setting. Once the files are held outside the web tree, a direct browser request cannot get at them. You have to use the various LDM scripts, either local_links?action=jump&id=NN to download item id NN and local_stream.php?action=stream&linkid=NN to stream it.
amnesia623
11-10-2006, 02:49 PM
That's what I would like to do. I will go over to your online manual and see what it tells me to do! thanks again!
amnesia623
11-10-2006, 03:09 PM
Please excuse my 1000's of questions, but I'm just trying to understand how to do this.
I want to store and stream files from this directory on my server:
home/user/uploadDir
my forums sit here:
home/user/public_html/forum/
In order to get LDM to open home/user/uploadDir (where files are stored) I have to turn on local_file_root and set local_file_root_prefix to home/user/uploadDir and then put this in the LDM wimpy plugin:
$sltype = strtolower($type);
if ($sltype=='mp3' or $sltype=='swf' or $sltype=='flv') {
$wimpy_url = "local_stream.php?action=stream&id=".$linkid;
$wimpy_url = urlencode($wimpy_url);
$player = "Wimpy";}
Is this correct? Or instead of using the local_file_root_prefix would I have to use the openbase_dir ?
Thanks again
AndrewD
11-10-2006, 04:15 PM
Please excuse my 1000's of questions, but I'm just trying to understand how to do this.
I want to store and stream files from this directory on my server:
home/user/uploadDir
my forums sit here:
home/user/public_html/forum/
In order to get LDM to open home/user/uploadDir (where files are stored) I have to turn on local_file_root and set local_file_root_prefix to home/user/uploadDir and then put this in the LDM wimpy plugin:
$sltype = strtolower($type);
if ($sltype=='mp3' or $sltype=='swf' or $sltype=='flv') {
$wimpy_url = "local_stream.php?action=stream&id=".$linkid;
$wimpy_url = urlencode($wimpy_url);
$player = "Wimpy";}
Is this correct? Or instead of using the local_file_root_prefix would I have to use the openbase_dir ?
Thanks again
Almost correct, just one catch. You will need to set upload_dir as well as local_file_root_prefix, so you may find yourself with another subdirectory in there somewhere:
e.g. local_file_root_prefix - /home/user/files
upload_dir - /upload_dir
will put the uploads into subdirectories of /home/user/files/upload_dir
amnesia623
11-10-2006, 04:20 PM
ok, I will try this!
Thank you again!
amnesia623
11-10-2006, 09:45 PM
Hi Andrew -
Ok, I have successfully gotten LDM to upload to a dir outside of the web root.
Now I can't get wimpy to stream. Here is my plugin code:
$player = "Wimpy";
$wimpy_url = "local_stream.php?action=stream&id=".$linkid;
$wimpy_url = urlencode($wimpy_url);
It loads the player, and I see the title, but it doesn't stream.
What am I doing wrong? Is there a setting in the local_stream file I need to set?
Thanks
berayiwu5
11-11-2006, 02:37 AM
I am still new to Links and Downloads. I read the manual quite closely, but I still can't seem to make it work with vBulletin. I think I've taken the necessary steps. I have enabled can_access_links, etc. and set the necessarily daily downloads and bandwidth allowances. For testing purpose, I uploaded a couple of files as attachments and set the daily downloads to 2 for administrators. But for some reason, I can still download these attachments many times. And when I click on "view hits," there is no information about anyone having downloaded the attachments. What am I missing? For your reference, I am including the following info. on the LDM admin panel:
---------------------------------
Links and Downloads Manager
Code 2.2.1
MySQL 4.1.21-log
PHP 4.4.4
local_file_root 0
local_file_root_prefix
allow_url_fopen Yes
cURL Yes
GD2 Yes
open_basedir Unset
post_max_size 25M
upload_max_filesize 25M
upload_max_filesize>=post_max_size
------------------------------------
BTW, I don't quite understand how the category function works. All I need for now is to limit the viewing/downloading of attachments I upload along with the posts I create.
Thanks for your help for this newbie.:confused:
AndrewD
11-11-2006, 03:30 AM
I am still new to Links and Downloads. I read the manual quite closely, but I still can't seem to make it work with vBulletin. I think I've taken the necessary steps. I have enabled can_access_links, etc. and set the necessarily daily downloads and bandwidth allowances. For testing purpose, I uploaded a couple of files as attachments and set the daily downloads to 2 for administrators. But for some reason, I can still download these attachments many times. And when I click on "view hits," there is no information about anyone having downloaded the attachments. What am I missing? BTW, I don't quite understand how the category function works. All I need for now is to limit the viewing/downloading of attachments I upload along with the posts I create.
Thanks for your help for this newbie.:confused:
I'm a bit confused myself ;) Maybe I'm misunderstanding you.
LDM does not interact in any way with the attachments system in VB posts. It provides a completely separate link (url) and document management system. So you can't use it directly to limit access to the attachments included within the vbulletin posts.
In effect, LDM allows you to create a structure of categories (in effect virtual filing cabinets) in which you place documents or pointers to documents. It then manages and controls access to these documents. But the documents are not 'vbulletin attachments'.
AndrewD
11-11-2006, 03:31 AM
Hi Andrew -
Ok, I have successfully gotten LDM to upload to a dir outside of the web root.
Now I can't get wimpy to stream. Here is my plugin code:
$player = "Wimpy";
$wimpy_url = "local_stream.php?action=stream&id=".$linkid;
$wimpy_url = urlencode($wimpy_url);
It loads the player, and I see the title, but it doesn't stream.
What am I doing wrong? Is there a setting in the local_stream file I need to set?
Thanks
That should be working - I use essentially the same approach myself for my music collection. Maybe I should take a look at your site? Send me a PM if you want with admin username and pwd.
berayiwu5
11-11-2006, 03:37 AM
I'm a bit confused myself ;) Maybe I'm misunderstanding you.
LDM does not interact in any way with the attachments system in VB posts. It provides a completely separate link (url) and document management system. So you can't use it directly to limit access to the attachments included within the vbulletin posts.
In effect, LDM allows you to create a structure of categories (in effect virtual filing cabinets) in which you place documents or pointers to documents. It then manages and controls access to these documents. But the documents are not 'vbulletin attachments'.
I've got to laugh at myself!:D
I assume what I need to do next is to create categories and go on from there.
AndrewD
11-11-2006, 03:53 AM
What about integrating the newly uploaded file into a podcast xml file directly ? that'd be nice.
I think it will be easy to provide a plugin to do this.
amnesia623
11-11-2006, 03:55 AM
Hello AndrewD - PM sent.
I think wimpy isn't getting the correct file path. I can download the file, but not stream it thru wimpy.
I really appreciate your help with this
Alfa1
11-11-2006, 03:51 PM
Does LDM run on PHP 5.1.2 or higher?
AndrewD
11-11-2006, 04:11 PM
Does LDM run on PHP 5.1.2 or higher?
naturally... I'm running 5.1.6 and 4.4.4
Just wanted to give a shout to Andrew! Logged into my forum and fixed the problem with my board and my images are now showing up. Andrew you are the bomb!
Alfa1
11-11-2006, 10:03 PM
Andrew, about the vbadvanced plugin blocks:
If I want to add multiple blocks, can I just rename the plugin to whatever I like and use it several times under different names?
What are ldm_cat.php and ldm_tot.php?
If I want to display newest files in a certain category, what do I add/change in ldm_new.php?
And something different: I have been tooling around for a while to get the thunbs displayed, but can't seem to succeed. The dir where the thumbs should be stored is empty. I can not find another place where they are. Seems like the function is off. create_thumbs_oninsert is on. Strangely enough the database lists 3 thumbs, which I can not find. I hit reset to see if that helps. Now I've got 0. Where can I mass generate thumbs?
amnesia623
11-12-2006, 02:43 AM
Same here.
Great support from AndrewD and much appreciated.
Thanks Again
AndrewD
11-12-2006, 05:20 AM
Andrew, about the vbadvanced plugin blocks:
If I want to add multiple blocks, can I just rename the plugin to whatever I like and use it several times under different names?
I'm no expert on vbadvanced, but it seems you can copy/rename the modules in order to use them multiple times. (Actually, you can use a module multiple times without renaming it, but then it becomes difficult to get it to say different things on different parts of the page ;).) The thing to check is the number of database hits you create in the vba page - every module carries a load, although the LDM modules should do most of the initialisation work only one time regardless of how many LDM modules you load up.
What are ldm_cat.php and ldm_tot.php?
ldm_cats.php creates a block which looks like the categories section of the LDM home page, i.e. a list of the top level categories with direct links to them.
See attached image for an example of how these look.
If I want to display newest files in a certain category, what do I add/change in ldm_new.php?
Find the line which reads $filter= and change it as follows:
$filter = array("link.linkmoderate = 0", "ltoc.catid IN (1,3,5)");
And something different: I have been tooling around for a while to get the thunbs displayed, but can't seem to succeed. The dir where the thumbs should be stored is empty. I can not find another place where they are. Seems like the function is off. create_thumbs_oninsert is on. Strangely enough the database lists 3 thumbs, which I can not find. I hit reset to see if that helps. Now I've got 0. Where can I mass generate thumbs?
A number of people have been having difficulties with this for some time. Every time I find a way to patch the last problem, a new one appears.
Easiest is for me to take a look - I've forgotten my username on your site, and I'll need full admin perms back again.
Last question: thumbs are generated 'on the fly' if they don't exist, i.e. after you click the 'reset thumbs' link. There used to be a mass recreate function, but I realised it was unnecessary.
Alfa1
11-12-2006, 01:45 PM
Thanks for that info. I have created a latest music block. How do I limit the number of files displayed?
Your username is same as here and has full admin perms again.
berayiwu5
11-12-2006, 08:49 PM
Thanks, AndrewD. Your support has been nothing but phenomenal.
In the "LDM Usage and Quotas" section of the wiki manual (http://www.eirma.org/wikis/index.php/LDM_Usage_and_Quotas), there is a passage that says:
"Limits can be placed on the number of files a user can access and/or the bytes that she can download in a 24 hour period, or both. If both types of limit apply, the first limit to be hit triggers the block. These limits apply individually to registered users, and collectively for unregistered users. Different limits can apply to each usergroup."
What does applying "collectively for unregistered users" mean? Does it mean that if I assign 200MB daily bandwidth allowance to unregistered users, I can have either 20 users using 10MB per day or 40 users using 5MB per day? If a couple of unregistered users have used up 150MB on a given day, does it mean that there wouldn't be much bandwidth left for other unregistered users to use?
Besides, I don't understand how file limits can be meaningfully set collectively for the group of unregistered users, since there is no telling how many unregistered users will visit a site on any given day.
Thanks for your pointers.
AndrewD
11-13-2006, 03:53 AM
Thanks, AndrewD. Your support has been nothing but phenomenal.
In the "LDM Usage and Quotas" section of the wiki manual (http://www.eirma.org/wikis/index.php/LDM_Usage_and_Quotas), there is a passage that says:
"Limits can be placed on the number of files a user can access and/or the bytes that she can download in a 24 hour period, or both. If both types of limit apply, the first limit to be hit triggers the block. These limits apply individually to registered users, and collectively for unregistered users. Different limits can apply to each usergroup."
What does applying "collectively for unregistered users" mean? Does it mean that if I assign 200MB daily bandwidth allowance to unregistered users, I can have either 20 users using 10MB per day or 40 users using 5MB per day? If a couple of unregistered users have used up 150MB on a given day, does it mean that there wouldn't be much bandwidth left for other unregistered users to use?
Besides, I don't understand how file limits can be meaningfully set collectively for the group of unregistered users, since there is no telling how many unregistered users will visit a site on any given day.
Thanks for your pointers.
The manual is out of date on this point, thanks for highlighting that. For unregistered users, the test is now made using their IP address. If you turn on bandwidth limits and set a limit for unregistered users, each IP address will be allowed the speofied number of files/bytes per day. It's not perfect, but it seems better than giving the whole world a limit that one person could use up.
AndrewD
11-13-2006, 03:55 AM
Thanks for that info. I have created a latest music block. How do I limit the number of files displayed?
All the LDM vba modules use the same parameter, links_seen_on_portal, to limit the number of files displayed. You set it on the LDM admin settings page.
See PM concerning thumbs.
Ophelia
11-13-2006, 12:53 PM
Andrew,
We started to get the following database error last night. I removed IP and username info.
> Database error in vBulletin 3.6.2:
>
> Invalid SQL:
>
> INSERT INTO local_linksdownloads
> SET
> linkid=0,
> linkurl='Accepts site terms',
> bytes=0,
> userid='7173',
> username='removed',
> usertime='1163380954',
> userip='00.00.000.00';
>
> 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
> 'sgirl',
> usertime='1163380954',
> userip='00.00.000.00'' at line 7
> Error Number : 1064
> Date : Sunday, November 12th 2006 @ 08:22:34 PM
> Script : http://www.mysite.net/forum/local_links.php
> Referrer : http://www.mysite.net/forum/local_links.php
> IP Address : removed
> Username : removed
> Classname : vb_database
Any thoughts?
AndrewD
11-13-2006, 01:09 PM
Andrew,
We started to get the following database error last night. I removed IP and username info.
> Database error in vBulletin 3.6.2:
>
> Invalid SQL:
>
> INSERT INTO local_linksdownloads
> SET
> linkid=0,
> linkurl='Accepts site terms',
> bytes=0,
> userid='7173',
> username='removed',
> usertime='1163380954',
> userip='00.00.000.00';
>
> 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
> 'sgirl',
> usertime='1163380954',
> userip='00.00.000.00'' at line 7
> Error Number : 1064
> Date : Sunday, November 12th 2006 @ 08:22:34 PM
> Script : http://www.mysite.net/forum/local_links.php
> Referrer : http://www.mysite.net/forum/local_links.php
> IP Address : removed
> Username : removed
> Classname : vb_database
Any thoughts?
This is triggered by a username that has an apostrophe in it. Sorry about that. I'll post a fix this evening.
AndrewD
11-13-2006, 04:37 PM
I believe I'm finally there with LDM 2.2.6
Grateful for a couple of quick tests before we move this to become the new official release.
Please remember to backup your database before upgrading.
Changes since 2.2.6 rc
+ New vbAdvanced module to list most recent new categories
+ New Wimpy plugins added - integrate with wimpy player and wimpy button
+ Spanish translation updated (thanks ObMob)
+ Down arrow icon available for downloadable files
+ Bugs fixes
- timeout_hit_allow no longer checks on hits on same entry, thus fixing problem with download managers that attempt to open multiple channels to the file
- admin/view downloads/delete entries works again
- force_accept modified to record acceptance in the database instead of in a cookie in order to handle clients with forceful firewalls and virus software
- moderation code modified to work correctly with chenges in VB36
- 'view ratings' drop down menu hidden when rating/commenting on entry
- 'view ratings' drop down menu visible in tabular linkbit
- subcategories are not shown when user requests display of single entry
- various improvements in curl handling; curl access works to https: urls and to urls with redirections in place
- entries shown per page is rounded up when link_cols_display>1, to fill the page grid as far as possible
- improved category synchronisation code
- Windows IIS/CGI integration no longer dies if DOCUMENT_ROOT is protected
- VB 3.6.3 image security check incorporated
Attachment removed - 2.2.6. is now the official release.
kompakt
11-13-2006, 05:11 PM
Thanks a lot AndrewD. Installing now and will let you know of anything I come across...
Slave
11-13-2006, 08:12 PM
Ta AndrewD :) .. Installing now, I'll let you know if I find anything.
Slave
11-14-2006, 08:00 AM
hmm .. something funny is going on :)
Everything seems to have become centerised ..
AndrewD, take a look at www.yaxleyvillage.com/local_links.php to see what I mean ..
The category discriptions, as well as the sub forums .. the discriptions of links within the Tabular linkbit too .. not to mention whats going on with the short linkbit is no longer in rows but all bunched up (look in my local contacts cat) ..
Is it a new setting? or has something gone wrong?
AndrewD
11-14-2006, 08:25 AM
hmm .. something funny is going on :)
Everything seems to have become centerised ..
AndrewD, take a look at www.yaxleyvillage.com/local_links.php to see what I mean ..
The category discriptions, as well as the sub forums .. the discriptions of links within the Tabular linkbit too .. not to mention whats going on with the short linkbit is no longer in rows but all bunched up (look in my local contacts cat) ..
Is it a new setting? or has something gone wrong?
You're right about the centering, but it seems only with IE. Mozilla Firefox is behaving correctly. I'll take a look - probably I've missed out a 'center' tag somewhere.
The short linkbit is defaulting to the default 'max cols' for the linkbit, as you haven't set a link_cols_display value. That's what happens when I try to fix someone else's bug report... Again, I'll take a look and try to post a fix this evening.
Slave
11-14-2006, 08:30 AM
You're right about the centering, but it seems only with IE. Mozilla Firefox is behaving correctly. I'll take a look - probably I've missed out a 'center' tag somewhere.
The short linkbit is defaulting to the default 'max cols' for the linkbit, as you haven't set a link_cols_display value. That's what happens when I try to fix someone else's bug report... Again, I'll take a look and try to post a fix this evening.
Cool AndrewD, thanks :)
heh, just looked using my iBook and the centering looks fine using Safari too .. bloody IE ;)
You're right in that I've not got anything in the link_cols_display setting. After having a look I did change this to 1 as a test but it didn't go back to how it used to be, but instead just showed the link in a block like it does without the setting, but only one per row instead of the default 6 ..
Sorry for the extra work ..
AndrewD
11-14-2006, 04:22 PM
Cool AndrewD, thanks :)
heh, just looked using my iBook and the centering looks fine using Safari too .. bloody IE ;)
You're right in that I've not got anything in the link_cols_display setting. After having a look I did change this to 1 as a test but it didn't go back to how it used to be, but instead just showed the link in a block like it does without the setting, but only one per row instead of the default 6 ..
Sorry for the extra work ..
Edited, superseded...
|oR|Greg
11-14-2006, 05:50 PM
I believe I'm finally there with LDM 2.2.6
Grateful for a couple of quick tests before we move this to become the new official release.
Please remember to backup your database before upgrading.
Changes since 2.2.6 rc
+ New vbAdvanced module to list most recent new categories
+ New Wimpy plugins added - integrate with wimpy player and wimpy button
+ Spanish translation updated (thanks ObMob)
+ Down arrow icon available for downloadable files
+ Bugs fixes
- timeout_hit_allow no longer checks on hits on same entry, thus fixing problem with download managers that attempt to open multiple channels to the file
- admin/view downloads/delete entries works again
- force_accept modified to record acceptance in the database instead of in a cookie in order to handle clients with forceful firewalls and virus software
- moderation code modified to work correctly with chenges in VB36
- 'view ratings' drop down menu hidden when rating/commenting on entry
- 'view ratings' drop down menu visible in tabular linkbit
- subcategories are not shown when user requests display of single entry
- various improvements in curl handling; curl access works to https: urls and to urls with redirections in place
- entries shown per page is rounded up when link_cols_display>1, to fill the page grid as far as possible
- improved category synchronisation code
- Windows IIS/CGI integration no longer dies if DOCUMENT_ROOT is protected
- VB 3.6.3 image security check incorporated
I'll try this tonight and let you know.
Slave
11-14-2006, 06:16 PM
Could you try these - just upload the includes/local_links_include.php and reinstall the product.xml
Ta muchly
Thanks AndrewD .. I've tried those files out and while it does look as if the display of categories and subcats are back to normal, the linkbits are still wrong.
The Tabular linkbit is still centering things (in IE only it seems) instead of aligning things to the left.
The Short linkbit is defaulting to 1 entry per row (with no setting in admin) but the details of the entry has a breakline in the middle and isn't filling in the whole row like it did before ..
http://www.yaxleyvillage.com/local_links.php?catid=62
See above to see what I mean re the short linkbit.
Hope that helps ..
berayiwu5
11-14-2006, 09:31 PM
Thanks, AndrewD. Your support has been nothing but phenomenal.
In the "LDM Usage and Quotas" section of the wiki manual (http://www.eirma.org/wikis/index.php/LDM_Usage_and_Quotas), there is a passage that says:
"Limits can be placed on the number of files a user can access and/or the bytes that she can download in a 24 hour period, or both. If both types of limit apply, the first limit to be hit triggers the block. These limits apply individually to registered users, and collectively for unregistered users. Different limits can apply to each usergroup."
What does applying "collectively for unregistered users" mean? Does it mean that if I assign 200MB daily bandwidth allowance to unregistered users, I can have either 20 users using 10MB per day or 40 users using 5MB per day? If a couple of unregistered users have used up 150MB on a given day, does it mean that there wouldn't be much bandwidth left for other unregistered users to use?
Besides, I don't understand how file limits can be meaningfully set collectively for the group of unregistered users, since there is no telling how many unregistered users will visit a site on any given day.
Thanks for your pointers.
The manual is out of date on this point, thanks for highlighting that. For unregistered users, the test is now made using their IP address. If you turn on bandwidth limits and set a limit for unregistered users, each IP address will be allowed the speofied number of files/bytes per day. It's not perfect, but it seems better than giving the whole world a limit that one person could use up.
Actually, AndrewD, the idea of giving unregistered users collectively an X amount of bandwidth usage everyday makes perfect sense to me. I was only asking a clarificatory kind of question. I didn't mean to say that I didn't like this feature. In the newer versions, i.e., for vBulletin 3.6, have you really changed this bandwidth quota to apply to unregistered users individually? If you have, then we could have server bandwidth maxed out quickly should a larger number of unregistered users visit our site:
Suppose we have purchased 50 GB monthly bandwidth, and we only expect about 50 unregistered users using about 20 MB per day. That would come down to 1 GB per day and 30GB per month. That's still within the limit of the quota. But if all of a sudden, we have 200 of these visitors, then the bandwidth usage will shoot up to 4GB per day, and we will use up our monthly bandwidth in two weeks.
I think you should keep collective bandwidth usage for unregistered users intact because of this kind of unpredictability. For registered users, bandwidth usage is more predictable. I would greatly appreciate it if you could reinstate this feature. But for file opening, I agree with you that it should be applied individually to each IP, registered or unregistered. Thank you. Please reconsider.
AndrewD
11-15-2006, 03:34 AM
Actually, AndrewD, the idea of giving unregistered users collectively an X amount of bandwidth usage everyday makes perfect sense to me.
I think you should keep collective bandwidth usage for unregistered users intact because of this kind of unpredictability. For registered users, bandwidth usage is more predictable. I would greatly appreciate it if you could reinstate this feature. But for file opening, I agree with you that it should be applied individually to each IP, registered or unregistered. Thank you. Please reconsider.
I changed this after a strong request from others. It will be easy to enable both approaches, perhaps by a new switch or a plugin. Hang in there.
AndrewD
11-15-2006, 04:18 AM
Thanks AndrewD .. I've tried those files out and while it does look as if the display of categories and subcats are back to normal, the linkbits are still wrong.
The Tabular linkbit is still centering things (in IE only it seems) instead of aligning things to the left.
The Short linkbit is defaulting to 1 entry per row (with no setting in admin) but the details of the entry has a breakline in the middle and isn't filling in the whole row like it did before ..
http://www.yaxleyvillage.com/local_links.php?catid=62
See above to see what I mean re the short linkbit.
Hope that helps ..
Yes, same issue with the table linkbit (and also the featured bit), now fixed. I'd deliberately changed the short linkbit to make it look nicer for my own purposes, so I've reinstated the old 'short' bit and added a new 'shortcent' bit. Try these files (local_links.php; includes/local_links_include.php; and product.xml)
edited - Superseded.
Slave
11-15-2006, 04:52 AM
That seems to have done the trick AndrewD .. thanks :)
BTW .. is it right that the report bad link image only shows when commenting on a link?
AndrewD
11-15-2006, 05:02 AM
That seems to have done the trick AndrewD .. thanks :)
BTW .. is it right that the report bad link image only shows when commenting on a link?
You should only see the report bad link image if it's someone else's entry. If it's visible for your own entries in the comment page, that's a bug.
Slave
11-15-2006, 06:09 AM
You should only see the report bad link image if it's someone else's entry. If it's visible for your own entries in the comment page, that's a bug.
Most of my entries are entered using my admin account, it was when I was using my test account that I saw the report link image showing up, but only within the comments page.
Thinking about it, the comments page uses the Modern linkbit while I'm using the Tabular linkbit for most of my entries. So I'm guessing the report bad link image isn't working/showing on the Tabular linkbit .. :)
Slave
11-15-2006, 08:26 AM
A little suggestion ..
Remember I asked for hits to contacts (non linked items) to be logged? This is working just fine at the moment, but when you look at the stats for hits within the admin area you get told there's been a hit, but not what the hit was for. It seems this is because it shows you the URL that has been clicked and as a contact doesn't have a URL nothing shows up. So perhaps change the stats page to show the name of the link as well as making the name click-able with the URL if there is one?
AndrewD
11-15-2006, 08:39 AM
A little suggestion ..
Remember I asked for hits to contacts (non linked items) to be logged? This is working just fine at the moment, but when you look at the stats for hits within the admin area you get told there's been a hit, but not what the hit was for. It seems this is because it shows you the URL that has been clicked and as a contact doesn't have a URL nothing shows up. So perhaps change the stats page to show the name of the link as well as making the name click-able with the URL if there is one?
I realise that I could have a full time job writing software :rolleyes: - wonder if I should quit the day job - will take a look at this, thanks.
berayiwu5
11-15-2006, 02:54 PM
I changed this after a strong request from others. It will be easy to enable both approaches, perhaps by a new switch or a plugin. Hang in there.
Thank you. I am looking forward to that.
berayiwu5
11-15-2006, 02:57 PM
I realise that I could have a full time job writing software :rolleyes: - wonder if I should quit the day job - will take a look at this, thanks.
Andrew, you've done a terrific job with LDM. Not that you can survive on donations alone, but that I really want to donate a modest amount as a token of appreciation for the hard work you've put in. If you could set up a donation link, I'm sure other fans here would be willing to pitch in something.:)
|oR|Greg
11-15-2006, 04:35 PM
I've donated before, it allows you into the "inner-sanctum" where thought powers LDM, not programming... it's neat. If I have time tonight to install it I will. And then I will ask 12 annoying questions about stupid little things that I should have done on my own, and then you will answer 6 of them, and I will figure the other 6 out all the while cursing you for not doing it all for me...
:)
AndrewD
11-15-2006, 04:52 PM
I've uploaded what I hope is really the official 2.2.6 release of LDM in the first post.
This fixes the most recent problems (centering of text, missing 'report link' button in tabular linkbit, empty descriptions in downloads table for 'contact' links), and there's a new plugin available in the 'extras/limit-useraccess'directory to patch the control of bandwidth/download limits on unregistered users.
Please backup your database before upgrading, and let us know how it goes. As always, thanks to everyone who has helped test, suggest, translate, etc.
directprint
11-16-2006, 07:11 AM
Big fan of this mod, well I have just decided to build new forum from scratch and install 3.6.3 and this Links & Downloads Manager.
Have a problem that GD2 say's NO, and thumbnail images don't display.
Anyone got some idea's to fix this problem...
Slave
11-16-2006, 07:52 AM
Official 2.2.6 installed .. everything looking good at the moment :)
jluerken
11-16-2006, 08:51 AM
Is the version 2.2.6 that I can download here now an official or still a beta release?
Slave
11-16-2006, 09:24 AM
Is the version 2.2.6 that I can download here now an official or still a beta release?
Official :)
kompakt
11-16-2006, 12:41 PM
Andrew, I have not noticed a lot of difference in the directory sync. It still misses files here and there and catches them the next time along. Never the less, it works great.
I noticed that a new entry only triggers the category that contains the entry with the (new) flag. Is it possible to trigger all the home categories of that entry? Also, how would I go about customizing the "new categories" cmps module that you created? You used standard categorybits and changing that would change the normal category listings in cmps as well since they're based off the same variable.
I will install the latest 2.2.6 and work from there. Thank You...
Ophelia
11-16-2006, 07:36 PM
Big fan of this mod, well I have just decided to build new forum from scratch and install 3.6.3 and this Links & Downloads Manager.
Have a problem that GD2 say's NO, and thumbnail images don't display.
Anyone got some idea's to fix this problem...
If you haven't checked already, make sure your thumbs directory is chmoded to 777. We have issues every now and then with it not working, and this is why.
AndrewD
11-17-2006, 12:05 PM
Big fan of this mod, well I have just decided to build new forum from scratch and install 3.6.3 and this Links & Downloads Manager.
Have a problem that GD2 say's NO, and thumbnail images don't display.
Anyone got some idea's to fix this problem...
Either you need to get your web site php implementation to include the gd2 module (speak to your service provider) or you need to get me to implement the alternative graphics package which VB can use instead of GD2.
Question - does your vb installation display thumbnails correctly within other parts of your board - if so you've got another graphics option available. But it's worth speaking first to your hosting company.
AndrewD
11-17-2006, 12:07 PM
Andrew, I have not noticed a lot of difference in the directory sync. It still misses files here and there and catches them the next time along. Never the less, it works great.
I noticed that a new entry only triggers the category that contains the entry with the (new) flag. Is it possible to trigger all the home categories of that entry? Also, how would I go about customizing the "new categories" cmps module that you created? You used standard categorybits and changing that would change the normal category listings in cmps as well since they're based off the same variable.
I will install the latest 2.2.6 and work from there. Thank You...
The sync function is coded to use only a limited amount of cpu time each pass, so usually cannot complete the job in one round. It keeps on trying each time someone visits the forum, or the admin clicks the 'manual synchronise'. Both the automatic and manual syncs have time limits, set on the LDM admin page.
I'll look at your other questions this weekend.
kompakt
11-17-2006, 07:49 PM
The sync function is coded to use only a limited amount of cpu time each pass, so usually cannot complete the job in one round. It keeps on trying each time someone visits the forum, or the admin clicks the 'manual synchronise'. Both the automatic and manual syncs have time limits, set on the LDM admin page.
I'll look at your other questions this weekend.
I was just curious of the improvements you mentioned. I am aware of a settings and I did notice that it tries to do further scanning as people visit certain categories. Kinda like smoothing the bubbles from a piece of plastic. A few at a time Pretty cool :cool:
Thanks again...
directprint
11-17-2006, 09:34 PM
Either you need to get your web site php implementation to include the gd2 module (speak to your service provider) or you need to get me to implement the alternative graphics package which VB can use instead of GD2.
Question - does your vb installation display thumbnails correctly within other parts of your board - if so you've got another graphics option available. But it's worth speaking first to your hosting company.
I host my own website on a mac os server, I have only installed the basics at this stage so there is no way of finding out if thumbnails work on the site.
I will send you a pm with admin access and the site.
AndrewD
11-19-2006, 05:51 AM
I noticed that a new entry only triggers the category that contains the entry with the (new) flag. Is it possible to trigger all the home categories of that entry?
I'll make a note of this for the next update. For efficiency, it really needs a slight change to the category data structure (currently categories already 'know' their parents but not their children). I imaginethis should be controlled by a setting (flag new entries up the tree/flag new entries in parent only).
Also, how would I go about customizing the "new categories" cmps module that you created? You used standard categorybits and changing that would change the normal category listings in cmps as well since they're based off the same variable.
You're right - I changed the code quite some time ago to carry the template as a parameter in the code that builds the linkbits, but never got round to doing the same thing for catbits. Easiest will be to make this change in the next release. Otherwise, you will have to copy the get_catsubbit and get_catlistbit code over into a module/plugin, and modify the choice of templates.
No guarantees of when 2.2.7 will appear - there are some other things that I need to do first.
Kinda like smoothing the bubbles from a piece of plastic. A few at a time Pretty cool :cool:
I like the analogy, thanks
PitchouneN64ngc
11-19-2006, 08:54 AM
In the phrase "ll_perms_thumbs_dir", I can see this:(the settings of local_file_root and local_file_root are ignored)I think it's this:(the settings of local_file_root and local_file_root_prefix are ignored)Anyway, French language uploaded (you can add this in your product) :)
AndrewD
11-19-2006, 09:38 AM
In the phrase "ll_perms_thumbs_dir", I can see this:(the settings of local_file_root and local_file_root are ignored)I think it's this:(the settings of local_file_root and local_file_root_prefix are ignored)Anyway, French language uploaded (you can add this in your product) :)
Thanks - and thanks :)
Alfa1
11-19-2006, 11:35 AM
I've read something earlier in this thread (https://vborg.vbsupport.ru/showpost.php?p=1113231&postcount=603) about a youtube /googlevideo integration. I'd love to have this feature. Any word on that? Will there be a plug in or can this become a standard function?
AndrewD
11-19-2006, 12:01 PM
I've read something earlier in this thread (https://vborg.vbsupport.ru/showpost.php?p=1113231&postcount=603) about a youtube /googlevideo integration. I'd love to have this feature. Any word on that? Will there be a plug in or can this become a standard function?
?or?Greg said that he was working on it - let's see what he reports
|oR|Greg
11-19-2006, 04:35 PM
I'll be upgrading in a little while, finally have the time, then I'll hack my stuff and if it works, I'll post up.
Alfa1
11-19-2006, 04:38 PM
Is there a solution for getting moderate links in the quick moderation?
Besides that the links to be moderated would show up in the ModCP, this would also allow my mods to see it on their moderator VBAdvanced page. (Within the quick moderation block)
AndrewD
11-19-2006, 05:05 PM
Is there a solution for getting moderate links in the quick moderation?
Besides that the links to be moderated would show up in the ModCP, this would also allow my mods to see it on their moderator VBAdvanced page. (Within the quick moderation block)
I made quite some changes to moderation during the summer break, to make this whole proecss easier, but didn't release the changes with 2.2.6. I'll take another look.
|oR|Greg
11-19-2006, 07:13 PM
Ok, I moved where I placed the lines, and it's working, kinda... it's not going offsite anymore, but it's not using my settings, it's trying to play thru quicktime for some reason??? And this is at the top of the page.
Parse error: syntax error, unexpected $end in /home/amacnyco/public_html/vb/local_links.php(1827) : eval()'d code on line 24
AndrewD
11-20-2006, 04:13 AM
Ok, I moved where I placed the lines, and it's working, kinda... it's not going offsite anymore, but it's not using my settings, it's trying to play thru quicktime for some reason??? And this is at the top of the page.
Parse error: syntax error, unexpected $end in /home/amacnyco/public_html/vb/local_links.php(1827) : eval()'d code on line 24
The syntax error is in a plugin - you've built a modiied version of the wimpy plugin, I think - there must be a coding bug in there somewhere, something like an missing closing bracket on an 'if' clause, perhaps.
As a result, the plugin will be ignored completely, so you need to fix this first.
freevisio
11-20-2006, 07:55 AM
Hello AndrewD
happiness, very good work.
Is it possible to limit adding bonds to registered users with a minimum of post? I would like to add this option to control the spam and that alone users can write with but of 100 post.
Thank you
AndrewD
11-20-2006, 08:09 AM
Hello AndrewD
happiness, very good work.
Is it possible to limit adding bonds to registered users with a minimum of post? I would like to add this option to control the spam and that alone users can write with but of 100 post.
Thank you
Take a look in the release/extras/limit-useraccess directory in the zip file. There is a sample plugin, limitaccess-byposts-plugin.xml, which does what you want. You will have to configure it by editing the code - should be straightforward - let me know if you have problems.
freevisio
11-20-2006, 08:50 AM
Oh, is perfect, thankyou.
to 10 users this very well, is the only thing that I need. Can the rest disable it? As I make it?
Alfa1
11-20-2006, 10:54 AM
Any chance on a vBSEO sitemap (https://vborg.vbsupport.ru/showthread.php?p=1120217) plug in?
AndrewD
11-20-2006, 11:44 AM
Oh, is perfect, thankyou.
to 10 users this very well, is the only thing that I need. Can the rest disable it? As I make it?
Assuming that the plugin is working correctly(!!), if you installed it as supplied, then:
- it ignores all members of the administrator group
- it ignores all users with 10 or more posts
Anone else is limited to one download and one megabyte per day.
Users that are ignored by the plugin are still restricted by any limits that you impose on LDM/admin/bandwidth.
Only people who have access to your VB admincp can disable the plugin.
berayiwu5
11-20-2006, 02:42 PM
Hi, AndrewD,
I understand that LDM stores uploaded files in a location different from that of attachment files uploaded into the vBulletin platform itself. One problem I am having is that I'm getting warning messages about MySQL quota limits: I would need ever-increasing amount of MySQL database quota to allow for the growing number of files uploaded via LDM. And this is something my host provider is not quite willing to do. It looks as if LDM is storing the files in the database itself, but different from where vBulletin stores its own attachments.
Now vBulletin has the ability to move the attachments from the database to the file system--which would avoid this MySQL database quota problem. Is there any way for LDM to do the same?
Thanks for your help.
Kai
AndrewD
11-20-2006, 02:51 PM
Hi, AndrewD,
I understand that LDM stores uploaded files in a location different from that of attachment files uploaded into the vBulletin platform itself. One problem I am having is that I'm getting warning messages about MySQL quota limits: I would need ever-increasing amount of MySQL database quota to allow for the growing number of files uploaded via LDM. And this is something my host provider is not quite willing to do. It looks as if LDM is storing the files in the database itself, but different from where vBulletin stores its own attachments.
Now vBulletin has the ability to move the attachments from the database to the file system--which would avoid this MySQL database quota problem. Is there any way for LDM to do the same?
Thanks for your help.
Kai
LDM does not store files in the database. It stores them in the file system.
What is held in the database are all the records of these files, and also a full record of all downloads. Usually, the LDM table that grows big is the 'downloads' table. You can prune this via LDM/admin/statistics
|oR|Greg
11-20-2006, 08:52 PM
Ok, well I got YouTube working nicely, but I can't seem to get Google videos working at all.
The only other thing I've tried to do Andrew for YouTube, is set an icon for the file but it's not working. I altered the php code like so:
if(stristr($linkurl, 'youtube.com/watch?v=')) {
$linktypebit = '<img border="0" src="http://www.amacny.com/vb/images/editor/youtube.gif" alt="YouTube Video" />';
$is_musicbox = 1;
}
berayiwu5
11-21-2006, 02:16 AM
Usually, the LDM table that grows big is the 'downloads' table. You can prune this via LDM/admin/statistics
I've gone to LDM/admin/statistics, as suggested. But I can't find the 'downloads' table. And how do I prune it?
Thanks.
AndrewD
11-21-2006, 03:59 AM
I've gone to LDM/admin/statistics, as suggested. But I can't find the 'downloads' table. And how do I prune it?
Thanks.
1) Either
http:// yoursite / local_links_admin.php?action=admin&set=statistics
then "View Hits"
or, directly
http:// yoursite /local_links_admin.php?action=logjumps
2) Then enter a start and end date, display the records, and then select Archive and Delete.
Alternatively you can just use a utility like phpmyadmin to take a look at the database tables, and empty the local_linksdownloads table.
It's worth taking a look with phpmyadmin to get an idea of how big your database is and which tables are actually the large ones.
AndrewD
11-21-2006, 04:10 AM
Ok, well I got YouTube working nicely, but I can't seem to get Google videos working at all.
The only other thing I've tried to do Andrew for YouTube, is set an icon for the file but it's not working. I altered the php code like so:
if(stristr($linkurl, 'youtube.com/watch?v=')) {
$linktypebit = '<img border="0" src="http://www.amacny.com/vb/images/editor/youtube.gif" alt="YouTube Video" />';
$is_musicbox = 1;
}
Well, I created a plugin at ldm_linkbit_create (which is where I imagine you're attacking), and just used your code. It works fine for me, see image:
phovanxua
11-21-2006, 04:18 AM
Hi AndrewD ,
I read it here some where that you show how to import file by scan it through the Server file folder .
For example : if I create 1 file name : "music_mp3" and store many mp3 there in the server , how can I use LDM to scan that folder ?
How can I do that ?
AndrewD
11-21-2006, 05:04 AM
Hi AndrewD ,
I read it here some where that you show how to import file by scan it through the Server file folder .
For example : if I create 1 file name : "music_mp3" and store many mp3 there in the server , how can I use LDM to scan that folder ?
How can I do that ?
There are two ways:
a) you can do it manually
- create the LDM category that you want to use to hold the mp3s
- go to LDM admin/categories, look for that categpory, and click 'scan'
- use the 'scan in directory' drop down to navigate to the directory you want to scan (nb - you cannot get outside the directory space defined by how you have set the LDM settings 'local_file_root' and 'local_file_root_prefix' - by default, this is your web site structure, but you can change that if necessary)
- select the files of interest and go
b) you can do it automatically
- LDM admin/settings -> Category Synchronisation Controls + turn on 'sync_enabled'
- create the LDM category that you want to use to hold the mp3s, and enter the directory name that you want to synchronise with. If you want to sync with web site directory /mp3s, held at the top of your web site, then enter /mp3s in the box
- set it going. depending on how many files you have, it will pick then up in one or several visits to the category.
phovanxua
11-21-2006, 08:11 AM
I still can't get it to work .
Can you check your PM .
|oR|Greg
11-21-2006, 11:44 AM
Andrew... lol... actually it's working right from the local_links_include, but being the dummy that I am, I edited the linktypebit out of my template, I switched templates and there it is.
berayiwu5
11-21-2006, 01:37 PM
1) Either
http:// yoursite / local_links_admin.php?action=admin&set=statistics
then "View Hits"
or, directly
http:// yoursite /local_links_admin.php?action=logjumps
2) Then enter a start and end date, display the records, and then select Archive and Delete.
Alternatively you can just use a utility like phpmyadmin to take a look at the database tables, and empty the local_linksdownloads table.
It's worth taking a look with phpmyadmin to get an idea of how big your database is and which tables are actually the large ones.
Thanks, AndrewD. It's done.
imranbaig
11-21-2006, 05:46 PM
Can DownloadsII and ECDownloads Co-exist?
AndrewD
11-21-2006, 06:06 PM
Can DownloadsII and ECDownloads Co-exist?
No idea, since this is neither of those hacks!
Slave
11-21-2006, 07:40 PM
No idea, since this is neither of those hacks!
LOL :)
obmob
11-22-2006, 02:03 AM
-_- geez, is it that hard to read the title?
Well, i moved my vb site to a new host, i was having a lot of database problems... hope it goes better.
I hope to test final 2.2.6 this week! ^^
|oR|Greg
11-22-2006, 04:08 PM
Does synchronization work with thread creation plugin?
AndrewD
11-23-2006, 03:29 AM
Does synchronization work with thread creation plugin?
Currently no. There would be a serious risk of running haywire with your board, if (for example) you sync'ed a directory with a few thousand files in it (e.g. my music or photo collections).
sduckie2k5
11-25-2006, 02:09 AM
Sorry if this question has been asked already but I saw a message after the upgraded to 2.2.6 and although everything seems to be working fine, I wanted to know if this is something I should address:
Warning open_basedir is set to /home/usr/:usr/lib/php:/usr/local/lib/php:/tmp in your php installation.
Thankyou in advance ~D
AndrewD
11-25-2006, 04:48 AM
Sorry if this question has been asked already but I saw a message after the upgraded to 2.2.6 and although everything seems to be working fine, I wanted to know if this is something I should address:
Warning open_basedir is set to /home/usr/:usr/lib/php:/usr/local/lib/php:/tmp in your php installation.
Thankyou in advance ~D
If everything is working fine, there's no need to be concerned.
open_basedir is a php setting that restricts whereabouts scripts can look in your server's file system scripts. When correctly set, it's a very useful security aid. If the script tries to move outside the allowed area, it is not allowed to open files.
In your case, the restrictions are as follows:
everything in and under /home/usr/
ditto usr/lib/php
ditto /usr/local/lib/php
ditto /tmp
You need to be careful if you decide to set LDM's settings local_file_root and local_file_root_prefix, or upload_dir or thumbs_dir that you do not move outside these areas.
sduckie2k5
11-25-2006, 11:22 AM
Great, thankyou so much and thanks again for such a great release! ~D
|oR|Greg
11-25-2006, 01:00 PM
Is there a clearer write-up on local_file_root / _prefix?
AndrewD
11-25-2006, 02:15 PM
Is there a clearer write-up on local_file_root / _prefix?
Clearer than what?
try this...
http://www.eirma.org/wikis/index.php/Speed%2C_Security_and_Server_Load
Zowners
11-26-2006, 07:16 AM
Is there a way to make it so users must post twice a day to be able to download?
If not ive tried getting that user-post limit plugin thing to work but im a bit of a noob when it comes to setting it up :( any help.
AndrewD
11-26-2006, 12:27 PM
Is there a way to make it so users must post twice a day to be able to download?
If not ive tried getting that user-post limit plugin thing to work but im a bit of a noob when it comes to setting it up :( any help.
This should do the trick. It's a modified version of the user-postlimit plugin - if you compare the codes, you can see how this is done. I've set it up by default so that a user requires two or more posts in the last 24 hours; usergroup 6 (admins) excluded. If you fall below that limit, you are allowed one download and one megabyte.
Zowners
11-26-2006, 05:16 PM
Thanks Andrew works great mate.
imranbaig
11-26-2006, 05:40 PM
sorry I miss spelled my question I was mean this can DownloadsII and Links and downloads co-exists together?
AndrewD
11-26-2006, 06:44 PM
sorry I miss spelled my question I was mean this can DownloadsII and Links and downloads co-exists together?
I don't think there's any reason why not - I haven't tried it, but no-one has said otherwise.
Zowners
11-26-2006, 07:02 PM
Sorry for being a pain but how can I change messages users get when they cant access downloads etc so I can make the error message more user friendly.
Cheers
AndrewD
11-27-2006, 04:04 AM
Sorry for being a pain but how can I change messages users get when they cant access downloads etc so I can make the error message more user friendly.
Cheers
Most things in LDM - apart from a few 'mission critical failures' - use phrases that are manage inside the VBulletin phrasing system. Do a search in your vb/admincp/languages and phrases/search for the text you want to modify, then edit it as you wish.
If that doesn't give you the results you want, get back to me.
|oR|Greg
11-27-2006, 04:08 PM
Permissions, Andrew... is there a better way to control who see's what content?
Currently if I choose not to allow a usergroup to be able to view the content of a link, they get prompted with a Registration window. But I really only wanted that for users that aren't logged in. I would like those that can click on a link, but are logged in, yet are not allowed to view the contents to get a custome per category message.
Also, a category password option would rock.
kompakt
11-28-2006, 01:54 AM
As you mentioned, this is the way the links are parsed in the final 2.2.6 release.
if (HEADER_BEHAVIOUR == "inline") {
@header("Content-disposition: inline; filename=".str_replace(" ", "_", $dfname)."");
} else {
@header("Content-type: application/x-download");
@header("Content-disposition: attachment; filename=".str_replace(" ", "_", $dfname)."");
}
This is still giving me problems in Firefox and users end up getting an html page if I have the hit-parade set to 0. My host does not add custom mime types, they are not known by the server and are defined on my .htaccess file. I have to keep the hit parade set to 1 for this to work since the location of the files is revealed, the browser picks up the correct mime-type from my .htacess file.
Is it possible to add them somehow into the mime-types in the local_links.php?
AndrewD
11-28-2006, 04:06 AM
As you mentioned, this is the way the links are parsed in the final 2.2.6 release.
This is still giving me problems in Firefox and users end up getting an html page if I have the hit-parade set to 0. My host does not add custom mime types, they are not known by the server and are defined on my .htaccess file. I have to keep the hit parade set to 1 for this to work since the location of the files is revealed, the browser picks up the correct mime-type from my .htacess file.
Is it possible to add them somehow into the mime-types in the local_links.php?
I'm a little confused - sorry. First, I assume you mean the setting "force_redirect", not "hit_parade".
When force_redirect is set to 0, LDM behaves as follows:
- if the file type exists in the VBulletin attachment table, then the mimetype data set up in that table is used.
- otherwise, LDM issues a simple browser redirect.
So you should create new entries in VBulletin attachments table for each of the filetypes you want to deal with. The .htaccess mimetype data only comes into play when this is not available.
Now, there is a another problem with Firefox: When you do a "right click/save link as", Firefox does not 'pre-fetch' any information before processing the 'save as' command. As a result, you end up downloading a "scriptname.php" file containing html, rather than (e.g.) the correctly named mp3 file. This has been long discussed on the Firefox development forum - it's a deliberate design choice on their part to speed up processing. It's one area where IE does (in my opinion) a better job.
Am I missing something?
AndrewD
11-28-2006, 04:08 AM
Permissions, Andrew... is there a better way to control who see's what content?
Currently if I choose not to allow a usergroup to be able to view the content of a link, they get prompted with a Registration window. But I really only wanted that for users that aren't logged in. I would like those that can click on a link, but are logged in, yet are not allowed to view the contents to get a custome per category message.
Also, a category password option would rock.
I really wish that I had not decided to use forum permissions in the first place. Untangling the consequences has been a real nuisance.
I'll have to think about these suggestions - I agree with you, but need to see how to make this work without breaking something else.
|oR|Greg
11-28-2006, 12:25 PM
Ok, thanks for responding. I'm going to post up instructions a little later on how to do the whole YouTube links integration.
|oR|Greg
11-28-2006, 01:58 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=132702" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=132702</a>
AndrewD
11-28-2006, 02:55 PM
https://vborg.vbsupport.ru/showthread.php?t=132702
Great - well done.
I'll post a video on youtube showing my attempts to code LDM, then we maybe can watch each other watching each other?
Slave
11-28-2006, 03:17 PM
Now that's something I'd like to see :)
imranbaig
11-28-2006, 05:40 PM
I installed Cool really cool I have few questions might sound dumb to you:P.
I have installed it now i want to change / rename local_links, how to go about it? Should I just update table names and remove prefix from files and add something what I'm looking for??
Juke box does not play mid files?? I have added Content-type: audio/mid mimetype for it.
While playing in jukes box, is there a button to download the currently playing file??
Thank you great hack.
obmob
11-28-2006, 05:47 PM
Read wiki:
http://www.eirma.org/wikis/index.php/Hacking_LDM#Changing_Name_of_Database_Tables_and_P HP_Scripts
imranbaig
11-28-2006, 05:57 PM
Yep, I renamed files. need to find solution for other ? :) Thanks
Zowners
11-28-2006, 10:43 PM
Hey is there a way to get the new links showing in vbadvanced? With a restriction on how many new links show?
Also with the extras I added the show new links and hot links in forumhome is there a way to limit how many files are shown?
Thanks awesome hack, just seen the youtube addon looks great this hack just keeps getting better and better.
AndrewD
11-29-2006, 04:51 AM
Juke box does not play mid files?? I have added Content-type: audio/mid mimetype for it.
a) Add mid to VB/admincp/attachments table with Content-type:audio/mid
b) Go to LDM/admin/settings/media file settings and add mid to the list of filetypes to be played by your preferred player.
While playing in jukes box, is there a button to download the currently playing file??
Not in the Jukebox window itself. (I think this would be an easy template change.) The 'save' link is next to the 'play' link in the main display.
AndrewD
11-29-2006, 04:56 AM
Hey is there a way to get the new links showing in vbadvanced? With a restriction on how many new links show?
In the forum/modules directory, you'll find several vba modules, including one to show 'whats new'. Installation instructions are in the wiki, tke a look at http://www.eirma.org/wikis/index.php/Hacking_LDM. General param controlling number of entries displayed is links_seen_on_portal on ldm/admin/settings
Also with the extras I added the show new links and hot links in forumhome is there a way to limit how many files are shown?
ditto, links_seen_on_portal
imranbaig
11-29-2006, 07:04 AM
Its not fixed I wanted to use some other template apart from modren? which has a save link? is it possible?
and which template jukebox uses??
How do I modify this?? trawled during scan of /downloads
Zowners
11-29-2006, 07:43 AM
In the forum/modules directory, you'll find several vba modules, including one to show 'whats new'. Installation instructions are in the wiki, tke a look at http://www.eirma.org/wikis/index.php/Hacking_LDM. General param controlling number of entries displayed is links_seen_on_portal on ldm/admin/settings
ditto, links_seen_on_portal
I tried the vbadvanced install using the link you gave but the module went off the page and broke the layout. Did I do something wrong?
Slave
11-29-2006, 08:35 AM
I think that depends on the length of your name for the link/download .. if it's a really long word/filename then it will break the formatting of your column ..
Hard to know without looking at your site .. :)
AndrewD
11-29-2006, 10:44 AM
I tried the vbadvanced install using the link you gave but the module went off the page and broke the layout. Did I do something wrong?
As Slave says, difficult to tell without taking a look at your site.
If you want to see what someone else has achieved with a vba/LDM integration, take a look at www.versionist.com
Six of the vba modules are pointing to LDM. These are all in release/forums/modules and release/extras/versionist
AndrewD
11-29-2006, 10:50 AM
Its not fixed
What's not fixed?
I wanted to use some other template apart from modren? which has a save link? is it possible?
Anything possible - pls can you be a bit more specific?
and which template jukebox uses??
The main template is links_playbit which gets embedded in either links_player_standalone or links_player_embedded.
How do I modify this??
The layout is defined in the links_scantext template.
chorton
11-29-2006, 02:31 PM
As Slave says, difficult to tell without taking a look at your site.
If you want to see what someone else has achieved with a vba/LDM integration, take a look at www.versionist.com
Six of the vba modules are pointing to LDM. These are all in release/forums/modules and release/extras/versionist
Thanks for the plug :)
imranbaig
11-29-2006, 07:32 PM
What's not fixed?
Wanted to Have a Standalone player, which opens as a popup, and along with links such as send to friend, close, a option to save/download would be nice.
Anything possible - pls can you be a bit more specific?
There are templates like photo_album, modren, etc I liked the one which is photo album but it does not have save option.
The main template is links_playbit which gets embedded in either links_player_standalone or links_player_embedded.
Thanks for info.
The layout is defined in the links_scantext template.
Yes changed that text :).
Also Is there a option to have sis files? i.e mobile phone themes? I have this in attachment table as Content-type: application/vnd.symbian.install, and add a screen shot for the themes?
Thanks for the great Addon :)
Zowners
11-29-2006, 10:19 PM
<a href="http://img362.imageshack.us/img362/4146/errortj8.jpg" target="_blank">http://img362.imageshack.us/img362/4146/errortj8.jpg</a>
Ok this is what happens when I use the followign module
Main Options:
Module Title: New Downloads
Column: left
Display Order: 1
Active: Yes
Update All Pages: Yes
PHP File Module Options:
File to Include: ldm_new.php
Identifier: ldm_new
Templates Used:adv_portal_custom_ldm_new, links_vbalinks
Module Shell Template Options:
Use Module Shell Template: No
Zowners
11-29-2006, 10:29 PM
Looks like ive fixed it you need to have Use Module Shell Template set to yes. Not no as it says in the link.
Thanks
paypal
11-30-2006, 01:00 AM
Forgive me for being very dumbfounded from this add-on ...Ive installed > i see it in Admin panel > but where do i see it in the forum? what is the main page link? maybe i missed something. Kindly awaiting replies.
Slave
11-30-2006, 04:44 AM
Forgive me for being very dumbfounded from this add-on ...Ive installed > i see it in Admin panel > but where do i see it in the forum? what is the main page link? maybe i missed something. Kindly awaiting replies.
You need to add the link to the hack yourself. Normally this would be in the navbar template.
www.yoursite.com/local_links.php
or
www.yoursite.com/forums/local_links.php
.. depending on your setup ..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.