vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=216118)

Alfa1 07-23-2009 01:30 PM

I am running the latest versions of the vba modules: ldm_new_thumb, ldm_new and ldm_new_media.

In LDM_new a number is displayed after each name, to denote the number of hits. how do I remove this?

In ldm_new_thumb: Is there anyway to display the file title under the thumb?

I would like to show off my video directory on a vba portal with ldm_new_media.
  1. Is it possible to set a cut-off date for ldm_new_media?
  2. Is there any way to play vp6 flv videos?
  3. Many of my videos can not be played embedded in LDM. ldm_new_media therefore only shows the titles of these videos. Is there any way to have ldm_new_media ignore videos that can not be displayed?
  4. If some videos are not displayed, then the JWH player videos that are displayed are blown up to fill all available space, instead of the set pixel size. I am not 100% sure that the absence of video thumbs is the cause.

Alfa1 07-23-2009 03:12 PM

For my video categories, I am using the fotoalbum linkbit. I have installed the JW Player extensions. How do I enable videos to play inline in the fotoalbum linkbit?
Is there a way to have the text $linkimglink move to a new line if it is longer than X characters? Similar to done on youtube here.

I would like to add a feature request:
The possibility to add multiple url's / files to one entry. Often video's consist out of multiple segments/parts. Currently the only solution is to add the urls for part 2,3,4,etc in the description field. This excludes it from LDMs link check functions.

AndrewD 07-25-2009 04:43 AM

Quote:

Originally Posted by Alfa1 (Post 1845415)
I did this and now have the strangest error showing up at various specific locations. All locations are LDM locations.

