vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   My Downloads v1.2 - A Download Manager for VBulletin (https://vborg.vbsupport.ru/showthread.php?t=73311)

neo88 12-30-2004 06:10 AM

All these ideas are nice, When will we be seeing these ideas in our forums..??

Onkel_Tom 01-06-2005 10:32 PM

Hi all,
I installed this hack on my testboard. Great Idea !
But there are so many wishes for the new release:
  • include in vB database and get the dbname etc. from includes/config.php
  • vB Style
  • transparent background in images
  • phrasen version to translate in other languages
  • installation script for phrases from a .xml file
  • vbformating for date, filesize etc.
  • last download also add the date
  • if somebody uses a link like "http://www.yourdomain.tld/forums/download.php?download=18" don't show the content of the download page
I'm waiting for the next release ;)
thanks in advance

Viks 01-07-2005 05:32 AM

I was just reading through the messages... this appears to be a really good mod. I will definately look forward to the update release.

ipas2 01-07-2005 07:44 AM

Ooof... thnx for the suggestions. I'm busy extracting the script to a vb template and integrate it more into vb. I have not done this one before, but i will manage.

i'l keep u informed.

ipas

jluerken 01-08-2005 06:33 PM

Quote:

Originally Posted by ipas2
Ooof... thnx for the suggestions. I'm busy extracting the script to a vb template and integrate it more into vb. I have not done this one before, but i will manage.

i'l keep u informed.

ipas

I downloaded and installed the latest version.
I created the three new tables and put some test files in the dir.
They are written to the database but not shown in any way.

I also don't understand and see where I can create categories.

This version is now working for me.
http://www.clanforums.com/forum/download.php

ipas2 can you please add TABLE PREFIXES to the next release cause I think many users are using those?

In the actual downloadable version the file mydownloads_template.txt seems to be broken. There is no footer information in the file.

Quote:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header

$dlnavbar

$error
$deletemsg
$addmsg

$dlcontent

$mydlversion
This is all :D

ipas2 01-08-2005 09:06 PM

Like I said before, you must be forum admin to have the update button. This will scan the download directory for main category and subdirs for other categories. You will see messages when new dirs or files has been added or deleted to the database.
Other thing... categories without files will not be shown.

Uncommend the auto_update option in the script if you want the update to be done all the time.. even if users are viewing the page.

prefixes of tables.. all three added tables starts with 'mydl_' , so they dont conflict with possible other scripts.

if you want a footer, just add '$footer' at the end of the template.:rolleyes:

Grtz,
ipas

neo88 01-16-2005 10:21 AM

When will you impliment the remote url linking??
Unless its already done so..

lebanon 01-17-2005 11:28 PM

i installed this script and i got the BUTTON update database , so i did
Found files i added
But when i go to /download.php it shows the forum page with
My Downloads v1.2
The page loads normally , but missing the download links !!!
Is there something wrong could have been done to cause this ?
Update database shows correct files btw .

Onkel_Tom 01-18-2005 12:45 AM

Quote:

Originally Posted by lebanon
But when i go to /download.php it shows the forum page with
My Downloads v1.2

Same for me ;)
You need a small workaround to get this work.
Just go to your download directory and add a subdirectory there. It doesn't matter what the name is, just a new Subdirectory under your "Download-Root" Directory.
After that open your download.php again and klicke on "update database" and you will see your files ;)

ipas2, can you fix this for the first installation or update on a board ?
btw, great work for Version 1.2 ! many thanks

Onkel_Tom 01-18-2005 12:57 AM

@ ipas2

You should use the following header to be "vB" conform and also to cache your Template mydownloads which is actually uncached.
Code:

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'mydownloads');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
        'mydownloads'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

also it would be very nice if you can change the colours of each Download entry with the alt1, alt2 tag.


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