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)

navajotex? 02-10-2008 10:56 AM

I use the version 3.7 beta4s but I don't succeed to uppare any files, me from' this error:
The upload failed! Upload error.

uso la versione 3.7 beta4 ma non riesco ad uppare nessun file ,mi da' questo errore:
The upload failed! Upload error.

Warning: move_uploaded_file(./downloads/47986-SoftCam Key_04.02.08.zip) [function.move-uploaded-file]: failed to open stream: Permission denied in \downloads.php on line 1300

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\php5D83.tmp' to './downloads/47986-SoftCam Key_04.02.08.zip' in \downloads.php on line 1300

skrazydogz 02-10-2008 12:37 PM

give it a hack to show the newest downloads on forumhome ?

and

Is it possible to make an rss-feed for the newest downloads ?

REVHEAD 02-10-2008 05:38 PM

Quote:

Originally Posted by skrazydogz (Post 1440072)
give it a hack to show the newest downloads on forumhome ?

and

Is it possible to make an rss-feed for the newest downloads ?

Not shure if this helps but there is a hack to show the downloads on homepage using VB advanced CMPS, you can integrate the sidebars into your forum homepage and then you will have downloads on forum home, as for the RSS feed I would be interested to see if this is possible as well.

RS_Jelle 02-10-2008 08:09 PM

Quote:

Originally Posted by maidos (Post 1439021)
hello, i aprpeciate if the author(s) can at least take a considertaion regarding the report feature since i dont think im the only one who like this feature since this can help us to prevent any illegal uploads

and also on manage files when i want to delete a certain category it shows totally blank even though that category consist 2000 files. And i do not know if the files will be deleted on server if i delete the category by admincp

The report feature is being considerated, but I mainly focus on problems as there are plenty of suggestions :)

Removing categories using the AdminCP isn't created for removing files. Manage files should normally work fine. Are you giving up correct values in the dropdown menus (for pin etc.) when getting the files you want to select?

Quote:

Originally Posted by REVHEAD (Post 1439935)
I have a question , and forgive me yes I am a noob.

Is this normal see screenshot

30 queries and my homepage only has 18, and forums 10, if this is normal then thats ok ,I am just trying to keep my forums streamlined.

The amount will be lowered for v6, but in your case it doesn't matter a lot as you aren't having a lot of files. Queries are only slow when they need to scan huge tables in badly optimized ways.

Quote:

Originally Posted by navajotex? (Post 1440006)
I use the version 3.7 beta4s but I don't succeed to uppare any files, me from' this error:
The upload failed! Upload error.

uso la versione 3.7 beta4 ma non riesco ad uppare nessun file ,mi da' questo errore:
The upload failed! Upload error.



Warning: move_uploaded_file(./downloads/47986-SoftCam Key_04.02.08.zip) [function.move-uploaded-file]: failed to open stream: Permission denied in \downloads.php on line 1300

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\php5D83.tmp' to './downloads/47986-SoftCam Key_04.02.08.zip' in \downloads.php on line 1300

Is your downloads folder writable (chmodded to 777 permissions)? Normally you should get a notice about it in a white bar on the top of your downloads section.
You also need to do an extra step when you are running PHP in safe mode, but you should get a notice about that too normally.

Quote:

Originally Posted by skrazydogz (Post 1440072)
give it a hack to show the newest downloads on forumhome ?

and

Is it possible to make an rss-feed for the newest downloads ?

An RSS-feed is being considerated. For the other thing, you can use the vBa CMPS module like Revhead says. If you want a different integration, it should be possible with a plugin. Creating custom stuff with the module code is very easy.

REVHEAD 02-11-2008 06:05 AM

I just want to give this coder a big rap he listens and responds to each and everyone of us, what allso really impresses me in this mod is that it is the http://validator.w3.org/ WC3 markup validation, this is really helping me to streamlin my site and get it to pass, I wish more developers would try and pass XHTML 1.0 Transitional Validation

I think all Hacks Mods should be put though the XHTML 1.0 Transitional validation before being allowed to be disstributed on here.

maidos 02-11-2008 09:15 AM

thanks for replying :)
welll i did pick unpinned and approved but istill cant see any files at all

RS_Jelle 02-11-2008 05:35 PM

Quote:

Originally Posted by REVHEAD (Post 1440609)
I think all Hacks Mods should be put though the XHTML 1.0 Transitional validation before being allowed to be disstributed on here.

