vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   v3 Articles 1.0.1 - [vB 3.0.1] (https://vborg.vbsupport.ru/showthread.php?t=65934)

Guy G 12-11-2004 01:19 PM

i wanna get the Articles and comments to list in the Quick stats at the admin cp.
for example:
Code:

New Posts Today 56    New Threads Today 32    Unique Members Today 12
add a line under that to add
Code:

New Articles Today xx    New Comments Today xx    Articls awating Approvel XX
Also, has anyone managed to fix the article count?
i made a test article, and i cant delete it in the usual way... so i went and deleted it through PhpMyAdmin, but it still shows under the category i made it although when i press its not even there...

And another thing is... if i post GIF animations on articles they dont 'animate', they are frozen... only when pressing it they show up.

buggy system...

pingme 12-14-2004 03:00 AM

I am getting following error :(

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM vb3_article

WHERE categoryid=1 AND (articleuserid=1 OR open IN (0,1)) ORDER BY dateline DESC LIMIT 0, mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

mysql error number: 1064

Please help, I need article system on my site :(

dookie 12-14-2004 02:08 PM

I get the same error.
Doesn´t work in 3.0.3. *uninstall*

Guy G 12-14-2004 02:43 PM

im running it on vb 3.0.3.

there is one really annoying bug....
on the articles it shows wrong count on them if i had test articles.
if i did a test article\comment and than deleted it from the database it will still show that there is a nigger count of articles. same for comments.
annoying indeed, anyone managed 2 fix it?

pingme 12-14-2004 04:12 PM

Quote:

Originally Posted by dookie
I get the same error.
Doesn?t work in 3.0.3. *uninstall*

I found few people using it on this thread. dont know how they are not facing any issues :rolleyes:

Paul M 12-14-2004 06:05 PM

Quote:

Originally Posted by dookie
I get the same error.
Doesn?t work in 3.0.3. *uninstall*

Yes it does.

dookie 12-15-2004 07:15 AM

I forgot to save the vbulletin options. Works. :)

TRStealth 12-16-2004 04:05 AM

Hi,

I'm trying to get the 'Featured Article' thing to show up on the index page, but I'm having trouble.

I got the featured_article template to show, but the actual featured article won't.

I've added the following to the index.php page:

PHP Code:

$globaltemplates = array(
    
'FORUMHOME',
    
'forumhome_event',
    
'forumhome_forumbit_level1_nopost',
    
'forumhome_forumbit_level1_post',
    
'forumhome_forumbit_level2_nopost',
    
'forumhome_forumbit_level2_post',
    
'forumhome_lastpostby',
    
'forumhome_loggedinuser',
    
'forumhome_moderator',
    
'forumhome_pmloggedin',
    
'forumhome_subforumbit_nopost',
    
'forumhome_subforumbit_post',
    
'forumhome_subforumseparator_nopost',
    
'forumhome_subforumseparator_post',
    
'article_featured'
); 

then

PHP Code:

require_once('./includes/functions_articles.php'); 

And finally

PHP Code:

// ### Start Articles

        
$featuredarticle unserialize($datastore['featuredarticle']);
        if (
$featuredarticle['id'])
        {
            
$feature $DB_site->query_first("SELECT article.*, articlepost.*, articlecategory.options AS options FROM " TABLE_PREFIX "article AS article
            INNER JOIN " 
TABLE_PREFIX "articlepost AS articlepost ON (articlepost.postid = article.firstpostid)
            INNER JOIN " 
TABLE_PREFIX "articlecategory AS articlecategory ON (articlecategory.categoryid = article.categoryid)
            WHERE article.articleid=
$featuredarticle[id]");
        }
        if (!empty(
$feature['title']))
        {
        
            
// do html
            
if ($feature['options'] & 256)
            {
                
$dohtml 1;
            }
            
            if (
$feature['options'] & 512)
            {
                
$dosmilies 1;
            }
            
            
// get an attachment, if there's one with a thumnail
            
$attachment $DB_site->query_first("SELECT attachmentid FROM " TABLE_PREFIX "articleattachment WHERE articleid=$featuredarticle[id] AND thumbnail_dateline>1 ORDER BY RAND() LIMIT 0,1");
            if (!empty(
$attachment['attachmentid']))
            {
                
$GLOBALS['isattachment'] = true;
            }            
            
            require_once(
'./includes/functions_bbcodeparse.php');
            
$feature['postbody'] = truncate_text($feature['postbody'], $vboptions['featuredlength'], 1);
            
$feature['postbody'] = parse_bbcode2($feature['postbody'], $dohtml0$dosmilies1);
    
            eval(
'$articlecontent .= "' fetch_template('article_featured') . '";');
        }
        
// ### End Articles


// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###
eval('$articlecontent .= "' fetch_template('article_featured') . '";');
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('FORUMHOME') . '");'); 

However, this only displays the template, like I said. It doesn't show the featured article.

Paul M 12-16-2004 10:29 AM

Have you added $articlecontent in to your forumhome template ?

deathemperor 12-16-2004 10:35 AM

Quote:

Originally Posted by dookie
I forgot to save the vbulletin options. Works. :)

and someone still want to say that this has something like a very BIGGY issue.

they should have known that John asked them to save the V3article options 1st before it CAN work...


All times are GMT. The time now is 03:26 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.01907 seconds
  • Memory Usage 1,771KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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