vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

AndrewD 12-22-2005 01:25 PM

Quote:

Originally Posted by lanc3lot
Sorry to be a bug, but is something similar to EC Downloads 3.3?

Can i see some short of demo, from ppl that have installed this?

Something similar, I think !?

You can take a look at our site, http://www.eirma.org/f3/local_links.php

Alfa1 12-22-2005 01:37 PM

Yes, this is the problem.

harry1951 12-22-2005 01:56 PM

Allo Paris, ici le traduction hollandaise :rambo:

Wachtmeister 12-22-2005 01:57 PM

Sorry, can someone teach me about the following?

I have a default style for my forum called Style 3.5.0:

- Style 3.5.0
--- Sub-Style of 3.5.0
--- Sub-Style of 3.5.0 (fixed)
- Linklist

I now want the Links and Downloadmanager to use the Style "Linklist", not the default style "Style 3.5.0".

I can set this for each category, but the main script local_links.php always uses "Style 3.5.0".

I'm pretty sure, that i've setup LDM to use "Linklist" in version 2.05... I'm not able to tell LDM to use the Style "Linklist" only in every category and all pages. Isn't this possible?

Thank you very much for help.

Alfa1 12-22-2005 04:12 PM

How do I install the Dutch language file?

kjmz 12-22-2005 04:22 PM

Quote:

Originally Posted by AndrewD
Nice site! Is Winnepeg always so sunny?

The documentation on Apache's mod_rewrite describes the feature as "voodoo" ;) I'm not an expert - you might be better posting the question in a general Apache forum. However - I assume your server is running under linux? If Windows, you probably need a drivename somewhere.

You may find it helpful to include a RewriteLog statement in the .htaccess to give insight into what is going on - see http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

Nope but it sure does make it look like that.

Has anyone else hused .htaccess because I just can't figure it out. Is there anyway I can use http.conf?

Thanks because I can't figure this out.

harry1951 12-22-2005 04:29 PM

Quote:

Originally Posted by Alfa1
How do I install the Dutch language file?

Import it through language and phrases in your ACP

AndrewD 12-22-2005 05:17 PM

Quote:

Originally Posted by harry1951
Allo Paris, ici le traduction hollandaise :rambo:

Sorry, my friend - you've uploaded the wrong translation!

harry1951 12-22-2005 05:34 PM

sorry, wrong file...this one should be the good one...

Alfa1 12-22-2005 05:45 PM

I should have formulated my question better: I have installed the Dutch language pack for the forum. I want to add the Dutch language pack for the LDM. Do I add to or replace the Dutch language pack for the forum?

AndrewD 12-22-2005 05:46 PM

Quote:

Originally Posted by Alfa1
Yes, this is the problem.

The error mesage is triggered in two situations:

- If the code is unable to create a subdirectory in your uploads directory corresponding to the user who is making the upload
or
- If the code cannot move the uploaded file into that directory once it has created it.

You can check which case is causing the problem by looked in the directory you have specified as your uploads directory. It should contain subdirectories and sub-sub-directories with single digit names, e.g. for a user with userid 36, there should be a directory tree /uploads/3/6, etc.

If these exist, upload a file under your own admin id and check that a new file (it will have a random filename) appears where you expect. If it does, then check that you have given proper permissions to your uploads directory. If not, then try to discover where the files are actually being placed.

Have you, for example, changed the setting of local_file_root (LDM admin page)?

Let me know what you find out, in case there's a bug in LDM.

AndrewD 12-22-2005 06:04 PM

Quote:

Originally Posted by Alfa1
I should have formulated my question better: I have installed the Dutch language pack for the forum. I want to add the Dutch language pack for the LDM. Do I add to or replace the Dutch language pack for the forum?

You simply upload the Dutch translation on top of your existing language, i.e. you import it into the Dutch language via the VB admin cp

I'll now add this to the list of installers, so that in future, there is a single Dutch installation pack for LDM

harry1951 12-22-2005 06:10 PM

Quote:

Originally Posted by AndrewD
I'll now add this to the list of installers, so that in future, there is a single Dutch installation pack for LDM

Keep it also as a language pack because the belgians needs it as language-pack on top of the french installation...

