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 02-27-2010 10:00 PM

Article Forums v4.x
 
1 Attachment(s)
Turn a forum into an article forum. Sub-forums are turned into categories.
  • Posts/Articles show in searches & in new posts
  • Create as many sub-forums/ categories as you need - categories display in navbar
  • Follows forum permissions
  • Can still rate thread, etc.
  • Different postbits for article and replies (comments) - Optional
  • Choose what to display in postbit for article and comments
  • Choose what to display on articles in vBulletin Options
Installation:
  1. Upload articles.php
  2. Import product file
  3. Create a forum in admincp
  4. Go to vBulletin Options->Article forum Options
Remember to click Mark as Installed to receive updates and support

bananalive 02-28-2010 03:30 PM

reserved post for version history

bananalive 02-28-2010 03:31 PM

reserved post for screenshots

RedHacker 02-28-2010 03:53 PM

Screenshots...?

rizelim 02-28-2010 04:16 PM

Thank you

ChopSuey 02-28-2010 04:34 PM

Wow i've been waiting for this thank you soo much!

ChopSuey 02-28-2010 04:59 PM

Problem look here http://forum.vbdiscussions.com/articles.php

Also see here - BIG Spacing lol http://forum.vbdiscussions.com/showthread.php?t=2440

Chosen - "Add articles.php to navbar" it doesn't add it.

akvaryumforum 02-28-2010 05:42 PM

articles.php Alternative Display- Yes = Broken

Articles.php Thumbnail = Yes = Not Show Attachments

AzzidReign 02-28-2010 05:47 PM

Waiting to check out the screen shots.

DivineMessenger 02-28-2010 07:59 PM

Is this in working condition or should I wait?

This mod automatically makes threads into articles and uses post replies as comments correct?

If I have 4 forum categories with articles could I have them auto added to certain categories of the CMS?

bananalive 02-28-2010 08:22 PM

Quote:

Originally Posted by DivineMessenger (Post 1993975)
Is this in working condition or should I wait?

It's in working condition but it's beta as they may be some things not working.
Quote:

Originally Posted by DivineMessenger (Post 1993975)
This mod automatically makes threads into articles and uses post replies as comments correct?

Yes
Quote:

Originally Posted by DivineMessenger (Post 1993975)
If I have 4 forum categories with articles could I have them auto added to certain categories of the CMS?

It has nothing to do with the cms, you would need a different modification to do that.....

DivineMessenger 02-28-2010 08:23 PM

Installed. I think it's nice, the theming could be a little crisper and it would be nice if there was an option to show more of an article by default but this looks very promising.

Nice if you don't have a CMS, I hope someone makes something like this for the CMS though.

Best of luck to you =]

goyo 02-28-2010 08:29 PM

Quote:

Originally Posted by giorgino (Post 1993877)
reserved post

Reserved for what :confused:

RedHacker 02-28-2010 08:37 PM

Screenshots please or demo...?

bananalive 02-28-2010 08:55 PM

Quote:

Originally Posted by akvaryumforum (Post 1993865)
articles.php Alternative Display- Yes = Broken

Articles.php Thumbnail = Yes = Not Show Attachments

Cheers, alternative display is no longer applicable so i'll remove that option

Attachment thumbnails will be fixed in next version.

bananalive 02-28-2010 08:57 PM

Quote:

Originally Posted by DivineMessenger (Post 1993987)
Installed. I think it's nice, the theming could be a little crisper and it would be nice if there was an option to show more of an article by default but this looks very promising.

Nice if you don't have a CMS, I hope someone makes something like this for the CMS though.

Best of luck to you =]

You can alter how much of an article to display on articles.php:


vBulletin Options -> Article Forum Options -> Article Preview Length

bananalive 02-28-2010 08:58 PM

Quote:

Originally Posted by RedHacker (Post 1993998)
Screenshots please or demo...?

I'll add screenshots today or tomorrow when i get a chance

bananalive 02-28-2010 09:06 PM

Quote:

Originally Posted by ChopSuey (Post 1993843)
Problem look here http://forum.vbdiscussions.com/articles.php

Also see here - BIG Spacing lol http://forum.vbdiscussions.com/showthread.php?t=2440

Chosen - "Add articles.php to navbar" it doesn't add it.

Try deselecting alternative display.

Navbar link has been added to v4.0.1

bananalive 02-28-2010 09:18 PM

All reported errors fixed in v4.0.1

akvaryumforum 02-28-2010 09:27 PM

If the article forum is HTML allowed one, product not parse the HTML code.

