vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - DownloadsII Create New Thread Add-On [vB4] (https://vborg.vbsupport.ru/showthread.php?t=247952)

dmm2020 05-18-2011 01:57 AM

1 Attachment(s)
I downloaded this and installed it because I used it before, but things I didn't expect.

I do NOT want files stored offsite and this mod seems to promote sites that are havens for pirated script, to be quite honest.

I also can not appreciate that when you click on add files that nearly that entire page is in Italian. How do you convert that whole page to English? Fishing through the phrases is a ton of work.

I really want to remove almost all of the first part on "Add File" so that all that shows is the file upload section. I can decide more if I can see the attachments completely in english.

Please see attachments. I would like to remove all this stuff as I do not need it.

Marios858 05-31-2011 07:43 AM

Excellent Work my friend , its working perfect on Version 4.1.3 ....
Thanks a lot ..:up::up::up:

Bram H 06-27-2011 03:12 PM

Confirmed working for 4.1.4 :)

A request for Jelle. Would it be possible to have the created threads and posts show up directly under the download files? More or less the same was as the article comments show up in the CMS?

Doc2911 08-01-2011 01:19 PM

thx, working for 4.1.5

tarus 10-01-2011 08:07 AM

hello, i want to ask a question. we would like to use download part of site with the downloads links from the file sharing sites. not with the uploading to the site. is it possible use like that?

Welshy2008 01-23-2012 09:13 AM

Can anyone confirm this to be working flawless on 4.1.10 please?

Hippy 01-23-2012 10:43 AM

working 100% enjoy

Carpesimia 02-29-2012 02:42 PM

Quote:

Originally Posted by RS_Jelle (Post 2079100)
That's not a bug. You enabled a debugging option.
Settings -> General Settings -> Add Template Name in HTML Comments -> No

I disagree. I have a need from time to time to turn on HTML comments to find a template issue. Both vBulletin and every other add-on I have behaves nicely with the HTML Comments turned on, except downloadsii. I consider this a bug.

For those who would like to fix it, here's a simple fix.

Find the plugin named "DownloadsII: Create Thread on Add".

Partway down, you will see some code that uses vbulletin templates to build the message that will be posted. Like this:

PHP Code:

    $templater vB_Template::create('downloadii_create_newthread');
    
$templater->register('id'$id);
    
$templater->register('dtitle'$dtitle);
    
$templater->register('ddesc'$ddesc);
    
$pagetext .= $templater->render();

    
// VB3 eval('$title .= "' . fetch_template('downloadii_create_newthread_title') . '";');
    
$templater vB_Template::create('downloadii_create_newthread_title');
    
$templater->register('dtitle'$dtitle);
    
$title .= $templater->render(); 

This takes the raw templates (including the html comments if you have the debugging turned on) to use for the message. Edit the above code like this:

PHP Code:

    $templater vB_Template::create('downloadii_create_newthread');
    
$templater->register('id'$id);
    
$templater->register('dtitle'$dtitle);
    
$templater->register('ddesc'$ddesc);
    
$pagetext .= $templater->render();
    
$pagetext preg_replace('/<!--(.*)-->/Uis'''$pagetext);

    
// VB3 eval('$title .= "' . fetch_template('downloadii_create_newthread_title') . '";');
    
$templater vB_Template::create('downloadii_create_newthread_title');
    
$templater->register('dtitle'$dtitle);
    
$title .= $templater->render();
    
$title preg_replace('/<!--(.*)-->/Uis'''$title); 

All I did was add a line after the template was evaluated to strip all HTML comments from what was rendered, once for the message and once for the title. These 2 SMALL edits are all that are needed to make this plugin play nice with the html comments debugging set to on.

likaweb 04-23-2012 04:26 PM

No working on 4.1.12

Hippy 04-23-2012 09:11 PM

Quote:

Originally Posted by likaweb (Post 2322801)
No working on 4.1.12

works perfect with vb4.1.12
Just tested it for ya...

there is a different issue you may be having...


All times are GMT. The time now is 01:44 AM.

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.01808 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (2)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