Warning: parse_url(http://javascript:AL_get(this) [function.parse-url]: Unable to parse URL in [path]/global.php(400) : eval()'d code on line 301

EDIT: it is a conflict between LDM and Two-Step links.

Bit difficult for me to do anything about this. I think there must be more than a conflict with Two Step links. The javascript in the warning message must be coming from somewhere - not in LDM and I don't think it's in Two Step links either.

AndrewD 07-25-2009 05:44 AM

Quote:

Originally Posted by Alfa1 (Post 1854167)
In LDM_new a number is displayed after each name, to denote the number of hits. how do I remove this?

In template adv_portal_custom_ldm_new_one remove the line:
Code:

    <div style="float:right"><span class="smallfont">$linkhits</span></div>
Quote:

Originally Posted by Alfa1 (Post 1854167)
In ldm_new_thumb: Is there anyway to display the file title under the thumb?

In template adv_portal_custom_ldm_new_thumb_one, immediately before the <else /> line, insert
Code:

<div class="smallfont">$linkshortname</div>
Quote:

Originally Posted by Alfa1 (Post 1854167)
Is it possible to set a cut-off date for ldm_new_media?

Requires a code edit to forum/modules/ldm_new_media.php.

Find the line:
Code:

    $order        = "linkdate DESC ";
Immediately after, insert:
Code:

$cutoff = TIMENOW - 24*60*60*$GLOBALS['links_defaults']['days_seen_on_portal'];
$filter[] = "link.linkdate>$cutoff";

This will cause the module to use your LDM admin setting *days_seen_on_portal* as cutoff. If you want to use a different value, change $GLOBALS['links_defaults']['days_seen_on_portal'] to the required number of days, e.g. set it to 10.

Quote:

Originally Posted by Alfa1 (Post 1854167)
Is there any way to play vp6 flv videos?

I downloaded a test vp6 video (https://flix.on2.com/samples/on2tm_640.flv) and installed it in LDM. It plays fine through the JW player, both via the jukebox and inline. However, there seem to be a series of debates/problem reports on the longtail video site about problems with vp6 flash videos and the JW player.

Quote:

Originally Posted by Alfa1 (Post 1854167)
Many of my videos can not be played embedded in LDM. ldm_new_media therefore only shows the titles of these videos. Is there any way to have ldm_new_media ignore videos that can not be displayed?

What type of video cannot be played embedded in LDM?

Quote:

Originally Posted by Alfa1 (Post 1854167)
If some videos are not displayed, then the JWH player videos that are displayed are blown up to fill all available space, instead of the set pixel size. I am not 100% sure that the absence of video thumbs is the cause.


??

AndrewD 07-25-2009 05:55 AM

Quote:

Originally Posted by Alfa1 (Post 1854216)
For my video categories, I am using the fotoalbum linkbit. I have installed the JW Player extensions. How do I enable videos to play inline in the fotoalbum linkbit?

In the template links_linkbit_photo, change the variable $linkimglink to $linkimgjump

Quote:

Originally Posted by Alfa1 (Post 1854216)
Is there a way to have the text $linkimglink move to a new line if it is longer than X characters? Similar to done on youtube here.

will check

Quote:

Originally Posted by Alfa1 (Post 1854216)
I would like to add a feature request:
The possibility to add multiple url's / files to one entry. Often video's consist out of multiple segments/parts. Currently the only solution is to add the urls for part 2,3,4,etc in the description field. This excludes it from LDMs link check functions.

This is fully possible using the additional "Entry Attributes" features. You will find an explanation in the wiki.

Alfa1 07-25-2009 11:50 PM

thank you! Thats a lot of improvements I have now implemented.

Quote:

Originally Posted by AndrewD (Post 1855037)
I downloaded a test vp6 video (https://flix.on2.com/samples/on2tm_640.flv) and installed it in LDM. It plays fine through the JW player, both via the jukebox and inline. However, there seem to be a series of debates/problem reports on the longtail video site about problems with vp6 flash videos and the JW player.

None of my vp6 videos are playing. Adding the testvideo url as an entry does not give an embedded video, but a link to the file. Do I need to add a new filetype for vp6? Or do I need to change a setting to get vp6 playing? I have no clue why its not playing at all.

Quote:

Originally Posted by AndrewD (Post 1855037)
What type of video cannot be played embedded in LDM?

vp6, dailymotion, livevideo and liveleak videos do not play embedded for me.

Quote:

Originally Posted by AndrewD (Post 1855037)
??

In ldm_new_media or ldm_hot_media latest or popular videos can be displayed. They play embedded on the vba portal page. Some videos do not play embedded, so only a title is displayed. The videos that do play embedded show up very large. As if the size is set to 100%. How and where do I set the size of the video player to a maximum limit?

Quote:

Originally Posted by Alfa1 (Post 1854216)
For my video categories, I am using the fotoalbum linkbit. I have installed the JW Player extensions. How do I enable videos to play inline in the fotoalbum linkbit?
Is there a way to have the text $linkimglink move to a new line if it is longer than X characters? Similar to done on youtube here.

Quote:

Originally Posted by AndrewD (Post 1855041)
In the template links_linkbit_photo, change the variable $linkimglink to $linkimgjump

That does not work for me.


About 10% of my videos that do play embedded on the jukebox, do not display a thumb. Is there anyway to generate these?

Do you know where I can find icons for file extensions? I am in need of: .djvu .mol .torrent .mpg

biome.pat 07-27-2009 05:58 PM

I'm running into a blank white page issue on local_links.php, but only when there is a child forum for whatever category I'm viewing. For instance, Home category works fine until I add a category, and that added category is fine until I add a child to it, at which point it turns into a blank page.

I checked out the other issues in your mods' threads, but those blank page issues didn't seem to be like mine. I'm running vB 3.8.2 (and LDM 2.3.0, I might add), plus I've disabled all other modifications and reverted to the default style, but the problem still persists. No one else seems to be having any trouble, so it's probably something to do with my setup... Any suggestions on where to start? :)

Thanks in advance, and amazing mod by the way!

UPDATE #1: When I disable the Category Display from the Settings page, local_links.php starts working, so it appears that it's just something to do with that. I tried both tabular and brief, and neither allows anything but a blank page.

UPDATE #2: It seems that uploading an entry to a category also causes that category (which was previous working) to mess up. Looks like for whatever reason, my cat and entry bits cause things to go wonky...

Rouzbeh1 07-28-2009 12:27 AM

Hey Andrew,

I need the variable for entry links that are in links_linkbit (Modern Template).

Right now I can only use $linkurljump which contains both title and url, but I only need the URL and not the title.
i tried $linkurllink, but it didn't help. it's an empty varible.
Is there a variable to differentiate between Entry titles and urls?

Thank you

AndrewD 07-28-2009 04:36 AM

Quote:

Originally Posted by biome.pat (Post 1856678)
I'm running into a blank white page issue on local_links.php, but only when there is a child forum for whatever category I'm viewing. For instance, Home category works fine until I add a category, and that added category is fine until I add a child to it, at which point it turns into a blank page.

I checked out the other issues in your mods' threads, but those blank page issues didn't seem to be like mine. I'm running vB 3.8.2 (and LDM 2.3.0, I might add), plus I've disabled all other modifications and reverted to the default style, but the problem still persists. No one else seems to be having any trouble, so it's probably something to do with my setup... Any suggestions on where to start? :)

Thanks in advance, and amazing mod by the way!

UPDATE #1: When I disable the Category Display from the Settings page, local_links.php starts working, so it appears that it's just something to do with that. I tried both tabular and brief, and neither allows anything but a blank page.

UPDATE #2: It seems that uploading an entry to a category also causes that category (which was previous working) to mess up. Looks like for whatever reason, my cat and entry bits cause things to go wonky...

Sorry to hear this. Blank pages are usually caused by one of three problems - a) code bugs; b) faulty code file uploads; and c) resource limits. As you've turned off other mods and no-one else has reported a problem, a) seems the least likely. You can check b) by going to LDM/admin/check file versions, which carries out an integrity check on all the code files. Which leaves c). A common problem is insufficient memory. Two checks here - go to LDM/Admin and take a look at the memory_limit value in your php settings (down the left hand side). If this is less than 12M or so, that might be the problem.