Hmm, then you can't use vBulletin :p
The AdminCP contains a lot of (easy to fix) XHTML errors which won't be fixed (not important enough).

I just made it valid for having clean code, but it's still pretty ugly XHTML code as vBulletin is using tables. I really hope vB 4 will be semantic.

Making it necessary for posting mods would go too far IMO, but it would be nice to have it as an extra checkbox for mods. That would encourage mod authors a bit.

Quote:

Originally Posted by maidos (Post 1440671)
thanks for replying :)
welll i did pick unpinned and approved but istill cant see any files at all

I just checked out your site and I think I understand now what you are meaning, but this is normal behaviour. When you select a category to display in Manage Files, it only shows files that are really in that category and NOT those from its sub-cats. So you need to start from the deepest sub-categories, removing those files (and then the category itself), climbing up to the main category you wanted to remove.

ezurick 02-11-2008 06:38 PM

This may have been covered, but I weeded back a few threads and see nothing. Under my AdminCP, when I select the "Downloads" under the Downloads... it list's one file that delete earlier only... but I have a bunch of files uploaded. This is only under the AdminCP. Any help with that?

RS_Jelle 02-11-2008 07:55 PM

The DownloadsII "Downloads" part in the AdminCP is the downloads log. So these aren't files or something, but just a log of what files were downloaded when and by which members.

You can prune it automatically using the "Prune Download log entries" setting ;)

maidos 02-11-2008 08:02 PM

well just the downside i got 150 sub categories but anyway i will delete it thanks for helping for that and thanks aswell for the updates of "thank you button" and renaming a picture :)

mark|3 02-12-2008 02:18 AM

thank you Jelle :D

ezurick 02-12-2008 08:43 AM

Quote:

Originally Posted by RS_Jelle (Post 1440996)
The DownloadsII "Downloads" part in the AdminCP is the downloads log. So these aren't files or something, but just a log of what files were downloaded when and by which members.

You can prune it automatically using the "Prune Download log entries" setting ;)

Ahhh! Got it! Thanks....

I seen others ask for this... but is there/will there be a way to prevent users from categories/sub categories. I have my downloads open to only certain folks. But I would like to open it more, but only certain public categories. The usergroup setting is off or on... there is no control there...

RS_Jelle 02-12-2008 08:59 AM

Quote:

Originally Posted by ezurick (Post 1441327)
I seen others ask for this... but is there/will there be a way to prevent users from categories/sub categories. I have my downloads open to only certain folks. But I would like to open it more, but only certain public categories. The usergroup setting is off or on... there is no control there...

There's the "Exclude Categories" usergroup setting:

Quote:

When set to "Yes", only the categories listed below can be viewed by this group. When set to "No", all categories can be viewed except the ones listed below.
So you probably want to set it to "Yes" and then list them in the field below.

HypedGaming 02-13-2008 04:20 AM

Great mod.. but when I enable the "tops" on all pages settings the WYSIWYG breaks the layout and expands the right table. (I would show you but it only does it when the user is logged in)

I guess this could be fixed by disabling comments but I would love to keep the comments and tops on all pages simultaneously, if possible.

ezurick 02-13-2008 11:15 AM

Quote:

Originally Posted by RS_Jelle (Post 1441332)
There's the "Exclude Categories" usergroup setting:
So you probably want to set it to "Yes" and then list them in the field below.


Ahh! Ok! that works! Somehow I missed that. I see that you have to list all categories and subcategories... But that is cool. Thanks and great MOD!!!

maidos 02-13-2008 04:13 PM

regarding your post about ads
https://vborg.vbsupport.ru/showpost....postcount=2270

Is it possible to only allow specific usergroup to view the ads?

RS_Jelle 02-13-2008 07:55 PM

Quote:

Originally Posted by HypedGaming (Post 1441955)
Great mod.. but when I enable the "tops" on all pages settings the WYSIWYG breaks the layout and expands the right table. (I would show you but it only does it when the user is logged in)

I guess this could be fixed by disabling comments but I would love to keep the comments and tops on all pages simultaneously, if possible.

You can't fix that at the moment as the WYSIWYG editor has a default width. For v6 we will be switching to the small Quick Reply type editor.

Quote:

Originally Posted by maidos (Post 1442280)
regarding your post about ads
https://vborg.vbsupport.ru/showpost....postcount=2270

Is it possible to only allow specific usergroup to view the ads?

