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 10-05-2007 12:21 PM

Quote:

Originally Posted by Willygsm (Post 1353369)
hi andrew thanks for reply, after set exe on attachment table. now when i try download, it show me , please look at the attachment.

That's a setting on the LDM admin page - you've probably disabled allow_remote_downloads

Willygsm 10-05-2007 03:49 PM

Quote:

Originally Posted by AndrewD (Post 1353440)
That's a setting on the LDM admin page - you've probably disabled allow_remote_downloads

thanks problem is solve :)

having new problem again. currently i have near 400gb files on same server but not inside the vb forum, how can i sync it to forum? coz add 1 link by 1 link will kill me :)

here i attach the screenshot


P.s - Sorry for poor english :)

AndrewD 10-05-2007 05:48 PM

Quote:

Originally Posted by Willygsm (Post 1353528)
thanks problem is solve :)

having new problem again. currently i have near 400gb files on same server but not inside the vb forum, how can i sync it to forum? coz add 1 link by 1 link will kill me :)

here i attach the screenshot


P.s - Sorry for poor english :)

Use the LDM category sync feature :) LDM/admin/settings - > sync section, then LDM/add category/sync

You say, not inside the vb forum - do you mean the files are held outside the web site file space? If so, then you have to modify the LDM file_root and file_root_prefix settings. All explained in the online wiki.

Alfa1 10-05-2007 07:30 PM

Quote:

Originally Posted by AndrewD (Post 1353265)
It's a bit difficult to help at a distance. $viewcatid is a variable, not an array, so you should make the test something like in_array($viewcatid, array (1,2,3,4,5)). If you've put this into the navbar template rather as plugins a la tabbar hack, this should work correctly within LDM. $viewcatid will be undefined outside LDM, so the test would give the answer 'false' in other parts of the board and not cause an error.

This works!!!

The only three things that I need to adjust, is to include the LDM main page & LDM's search page and prevent my forum tab to be active when the visiting LDM.

This is the code I have used for my forum tab:
PHP Code:

<if condition="THIS_SCRIPT=='index' OR in_array($foruminfo['forumid'], array(1 , 2, 3, 4 ,5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 175, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190))"><a href="index.php" title="Forum" id="mytab" class="tab2">Forum</a><else /><a href="http://www.mysite.com/test/index.php" title="Forum"  id="mytab" class="tab">Forum</a></if> 


itsblack 10-05-2007 07:47 PM

I want to move the statistic section to the right side, as this site did:
http://www.musicadigitale.net/forum/local_links.php

Can anyone help me? I guess I should edit the link_main template, but I don't know how. If possible, give me the complete code. Thanks a lot.

Willygsm 10-06-2007 05:21 AM

Quote:

Originally Posted by AndrewD (Post 1353576)
Use the LDM category sync feature :) LDM/admin/settings - > sync section, then LDM/add category/sync

You say, not inside the vb forum - do you mean the files are held outside the web site file space? If so, then you have to modify the LDM file_root and file_root_prefix settings. All explained in the online wiki.

hi andrew, i mean the files then i wan to sync is in the same server, it only held outside the forum folder. what should i do?

AndrewD 10-06-2007 05:39 AM

Quote:

Originally Posted by itsblack (Post 1353650)
I want to move the statistic section to the right side, as this site did:
http://www.musicadigitale.net/forum/local_links.php

Can anyone help me? I guess I should edit the link_main template, but I don't know how. If possible, give me the complete code. Thanks a lot.

This should get you started. As you say, its the links_main template. If just added an extra table with two columns when the statistics are to be displayed

AndrewD 10-06-2007 05:46 AM

Quote:

Originally Posted by Willygsm (Post 1353896)
hi andrew, i mean the files then i wan to sync is in the same server, it only held outside the forum folder. what should i do?

A) Go to the ldm/admin/settings, controls on synchronisation. switch it on and switch on sync_populate_categories and sync_populate_entries
B) Go to LDM main page. Create a new category. In the field 'synchronise with', enter the name of the top directory containing files you want to sync. For example, if you've got your downloads stored in http://yoursite/thisdir/thatdir, then enter /thisdir/thatdir in the field
C) that's it

When you now visit the category, it will spend a little time checking and syncing the directory and any subdirectories

Note that it will oly find filetypes that are in the vb attachments table, and you can further restrict these types using the ldm/admin/settings controls

AndrewD 10-06-2007 05:59 AM

Quote:

Originally Posted by Alfa1 (Post 1353636)
This works!!!

The only three things that I need to adjust, is to include the LDM main page & LDM's search page and prevent my forum tab to be active when the visiting LDM.

This is the code I have used for my forum tab:

When you are on the LDM main page, $viewcatid will be equal to -1
When you are viewing the results of a search, the variable $this_action will be equal to "show"
When you are inside LDM, $this_action is always set, and I imagine it's not set when you are in a forum

So I suggest you modify your forum tab code to say something like
PHP Code:

if condition="!$this_action and (THIS_SCRIPT=='index'  or in_array(..))">...</if> 

Your LDM search check could be

PHP Code:

if condition="$this_action=='show')">...</if> 

Your LDM main page check could be

PHP Code:

if condition="$this_action=='links') and $viewcatid<0">...</if> 


and so on

itsblack 10-06-2007 06:49 PM

Quote:

Originally Posted by AndrewD (Post 1353899)
This should get you started. As you say, its the links_main template. If just added an extra table with two columns when the statistics are to be displayed

I replace the links_main template with the attached code, unfortunately it doesn't work.

With the new template, the width of the main section was extended to 100%, that's OK, I can fix it. But the statistic still stayed under the main section. Just don't know what happened.


All times are GMT. The time now is 08:39 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.03614 seconds
  • Memory Usage 1,765KB
  • 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
  • (4)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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