One way to check this (assuming your server configuration allows it) is to create a plugin to allow you to use more memory. Go to vb/admincp/products and plugins/add new plugin, and create a new plugin with the following settings:

hook location: global_start
title: debug
plugin php code: ini_set('memory_limit', '16M');
active: yes

If the memory limit is the problem, you should ask your host provider to change the default limit to, e.g., 16M or 24M.

Am happy to take a look at your board if you need further help, but will require full admin access.

AndrewD 07-28-2009 04:46 AM

Quote:

Originally Posted by Rouzbeh1 (Post 1856837)
Hey Andrew,

I need the variable for entry links that are in links_linkbit (Modern Template).

Right now I can only use $linkurljump which contains both title and url, but I only need the URL and not the title.
i tried $linkurllink, but it didn't help. it's an empty varible.
Is there a variable to differentiate between Entry titles and urls?

Thank you

The raw url is stored in $linkurl, but this is probably not what you are after. If you want the masked url that allows LDM to keep file locations secret and track hits, you need to create a plugin, as follows:

hook location: ldm_linkbit_create

code:

PHP Code:

$linkmaskurl ldm_seo_url("jump"$linkcatid$linkid); 


Rouzbeh1 07-28-2009 10:20 AM

Quote:

Originally Posted by AndrewD (Post 1856919)
The raw url is stored in $linkurl, but this is probably not what you are after. If you want the masked url that allows LDM to keep file locations secret and track hits, you need to create a plugin, as follows:

hook location: ldm_linkbit_create

code:

PHP Code:

$linkmaskurl ldm_seo_url("jump"$linkcatid$linkid); 


thanks Andrew
it worked perfect

biome.pat 07-28-2009 02:14 PM

Quote:

Originally Posted by AndrewD (Post 1856913)
Sorry to hear this. Blank pages are usually caused by one of three problems - a) code bugs; b) faulty code file uploads; and c) resource limits. As you've turned off other mods and no-one else has reported a problem, a) seems the least likely. You can check b) by going to LDM/admin/check file versions, which carries out an integrity check on all the code files. Which leaves c). A common problem is insufficient memory. Two checks here - go to LDM/Admin and take a look at the memory_limit value in your php settings (down the left hand side). If this is less than 12M or so, that might be the problem.

One way to check this (assuming your server configuration allows it) is to create a plugin to allow you to use more memory. Go to vb/admincp/products and plugins/add new plugin, and create a new plugin with the following settings:

hook location: global_start
title: debug
plugin php code: ini_set('memory_limit', '16M');
active: yes

If the memory limit is the problem, you should ask your host provider to change the default limit to, e.g., 16M or 24M.

Am happy to take a look at your board if you need further help, but will require full admin access.

Andrew, you're amazing. It's one thing to see you helping everyone else, but for some reason I'm still blown away that I'm getting the same attention from you. Truly, you are a gentleman.

The memory limit is actually 128M, so I'm guessing that's not it. As for the other suggestion, I couldn't find any links or settings for "check file versions" on the LDM admin page... maybe I'm just being a dolt though.

Anyhow, I'll send you admin login credentials for the dev site, but don't worry about spending too much time on it. I'd way rather use your download manager, but worst-case-scenario, I can fall back on the less-featured DownloadsII

Thanks again!

Verionia 07-31-2009 06:40 PM

Quote:

Originally Posted by biome.pat (Post 1857164)
Andrew, you're amazing. It's one thing to see you helping everyone else, but for some reason I'm still blown away that I'm getting the same attention from you. Truly, you are a gentleman.

The memory limit is actually 128M, so I'm guessing that's not it. As for the other suggestion, I couldn't find any links or settings for "check file versions" on the LDM admin page... maybe I'm just being a dolt though.