You can use template conditionals:
HTML Code:

<if condition="is_member_of($bbuserinfo, 6)">
If in group 6, show this...
<else />
...or else, show this.
</if>

Easier:
HTML Code:

<if condition="is_member_of($bbuserinfo, 6)">
If in group 6, show this...
</if>

Multiple groups:
HTML Code:

<if condition="is_member_of($bbuserinfo, 6, 9, 10)">
If in group 6, show this...
<else />
...or else, show this.
</if>


maidos 02-14-2008 11:55 AM

thanks it works great

Black Tiger 02-14-2008 10:27 PM

If anyone has a good downloads.php addon for the vbseo google/yahoo sitemap generator (stand alone mod) which does not generate a parse error because it misses a ; somewhere (at least the error notice says this) I would really be obliged.
Because support is very slow in that mod, if any.

maidos 02-15-2008 04:55 PM

the bbcode is not activated on download main page. when i view the files through the category i only see commands while i visit the download page i can see the bbcode activated...

RS_Jelle 02-15-2008 08:48 PM

Quote:

Originally Posted by Black Tiger (Post 1443305)
If anyone has a good downloads.php addon for the vbseo google/yahoo sitemap generator (stand alone mod) which does not generate a parse error because it misses a ; somewhere (at least the error notice says this) I would really be obliged.
Because support is very slow in that mod, if any.

I'm sorry, but I'm not very familiar with that mod or other vBSEO stuff :o

Quote:

Originally Posted by maidos (Post 1443852)
the bbcode is not activated on download main page. when i view the files through the category i only see commands while i visit the download page i can see the bbcode activated...

That's normal behaviour. We are stripping all BBCode on the category view intentionally. Otherwise we would break it sometimes as the description is truncated there.

Pirat3 02-15-2008 09:01 PM

{removed upon request]

Charles_1 02-15-2008 10:10 PM

Quote:

Originally Posted by RS_Jelle (Post 1438126)
For people experiencing the GARS compatibility problem, I have posted a fix here ;)

Thanks man, really! Downloads II is working again at our site thanks to you :-)

Pirat3 02-16-2008 04:24 AM

ok i just moved servers to a VPS one, this mod worked just fine till after change. now everytime i try to download a file it gives a "file error". (all my users have this issue).

Or the file will open in a new firefox tab with a bunch of weird symbols etc..

Any fix or reason how to fix?

I CHMOD 777 the downloads directory, downloads.php is CHMOD 664 tried 777 but no cigar.

Marco van Herwaarden 02-16-2008 09:45 AM

Quote:

Originally Posted by Pirat3 (Post 1444018)
i found a HUGE bug in this that can lead to a SQL injection through the header of this mod (remote blind type). i put in the table i want the SQL info of and it get printed in my XPL script :X

Any fixes?

If you are aware of a possible exploit in a modification, please use the Report Post feature on the first post of this thread, and provide details on the exploit. Please do not post in public about any posible exploit details.

Also see Mod Exploit Guidelines

maidos 02-16-2008 01:16 PM

im turning this mod off until the so called sql exploirt has been cleared off

Black Tiger 02-16-2008 02:49 PM

Is there indeed an existing exploit at the moment? People can say there is, but I won't turn downloads II off until it's confirmed.

@RSJelle: I think the problem is in the code of the addon. Probably the "order by" piece. It's complaining about a missing ; or something, you are good at code, maybe you can see what's wrong because you know a lot of code and also know which tables are used in the present downloads II version.
This is the downloads addon code they use:
Code:

        $mods = $db->query("SELECT id,name FROM " . TABLE_PREFIX . "dl_cats ORDER BY `id`");
        while ($mod = $db->fetch_array($mods))
        {       
                $url = $vbseo_vars['bburl'].'/downloads.php?do=cat&id='.$mod['id'];

                if(VBSEO_ON)
                        $url = vbseo_any_url($url);

                  vbseo_add_url($url, 1.0, '', 'daily');
        }

        $mods = $db->query("SELECT id as fid FROM " . TABLE_PREFIX . "dl_files");
        while ($mod = $db->fetch_array($mods))
        {       
                $url = $vbseo_vars['bburl'].'/downloads.php?do=file&id='.$mod['fid'];

                if(VBSEO_ON)
                        $url = vbseo_any_url($url);
                  vbseo_add_url($url, 1.0, '', 'daily');
        }

