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)

HappyPike 09-03-2006 04:16 PM

hey Jelle, where is the code for the "Fixed a bug with tags being stripped from the description" fix? I was doing a diff on the PHP files and didn't find it.

I haven't upgraded to the new version completely yet -- only applied the changes in the PHP file.

RS_Jelle 09-03-2006 05:02 PM

It's in downloads.php on line 1187:

PHP Code:

            if ($_POST['wysiwyg'] == 1)
            {
                
$_POST['desc'] = convert_wysiwyg_html_to_bbcode($_POST['message'], 0);
            }
            else
            {
                 
$_POST['desc'] = &$_POST['message'];
                
$_POST['desc'] = strip_tags($_POST['desc']);
             } 

Replace with
PHP Code:

            if ($_POST['wysiwyg'] == 1)
            {
                
$_POST['desc'] = convert_wysiwyg_html_to_bbcode($_POST['message'], 0);
            }
            else
            {
                 
$_POST['desc'] = &$_POST['message'];
             } 

Strip_tags is unnecessary because BBCode do_parse is stripping it also to text instead of HTML.

Intocable 09-03-2006 05:06 PM

Quote:

Originally Posted by westpointer
Is this a new install or an upgrade? Can you create categories and set usergroup permissions in admincp?

Either way, the first step is to delete downloads.php, includes/class_downloads.php, and the ecdownloads xml files in includes/xml. Download the product from here again and recopy the files to your server.

If you still can't get it to work, I'll need you to PM me more info about your site so I can look at it. Specifically, the site url, a vb admin login and password, and a login and password that will let me do ftp to the site.

I did everything you requested here but I still get a blank page. Can you tell me the correct path to do this. (PM)

Thank you

DementedMindz 09-03-2006 05:11 PM

Im trying to Exclude Categories but i cant seem to find the Categories Id anywhere. I tried Category Tree where it use to be but i dont seem to see it there now. Is there somewhere else you moved it and im using the beta if it helps.

HappyPike 09-03-2006 05:11 PM

Quote:

Originally Posted by RS_Jelle
It's in downloads.php on line 1187:

Strip_tags is unnecessary because BBCode do_parse is stripping it also to text instead of HTML.

Thanks Jelle. I missed that.

RS_Jelle 09-03-2006 05:57 PM

Quote:

Originally Posted by DementedMindz
Im trying to Exclude Categories but i cant seem to find the Categories Id anywhere. I tried Category Tree where it use to be but i dont seem to see it there now. Is there somewhere else you moved it and im using the beta if it helps.

Hmm, it should be there:
https://vborg.vbsupport.ru/
Can you give me a link to your site if it isn't there or a screenshot? Be sure that you have reverted all templates, uploaded the latest files and imported the latest product file (with the overwrite option on). All the usual junk :)

You can also see it in the url when you view a category. For example (category id is 2):
@Intocable: westpointer is offline for a few days. You can always pm it to me (or wait a bit till he's back) ;)

Intex 09-03-2006 06:32 PM

1 Attachment(s)
Great hack.

I'm having one issue with the width of the columns on one page. The left panel appears fine on all other pages and this issue only appears when you've clicked on the details of the upload from a user (see attachment).

Anybody know where the left panel size can be adjust for this page?

RS_Jelle 09-03-2006 06:52 PM

You can't edit it easily only there. It's a known bug and the next big release will have a different layout to fix this.

But you can remove the left panel on that page only:

Open downloads.php
Find
PHP Code:

    eval('$dmain_jr = "' fetch_template('downloads_file') . '";');
    eval(
'$dpanel = "' fetch_template('downloads_panel_side') . '";');
    eval(
'$dmain = "' fetch_template('downloads_wrapper_side') . '";');
}
else if (
$_GET['do'] == 'assignuser'

Replace with
PHP Code:

    eval('$dmain_jr = "' fetch_template('downloads_file') . '";');
    eval(
'$dmain .= "' fetch_template('downloads_wrapper_none') . '";');
}
else if (
$_GET['do'] == 'assignuser'


Intocable 09-03-2006 07:53 PM

Quote:

Originally Posted by RS_Jelle
Hmm, it should be there:
http://img334.imageshack.us/img334/6...cattreeai5.gif
Can you give me a link to your site if it isn't there or a screenshot? Be sure that you have reverted all templates, uploaded the latest files and imported the latest product file (with the overwrite option on). All the usual junk :)

You can also see it in the url when you view a category. For example (category id is 2):

@Intocable: westpointer is offline for a few days. You can always pm it to me (or wait a bit till he's back) ;)

OMG!!!! that will be great my friend. You have made my day, week and month. Thank you so much for any help RS_Jelle :D (PM)

Triggerhappy 09-03-2006 10:01 PM

Is there a way to allow any file extention?

Im having problems with it not allowing just about everything.


All times are GMT. The time now is 12:40 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.02671 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
  • (4)bbcode_php_printable
  • (5)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