Anyhow, I'll send you admin login credentials for the dev site, but don't worry about spending too much time on it. I'd way rather use your download manager, but worst-case-scenario, I can fall back on the less-featured DownloadsII

Thanks again!

Im getting blank pages too :(

Verionia 07-31-2009 06:52 PM

How come I get this message when I try to access the links page:

S**, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

AndrewD 08-01-2009 04:06 AM

Quote:

Originally Posted by Verionia (Post 1859214)
Im getting blank pages too :(

Sorry to hear this. Reasons for blank pages are explained in the wiki, see http://www.eirma.org/wikis/index.php/Common_Problems. The standard settings for a secure web server turn off/disable error reporting, which leads to blank screens.

Let me know if you can't easily resolve this. Am happy to help if you give me access to your site.

AndrewD 08-01-2009 04:09 AM

Quote:

Originally Posted by Verionia (Post 1859225)
How come I get this message when I try to access the links page:

S**, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Have you changed any of the default LDM permissions (LDM/admin/permissions)? Or have you added extra usergroups to your board - you will need to give those groups LDM access permissions.

Verionia 08-04-2009 09:28 PM

Quote:

Originally Posted by AndrewD (Post 1859428)
Have you changed any of the default LDM permissions (LDM/admin/permissions)? Or have you added extra usergroups to your board - you will need to give those groups LDM access permissions.

No didnt change anything... have followed that thread, but still nothing...

Zookie 08-05-2009 03:47 AM

I'm evaluating DownloadsII but may want to check out LDM as well. Can both mods be installed to the same vBulletin forum or does this present a problem? Also, I am hosted on an IIS server. Does this present any problems? Are there any security settings I'd need to have to change for directories?

As I said, I'm presently trying DownloadsII. Can't get it working and am waiting for a reply by the author so thought I'd give LDM a try in the mean time. One area of concern I have with LDM is that I have to change the permissions on the downloads directory making it writeable and executable (chmod 777). Can't do this via FTP on an IIS server so I'm having to ask my host to do it for me. But one poster in the DownloadsII thread remarked that this looked like a huge security hole. I don't know enough about web server security to have an opinion on that. What are your thoughts? Does LDM have a similar requirement?

Thanks!

AndrewD 08-05-2009 05:22 AM

Quote:

Originally Posted by Zookie (Post 1861606)
I'm evaluating DownloadsII but may want to check out LDM as well. Can both mods be installed to the same vBulletin forum or does this present a problem? Also, I am hosted on an IIS server. Does this present any problems? Are there any security settings I'd need to have to change for directories?

As I said, I'm presently trying DownloadsII. Can't get it working and am waiting for a reply by the author so thought I'd give LDM a try in the mean time. One area of concern I have with LDM is that I have to change the permissions on the downloads directory making it writeable and executable (chmod 777). Can't do this via FTP on an IIS server so I'm having to ask my host to do it for me. But one poster in the DownloadsII thread remarked that this looked like a huge security hole. I don't know enough about web server security to have an opinion on that. What are your thoughts? Does LDM have a similar requirement?

Thanks!

As far as I know, there is no difficulty in having both mods installed on the same board.

As you say, the directory(ies) in which uploaded files are stored has to be writable by the web server. This should not need 777 permissions and should not create a huge security hole.

Concerning security in general, there is always some trade off between this and functionality. I've written some guidance notes in the wiki, see http://www.eirma.org/wikis/index.php...nd_Server_Load.

Concerning IIS, the only problem that has been reported is when PHP is running in CGI mode. In this case, it's necessary to make a small code change, again described in the wiki at http://www.eirma.org/wikis/index.php/Site_Configuration

Zookie 08-05-2009 11:14 PM

Does this add-on include a progress bar display for when files are being uploaded?

AndrewD 08-06-2009 03:45 AM

Quote:

Originally Posted by Zookie (Post 1862237)
Does this add-on include a progress bar display for when files are being uploaded?

Yes.

There are two versions of the uploader included in the release. The default version (installed when you run the normal install process) does not include a progress bar. In the "extras/swfuploader" directory, the alternative uploader replaces the default by one with a progress bar.

Zookie 08-06-2009 03:55 AM

Quote:

Originally Posted by AndrewD (Post 1862327)
Yes.

There are two versions of the uploader included in the release. The default version (installed when you run the normal install process) does not include a progress bar. In the "extras/swfuploader" directory, the alternative uploader replaces the default by one with a progress bar.

Excellent! I'll install and give this mod a try tomorrow!

Zookie 08-06-2009 06:53 PM

I just installed LDM onto my vBulletin site and when I go to the admin control panel the Links and Downloads Manager configuration menu is visible in the left pane. So the install definitely completed. However, when I click on any link in the menu or point my browser to local_links_admin.php I get "Internet Explorer cannot display page" in the left pane with IE8, and "Content Encoding Error - The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression" with Firefox.

I'm running on an IIS server. According to my web host server isn't running in CGI mode (I don't really know what that means but their answer to the question was "no". Any idea what the problem might be?

Rouzbeh1 08-06-2009 10:58 PM

Hi Andrew,
there is a bug in Export script to google sitemap format. it enters <lastmod>1969-12-31</lastmod>
for all entries
could you please take a look at it?

thanks in advance

winstone 08-07-2009 01:29 AM

Hi Andrew,

In order to do some search engine optimization I had to edit /includes/local_links_include.php file (around $atag and ldm_seo function) to get the default links to look like: local_links.php?catit=01&catname=xx&linkid=01&link name=xx (adding trimmed catName and linkName)

is there anyway to create a plugin for LDM to do this instead? (to prevent having to edit this file manually after each update)

Thanks a lot

AndrewD 08-07-2009 03:42 AM

Quote:

Originally Posted by Zookie (Post 1862736)
I just installed LDM onto my vBulletin site and when I go to the admin control panel the Links and Downloads Manager configuration menu is visible in the left pane. So the install definitely completed. However, when I click on any link in the menu or point my browser to local_links_admin.php I get "Internet Explorer cannot display page" in the left pane with IE8, and "Content Encoding Error - The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression" with Firefox.

I'm running on an IIS server. According to my web host server isn't running in CGI mode (I don't really know what that means but their answer to the question was "no". Any idea what the problem might be?

I have had no report of this error in five years :)

It looks as if one of the uploaded files may be corrupt. Try the following:

- Go to the regular vb admincp/vb optiobs/cookies and http header options, and disable the gzip compresion option (GZIP HTML Output = no). Try again with local_links_admin.php

- Try loading local_links.php

- Try reuploading all the files

Am happy to take a look at your site if you want.

AndrewD 08-07-2009 03:52 AM

Quote:

Originally Posted by Rouzbeh1 (Post 1862834)
Hi Andrew,
there is a bug in Export script to google sitemap format. it enters <lastmod>1969-12-31</lastmod>
for all entries
could you please take a look at it?

thanks in advance

Noted. However, on my site, this is working ok.

AndrewD 08-07-2009 03:55 AM

Quote:

Originally Posted by winstone (Post 1862869)
Hi Andrew,

In order to do some search engine optimization I had to edit /includes/local_links_include.php file (around $atag and ldm_seo function) to get the default links to look like: local_links.php?catit=01&catname=xx&linkid=01&link name=xx (adding trimmed catName and linkName)

is there anyway to create a plugin for LDM to do this instead? (to prevent having to edit this file manually after each update)

Thanks a lot

With the current code, this would be difficult, because there is no "hook" at the relevant place to tie in a plugin. If you send me (PM) details of the code changes you have made, I will see where to add a hook.

Did you consider that LDM's own seo options were not adequate?

Zookie 08-07-2009 04:55 AM

Quote:

Originally Posted by AndrewD (Post 1862906)
I have had no report of this error in five years :)

Well, mom always said I was the special one. :)

Quote:

Originally Posted by AndrewD (Post 1862906)
It looks as if one of the uploaded files may be corrupt. Try the following:
- Go to the regular vb admincp/vb optiobs/cookies and http header options, and disable the gzip compresion option (GZIP HTML Output = no). Try again with local_links_admin.php

OK, when I do this and go to local_links_admin.php my normal page layout is displayed (example), only with the LDM admin CP in it (I think). Furthermore, the following error is displayed at the top of the page:
Code:

Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in (server path to web root)\community\local_links_admin.php on line 22
You can see a picture of it here. If I turn GZIP HTML Output back on I'm back to the page not loading at all as if there were a connection problem.

Quote:

Originally Posted by AndrewD (Post 1862906)
- Try loading local_links.php

This page loads properly whether I have GZIP HTML Output set to yes or no. All the LDM links on the page work except for the local_links_admin.php link. That's the only page I've found (so far) that is having a problem.

Quote:

Originally Posted by AndrewD (Post 1862906)
- Try reuploading all the files

I tried that and no change.

Quote:

Originally Posted by AndrewD (Post 1862906)
Am happy to take a look at your site if you want.

I'm fine with that. How would we go about it?

Some additional information:
According to View PHP Info in the vB Admin CP, I'm running php 4.4.7. Additional info displayed:
System : Windows NT LUNADALTXUSWH0 5.2 build 3790
Build Date: May 4 2007 13:29:21
Server API: ISAPI
Virtual Directory Support: enabled
Configuration File (php.ini) Path (not going to display this)\php.ini
PHP API : 20020918
PHP Extension: 20020429
Zend Extension: 20050606
Debug Build : no
Zend Memory Manager: enabled
Thread Safety: enabled
Registered PHP Streams: php, http, ftp, compress.zlib

Again, this is on an IIS server that is not running in CGI mode (according to my web host). Everything else in vBulletin appears to be working properly.

I Googled the error message and found this. Does LDM require PHP 5 by chance?

Zookie 08-07-2009 05:21 AM

Quote:

Originally Posted by Zookie (Post 1862924)
OK, when I do this and go to local_links_admin.php my normal page layout is displayed (example), only with the LDM admin CP in it (I think). Furthermore, the following error is displayed at the top of the page:
Code:

Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in (server path to web root)\community\local_links_admin.php on line 22
You can see a picture of it here. If I turn GZIP HTML Output back on I'm back to the page not loading at all as if there were a connection problem. This page loads properly whether I have GZIP HTML Output set to yes or no. All the LDM links on the page work except for the local_links_admin.php link. That's the only page I've found (so far) that is having a problem.

Just to see what would happen I changed line 22 hard-coding 2048 in place of the constant E_STRICT. After doing this AND turning off GZIP HTML the admin page loads though it is displayed on my normal forum template, not in the normal gray vBulletin Admin CP layout. It's odd seeing my site's theme in the right pane when using the Admin CP. Is that normal? Should I consider this the solution to the problem? I really don't know what difference the GZIP HTML option makes (we aren't talking about a large active forum here though I do expect to have some large file uploading and downloading taking place soon).

