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)

bananalive 03-02-2010 12:17 PM

1 Attachment(s)
Quote:

Originally Posted by Overbr (Post 1994857)
Error !!! :erm:

Upload attached file, i'll update first post in a sec

Edit: updated first post.

Senja 03-03-2010 06:23 AM

The problem with displaying news on the home when the hack.

Overbr 03-03-2010 09:38 AM

Quote:

Originally Posted by bananalive (Post 1995206)
Upload attached file, i'll update first post in a sec

Edit: updated first post.

Hello, bananalive, I first want to thank you for your attention.
Your file attached file is now 100% correct and operational under the platform VB 4.0.2 Congratulations was very good.:up:

Fully functional and all right, thanks for sharing with us.
If you want to give an emphasis on your mod running, follow the link!

http://www.overbr.com.br/forum/articles.php

:D thanks bananalive

Senja 03-03-2010 05:53 PM

I wanted to see in the editor, these functions
http://i072.radikal.ru/1003/63/bf5e06f1b624.jpg

RedHacker 03-06-2010 09:07 PM

Screenshots please....

MrEyes 03-09-2010 10:02 AM

Just installed into my 4.0.1 test site and this is almost perfect for my needs, fantastic mod.

I do have some suggestions though ;)
  • Make the word Articles/Article configurable, I intend to use this mod for a something that would be better titles as "Listing/Listings". As an example rather than a Reply to Article button, it would read Reply to <whatever the config is>.
  • Add option to disable/hide the Most Read / Most Commented / Top Authors boxes on the article homepage.
  • It would be great if it was possible to configure the location of some of the Article homepage boxes, for example I would like to Search and Categories on the left hand side, and Post New and Display options on the right.

Also found a couple of minor quirks
  • When you click on an article to view it, the navbar highlight switches to "Forum" rather than staying on "Article"
  • The mod seems to ignore thread prefixes and does not display these anywhere.

mitch84 03-09-2010 11:35 AM

Hi, with the hack I've a error message when I edit a article on the front pack(cms)
Quote:

Fatal error: Cannot use object of type vB_Legacy_Thread as array in /XXX/packages/vbcms/content.php(985) : eval()'d code on line 1
, so when the hack is desactivated or uninstalled my cms work fine, thx

MrEyes 03-09-2010 11:49 AM

A fix to one of the quirks I mentioned above:

Quote:

Originally Posted by MrEyes (Post 2000343)
The mod seems to ignore thread prefixes and does not display these anywhere.

To fix this, open articles.php and find (approx line 372)

Code:

$threads =        $threads = $db->query_read("
                SELECT thread.*,thread.title AS threadtitle,thread.forumid AS forumid, post.dateline AS postdateline, post.pagetext AS preview, MIN(attachment.attachmentid) AS attachmentid, fd.extension AS extension

Change this to:

Code:

$threads =        $threads = $db->query_read("
                SELECT thread.*,thread.title AS threadtitle,thread.forumid AS forumid, post.dateline AS postdateline, post.pagetext AS preview, MIN(attachment.attachmentid) AS attachmentid, fd.extension AS extension, thread.prefixid

Notice the addition of ', thread.prefixid ' at the end

At approx line 390 find:

Code:

$foruminfo['allowicons'] = 1;
while($thread = $db->fetch_array($threads))
{

Immediately after this paste in:

Code:

if ($thread['prefixid'])
{
        $thread['prefix_rich'] = $vbphrase["prefix_$thread[prefixid]_title_rich"];
}

You should end up with

Code:

$foruminfo['allowicons'] = 1;
while($thread = $db->fetch_array($threads))
{
        if ($thread['prefixid'])
        {
                $thread['prefix_rich'] = $vbphrase["prefix_$thread[prefixid]_title_rich"];
        }

        $thread['pagetext'] = $thread['preview'];

Then, via ACP Style Manager open the 'af_articlebit' template, and find:

Code:

<h3 style="font: normal normal bold 14px/normal Tahoma, Calibri, Verdana, Geneva, sans-serif; margin: 5px 0px 0px; text-decoration: none;">
Immediately after paste in:

Code:

{vb:var thread.prefix_rich}
Save template and that is that

MrEyes 03-09-2010 01:59 PM

A really nasty hack to resolve another of the quirks:

Quote:

Originally Posted by MrEyes (Post 2000343)
When you click on an article to view it, the navbar highlight switches to "Forum" rather than staying on "Article"

To do this you need to add an additional option to ACP - Settings - Article Forum Options, where you specify a comma delimited list of all forum ids that are articles forums (i.e. 7,11,15). Call this af_allarticleforums

Then change the Easy Forms - Forms Tab (Process Templates Complete) hook code to read:

Code:

if ($vbulletin->options['af_navbar'])
{
        if (THIS_SCRIPT == 'articles')
        {
                $vbulletin->options['selectednavtab'] = 'articles';
        }
        else if (($vbulletin->GPC['forumid']) && (in_array($vbulletin->GPC['forumid'], explode(',', $vbulletin->options['af_allarticleforums']))))
        {
                $vbulletin->options['selectednavtab'] = 'articles';
        }
       
        $templater = vB_Template::create('af_navbar');
        $template_hook['navtab_middle'] .= $templater->render();
}

A very nasty hacky way of doing it, but I am trying to avoid rewriting the core of the mod

Jabong82 03-11-2010 10:51 PM

Quote:

Originally Posted by mitch84 (Post 2000384)
Hi, with the hack I've a error message when I edit a article on the front pack(cms), so when the hack is desactivated or uninstalled my cms work fine, thx

I have the same problem when I click to try to read the article. When I turn off the hack as you say everything works fine.

Interesting mod, is there a fix for this? Installed.


All times are GMT. The time now is 07:46 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.03043 seconds
  • Memory Usage 1,760KB
  • 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
  • (8)bbcode_code_printable
  • (6)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