From the previous version the change to "dl_files" and "dl_cats". Previously Order by was by 'order' which now they changed to 'id' but maybe this is not correct anymore or there are some other problems.
If you can't see it, oke, bad luck for me then.:)

Pirat3 02-16-2008 06:42 PM

Quote:

Originally Posted by Pirat3 (Post 1444244)
ok i just moved servers to a VPS one, this mod worked just fine till after change. now everytime i try to download a file it gives a "file error". (all my users have this issue).

Or the file will open in a new firefox tab with a bunch of weird symbols etc..

Any fix or reason how to fix?

I CHMOD 777 the downloads directory, downloads.php is CHMOD 664 tried 777 but no cigar.

Anyone know whats wrong?:eek:

Marco van Herwaarden 02-17-2008 06:24 AM

Quote:

Originally Posted by maidos (Post 1444423)
im turning this mod off until the so called sql exploirt has been cleared off

There has been 1 user who claims there is a vulnerability, but even though we invited him to provide details of this alleged exploit, we never received any additional information.

Until we recieve more detailed information on the alleged exploit, there is not much we can add to this.

To avoid confusion: There is no confirmed exploit at this time in this modification.

RS_Jelle 02-18-2008 08:43 AM

Quote:

Originally Posted by Pirat3 (Post 1444244)
ok i just moved servers to a VPS one, this mod worked just fine till after change. now everytime i try to download a file it gives a "file error". (all my users have this issue).

Or the file will open in a new firefox tab with a bunch of weird symbols etc..

Any fix or reason how to fix?

I CHMOD 777 the downloads directory, downloads.php is CHMOD 664 tried 777 but no cigar.

Check the chmod of the files inside the downloads directory. They should have chmod 666 permissions.

You don't need to chmod downloads.php as there's no need to change it :p

Quote:

Originally Posted by Black Tiger (Post 1444479)
@RSJelle: I think the problem is in the code of the addon. Probably the "order by" piece. It's complaining about a missing ; or something, you are good at code, maybe you can see what's wrong because you know a lot of code and also know which tables are used in the present downloads II version.
This is the downloads addon code they use:

*code*

From the previous version the change to "dl_files" and "dl_cats". Previously Order by was by 'order' which now they changed to 'id' but maybe this is not correct anymore or there are some other problems.
If you can't see it, oke, bad luck for me then.:)

I don't see any problems with it at first sight. What's the exact error you are getting?

Black Tiger 02-18-2008 12:34 PM

When I enable it in vbSeo it will run but my sitemap4_xml.gz will have parse error, when I open that it will say a notice "expecting ; ".
I will run it again later today and try to give you the exact notice which is appearing in the sitemap file.

Black Tiger 02-18-2008 12:56 PM

Oke, got the error for you, when running it in the generator it will give no error. The error is in the output.
When I look with editpad lit in the sitemap_4.xml the last line is this:
Code:

<url>
  <loc>http://www.satellitefun.org//index.php?pageid=googlesearch</loc>
  <priority>1</priority>
  <lastmod>2008-02-18T14:43:56+00:00</lastmod>
  <changefreq>daily</changefreq>
</url>
</urlset>

You won't see an error in there, but when looking with a browser to the xml file you will see this, and now I'm glad you understand Dutch.:)

Code:

- <url>
  <loc>http://www.satellitefun.org/bbs/poll.php?do=showresults&pollid=5</loc>
  <priority>0.6</priority>
  <lastmod>2008-02-04T22:45:01+00:00</lastmod>
  <changefreq>daily</changefreq>
  </url>
- <url>
  <loc>http://www.satellitefun.org/bbs/poll.php?do=showresults&pollid=6</loc>
  <priority>0.6</priority>
  <lastmod>2008-02-04T22:45:01+00:00</lastmod>
  <changefreq>daily<De XML-pagina kan niet worden weergegeven
Kan XML-invoer niet lezen met opmaakmodel XSL. Herstel de fout en klik vervolgens op de knop Vernieuwen of probeer het later opnieuw.


--------------------------------------------------------------------------------

Er wordt een puntkomma verwacht. Fout bij het verwerken van bron file:///D:/temp/Rar$DI00.563/sitemap_4.xml. Regel 101289,...
 
  <loc>http://www.satellitefun.org/bbs/downloads.php?do=cat&id=1</loc>
------------------------------------...
SPAN class="m"></changefreq>
  </url>