AndrewD 08-07-2009 05:38 AM

Quote:

Originally Posted by Zookie (Post 1862937)
Just to see what would happen I changed line 22 hard-coding 2048 in place of the constant E_STRICT. After doing this AND turning off GZIP HTML the admin page loads though it is displayed on my normal forum template, not in the normal gray vBulletin Admin CP layout. It's odd seeing my site's theme in the right pane when using the Admin CP. Is that normal? Should I consider this the solution to the problem? I really don't know what difference the GZIP HTML option makes (we aren't talking about a large active forum here though I do expect to have some large file uploading and downloading taking place soon).

Interesting - and thanks. I don't get many reports from sites using IIS.

I can't recall why I added the E_STRICT test in that file - it's not used in any other file. So, either hard code the value or get rid of the sequence "& E_STRICT" altogether. You will not create problems. I realise that this created a need for php5, which is presumably why you had the problem.

Otherwise, LDM does not need php 5 - it is happy with the same versions of php/mysql as the rest of vb, as far as I know.

The gzip option tells vb to send info to the browser in a compressed form. This reduces bandwidth, but it has the nasty side effect of creating difficult-to-trace problems if something goes wrong.

What you are seeing on your vb admincp with the ldm admin pages is correct. Way back when LDM was first being written, it was not straightforward to integrate hacks into the admincp, so I decided to have an independent admin page, styled according to the rest of the board. Later on, it became possible to do the integration, but by that time I had written too much admin code to go back and redesign it.