ChopSuey 03-01-2010 02:45 AM

You have just uploaded the XML file in first post, i think you neeed the articles.php too lol.

DivineMessenger 03-01-2010 03:51 AM

BUG: it auto logs me out whenever I go to the articles.

Overbr 03-01-2010 09:49 AM

Good morning, where is the file ARTICLES.PHP to download?

thanks

ChopSuey 03-01-2010 10:48 AM

The latest update doesn't display settings in AdminCP > Settings > Options > Article Forum Options

Doesn't exist anymore.

Feature request

Change showthread.php?t=1 to articles.php?a=1 just like how you changed the forums into articles.php?c=1

Overbr 03-01-2010 12:30 PM

Quote:

Originally Posted by ChopSuey (Post 1994398)
The latest update doesn't display settings in AdminCP > Settings > Options > Article Forum Options


Doesn't exist anymore.

Feature request

Change showthread.php?t=1 to articles.php?a=1 just like how you changed the forums into articles.php?c=1

thanks,, yuor answer ! Sorry my english.

Well !! Look this after install you mod.

ERROR

Quote:

Database error in vBulletin 4.0.2:

Invalid SQL:
SELECT thread.*,thread.title AS threadtitle, post.dateline AS postdateline, post.pagetext AS preview, attachment.thumbnail_filesize AS thumbsize, MIN(attachment.attachmentid) AS attachmentid
FROM vb_thread AS thread
LEFT JOIN vb_post AS post
ON (post.postid = thread.firstpostid)
LEFT JOIN vb_attachment AS attachment
ON (attachment.postid = thread.firstpostid AND attachment.extension IN('jpg', 'gif', 'png', 'jpeg', 'bmp'))
WHERE thread.forumid IN (80,80,85,101,96,95,150,81,82,83,94,84,112,138,-1)
AND thread.visible = 1
GROUP BY thread.threadid
ORDER BY thread.dateline DESC

LIMIT 0, 8;

MySQL Error : Unknown column 'attachment.thumbnail_filesize' in 'field list'

Error Number : 1054
Request Date : Monday, March 1st 2010 @ 11:26:11 AM
Error Date : Monday, March 1st 2010 @ 11:26:11 AM
Script : http://www.XXXXX.com.br/forum/articles.php?c=80
Referrer : http://www.XXXXX.com.br/forum/index.php
IP Address : XXX.XXX.XXX.XXX
Username : XXXXX
Classname : vB_Database
MySQL Version : 5.0.81-community

Please, what to do or what the correct procedure?

akvaryumforum 03-01-2010 01:24 PM

CMS articles crashes if used with "[CMS] Use original thread for comments" mod by Carnage.

When try to read, add or promote a thread or post to an article there is an error massage show. It's here:

Code:

Fatal error: Cannot use object of type vB_Legacy_Thread as array in /.../.../.../.../public_html/forum/packages/vbcms/content.php(985) : eval()'d code on line 25

hollosch 03-01-2010 02:01 PM

Quote:

Originally Posted by Overbr (Post 1994370)
Good morning, where is the file ARTICLES.PHP to download?

thanks


Missing...

ChopSuey 03-01-2010 02:34 PM

Quote:

Originally Posted by Overbr (Post 1994442)
thanks,, yuor answer ! Sorry my english.

Well !! Look this after install you mod.

ERROR



Please, what to do or what the correct procedure?

I am not the modification author but you need to uninstall the mod until you get hte articles.php file uploaded.

bananalive 03-01-2010 06:43 PM

Uploaded the right file now :)

Overbr 03-02-2010 12:02 AM

Error !!! :erm:

Quote:

Database error in vBulletin 4.0.2:

Invalid SQL:

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
FROM vb_thread AS thread
LEFT JOIN vb_post AS post
ON (post.postid = thread.firstpostid)
LEFT JOIN vb_attachment AS attachment
ON (attachment.contentid = thread.firstpostid AND attachment.contenttypeid = 1)
LEFT JOIN filedata AS fd ON (fd.filedataid = attachment.filedataid AND fd.extension IN('jpg', 'gif', 'png', 'jpeg', 'bmp'))
WHERE thread.forumid IN (85,85,-1)
AND thread.visible = 1
GROUP BY thread.threadid
ORDER BY thread.dateline DESC

LIMIT 0, 8;

MySQL Error : Table 'XXXXXXXX.filedata' doesn't exist
Error Number : 1146

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 06:21 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.01564 seconds
  • Memory Usage 1,843KB
  • 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
  • (9)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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