kjmz 12-22-2005 06:21 PM

Quote:

Originally Posted by kjmz
Nope but it sure does make it look like that.

Has anyone else used .htaccess because I just can't figure it out. Is there anyway I can use http.conf?

Thanks because I can't figure this out.

Okay, I got the directory to redirect to the correct page but the URL doesn't stay Search Engine Friendly.

Here's my code so far:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^local_links/links/(.+)/(.+) /local_links.php?catid=$1&linkid=$2 [R]
RewriteRule ^local_links/links/(.+) /local_links.php?catid=$1 [R]
RewriteRule ^local_links/jump/(.+)/(.+) /local_links.php?action=jump&id=$1&catid=$2 [R]
RewriteRule ^local_links/jump/(.+) /local_links.php?action=jump&id=$1 [R]

The directory links to local_links/links/1 but it will redirect to locallinks.php?catid=1

Anyone know what to do?

AndrewD 12-22-2005 06:41 PM

Quote:

Originally Posted by harry1951
Keep it also as a language pack because the belgians needs it as language-pack on top of the french installation...

Pourquoi veux-je assister ces gens qui disent 'septante'?

AndrewD 12-22-2005 06:45 PM

Quote:

Originally Posted by kjmz
Okay, I got the directory to redirect to the correct page but the URL doesn't stay Search Engine Friendly.

Here's my code so far:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^local_links/links/(.+)/(.+) /local_links.php?catid=$1&linkid=$2 [R]
RewriteRule ^local_links/links/(.+) /local_links.php?catid=$1 [R]
RewriteRule ^local_links/jump/(.+)/(.+) /local_links.php?action=jump&id=$1&catid=$2 [R]
RewriteRule ^local_links/jump/(.+) /local_links.php?action=jump&id=$1 [R]

The directory links to local_links/links/1 but it will redirect to locallinks.php?catid=1

Anyone know what to do?

I set up a test site with the rewrite rules in my http.conf, as follows

Code:

<VirtualHost vb35>
        ServerName vb35
        DocumentRoot "C:/Documents and Settings/andrew/My Documents/Website/vb35"
RewriteEngine on
RewriteLog "c:/program files/apache group/apache/logs/rewrite.log"
RewriteRule local_links/links/(.+)/(.+) local_links.php?catid=$1&amp;linkid=$2 [R]
RewriteRule local_links/links/(.+)      local_links.php?catid=$1 [R]
RewriteRule local_links/jump/(.+)/(.+)  local_links.php?action=jump&amp;id=$1&amp;catid=$2 [R]
RewriteRule local_links/jump/(.+)      local_links.php?action=jump&amp;id=$1 [R]
</VirtualHost>

and this works fine for me.

Your code doesn't work in my http.conf, because of the carets at the start. Not sure if that helps you

harry1951 12-22-2005 06:47 PM

n'oubliez pas 'nenente....'

AndrewD 12-22-2005 06:56 PM

Quote:

Originally Posted by Wachtmeister
Sorry, can someone teach me about the following?

I have a default style for my forum called Style 3.5.0:

- Style 3.5.0
--- Sub-Style of 3.5.0
--- Sub-Style of 3.5.0 (fixed)
- Linklist

I now want the Links and Downloadmanager to use the Style "Linklist", not the default style "Style 3.5.0".

I can set this for each category, but the main script local_links.php always uses "Style 3.5.0".

I'm pretty sure, that i've setup LDM to use "Linklist" in version 2.05... I'm not able to tell LDM to use the Style "Linklist" only in every category and all pages. Isn't this possible?

Thank you very much for help.

From what I can see in the code I wrote over the summer, this is not currently possible:
a) the style resetting code checks for a positive category id, i.e. the base category will always show up in your default
b) there is no global setting

I'll add these to the list of things to do.

Andrew

AndrewD 12-22-2005 06:58 PM

Quote:

Originally Posted by kadafi_alive
Hi AndrewD,

Do you know how I can fix the report bug. The current format is:

user( mailto:user@hotmail.com ) has reported this link: http://www.domain.comlocal_links.php...d=403.\r\nThis is the reason that the user gave:\r\n\r\ntestest.

Sorry, I'm not sure what you are asking. Is the message wrong? It looks to me as if someone has set up a link that is missing at least one /? Or maybe I miss something

Alfa1 12-22-2005 07:22 PM

That already explains a lot. The directory's permissions needed to be adjusted. Now it works. That directory is a sub-directory of the local_file_root_prefix. I do not get the monitor_dir to scan a directory outside of the local_file_root_prefix.
Any idea on how to solve this?

BTW I just imported the Dutch Language file, but now users can choose between Dutch for the LDM & the forum, but not both. So they'll either get one part of the screen in Dutch or the other.

Wachtmeister 12-22-2005 07:46 PM

Quote:

Originally Posted by AndrewD
From what I can see in the code I wrote over the summer, this is not currently possible:
a) the style resetting code checks for a positive category id, i.e. the base category will always show up in your default
b) there is no global setting

I'll add these to the list of things to do.

Andrew

Thank you. very much!

Something like "Which style to use in LDM default" would do it, but you probalby understodd my question/wish :)

kadafi_alive 12-22-2005 08:56 PM

Quote:

Originally Posted by AndrewD
Sorry, I'm not sure what you are asking. Is the message wrong? It looks to me as if someone has set up a link that is missing at least one /? Or maybe I miss something

No. When someone reports a 'bad link', the format shows like that in my email.

kjmz 12-22-2005 09:40 PM

Quote:

Originally Posted by AndrewD
I set up a test site with the rewrite rules in my http.conf, as follows

Code:

<VirtualHost vb35>
        ServerName vb35
        DocumentRoot "C:/Documents and Settings/andrew/My Documents/Website/vb35"
RewriteEngine on
RewriteLog "c:/program files/apache group/apache/logs/rewrite.log"
RewriteRule local_links/links/(.+)/(.+) local_links.php?catid=$1&amp;linkid=$2 [R]
RewriteRule local_links/links/(.+)      local_links.php?catid=$1 [R]
RewriteRule local_links/jump/(.+)/(.+)  local_links.php?action=jump&amp;id=$1&amp;catid=$2 [R]
RewriteRule local_links/jump/(.+)      local_links.php?action=jump&amp;id=$1 [R]
</VirtualHost>

and this works fine for me.

Your code doesn't work in my http.conf, because of the carets at the start. Not sure if that helps you


I don't have http.conf all I have is .htaccess

GrendelKhan{TSU 12-23-2005 12:13 AM

SUGGESTION:

BULK UPLOADS!!!

:p :D

yessir 12-23-2005 01:50 AM

I tried searching this thread (it's long).

Does this extension handle link security by masking the download or link URL?

lanc3lot 12-23-2005 02:12 AM

Hello again, the following is mainly for users that use this hack, for have a Downloads Database :)
If u are any out there, please provide me a link of your forum so i can see how it works a bit (but only for a downloads database, not for the links part)

Thnx Andreas again, just searching it a bit more before installing :)

AndrewD 12-23-2005 04:07 AM

Quote:

Originally Posted by kjmz
I don't have http.conf all I have is .htaccess

AS far as I know - if you are using apache - there must be an http.conf somewhere! Can you check what web server you are using?

I used your code in an (apache) .htaccess and it works fine for me.

AndrewD 12-23-2005 04:10 AM

Quote:

Originally Posted by roscoe36
I tried searching this thread (it's long).

Does this extension handle link security by masking the download or link URL?

Absolutely. You can also turn the masking off if you need to.

AndrewD 12-23-2005 04:14 AM

Quote:

Originally Posted by Alfa1
That already explains a lot. The directory's permissions needed to be adjusted. Now it works. That directory is a sub-directory of the local_file_root_prefix.

good!

Quote:

Originally Posted by Alfa1
I do not get the monitor_dir to scan a directory outside of the local_file_root_prefix. Any idea on how to solve this?

I need to do some work on that code - let me think about it.

Quote:

Originally Posted by Alfa1
BTW I just imported the Dutch Language file, but now users can choose between Dutch for the LDM & the forum, but not both. So they'll either get one part of the screen in Dutch or the other.

How did you do the import? When you import the Dutch LDM phrases, you must tell VB to overwrite the existing language, not create a new one. (Since the file only has new phrases, it doesn't actually overwrite anything.) I have set up my test board this way with everything correctly in Dutch.

Alfa1 12-23-2005 09:28 AM

Quote:

Originally Posted by AndrewD
You simply upload the Dutch translation on top of your existing language, i.e. you import it into the Dutch language via the VB admin cp

Ah, I misunderstood you and imported it as a seperate language. Thanks.

AndrewD 12-23-2005 10:27 AM

Quote:

Originally Posted by kadafi_alive
No. When someone reports a 'bad link', the format shows like that in my email.

Thanks - there was a small bug in the code, which will be fixed with the next release

harry1951 12-23-2005 11:01 AM

Andrew question: Are the menuitems:
Links and Downloads
Settings
Permissions
Categories
Statistics
Import and Export
also phrased, because I can't find them in Language and phrases

AndrewD 12-23-2005 11:06 AM

Quote:

Originally Posted by harry1951
Andrew question: Are the menuitems:
Links and Downloads
Settings
Permissions
Categories
Statistics
Import and Export
also phrased, because I can't find them in Language and phrases

Yes, the menu items are phrased with phrase names ll_menu_XXX, as follows:

ll_menu_addcat Add Category
ll_menu_addlink Add Link
ll_menu_admcats Categories
ll_menu_admimex Import and Export
ll_menu_admin Administer
ll_menu_admperm Permissions
ll_menu_admset Settings
ll_menu_admstat Statistics
ll_menu_cat Categories
ll_menu_editcat Edit Category
ll_menu_home Home Category
ll_menu_mod Moderate
ll_menu_search Search
ll_menu_show Show

etc

harry1951 12-23-2005 11:24 AM

Yes, they have been translated, but I mean the items on the blue-buttons in the ACP. These 6 I can not find

AndrewD 12-23-2005 11:29 AM

Quote:

Originally Posted by harry1951
Yes, they have been translated, but I mean the items on the blue-buttons in the ACP. These 6 I can not find

cpnav_xlinks.xml in the includes/xml subdirectory

harry1951 12-23-2005 11:45 AM

I saw that they were hard coded... Can you do it in the next release like this..
<navoption>
<phrase>Settings</phrase>
<link>../local_links_admin.php?set=settings.php?</link>
</navoption>
So it can be translated without changing the original code :)

AndrewD 12-23-2005 11:52 AM

Quote:

Originally Posted by harry1951
I saw that they were hard coded... Can you do it in the next release like this..
<navoption>
<phrase>Settings</phrase>
<link>../local_links_admin.php?set=settings.php?</link>
</navoption>
So it can be translated without changing the original code :)

I need to figure out how the xml files pick up phrases - there's a couple of other parts of VBulletin where I haven't figured out the phrasing process - probably straightforward.

Thanks

harry1951 12-23-2005 11:55 AM

I will modify it for you, test it and upload it here :)

lanc3lot 12-23-2005 02:06 PM

Hm, cant figured out how can i have a full image (and thumbnails) to the files. When i press edit or i add a new link, there is no any field to add one:(

Also, when someone who hasnt permission to see the files, goes there, maybe would be better to show a download link and when he press it, he have a page that saying that he is not registered therefore cant see the files:)

Thats all for now, great hack it seems till now:)

AndrewD 12-23-2005 02:30 PM

Quote:

Originally Posted by lanc3lot
Hm, cant figured out how can i have a full image (and thumbnails) to the files. When i press edit or i add a new link, there is no any field to add one:(

Go to the LDM admin settings page and set *link_imagesize* to a non-zero value. Then the image field will appear on the add link/edit link pages

Quote:

Originally Posted by lanc3lot
Also, when someone who hasnt permission to see the files, goes there, maybe would be better to show a download link and when he press it, he have a page that saying that he is not registered therefore cant see the files:)

Again, LDM admin:

Permissions *can_see_protected_links_on_portal* selected user groups can see all links/categories even if the forums-based permission denies them access.

Setting *protected_link* defines how the linkbit displays links that the user is not allowed to access.

You can use these to make everything visible and control what happens when unauthorised users try to access a link


All times are GMT. The time now is 03:56 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.04445 seconds
  • Memory Usage 1,855KB
  • 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
  • (27)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