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)

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).


All times are GMT. The time now is 10:22 AM.

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.03776 seconds
  • Memory Usage 1,761KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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