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

Volvoholic 03-08-2012 07:30 AM

Quote:

Originally Posted by Preech (Post 2306392)
Replace your af_articlebit with this.
PHP Code:

<div style="padding:0px 0px 0px 0px;<vb:if condition="$row>1">border-top-width: 1px; border-top-style: dotted;</vb:if> overflow: hidden; clear: both;">
<
div>
    <
div class="title">
        <
h3 style="font: normal normal bold 14px/normal Tahoma, Calibri, Verdana, Geneva, sans-serif; margin: 5px 0px 0px; text-decoration: none;">
        {
vb:raw thread.prefix_rich}
            <
a href="{vb:link thread, {vb:raw thread}}" id="thread_title_{vb:raw thread.realthreadid}" <vb:if condition="$show['gotonewpost']">style="font-weight:bolder"</vb:if>>
                <
span>{vb:raw thread.threadtitle}</span>
            </
a>
        </
h3>
    </
div>
    <
div style="color: #3E3E3E; display: block; font-size: 11px; padding-bottom: 2px; position: relative; top: 0px; width: 100%;">
        {
vb:phrase by_x_published_x, {vb:raw thread.postuserid}, {vb:raw thread.postusername}, {vb:raw post.date}}
    </
div>
    <
div class="content" style="padding-top: 10px;">
        <
vb:if condition="$thread['attachmentid'] && $thread['extension']">
        <
div style="float: {vb:stylevar left}; padding-right: 5px; padding-bottom: 4px; {vb:raw thumbdivstyle}">
            <
a href="{vb:link thread, {vb:raw thread}}">
                <
img src="attachment.php?attachmentid={vb:raw thread.attachmentid}&amp;stc=1&amp;thumb=1" alt="" border="0" />
            </
a>
        </
div>
        </
vb:if>
        <
vb:if condition="$thread['altimage'] && $thread['image']">
        <
div style="float: {vb:stylevar left}; padding-right: 5px; padding-bottom: 4px; max-width: 100px; max-height: 100px; overflow: hidden; {vb:raw thumbdivstyle}">
            <
a href="{vb:link thread, {vb:raw thread}}">
                <
img src="{vb:raw thread.image}" alt="" border="0" style="max-width: 100px; max-height: 100px;  width: expression(this.width > 100 ? 100: true);" />
            </
a>
        </
div>
        </
vb:if>
        <
vb:if condition="$vboptions['af_threadpreview'] != 0">{vb:raw thread.preview}</vb:if>
    </
div>
    <
div style="clear: both;display: block;float: {vb:stylevar left};margin-bottom: 5px;padding: 0px;position: relative;width: 100%;">
        <
span class="readmore" style="clear: left;float: right;font-weight: bold;text-align: right;width: 50%;">
            <
a href="{vb:link thread, {vb:raw thread}}">
            {
vb:phrase article_read_more}
            <
img src="{vb:stylevar imgdir_cms}/read_more-{vb:stylevar right}.png" alt="{vb:phrase article_read_more}" title="{vb:phrase article_read_more}" style="position: relative; top: 2px;" />
            </
a>
        </
span>
        <
span class="commentnumber">
            <
a href="{vb:link thread, {vb:raw thread}}#comments">
            <
img src="{vb:stylevar imgdir_button}/firstnew-comment.png" alt="" class="inlineimg" style="position: relative; top: 2px;" />
            </
a>
            <
a href="{vb:link thread, {vb:raw thread}}#comments">
            {
vb:phrase x_article_replies, {vb:raw thread.replycount}}
            </
a>
        </
span>
    </
div>
</
div>
</
div

For the category block...look through the af_articles template. It's in there.


Thanks very much, I found it and it worked.

vBNinja 04-04-2012 07:29 PM

How can i increase the preview length? I tried changing it from -1 to 1, 2, 10, -5, -10 and all i get is no preview or it shortens to 1 letter :(

Any help is appreciated, thank you

BeeMuzza 04-25-2012 01:11 PM

How do you add a thumbnail to a article?

Preech 04-28-2012 11:07 AM

Scroll down and click manage attachments.

Killhunter 05-18-2012 08:36 PM

Code:

Datenbankfehler in vBulletin 4.0.3:

Invalid SQL:

                SELECT COUNT(*) AS threads, SUM(IF(thread.lastpost > 1334698432 AND open <> 10, 1, 0)) AS newthread
                FROM vbthread AS thread
                WHERE forumid IN(  )
                AND thread.visible = 1;

MySQL-Fehler  : 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 ')
                AND thread.visible = 1' at line 3


gremrock 05-24-2012 10:08 AM

1 Attachment(s)
Is it possible you can update this mod, in order to have more forums using the articles, rather that being restricted to only one and it's subcategory?

Kind Regards

Athena1984 05-25-2012 10:04 PM

Works great in 4.1.12 but, when saving css as files it messes up the appearance of the form on the bottom.

gnrx 06-05-2012 12:02 AM

How configure the new option for tab in vb 4.2.0?
For example, how configure the line to script in the new option for tab?

Thanks and regards.

PD: Sorry for my english.

Athena1984 06-05-2012 12:42 AM

THIS_SCRIPT would be articles

gnrx 06-05-2012 01:09 AM

Only "THIS_SCRIPT" ?


All times are GMT. The time now is 08:27 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.01365 seconds
  • Memory Usage 1,770KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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