Zookie 08-08-2009 01:05 AM

Quote:

Originally Posted by nohuhu (Post 1838014)
AndrewD,

thanks for the firebug tip, i never knew such a great tool existed. i've been able to find the problem with button, it appears that there's a line containing relative path to the actual flash object in links_swfuploader_header_one template and somehow this line was set to "/forum/clientscript/swfupload/swfupload.swf". i adjusted it for my setup and flash object begun working but...

I had this EXACT same problem! I'm sure glad you posted this because there's no way I would have thought to look in the templates for hard-coded paths like that. I edited the links_swfuploader_header_one template hard-coding the path to the correct location in my site and now it works.

If I had used "forums" as my forum directory I would not have run into this. It's because I used a different directory name that I got bit by this bug. I suspect that most people just go with the default "forums" name for their forum directory. That's why there aren't a lot more reports of this bug.

Zookie 08-08-2009 02:06 AM

Thanks for all the help so far. I'm almost there but I have a bunch of questions still now that I've got it working. I'm using LDM only for uploading and downloading files. No links and no streaming data (music, videos, etc.). I don't want any mention of links on the site - just uploads and downloads.
  1. How can I change the string in the Search menu from "Search Links/Downloads" to "Search Downloads"?
  2. How can I change the "Add Entry" link on the Category page to "Upload a File"?
  3. How can I change the bold, red "[Value Required]"string on the Add Entry page to non-bold, red "(required)"?
  4. How can I change the "Name" label on the Add Entry page to "List Name"?
  5. How can I change the "No file/url specified" error label to "No file specified"?
  6. How can I remove the "Parent Categories" area on Add Entry page?
  7. How can I remove the "Parent Forum" area on Add Entry page?
  8. How can I remove the "Display Order" area on Add Entry page (or is this only displayed to admins)?
  9. How can I remove the "Hide Entry" area on Add Entry page (or is this only displayed to admins)?
  10. How can I remove the "If used, leave URL field blank" label on the Add Entry page?
  11. On the Add Entry page, I don't want the "Submitted By" value to be editable. It should be the userID of the person adding the list. Is this only editable by an admin? If so, then it's no problem.
