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)

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 08:57 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.03250 seconds
  • Memory Usage 1,773KB
  • 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
  • (3)bbcode_code_printable
  • (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
  • (6)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