vb.org Archive

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

RebeccaK 03-23-2008 07:08 AM

Quote:

Originally Posted by AndrewD (Post 1472275)
Let me take a look - quickest way! If you can resend me a username/passwd.

will do!

AndrewD 03-23-2008 07:54 AM

Quote:

Originally Posted by RebeccaK (Post 1472303)
will do!

Well, I took a look and have uploaded an mp3 and wma file into your music category without problems. They both play fine with both Firefox and Internet Explrer.

The entry that is showing no link (I'm every woman) has no url or upload associated with it. You've set *allow_null_links * on the admin page, so if someone does an 'add entry' without specifying either a url or upload, LDM will accept it

Am I missing something - how were you trying to add the music files?

RebeccaK 03-23-2008 02:52 PM

Quote:

Originally Posted by AndrewD (Post 1472317)
Well, I took a look and have uploaded an mp3 and wma file into your music category without problems. They both play fine with both Firefox and Internet Explrer.

The entry that is showing no link (I'm every woman) has no url or upload associated with it. You've set *allow_null_links * on the admin page, so if someone does an 'add entry' without specifying either a url or upload, LDM will accept it

Am I missing something - how were you trying to add the music files?

Thank you again for your assistance!

Both the MP3 and the wma I tried to upload are from by computer files. Is there some other way I should be doing this?

AndrewD 03-23-2008 05:04 PM

Quote:

Originally Posted by RebeccaK (Post 1472508)
Thank you again for your assistance!

Both the MP3 and the wma I tried to upload are from by computer files. Is there some other way I should be doing this?

You can provide access to the files either by using the 'upload' box or by entering the filename in the 'url' box. The second way will only work if the files are within the space allowed by your LDM settings *local_file_root* and *local_file_root_prefix*. On your site, these are set so that LDM expects local files to be in a directory that is within the web server space. This is explained in the online wiki. Send me a PM if its unclear what I'm saying.

bainsey 03-23-2008 05:40 PM

Since installing this i keep getting an error message saying that i have made a duplicate post, along with all the other members, anyone know the error?

AndrewD 03-23-2008 07:01 PM

Quote:

Originally Posted by bainsey (Post 1472626)
Since installing this i keep getting an error message saying that i have made a duplicate post, along with all the other members, anyone know the error?

not seen this before - have you enabled the 'autocreate' feature in LDM? That's all I can think of.

0ptima 03-25-2008 12:29 AM

One of my users, Starvin' Marvin, gets the following error when trying to insert a new link

Quote:

Username Starvin' Marvin not recognised

The problem is due to the apostrophe ( ' ) in his name

AndrewD 03-25-2008 04:59 AM

Quote:

Originally Posted by 0ptima (Post 1473753)
One of my users, Starvin' Marvin, gets the following error when trying to insert a new link




The problem is due to the apostrophe ( ' ) in his name

Indeed, your diagnosis is correct. There is a patch available in post 1450805

hydn 03-25-2008 03:51 PM

We would like to be able to accommodate Over the air downloads of jad and jar files. Both files would need to be uploaded and one be able to call the other when accessed for download. possible?

totoy4 03-25-2008 09:22 PM

Quote:

Originally Posted by Rochndil (Post 1383769)
Good morning!

I've got a rather odd problem, and while it's more annoying than anything else, I'd like to clear it up if possible.

I'm new to vB so this may well be based on my own ignorance. I've got a vB 3.6.8.2 board up and running, and I've got LDM 2.2.8 installed and working fine. The issue is that each user, even after signing into vB, has to sign in AGAIN to access any category in LDM (the link to the category LIST seems to work fine). However, once this second sign-in is completed, the cookie(?) appears to be set and stable for that session, and possibly indefinitely.

My users aren't very technically savvy, so if possible I'd like to prevent the necessity for a double sign-in. If there is any specific information about my system you need, please let me know.

Thank you for your help!

I can also be reached directly at my work address, alan.martin (at) mightyautoparts.com

Alan Martin.


Hi Andrew,
Did you manage to solve this issue ? I am facing the same problem on my board, users have to log twice to connect to LDM.
Cheers.

tamborinegal 03-25-2008 11:10 PM

Hi Andrew, I am using 2.2.7 and it has been working perfectly for quite a while now but today when I went to administer link, I got the error

Warning: Cannot use a scalar value as an array in /local_links_admin.php on line 343

Everything else seems to be working as normal. Do you have any idea why this would have started happening?

Thanks

Clancy

0ptima 03-25-2008 11:30 PM

Quote:

Originally Posted by AndrewD (Post 1473898)
Indeed, your diagnosis is correct. There is a patch available in post 1450805

Thanks for providing the patch.

ilanyon 03-26-2008 12:01 AM

Hi,

I have vbulletin 3.6.7 and Links/Download Manager v2.2.8 installed. I have the whole site running as a https server. I can download files in firefox with no problems but they will not download in Internet Explorer 7.

Any ideas as this is driving me crazy?

Regards,

Ian

AndrewD 03-26-2008 04:19 AM

Quote:

Originally Posted by tamborinegal (Post 1474605)
Hi Andrew, I am using 2.2.7 and it has been working perfectly for quite a while now but today when I went to administer link, I got the error

Warning: Cannot use a scalar value as an array in /local_links_admin.php on line 343

Everything else seems to be working as normal. Do you have any idea why this would have started happening?

Thanks

Clancy

It's a combination of reasons - partly sloppy coding by me. I think you must have installed another hack recently which is setting a variable ($forum) that LDM uses.

You can get rid of the warning as far as LDM is concerned by editing local_links_admin.php and adding the line
Code:

$forum = array();
immediately before line 343

But it would be worth find out out which hack has added this stray variable in case we're leaving problems for the future.

AndrewD 03-26-2008 04:31 AM

Quote:

Originally Posted by ilanyon (Post 1474644)
Hi,

I have vbulletin 3.6.7 and Links/Download Manager v2.2.8 installed. I have the whole site running as a https server. I can download files in firefox with no problems but they will not download in Internet Explorer 7.

Any ideas as this is driving me crazy?

Regards,

Ian

Not sure - I've just tried this for myself by setting my own site as an https server, and downloads work fine with both IE and firefox.

Any further information you can offer? Have you tested what happens if you make the site available as http and access that way, i.e. is this a problem with https or with IE?

ilanyon 03-26-2008 06:09 AM

Quote:

Originally Posted by AndrewD (Post 1474745)
Not sure - I've just tried this for myself by setting my own site as an https server, and downloads work fine with both IE and firefox.

Any further information you can offer? Have you tested what happens if you make the site available as http and access that way, i.e. is this a problem with https or with IE?

Hi,

If i copy the url out and make it a http://...... line it works fine. The rest of the site works fine under http and https, it is just the links and download manager that has the problem.

Ian

AndrewD 03-26-2008 06:29 AM

Quote:

Originally Posted by ilanyon (Post 1474763)
Hi,

If i copy the url out and make it a http://...... line it works fine. The rest of the site works fine under http and https, it is just the links and download manager that has the problem.

Ian

May I take a look at your site? Send me a PM with account details if so.

ilanyon 03-26-2008 09:30 AM

Quote:

Originally Posted by AndrewD (Post 1474772)
May I take a look at your site? Send me a PM with account details if so.

thanks Andrew,
site www.aipol.org pm sent with account details.

Cheers,

Ian

AndrewD 03-26-2008 09:46 AM

Quote:

Originally Posted by ilanyon (Post 1474834)
thanks Andrew,
site www.aipol.org pm sent with account details.

Cheers,

Ian

Try the following:

Internet Explorer/Tools/Internet Options/Advanced/

Scroll down to Security

Set the option 'Do not save encrypted files to disk'

That worked for me.

Try a Google search for "cannot download file could not be written cache" - this seems a widespread problem when downloading pdf files.

hydn 03-26-2008 03:52 PM

We would like to be able to accommodate Over the air downloads via mobileof jad and jar files. Both files would need to be uploaded and one be able to call the other when accessed for download. possible?

AndrewD 03-26-2008 04:09 PM

Quote:

Originally Posted by hydn (Post 1475097)
We would like to be able to accommodate Over the air downloads via mobileof jad and jar files. Both files would need to be uploaded and one be able to call the other when accessed for download. possible?

Saw this post yesterday :) Not sure I understand the consequences which is why I had not answered yet :)

tamborinegal 03-27-2008 09:55 AM

Quote:

Originally Posted by AndrewD (Post 1474742)
It's a combination of reasons - partly sloppy coding by me. I think you must have installed another hack recently which is setting a variable ($forum) that LDM uses.

You can get rid of the warning as far as LDM is concerned by editing local_links_admin.php and adding the line
Code:

$forum = array();
immediately before line 343

But it would be worth find out out which hack has added this stray variable in case we're leaving problems for the future.

Thanks Andrew,

I did that and then it threw up the same error at line 689. I did the same for that line and that fixed it. I also had the problem when clicking the Moderate link. I fixed it in two places that needed changing and all is well now.

I think I have only installed vbispy recently and that's not a product. so I don't think that would have caused the problem. If I remember installing anything else I'll let you know.

Thanks again,

Clancy

Ophelia 03-28-2008 03:34 PM

Hi Andrew.

We would like to add to Joomla the function of showing the most recently added thing to a category.

I have a module installed now that allows you to just copy/paste PHP, HTML, JS, CSS into it and it will show the code in that module. Is there specific code that I can use that will grab either the text link or the image from the most recently added item to a category?

Thank you Andrew!

CamJM 03-31-2008 05:49 AM

Just wondering if the vbAdvanced modules work on vbA Dynamics the same way they do on the CMPS.

josiespencer 03-31-2008 05:49 PM

Heya, Andrew! I haven't been here to yank your chain for awhile.

I have a problem with your amazing mod - some of my users seem to be able to download more than their daily allowance. Here is an example:

http://uber-goober.com/myPictures/Downloads.png
http://uber-goober.com/myPictures/Downloads2.png
http://uber-goober.com/myPictures/Downloads3.png

Any clue?

AndrewD 04-01-2008 02:28 AM

Quote:

Originally Posted by josiespencer (Post 1479264)
Heya, Andrew! I haven't been here to yank your chain for awhile.

I have a problem with your amazing mod - some of my users seem to be able to download more than their daily allowance. Here is an example:

Any clue?

Not off the top of my head. Have you taken a look at what the LDM admin thinks they are downloading? - ldm/admin/hits and then use the menus and links to drill down and see what the user is recorded as accessing. Have you also tried creating a new user in this group and seeing what happens when you try to go over the allowance limit?

It may be a real problem with accesses or it may just be something strange in the presentation of the hits

**Edited**

After looking at the code, it's possible that the report given on the LDM/admin/bandwidth page is not accurate. Not all 'hits' count against allowances - only those which actually require LDM to take control of the file transfer. So accesses to offsite links are not actually 'countable' against the allowances. I think the allowance rules are working correctly, but am ready to be proved wrong.

Ophelia 04-03-2008 02:20 AM

Hi Andrew :) I posted about wanting the download manager to show up in Joomla. Is this possible? Hope you're have a great day!!

AndrewD 04-03-2008 04:05 AM

Quote:

Originally Posted by Ophelia (Post 1481585)
Hi Andrew :) I posted about wanting the download manager to show up in Joomla. Is this possible? Hope you're have a great day!!

