Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Article Forums v4.x Details »»
Article Forums v4.x
Version: 4.1.2, by bananalive bananalive is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.x Rating:
Released: 02-27-2010 Last Update: 04-26-2011 Installs: 327
Uses Plugins
Additional Files Translations  
No support by the author.

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

Download Now

File Type: zip vb_articleforum_v4.1.2.zip (24.3 KB, 1440 views)

Screenshots

File Type: jpg 4_main.jpg (112.3 KB, 0 views)
File Type: jpg 4_subcat.jpg (87.1 KB, 0 views)
File Type: jpg 4_thread.jpg (77.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
kylek

Comments
  #32  
Old 03-02-2010, 12:17 PM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Overbr View Post
Error !!! :erm:
Upload attached file, i'll update first post in a sec

Edit: updated first post.
Attached Files
File Type: php articles.php (22.3 KB, 32 views)
Reply With Quote
  #33  
Old 03-03-2010, 06:23 AM
Senja Senja is offline
 
Join Date: Jun 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem with displaying news on the home when the hack.
Reply With Quote
  #34  
Old 03-03-2010, 09:38 AM
Overbr Overbr is offline
 
Join Date: Mar 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bananalive View Post
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

thanks bananalive
Reply With Quote
  #35  
Old 03-03-2010, 05:53 PM
Senja Senja is offline
 
Join Date: Jun 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wanted to see in the editor, these functions
Reply With Quote
  #36  
Old 03-06-2010, 09:07 PM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshots please....
Reply With Quote
  #37  
Old 03-09-2010, 10:02 AM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #38  
Old 03-09-2010, 11:35 AM
mitch84 mitch84 is offline
 
Join Date: Mar 2008
Location: france
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #39  
Old 03-09-2010, 11:49 AM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A fix to one of the quirks I mentioned above:

Quote:
Originally Posted by MrEyes View Post
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
Reply With Quote
  #40  
Old 03-09-2010, 01:59 PM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A really nasty hack to resolve another of the quirks:

Quote:
Originally Posted by MrEyes View Post
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
Reply With Quote
  #41  
Old 03-11-2010, 10:51 PM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mitch84 View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07001 seconds
  • Memory Usage 2,354KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete