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)

CyberRanger 11-28-2006 07:31 PM

1 Attachment(s)
Quote:

Originally Posted by hornstar1337 (Post 1126993)
https://vborg.vbsupport.ru/showpost....&postcount=839



Hey, just seeing if you have had a chance to take that peek. :)

Thanks.

Take a look at the attached file. It displays the "tops" info without using a template so you have more direct control. I think it will show you what you need to do.

Quote:

Originally Posted by FARMER (Post 1127246)
I want to display the "Latest files" in the forum home, how do can I?

No way to do that right now expect for taking the code I've attached and working it into the forum home php file. I'll see if I can whip together an add-on for doing it.:)

webmaster_fvc 11-28-2006 08:37 PM

I'm still having problems preventing downloads greater than 18mb from timing out. I've looked through every file i can think of including my php.ini looking for connection timeouts and maximum filesize etc. but I cant find anything.

it doesnt say that the connection timed out. it just says file complete but sometimes only half the file was downloaded.

Hornstar 11-29-2006 11:43 AM

Quote:

Originally Posted by CyberRanger (Post 1127514)
Take a look at the attached file. It displays the "tops" info without using a template so you have more direct control. I think it will show you what you need to do.

Thanks, im now one step closer again :)

I have now managed to get the code working on both in the forums dir and in the root dir

http://www.gamerzneeds.net/downloads_tops.php

and
http://www.gamerzneeds.net/forums/downloads_tops.php

This will now enable me to get it working.


However, I will be gone for 5 days (going to a wedding) so I am unable to do the last thing. The last thing will be to make it not use the vbulletin template at all e.g. no banner, not footer, no background etc. the only thing to show is both tables.

I remember last time I tried removing parts of the code, I got a blank screen, maybe if you get time over the next four days, if you could see what parts of the code need to be removed to do this and If some extra code needs to be written so it shows, could you do this or for a price?

Thanks heaps once again, I really have appreciated what you have done so far :)


edit: I think I have worked out what part of the code that needs to be changed.

Is it this line
Code:

eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');
Because I have pretty much removed everything else but this line.

What would I have to replace this line with, so I can print out only the tables.

I also am thinking something to do with $HTML .= may be the reason why the page goes white maybe. I have tried everything, but I am catching a plane to catch in 6 hours time at 6 in the morning. Hopefully it will be some simple code that you can throw together, I am happy to pay you for your time as well.

Thanks.

imranbaig 11-29-2006 07:35 PM

Your main download page is missing css file. Correct it ;)

CyberRanger 11-29-2006 10:26 PM

1 Attachment(s)
Quote:

Originally Posted by hornstar1337 (Post 1128029)
edit: I think I have worked out what part of the code that needs to be changed.

Is it this line
Code:

eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');
Because I have pretty much removed everything else but this line.

What would I have to replace this line with, so I can print out only the tables.

I also am thinking something to do with $HTML .= may be the reason why the page goes white maybe. I have tried everything, but I am catching a plane to catch in 6 hours time at 6 in the morning. Hopefully it will be some simple code that you can throw together, I am happy to pay you for your time as well.

Thanks.

The line
Code:

eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');
is what makes the page print. Without that, you will only get a blank page. Replace that with:
PHP Code:

echo $HTML

and you'll have nothing but the tables. Of course, you'll need to go in now and add your styles if you don't call any of the standard vb templates.

The attached downloads_tops.php file moves most of the php stuff to the top of the file so you can more clearly see the table layout of the html.

I've also attached another file called simple_tops.php. This is a very simple output so you can very easily see what's happening. :)

HappyPike 12-01-2006 05:50 AM

DownloadsII is MOTM for November 2006!!!

Congrats, CyberRanger and RS_Jelle! This is well deserved! :up: :) You guys provide very good support for the mod.

Can we expect to see some major new features in the next few versions?

Here are some features on my wish list, from memory. :)

- multiple files or download mirrors
- multiple folders for downloads (so they don't all get uploaded to the same folder, which can be problematic when there are tons of files)
- Uploading a new file also deletes the old file, so obsolete files don't take up space
- More advanced search page
- Comment editing
- Comment reporting
- Add a category column on Member's Files and My Files
- Latest files module for the forum and non-vB main site? don't know if one already exists or not...
- Don't allow uploader to rate his own files... too many people give their own files 5 stars
- Report file (for broken link, bad file, etc)
- Pre-filled the Author field with uploader's user name when adding file

hugh_ 12-01-2006 06:01 AM

Quote:

Originally Posted by HappyPike (Post 1129224)
DownloadsII is MOTM for November 2006!

Congrats, CyberRanger and RS_Jelle!!! This is well deserved! :up:

Great work, thanks again...

DementedMindz 12-01-2006 09:23 PM

congrats and nice job on getting MOTM shows that all the hard work paid off

Hornstar 12-04-2006 04:48 AM

Quote:

Originally Posted by CyberRanger (Post 1128348)
The line
Code:

eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');
is what makes the page print. Without that, you will only get a blank page. Replace that with:
PHP Code:

echo $HTML

and you'll have nothing but the tables. Of course, you'll need to go in now and add your styles if you don't call any of the standard vb templates.

The attached downloads_tops.php file moves most of the php stuff to the top of the file so you can more clearly see the table layout of the html.

I've also attached another file called simple_tops.php. This is a very simple output so you can very easily see what's happening. :)

Perfect!

Thanks so much, that is exactly what I was trying to accomplish, now I'll try and implement the design from the cms, and implement it either directly into the code of the cms, or through this other way, (forgot name lol)

I just need to work out how to do it to other modules on vbadvanced now, hopefully I will be able to see how you have done the simple_tops.php file and hopefully not too many changes will need to be made.

Big congrats on making MOTM well deserved.

Thanks


edit: you can see it in action here http://www.gamerzneeds.net/ it is down the bottom on the left hand side.

Now all that is needed is to get it to fit in with the current cms design. But apart from that. I couldnt be happier because I now have something on the cms showing from my forums.

Thanks again.

FARMER 12-06-2006 12:45 PM

When i'm using external link then download work very well, but when upload direct from my computer, then it doesn't work.

Please help me fix this problem.

External link: http://www.vimaru.org/forum/downloads.php?do=file&id=4
Internal: http://www.vimaru.org/forum/downloads.php?do=file&id=73

Quote:

Warning: copy(./downloads///ec_tmp/Gio trnh Corel Draw.rar) [function.copy]: failed to open stream: Permission denied in /downloads.php on line 690
ERROR: File not found.
Thanks!


All times are GMT. The time now is 11:47 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.02713 seconds
  • Memory Usage 1,762KB
  • 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_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
  • (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