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)
-   -   vBulletin CMS Widgets - Widget: last articles blogs in CMS - by omardealo (https://vborg.vbsupport.ru/showthread.php?t=239382)

karlm 04-01-2010 01:21 AM

OK, I've just deleted the widget completely and started fresh from scratch - and it still causes D/B errors.

PHP Code:

Invalid SQL:

SELECT from vb blog order by dateline DESC LIMIT 20;

MySQL Error   Table 'XXXXXX.vb' doesn't exist
Error Number  : 1146
Request Date  : Thursday, April 1st 2010 @ 03:15:57 AM 

I'm sorry, but I'm forced to give up on trying. I say so sadly too, because it's a fantastic idea - but it just doesn't seem to be compatible with all versions - or perhaps it's incompatible with another plugin/widget, perhaps?

omardealo 04-01-2010 09:43 PM

I also can not explain the error, the error The table does not exist
Now I want to know what the names of the tables you have, start for example by vb_
PHP Code:

vb_blog 

or what ?

Exardor 04-16-2010 02:54 PM

Got the same error.
Solved it, with deleting of one space between blog and the ".

Sorry for my bad english :D

Here is the (for me working) code:
PHP Code:

ob_start();  
  
$blog_get vB::$db->query_read("
SELECT * from " 
TABLE_PREFIX "blog order by dateline DESC LIMIT 5");
  
$output_bits '';
  while(
$blog vB::$db->fetch_array($blog_get))
  {
        
$output_bits .= '<b>?</b><a href="blog.php?b='.$blog[blogid].'">'.$blog[title].'</a> by <a href="member.php?u='.$blog[userid].'"><b>'.$blog[username].'</b></a><br />';
  }
  
$output $output_bits;
  
ob_end_clean(); 


omardealo 04-30-2010 03:25 AM

Quote:

Originally Posted by Exardor (Post 2022218)
Got the same error.
Solved it, with deleting of one space between blog and the ".

Sorry for my bad english :D

Here is the (for me working) code:

ok . i hope it work good with u now

Brew 08-10-2012 06:59 PM

Any chance to see this cool mod updated for vb4.2+ ?

Thank you for considering this :)

alhidaya 02-10-2013 11:47 PM

Quote:

Originally Posted by Exardor (Post 2022218)
Got the same error.
Solved it, with deleting of one space between blog and the ".

Sorry for my bad english :D

Here is the (for me working) code:
PHP Code:

ob_start();  
  
$blog_get vB::$db->query_read("
SELECT * from " 
TABLE_PREFIX "blog order by dateline DESC LIMIT 5");
  
$output_bits '';
  while(
$blog vB::$db->fetch_array($blog_get))
  {
        
$output_bits .= '<b>?</b><a href="blog.php?b='.$blog[blogid].'">'.$blog[title].'</a> by <a href="member.php?u='.$blog[userid].'"><b>'.$blog[username].'</b></a><br />';
  }
  
$output $output_bits;
  
ob_end_clean(); 


Hello,

Thank you Exador


All times are GMT. The time now is 01:51 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.01149 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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