Now for the slightly bigger issue. I can't figure out where my uploads are being stored. I don't want them stored on the web site where they can be linked to directly so I set local_file_root set to "Yes" (it is displayed as set to "Server" in the Environment box), local_file_root_prefix set to "/LDM" and upload_dir set to "/Downloads". I believe I have LDM configured to create the directory though I can't find the setting now. I've uploaded two files and downloaded them from the site. Yet I can't find the directory that they are being stored in. From my settings I would think there would be a "LDM/Downloads" directory just below the wwwroot directory of my site (I'm on an IIS server and am not sure I'm using the right terminology here). The files must be getting saved somewhere but I can't figure out where.

The directory structure on the server and the location of the webs is thus:
c:\Websites\MySite.com\
The actual web site files are all located in the wwwroot directory on top of that path. So, my forum would be located at:
c:\Websites\MySite.com\wwwroot\forum\

The above structure being the case, I was expecting my uploaded files to be placed in the following directory:
c:\Websites\MySite.com\LDM\Downloads\
Where am I going wrong?

AndrewD 08-08-2009 03:52 AM

Quote:

Originally Posted by Zookie (Post 1863387)
Thanks for all the help so far. I'm almost there but I have a bunch of questions still now that I've got it working. I'm using LDM only for uploading and downloading files. No links and no streaming data (music, videos, etc.). I don't want any mention of links on the site - just uploads and downloads.

The following texts are set/changed using vbulletin phrases (vb/admincp/languages and phrases), as marked below:
  1. How can I change the string in the Search menu from "Search Links/Downloads" to "Search Downloads"? phrase ldm_vbmenu_search
  2. How can I change the "Add Entry" link on the Category page to "Upload a File"? ll_menu_addlink
  3. How can I change the "Name" label on the Add Entry page to "List Name"? ll_name
  4. How can I change the "No file/url specified" error label to "No file specified"? ll_error_urlnull
  5. How can I remove the "If used, leave URL field blank" label on the Add Entry page? ll_uploadinfo

The master phrase file is provided in the /development/phrases subdirectory of the zip file - you can look through there to find the correspondence between other phrases and phrase names.

The following requires a template edit and a phrase edit:
  1. How can I change the bold, red "[Value Required]"string on the Add Entry page to non-bold, red "(required)"?

a) Edit the template links_addentity and find the sequence:
<span class="highlight smallfont">[$vbphrase[ll_value_required]]</span>
Change to
($vbphrase[ll_value_required])
b) Edit the phrase ll_value_required

The following depend on LDM permissions (LDM/admin/permissions)
  1. How can I remove the "Parent Categories" area on Add Entry page? can_select_category permission
  2. How can I remove the "Parent Forum" area on Add Entry page? can_set_permissions
  3. How can I remove the "Display Order" area on Add Entry page (or is this only displayed to admins)? can_set_display_order
  4. How can I remove the "Hide Entry" area on Add Entry page (or is this only displayed to admins)? can_moderate_links
  5. On the Add Entry page, I don't want the "Submitted By" value to be editable. It should be the userID of the person adding the list. Is this only editable by an admin? If so, then it's no problem. can_moderate_links


Quote:

Originally Posted by Zookie (Post 1863387)
Now for the slightly bigger issue. I can't figure out where my uploads are being stored.

They should be stored in c:/LDM/Downloads with the settings you've given. If you want them in c:\Websites\MySite.com\LDM\Downloads\, you need to set local_file_root_prefix set to "Websites/MySite.com/LDM"

Zookie 08-08-2009 06:55 AM

Thanks Andrew! You Da Man!