Sorry - haven't had a chance to think about this - will try to give you an answer at the weekend.

gibigbig 04-03-2008 07:17 AM

great modification, works in this forum perfectly!
everything was as explained in this post, no hacks involved and works in vB 3.6.8 Level Patch 2.
the admin panel was a bit confusing though :P

AndrewD 04-07-2008 04:25 AM

Quote:

Originally Posted by Ophelia (Post 1476881)
Hi Andrew.

We would like to add to Joomla the function of showing the most recently added thing to a category.

I have a module installed now that allows you to just copy/paste PHP, HTML, JS, CSS into it and it will show the code in that module. Is there specific code that I can use that will grab either the text link or the image from the most recently added item to a category?

Thank you Andrew!

If I understand correctly, a php file in your main forums directory (let's call it ldmgrabber.php) with this content:

PHP Code:

<?php

require_once('./global.php');
require_once(
DIR '/includes/local_links_init.php');
require_once(
DIR '/includes/local_links_include.php');
require_once(
DIR '/includes/local_links_vbafunc.php');

$pagenumber max(intval($_REQUEST['ldmnew']), 1); 

$filter    = array("link.linkmoderate = 0");
$order    "linkdate DESC ";

$show_catname 1;

list (
$links$nhits$q) =
    
ldm_vba_links($filter0$order"adv_portal_custom_ldm_new_one",
        
"",
        
10// number of entries to show
        
1// entries per line
        
0,
        
1);

$collapseobj_custom_ldm_hot $vbcollapse['collapseobj_custom_ldm_new'];
$collapseimg_custom_ldm_hot $vbcollapse['collapseimg_custom_ldm_new'];

eval(
'$content .= "' fetch_template('adv_portal_custom_ldm_new') . '";');
unset(
$filter$order$links$nhits$q$collapseobj_custom_ldm_hot$collapseimg_custom_ldm_hot);

echo 
"<table>$content</table>";

?>

then do a call to yourforum/ldmgrabber.php

This will deliver a table set out rather like the block in vbadvanced (actually, this is pretty well the code for the vbadvanced module).

jamesf4218 04-07-2008 07:18 AM

Hello. I have installed your product which works fine.

One small thing is that my YouTube links do not transform into embedded media like they do on the rest of the site.

I installed this to make links automatically turn into embedded videos but for some reason they don't when used with your system.

Any idea why?

Thanks

AndrewD 04-07-2008 04:33 PM

Quote:

Originally Posted by jamesf4218 (Post 1485044)
Hello. I have installed your product which works fine.

One small thing is that my YouTube links do not transform into embedded media like they do on the rest of the site.

I installed this to make links automatically turn into embedded videos but for some reason they don't when used with your system.

Any idea why?

Thanks

I haven't tried that addon, but I imagine that it isn't set up to work together with LDM. I'll take a look and see if I can work out why.

There is a similar flash_sites 'extra' for LDM in the release

AndrewD 04-07-2008 06:23 PM

Quote:

Originally Posted by jamesf4218 (Post 1485044)
Hello. I have installed your product which works fine.

One small thing is that my YouTube links do not transform into embedded media like they do on the rest of the site.

I installed this to make links automatically turn into embedded videos but for some reason they don't when used with your system.

Any idea why?

Thanks

I've checked - AME works in part with LDM. As far as I can see, the hack has two parts to it: a) during the creation of a post, it looks for url bbcodes that match one of its video sites and it replaces these with ame bbcodes; b) during display of the posts (or anything else where bbcodes are allowed), it processes these ame bbcodes to create the embedded the video player.

The second part works fine inside LDM - i.e. if you put a sequence such as
Code:

[ame]http://www.youtube.com/watch?v=yLmvsqL1f-E[/ame]
in the description in LDM, it will convert just fine into a video.

However, if you put the same thing in url tags, it won't carry out the first stage of the processing because AME does not include the necessary hooks.

djdixie 04-08-2008 02:20 AM

i can some1 please set up this modd for me, i cant pay but i can give you free hosting with free shoutcast

Ophelia 04-10-2008 03:34 PM

Hi Andrew,

I'm having some issues with the Joomla code.

I took what you gave above and placed into a file called ldmgrabber.php

I uploaded it into my Forum directory.

I then created a test.php file with this code:

Code:

<?php
?>
<HTML>
<HEAD>
</HEAD>
<BODY>

<TD>
<TABLE>
<TR>
<TD>
<p align="center"><?php include ('forum/ldmgrabber.php'); ?><br><font size="1"><b>newest uploaded layout</b></font>
</TD>
</body>
</HTML>

I get this error :(

Code:

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home//public_html/forum/ldmgrabber.php on line 3

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home//public_html/forum/ldmgrabber.php on line 3

What am I doing wrong :(

AndrewD 04-10-2008 07:53 PM

Quote:

Originally Posted by Ophelia (Post 1487547)
Hi Andrew,

I'm having some issues with the Joomla code.

I took what you gave above and placed into a file called ldmgrabber.php

I uploaded it into my Forum directory.

I then created a test.php file with this code:

Code:

<?php
?>
<HTML>
<HEAD>
</HEAD>
<BODY>

<TD>
<TABLE>
<TR>
<TD>
<p align="center"><?php include ('forum/ldmgrabber.php'); ?><br><font size="1"><b>newest uploaded layout</b></font>
</TD>
</body>
</HTML>

I get this error :(

Code:

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home//public_html/forum/ldmgrabber.php on line 3

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home//public_html/forum/ldmgrabber.php on line 3

What am I doing wrong :(

The error is saying that the code is being executed from another directory than forum. You probably need a line of code to change into the forums directory, but without a Joomla installation, I'm not in a position to help.

Ophelia 04-10-2008 08:06 PM

I couldn't get this working in Joomla so I tried to do it like we do with Photopost, and it's just on a .php page outside of everything.

Here is the page that is calling ldmgrabber.php

So right now, Joomla isn't even a variable.

To make it clear where everything is:

ldmgrabber.php is in /forum
the index.php is in the root directory.

I can move either anywhere it needs to go.

AndrewD 04-11-2008 03:25 AM

Quote:

Originally Posted by Ophelia (Post 1487754)
I couldn't get this working in Joomla so I tried to do it like we do with Photopost, and it's just on a .php page outside of everything.

Here is the page that is calling ldmgrabber.php

So right now, Joomla isn't even a variable.

To make it clear where everything is:

ldmgrabber.php is in /forum
the index.php is in the root directory.

I can move either anywhere it needs to go.

To be honest, there's too many variables here that are outside my control. I also realise that I've given you 2.2.9 code and you're running version 2.2.8. If you provide me with admin + ftp access to your site, I'll try to get this working and then we can see if it's what you actually wanted. But I am away this weekend and possibly out of contact next week.

idared 04-19-2008 09:48 PM

Hello,
i just installed and set up this great plugin, it fits my needs perfectly. Thank you for the hard work you put into this!

I have two questions, tried searching the thread but couldn't find the right answers:

1. I would like to show the thumbnails of the latest x entries (which in my setup would be either uploaded image files or video links) on the local_links homepage (and possibly the category pages). Can you give me the template snippet to add to the templates?

2. I set up my forumhome so that the local links main page and categories are subforums (act as forum set to no, with links to the relevant local links page). On the categories that don't have subcategories the latest entry is shown in "latest post" column on forumhome, but not on the categories that have subcategories (it shows no latest post because an upload into a subcat. doesn't trigger it). Is there a solution to this? (I saw that this has been mentioned here before but couldn't find an actual solution.)

Thank you for your help!

Edited to clarify the first question.

AndrewD 04-20-2008 05:12 AM

Quote:

Originally Posted by idared (Post 1494768)
Hello,
i just installed and set up this great plugin, it fits my needs perfectly. Thank you for the hard work you put into this!

I have two questions, tried searching the thread but couldn't find the right answers:

1. I would like to show the thumbnails of the latest x entries (which in my setup would be either uploaded image files or video links) on the local_links homepage (and possibly the category pages). Can you give me the template snippet to add to the templates?

2. I set up my forumhome so that the local links main page and categories are subforums (act as forum set to no, with links to the relevant local links page). On the categories that don't have subcategories the latest entry is shown in "latest post" column on forumhome, but not on the categories that have subcategories (it shows no latest post because an upload into a subcat. doesn't trigger it). Is there a solution to this? (I saw that this has been mentioned here before but couldn't find an actual solution.)

Thank you for your help!

Edited to clarify the first question.


Thanks

1) There is an addon in the LDM extras directory (filmstrip), which places a set of thumbnails on the page. In version 2.2.8, it only works within a category, highlighting entries in the current category. In version 2.2.9, I have extended this plugin to do what you are wanting for the base category as well. You control what it does using new settings added to to the LDM admin/settings page.

2) Just to be clear what you mean - do you want the forumhome display to flag the latest entry in any of the category's sub-categories? I think this can be achieved - I will have to take a look at the code.


All times are GMT. The time now is 04:49 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.04399 seconds
  • Memory Usage 1,888KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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