vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - DownloadsII (https://vborg.vbsupport.ru/showthread.php?t=120122)

ishare 02-03-2008 11:49 AM

Is it possible to allow [html] in this mod ? I would like to let some usergroups to post html templates.

RS_Jelle 02-03-2008 12:09 PM

Quote:

Originally Posted by ishare (Post 1435281)
Is it possible to allow [html] in this mod ? I would like to let some usergroups to post html templates.

You can specify the extensions you want to allow for upload in the DownloadsII settings ;)

Edit: now I saw you mean [html] BBCode :p
This is possible for the description field (you've got a full vB text editor there). Raw HTML is also possible if you enable this for non-forum areas in your main vB settings, but this is of course not secure.

exportforce 02-03-2008 06:53 PM

Quote:

Originally Posted by REVHEAD (Post 1434962)
you entering downloads to the url, its downloads.php .

you need to add a shortcut in your navbar template manually.

I don't know what you're talking about.
I know how to get this to work...

I ask for implementation, that I can use PRE html.
And there is no "link" only a relative path.

RS_Jelle 02-03-2008 06:59 PM

Quote:

Originally Posted by exportforce (Post 1435565)
I don't know what you're talking about.
I know how to get this to work...

I ask for implementation, that I can use PRE html.
And there is no "link" only a relative path.

It's described in the Readme-Install.txt :

Quote:

Perform the following OPTIONAL template edit (only required if you want a 'Downloads' link in your navigation bar)

Find in navbar:

HTML Code:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
If you are running vBulletin 3.6.7 (or higher), you need to search for the following as it changed slightly:

HTML Code:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
Add below:

HTML Code:

<td class="vbmenu_control"><a href="downloads.php$session[sessionurl_q]">$vbphrase[ecdownloads_downloads]</a></td>


exportforce 02-03-2008 10:41 PM

I am NOT!!!!! asking how to add a link... I am not stupid :confused::confused::confused:
I ask, if you read my thread... If you could add the possibility that I can put the files into PRE! HTML

NOT: /var/www/webX/html/downloads/file.zip
BUT: /var/www/webX/downloads/file.zip

So the downloads can not be hotlinked or touched by web, except using the Script.
I would even pay if you would do it exclusive for me and in near future :)

RS_Jelle 02-03-2008 10:54 PM

Quote:

Originally Posted by exportforce (Post 1435680)
I am NOT!!!!! asking how to add a link... I am not stupid :confused::confused::confused:
I ask, if you read my thread... If you could add the possibility that I can put the files into PRE! HTML

NOT: /var/www/webX/html/downloads/file.zip
BUT: /var/www/webX/downloads/file.zip

So the downloads can not be hotlinked or touched by web, except using the Script.
I would even pay if you would do it exclusive for me and in near future :)

In this post you linked to a question of thecool444, which was about placing a link in the navbar. So I did read your post correctly :)

Custom paths will be supported in v6 ;)

@All users: closely watch this thread in the next couple of days if you are interesting in beta (or should I say alpha :p) testing v6.

setoshi 02-03-2008 10:58 PM

Is there a way to control the sorting of the files once they are in their databases? I want to order my files in ascending, numbered order but no matter what I do to the weighting, the order is not altered. The most recent file I upload will always be placed at the top of the database I uploaded it to. Any help?

Black Tiger 02-03-2008 11:03 PM

Quote:

NOT: /var/www/webX/html/downloads/file.zip
BUT: /var/www/webX/downloads/file.zip
You mean in /var/www/webX/downloads/file.zip in stead of
/var/www/webX/public_html/downloads/zip?
I don't even think this would work in version 6.:)
Because your webbrowser (and thus also the script!!!) can't read directory's outside or rather PRE your webdirectory, unless you would give read access to this directory for the script (thus webbrowser) which would be rather stupid in my opinion, if already possible because you need root rights to make this happen.

RS_Jelle 02-03-2008 11:07 PM

Quote:

Originally Posted by setoshi (Post 1435686)
Is there a way to control the sorting of the files once they are in their databases? I want to order my files in ascending, numbered order but no matter what I do to the weighting, the order is not altered. The most recent file I upload will always be placed at the top of the database I uploaded it to. Any help?

I guess you mean ordered ascending by title?

Open downloads.php
Find
PHP Code:

    if (!in_array($sortfield$sortfields))
    {
        
$sortfield 'date';
    } 

Replace with
PHP Code:

    if (!in_array($sortfield$sortfields))
    {
        
$sortfield 'name';
    } 

This is replaced with category based default sorting in v6.

Quote:

Originally Posted by Black Tiger (Post 1435691)
You mean in /var/www/webX/downloads/file.zip in stead of
/var/www/webX/public_html/downloads/zip?
I don't even think this would work in version 6.:)
Because your webbrowser (and thus also the script!!!) can't read directory's outside or rather PRE your webdirectory, unless you would give read access to this directory for the script (thus webbrowser) which would be rather stupid in my opinion, if already possible because you need root rights to make this happen.

Indeed, I mean custom paths like vBulletin does for the attachments etc.

Black Tiger 02-03-2008 11:22 PM

Quote:

Indeed, I mean custom paths like vBulletin does for the attachments etc.
Oh in that way? Cool!
But:
Quote:

This file path should be readable AND writeable by your web server (usually chmod 0777)
But like I said, it's seems not wise to put such 777 directory pre the public_html directory.


All times are GMT. The time now is 10:51 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.05109 seconds
  • Memory Usage 1,764KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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