Quote:

Originally Posted by AndrewD (Post 1863405)
They should be stored in c:/LDM/Downloads with the settings you've given. If you want them in c:\Websites\MySite.com\LDM\Downloads\, you need to set local_file_root_prefix set to "Websites/MySite.com/LDM"

Hmmm... still not working. Looks like the only way I'm going to figure this out is if I can browse the server's file system to see where these folders and files are ending up.
  • If I set local_file_root_prefix to "Websites/MySite.com/LDM" it accepts it but the directory isn't where it should be (can't find it).
  • If I set local_file_root_prefix to "Websites/MySite.com/wwwroot/LDM" it accepts it but the directory still can't be found.
  • If I set local_file_root_prefix to "/Websites/MySite.com/wwwroot/LDM" it accepts it and creates the directory where expected (on site). So it seems the leading forward-slash is needed.
  • If I set local_file_root_prefix to "/Websites/MySite.com/LDM" it complains that it can't write to that location.
My guess at this point is that I need the leading forward-slash but that I have a permissions issue. I'll talk with my hosting provider about what can be done on this.

Another odd thing I ran into. When I go to the Add an Entity page while signed in as an admin and click the "Uploadable filetypes and size limits" down-arrow below the Browse button it says my size limit is 2 Mbytes. If I do the same with a standard user account it say 47.68 Mbytes. Same file type in both instances. I set the attachment size for the file type to 50000000 in the vB CP. I don't know why it is displaying 2mb for an administrator and 47.68 mb for a regular user. Either way, if I select a file over 2mb the upload bar goes red and it says file too big. This may be due to the PHP max upload limit on my server. But I don't understand why an admin is getting a different max upload in the drop-down than a regular user. I can't find where in the permissions I might have screwed this up.

AndrewD 08-08-2009 09:20 AM

Quote:

Originally Posted by Zookie (Post 1863443)
Hmmm... still not working. Looks like the only way I'm going to figure this out is if I can browse the server's file system to see where these folders and files are ending up.
  • If I set local_file_root_prefix to "Websites/MySite.com/LDM" it accepts it but the directory isn't where it should be (can't find it).
  • If I set local_file_root_prefix to "Websites/MySite.com/wwwroot/LDM" it accepts it but the directory still can't be found.
  • If I set local_file_root_prefix to "/Websites/MySite.com/wwwroot/LDM" it accepts it and creates the directory where expected (on site). So it seems the leading forward-slash is needed.
  • If I set local_file_root_prefix to "/Websites/MySite.com/LDM" it complains that it can't write to that location.
My guess at this point is that I need the leading forward-slash but that I have a permissions issue. I'll talk with my hosting provider about what can be done on this.

I ran a test of a windows iis server. Without the leading slash, it seems that the directory is created in your forums directory, which is not what you want...

Simon Lloyd 08-14-2009 12:08 PM

Hi Andrew, sorry to post an inane question but i checked the wikki (maybe not well enough) but i couldn't find how to restore the My Ldm uploads / downloads to the public profiles, they were there before upgrade to 2.3.0 (im using 3.8.4) but not now?, everything else seems fine, the user profile fields are there so its odd.

Can you advise/help?

AndrewD 08-14-2009 01:29 PM

Quote:

Originally Posted by Simon Lloyd (Post 1867104)
Hi Andrew, sorry to post an inane question but i checked the wikki (maybe not well enough) but i couldn't find how to restore the My Ldm uploads / downloads to the public profiles, they were there before upgrade to 2.3.0 (im using 3.8.4) but not now?, everything else seems fine, the user profile fields are there so its odd.

Can you advise/help?

Not sure - I'm surprised that there is a problem - my test system with ldm 2.3.0 and vb 3.8.4 is showing the user profile fields fine.

Just to check the obvious - have you looked at the profile_ldmactivity setting on the LDM admin settings page.

Get back to me if this is not the problem - I imagine I will need access to your site.

Simon Lloyd 08-14-2009 01:34 PM

Thanks andrew its set to yes!, i'll pm you full access in the next few minutes and you can look at your leisure :)

msnhockey 08-21-2009 11:45 PM

Hi.. i have installed this product and the extra swfuploader

I am having trobles getting .swf videos to show. they upload no prob but when i view i get this

video not found
http://www.theufhl.com/forum/local_s...hp?action=stre

I also get white blank pages on only the mass edit pages also anyway to get an image from the video to show as a thumbnail

any help or tips is appriciated


All times are GMT. The time now is 03:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02011 seconds
  • Memory Usage 1,981KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (42)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete