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)
-   -   Forum Display Enhancements - Article Forums (https://vborg.vbsupport.ru/showthread.php?t=211638)

gnrx 04-07-2011 09:27 PM

@undhim2.

This mod is for vb 3.x.

If you use vb 4.1.2 you need this.

Morrus 04-14-2011 08:49 AM

Having a bit of trouble with the BB code parsing on article.php

It's set to not parse BB code, but one of our custom image alignment BB codes is displaying the URL from inside the tags:

Quote:

Spring has arrived here in Michigan quite suddenly, going from wet, rainy, and cold to hot, sunny, and downright balmy in the space of a couple of days. Of course, it seems only right that with the sudden appearance of Spring, the new edition of Kobold Quarterly should arrive! http://www.neuroglyphgames.com/rpgbl...4/KQ-Cover.jpgAnd Issue 17 of Kobold Quarterly, the Switzerland of the Edition Wars, is full of feature articles, new content, and editorials containing new material for Pathfinder, D&D 4E, and Dragon Age RPG. As with my previous reviews of Kobold Quarterly, each article will be rated on a scale of 1-5 for Crunch and Fluff to give readers an idea of how useful the material is for their game system. But I have also decided to change the format of my grading system for reviews to a similar format – so rather than assigning a letter grade as I have done previously, each criteria will get a rating of 1-5, with...
Is there any way for the mod to simply ignore that BB code and not post that URL in the middle of the article preview text?

cowcowcow 04-26-2011 07:48 PM

A super ancient bump for anyone who can help. i coudlnt find a solution with the latest version and actaully went back searching all the way to page 2, sigh :(

I basically want what Sweeks wanted where i can to retain the Articles.php navigation bar where i go in the articles forum, so when i click on an article, the categories navigation still stays in place. it does not just dissapear into showthread.

I know its not supported by the author but any help from fellow vbers who are in the know or have done something similar would be much appreciated.

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

Originally Posted by Sweeks

Is there any way so I can have the articles display within a normal looking forumdisplay and then on the showthread keep the article layout etc? Im not too keen on the main articles.php page.

Thanks


Quote:

Originally Posted by bananalive (Post 1794665)
disable forumdisplay plugins:

Article Forum (forumdisplay_complete)

Edit Show Thread (showthread_complete)

PHP Code:

if ($articleforum)
{
eval(
'$SHOWTHREAD = "' fetch_template('SHOWTHREAD') . '";');
$SHOWTHREAD str_replace($vbphrase[thread], $vbphrase[article], $SHOWTHREAD);
$SHOWTHREAD str_replace("newthread.gif","newarticle.gif"$SHOWTHREAD);
print_output($SHOWTHREAD);




SBlueman 08-07-2011 01:15 AM

What do I need to change in these bits of code in articles.php make it where the "Most Read" and "Most Commented" so that the modules only list the top articles in the last "X" amount of days?

PHP Code:

if (in_array('mostread'$af_modules))
    {
        
$row 0;
        
$af_mrpp $vbulletin->options[af_mrpp];
        
$threads $db->query_read("
            SELECT thread.threadid,thread.title AS threadtitle
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "post AS post
                ON (post.postid = thread.firstpostid)
            WHERE thread.forumid IN (
$forumids)
            
$visiblethreads $authorids $condition
            ORDER BY views DESC
            LIMIT 30, 
$af_mrpp");
        while(
$thread $db->fetch_array($threads))
        {
            
$row++;
            
$thread process_thread_array($thread$lastread$foruminfo['allowicons']);
            
$thread[threadtitle] = substr($thread[threadtitle], 0$vbulletin->options[af_maxtitle]);
            eval(
'$a_most_read .= "' fetch_template('af_articlesmallbit') . '";');
        }
    } 

PHP Code:

    if (in_array('mostcommented'$af_modules))
    {
        
$row 0;
        
$af_mcpp $vbulletin->options[af_mcpp];
        
$threads $db->query_read("
            SELECT thread.threadid,thread.title AS threadtitle
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "post AS post
                ON (post.postid = thread.firstpostid)
            WHERE thread.forumid IN (
$forumids)
            
$visiblethreads $authorids $condition
            ORDER BY replycount DESC
            LIMIT 30, 
$af_mcpp");
        while(
$thread $db->fetch_array($threads))
        { 


ktoronto123 12-05-2011 05:36 AM

Don't expect there is an answer, but anyone know why this is giving me a "content_encoding_error"?

sailnet 03-14-2012 01:19 PM

I'm running 3.8.6 and I installed this mod last night. I am happy to report that it is working perfectly. I just wish you could identify more than one forum as an article forum - but then again I have no tried to set a parent forum as the article forum to see if the setting is carried forward to the forums children.

perhaps someone knows the answer to this question?

Ov3rrun 03-17-2012 04:04 AM

Quote:

Originally Posted by SBlueman (Post 2230346)
What do I need to change in these bits of code in articles.php make it where the "Most Read" and "Most Commented" so that the modules only list the top articles in the last "X" amount of days?

hey Blueman, try this (its working for me), we just need to format current date with the days we want minus thread dateline. We create $datecut variable and a condition the query

This for most read:

PHP Code:

    if (in_array('mostread'$af_modules))
    {
        
$row 0;
        
$af_mrpp $vbulletin->options[af_mrpp];
//        Change the first 90* for the days you want
        
$datecut TIMENOW - (90*24*60*60);
        
$threads $db->query_read("
            SELECT thread.threadid,thread.title AS threadtitle
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "post AS post
                ON (post.postid = thread.firstpostid)
            WHERE thread.dateline > 
$datecut AND thread.forumid  IN ($forumids

and this for most comment:

PHP Code:

    if (in_array('mostcommented'$af_modules))
    {
        
$row 0;
        
$af_mcpp $vbulletin->options[af_mcpp];
//        Change the first 90* for the days you want
        
$datecut TIMENOW - (90*24*60*60);
        
$threads $db->query_read("
            SELECT thread.threadid,thread.title AS threadtitle
            FROM " 
TABLE_PREFIX "thread AS thread
            LEFT JOIN " 
TABLE_PREFIX "post AS post
                ON (post.postid = thread.firstpostid)
            WHERE thread.dateline > 
$datecut AND thread.forumid IN ($forumids

Enjoy it.

yeppuda 03-21-2012 10:08 AM

it's very good works...
How is new articles can write?
I'm not see New Article button??
New article button caps please...
Thanks...

John Diver 04-22-2012 10:32 PM

Hey,

Just wanted to know if this works on 3.7?

John Diver 04-22-2012 11:35 PM

By the way, I read in the first post that it doesn't work, but I also saw some people posted that some versions did work on 3.7 (I think 1.9 was 1 version I seen mentioned).

If it does, would anyone have an older version that would work?

Thanks!


All times are GMT. The time now is 02:38 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.02307 seconds
  • Memory Usage 1,784KB
  • 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
  • (5)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
  • (2)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