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 09-25-2006 08:03 PM

Quote:

Originally Posted by Yorixz
Two things that I couldn't find yet, which I'm really wondering about are; is this hack 'bandwidth-stealing-proof' when you enable guest transfers

Not sure what you mean. If you enable downloads by guests, then anyone can download. However, there is the possibility to set bandwidth/download limits per usergroup (e.g. 5Mb, 25 files per day). For guest users, consumption is are determined per ip address. For logged in users, it is determined per username.

Quote:

Originally Posted by Yorixz
does it allow you to automatically create topics for added downloads (rather than having a comments-like thing.

There's a plugin provided as an 'extra' that automatically creates a thread when a new entry is added / accepted by the moderator.

ravi 09-25-2006 11:48 PM

AndrewD you are a MAESTRO PHP CODER
I have seen complex VB modifications before but this is Huh!!
HaTTs Off To You and thank you very much.

I was never inspired by mods to VB and I prefered to use it as it is. But now I love to use your system. You know what this is my first post here in 2+ years :D

Zowners 09-26-2006 01:56 AM

Is this like the links mod for SMF RC3? If so do you have one for 3.6.1? Thank you. :=)

ravi 09-26-2006 01:59 AM

I have installed this addon now, I have a small issue with the way links to ldm entry in auto created thread are opening new windows. I am using the autocreate_2way_plugin. Link created to the thread in ldm entry is opening in the parent window itself, I love this link opening in parent window.
Now my request is can we autocreate threads with links to ldm entries that open in same window and not new windows. I think as the links and download system is an in site, in domain thing and there is no need of opening new windows as users can browse through the forum using the links in the navbar itself and also browsers back and forward buttons.
Andrew I really appreciate your help, you have done so much with this addon.

AndrewD 09-26-2006 05:01 AM

Quote:

Originally Posted by ravi
I have installed this addon now, I have a small issue with the way links to ldm entry in auto created thread are opening new windows. I am using the autocreate_2way_plugin. Link created to the thread in ldm entry is opening in the parent window itself, I love this link opening in parent window.
Now my request is can we autocreate threads with links to ldm entries that open in same window and not new windows. I think as the links and download system is an in site, in domain thing and there is no need of opening new windows as users can browse through the forum using the links in the navbar itself and also browsers back and forward buttons.
Andrew I really appreciate your help, you have done so much with this addon.

Thanks for your kind words.

I think the easiest way to have the thread-link open in the same window is as follows:

a) Create a "custom bbcode" (vb/admin) called LURL, with the following as the replacement:
Code:

<a href="{option}">{param}</a>
b) Edit (vb/admin) the phrase ldm_thread_create_body and change the sequence
Code:

To check it out, visit [ url={3}]{1}[/url ]
to
Code:

To check it out, visit [lurl={3}]{1}[/lurl]
ie change the url tag to a lurl tag

One point to note. Standard vbulletin handling of the url tag includes checks to stop hackers putting rogue jumps with javascript, etc, onto your board. A custom bbcode does not include these checks. (There is a way to cope with this, but I haven't time to do this at the moment.)

Yorixz 09-26-2006 05:15 AM

Quote:

Originally Posted by AndrewD
Not sure what you mean. If you enable downloads by guests, then anyone can download. However, there is the possibility to set bandwidth/download limits per usergroup (e.g. 5Mb, 25 files per day). For guest users, consumption is are determined per ip address. For logged in users, it is determined per username.

I'm sorry, I should have said it somewhat clearer, I was aiming at hotlinking to files, but it seems that this wont work.

Quote:

There's a plugin provided as an 'extra' that automatically creates a thread when a new entry is added / accepted by the moderator.
Alright, thanks a lot, for both your answer and this superduper mod ;)

ravi 09-26-2006 08:20 PM

Thank you Andrew for the custom bbcode it works like a charm, regarding the implications I will take a chance till I find some solution or till you comeup with a solution.

I don't know whether I have done right or wrong, I have tried to edit the phrase ldm_thread_create_body, but I could not edit it other than adding a translation it didn't worked even after doing that, changing sequence didn't found that option so I deleted the translation I created from the phrase table ia phpmyadmin. I have edited the original phrase phrase ldm_thread_create_body in database from
PHP Code:

new entry has been added to {4Description: {2To check it outvisit [url={3}]{1}[/url

PHP Code:

new entry has been added to {4Description: {2To check it outvisit [lurl={3}]{1}[/lurl

Now everything is working as intended and links in auto created threads are opening in same window. I hope no problems arise because of my phrase translation deletion from the database :confused:

|oR|Greg 09-27-2006 05:52 PM

Something I came up with... In the FORUMDISPLAY template whether or not a certain forum should have links to creating new LDM entries... just like the New Thread button, it's limited to the forums you specify. I have attached my buttons, they're ugly, but they're all I could do in short time.

Place the code right after:

Code:

<if condition="$show['newthreadlink']">
You add:

Code:

<if condition="in_array($forumid, array(25,0,0))">
<a href="local_links.php?action=addlink&catid=8" rel="nofollow"><img src="$stylevar[imgdir_button]/new_video.gif" alt="Add New Video Entry" border="0" /></a>
&nbsp;<a href="local_links.php?action=addlink&catid=7" rel="nofollow"><img src="$stylevar[imgdir_button]/new_audio.gif" alt="Add New Audio Entry" border="0" /></a>&nbsp;</if>

Where 25 is the number of the forum you want the link(s) to appear in.

LIVE EXAMPLE

There is probably an easier way of doing this without the array piece, but it works... so.

bashy 09-28-2006 05:47 PM

Hi, I am getting this error when i try to add the image folders

The following setting(s) are invalid
file_icons_dir : http://www.bashys-place.com/forums/i...wnloadmanager/
Cannot find http://www.bashys-place.com/forums/i...wnloadmanager/

Any advice please, i get the same for the thumbs as well, this is the url ive put
http://www.bashys-place.com/forums/i...ownloadmanager its also set to 777

I am also seeing this in the Key Settings, Low value for MySQL wait_timeout, whats this mean and is there a way to sort it please?

AndrewD 09-28-2006 07:09 PM

Quote:

Originally Posted by bashy
Hi, I am getting this error when i try to add the image folders

The following setting(s) are invalid
file_icons_dir : http://www.bashys-place.com/forums/i...wnloadmanager/
Cannot find http://www.bashys-place.com/forums/i...wnloadmanager/

Any advice please, i get the same for the thumbs as well, this is the url ive put
http://www.bashys-place.com/forums/i...ownloadmanager its also set to 777

You don't need the full url. Just give these relative to your forums dir, i.e. /images/downloadmanager

Quote:

Originally Posted by bashy
I am also seeing this in the Key Settings, Low value for MySQL wait_timeout, whats this mean and is there a way to sort it please?

wait_timeout is the length of time that MySQL on your web server waits before dropping a connection to the database. If your web server has a very short value for this parameter, then you may experience error messages with large file downloads, because these take longer than wait_timeout seconds to complete. I've tried to overcome this problem in version 2.2.6, but the fix creates new problem. This message is just a warning - you can overcome it by changing the parameters for MySQL, but most people don't have access to these parameters.


All times are GMT. The time now is 07:37 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.02140 seconds
  • Memory Usage 1,767KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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