As you see a lot of crap in there.
When google sitemaps has this file it also says it has a parse error.

When I start the addon without the seo and without being logged in I get this error:
Code:

Fatal error: Call to a member function query() on a non-object in /home/satfun/domains/satellitefun.org/public_html/bbs/vbseo_sitemap/addons/vbseo_sm_downloads.php on line 21
And line 21 is the first line of the script which starts with $mods. However, I'm not logged in then and I started the addon stand-alone by visiting the file in the url, so maybe it has nothing to do with the problem.

RS_Jelle 02-18-2008 07:38 PM

Can you put the full XML file with the error online (pm me the url)? There's a syntax error in it, but it's easier for me to look at the original as this part is a bit strange (for example the span tag?).

Try to use this PHP code for solving the query() error:
PHP Code:

    $mods $vbulletin->db->query("SELECT id,name FROM " TABLE_PREFIX "dl_cats ORDER BY `id`");
    while (
$mod $vbulletin->db->fetch_array($mods))
    {    
        
$url $vbseo_vars['bburl'].'/downloads.php?do=cat&id='.$mod['id'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);

          
vbseo_add_url($url1.0'''daily');
    }

    
$mods $vbulletin->db->query("SELECT id as fid FROM " TABLE_PREFIX "dl_files");
    while (
$mod $vbulletin->db->fetch_array($mods))
    {    
        
$url $vbseo_vars['bburl'].'/downloads.php?do=file&id='.$mod['fid'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url1.0'''daily');
    } 


Black Tiger 02-18-2008 11:43 PM

Same query error with this correction. Like I said, I think it has to do with running the .php file without being logged in.
Find with me this way, stranger can't do strange things with my database this way.:)

I send you de pm.

RS_Jelle 02-19-2008 06:10 AM

For fixing the XML, try this (added missing HTML entities):
PHP Code:

    $mods $db->query("SELECT id,name FROM " TABLE_PREFIX "dl_cats ORDER BY `id`");
    while (
$mod $db->fetch_array($mods))
    {    
        
$url $vbseo_vars['bburl'].'/downloads.php?do=cat&amp;id='.$mod['id'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);

          
vbseo_add_url($url1.0'''daily');
    }

    
$mods $db->query("SELECT id as fid FROM " TABLE_PREFIX "dl_files");
    while (
$mod $db->fetch_array($mods))
    {    
        
$url $vbseo_vars['bburl'].'/downloads.php?do=file&amp;id='.$mod['fid'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url1.0'''daily');
    } 


Black Tiger 02-19-2008 01:02 PM

@RSJelle: Many many many thanks man! You are the best!!! 300 kuddo's for you.
You really are a great coder, it's working like a charm now. Thanks!

I'm going to post the solution you gave in the mod there too by linking here.:)
I'm really happy now!:D

GuaRRand 02-19-2008 09:17 PM

i may have overlooked this .. but 24 pages of posts is much :P

1. an "uploading" image. some files take a liong time to upload. people might think it crashed or got stuck. an uploading image might show them its just taking long :)

2. a thumbnail beside every uploaded type of file. maybe even an thumbnail from the image/pics themselves?

3. Somehow, files from 30-40MB and up dont upload.
My server is pretty fast and i have space to spare... so a 30-40 MB file isnt a problem.
Is this a problem for DOWNLOADSII ??
(The usergroup settings all have 100+ MB as limit.)

www.glcoti.com

Black Tiger 02-19-2008 10:40 PM

3.) The uploadproblem of 30-40 mb or higher could be a server limitation problem.
Could be the host has set the upload_max_filesize = 40 mb. Check the php.ini or ask your host what filesize it says.

The other ones I don't know.:)

GuaRRand 02-20-2008 03:54 AM

yeah, checked.. and its only 2 MB :(

RS_Jelle 02-20-2008 06:03 PM

Quote:

Originally Posted by GuaRRand (Post 1447071)
yeah, checked.. and its only 2 MB :(

Use a .htaccess file to override the server setting if you can't edit php.ini ;)

https://vborg.vbsupport.ru/showpost....postcount=2136

Quote:

Originally Posted by GuaRRand (Post 1446896)
i may have overlooked this .. but 24 pages of posts is much :P

There's a FAQ about it in the first post :p


All times are GMT. The time now is 12:27 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.04666 seconds
  • Memory Usage 1,896KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (23)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
  • (40)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