vb.org Archive

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

AndrewD 02-24-2010 03:09 PM

Quote:

Originally Posted by andyv72 (Post 1990441)
hi Andrew...

you have pm...

Quote:

Originally Posted by E.T. (Post 1990449)
And also from me.., you've visit this site before :)

Thanks guys, now I understand the problem - I'd messed up a test on another php variable (allow_url_fopen), which is disabled on both of your sites.

Will try to post a fix this evening or tomorrow.

andyv72 02-24-2010 03:17 PM

Quote:

Originally Posted by AndrewD (Post 1990457)
Thanks guys, now I understand the problem - I'd messed up a test on another php variable (allow_url_fopen), which is disabled on both of your sites.

Will try to post a fix this evening or tomorrow.

Ok thanks :up::up:

mitch84 02-24-2010 04:59 PM

Quote:

Originally Posted by AndrewD (Post 1990434)
Are you saying that the vb admincp hangs with this screen displayed?

yes, Installation stops after this screen

obmob 02-24-2010 10:47 PM

Quote:

Originally Posted by AndrewD (Post 1990167)
I thought I'd fixed this. Did you re-install the product xml?

If you did, pls go to vb/admincp/products and plugins/plugin manager. Edit the Links and Downloads Manager - Add LDM to main vBulletin menu plugin attached to the process_templates_complete hook. After the line:

if (LDM_NAVBAR_LOCATION) {

add

echo THIS_SCRIPT;
echo "<br />";
echo LDM_LINKS_SCRIPT;
echo "<br />";

and save.

Run your main ldm script and let me know what gets displayed at the top of the screen. Then undo the edit to the plugin.

Thanks Andrew, I got this on top:

local_links
links

Trek 02-24-2010 10:57 PM

Quote:

Originally Posted by AndrewD (Post 1989653)
I'm not sure how easy this is to do - the vbulletin infrastructure keeps the navbar link and its submenus together.

One option would be to display the navbar entry only when inside LDM (I assume you've got a way to get into LDM in the first place). If this would suit you, I'll post an explanation.

Yes, that would be great. Thank you for your help!

mitch84 02-25-2010 02:16 AM

Quote:

Originally Posted by mitch84 (Post 1990372)
I can't install this product, after this screenshoot, nothing; I tried several times
thx

sorry, it's fixed but now another problem when I want download a file:

my set:
local_file_root is YES
local_file_root_prefix is glt

i upload my file, all work fine but when I want download it I've got this message:
Quote:

Local file system functions disabled via php's disable_functions - Local downloads not available
thank you

AndrewD 02-25-2010 03:51 AM

Quote:

Originally Posted by mitch84 (Post 1990902)
sorry, it's fixed but now another problem when I want download a file:

my set:
local_file_root is YES
local_file_root_prefix is glt

i upload my file, all work fine but when I want download it I've got this message:

thank you

Yes, we discovered this problem yesterday. There'll be a fix today.

mitch84 02-25-2010 04:36 AM

ok, thank you

AndrewD 02-25-2010 10:21 AM

Quote:

Originally Posted by Trek (Post 1990797)
Yes, that would be great. Thank you for your help!

Go to vb/admincp/products and plugins/plugin manager

Edit the "Links and Downloads Manager - Add LDM to main vBulletin menu" plugin attached to the "process_templates_complete" hook.

The standard code looks as follows:

Code:

        require_once(DIR . '/includes/local_links_defns.php');

        if (LDM_NAVBAR_LOCATION) {

                if (defined('THIS_SCRIPT') and
                                (
                          THIS_SCRIPT == LDM_LINKS_SCRIPT        or THIS_SCRIPT == 'local_links'
                        or THIS_SCRIPT == LDM_ACTION_SCRIPT        or THIS_SCRIPT == 'local_links_actions'
                        or THIS_SCRIPT == LDM_ADMIN_SCRIPT        or THIS_SCRIPT == 'local_links_admin'
                        or THIS_SCRIPT == LDM_SEARCH_SCRIPT        or THIS_SCRIPT == 'local_links_search'
                                )
                        ) {
// Highlight ldm tab when in LDM - LDM code will create the actual tab and navbar
                        $vbulletin->options['selectednavtab'] = 'ldm';
                }
                else {
// Create the tab, no navbar needed
                        $templater = vB_Template::create('links_navbar');
                        $templater->quickRegister(array(
                                'ldm_links_script'=>LDM_LINKS_SCRIPT,
                                ));
                        $template_hook[LDM_NAVBAR_LOCATION] .= $templater->render();
                }

        }

Just add comment signs (//) to five lines as follows:

Code:

        require_once(DIR . '/includes/local_links_defns.php');

        if (LDM_NAVBAR_LOCATION) {

                if (defined('THIS_SCRIPT') and
                                (
                          THIS_SCRIPT == LDM_LINKS_SCRIPT        or THIS_SCRIPT == 'local_links'
                        or THIS_SCRIPT == LDM_ACTION_SCRIPT        or THIS_SCRIPT == 'local_links_actions'
                        or THIS_SCRIPT == LDM_ADMIN_SCRIPT        or THIS_SCRIPT == 'local_links_admin'
                        or THIS_SCRIPT == LDM_SEARCH_SCRIPT        or THIS_SCRIPT == 'local_links_search'
                                )
                        ) {
// Highlight ldm tab when in LDM - LDM code will create the actual tab and navbar
                        $vbulletin->options['selectednavtab'] = 'ldm';
                }
                else {
// Create the tab, no navbar needed
//                        $templater = vB_Template::create('links_navbar');
//                        $templater->quickRegister(array(
//                                'ldm_links_script'=>LDM_LINKS_SCRIPT,
//                                ));
//                        $template_hook[LDM_NAVBAR_LOCATION] .= $templater->render();
                }

        }

I will try to provide a more 'friendly' way to achieve this effect in a later release. For the time being, keep in mind that you will have to re-apply the edits each time you upgrade LDM.

AndrewD 02-25-2010 10:51 AM

I've reuploaded version 3.0.2 with fixes to these reported problems:

a) Error message when trying to download or play a file when php setting allow_url_fopen is off

b) LDM admin settings not 'sticking' for the vbcms entries 'extra'; and 'show category' option not working for this and the vbcms thumbs 'extra'


All times are GMT. The time now is 04:00 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.01723 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_code_printable
  • (10)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
  • (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