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)

bananalive 04-18-2009 10:00 PM

Article Forums
 
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
  • Follows forum permissions
  • Can still rate thread, etc.
  • Different postbits for article and replies (comments)
  • Choose what to display in postbit for article and comments
  • Choose what to display on articles in vBulletin Options
* Not compatible with 3.7.x forums *

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
Possible Future Additions:
  • Make article collapsible
  • Allow multiple article forums
Translations:

sctsnipe 04-19-2009 02:38 PM

Installed to www.yoursitename.com/articles.php

Set my forum to the proper one in the options and got this:

Database error in vBulletin 3.8.2:

Invalid SQL:

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

MySQL Error : 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
Error Number : 1064
Request Date : Sunday, April 19th 2009 @ 08:37:20 AM
Error Date : Sunday, April 19th 2009 @ 08:37:20 AM
Script : http://www.yoursitename.com/articles.php?c=40
Referrer : http://www.yoursitename.com/forum.php
IP Address : IP ADDRESS
Username : username
Classname : vB_Database
MySQL Version : 5.0.67-log

Sweeks 04-19-2009 02:41 PM

Installing as soon as no db errors :D
________
VOYEUR TUBE

vibedream 04-19-2009 02:46 PM

Thanks
i got
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]\articles.php on line 100

Jasem 04-19-2009 03:20 PM

Nice work, thank you!:)

Sweeks 04-19-2009 03:27 PM

Went ahead and installed, as soon as I changed the default forum selection I get this:

Code:

Database error in vBulletin 3.8.1:

Invalid SQL:

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

MySQL Error  : 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
Error Number  : 1064
Request Date  : Sunday, April 19th 2009 @ 05:25:51 PM
Error Date    : Sunday, April 19th 2009 @ 05:25:51 PM
Script        : /articles.php
Referrer      :
IP Address    : xxx
Username      : xxx
Classname    : vB_Database
MySQL Version : 5.0.67-community-log

Cant wait for the fix.
________
Bondage Torture

bananalive 04-19-2009 03:27 PM

Quote:

Originally Posted by sctsnipe (Post 1794439)
Installed to www.yoursitename.com/articles.php

Set my forum to the proper one in the options and got this:

fixed error (produced when there are no sub-categories)
Quote:

Originally Posted by vibedream (Post 1794447)
Thanks
i got
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]\articles.php on line 100

fixed, re-download articles.php from first post

Sweeks 04-19-2009 03:28 PM

This works fine aslong as you dont touch the default forum for the articles to be pulled from.
________
HONDA NSR SERIES SPECIFICATIONS

Sweeks 04-19-2009 03:30 PM

Just done the update and still getting this:

Code:

Database error in vBulletin 3.8.1:

Invalid SQL:

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

MySQL Error  : 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
Error Number  : 1064
Request Date  : Sunday, April 19th 2009 @ 05:30:18 PM
Error Date    : Sunday, April 19th 2009 @ 05:30:19 PM
Script        : /articles.php
Referrer      :
IP Address    : xxx
Username      : xxx
Classname    : vB_Database
MySQL Version : 5.0.67-community-l

________
MEDICAL MARIJUANA

bananalive 04-19-2009 03:38 PM

Quote:

Originally Posted by Sweeks (Post 1794477)
Just done the update and still getting this:

Try re-downloading and uploading articles.php now (remember to click allow overwrite)

entertain 04-19-2009 03:41 PM

Can you please upload a screenshot when creating a new article?

Sweeks 04-19-2009 03:45 PM

Thank you it's working now. One question, is there a way to switch it so that it doesnt use the postbit template for replies and instead uses postbit legacy?
________
Pedro Rodr?guez (Racing Driver)

Sweeks 04-19-2009 03:49 PM

Another question, when I click the forums link on forumhome to get to the articles the link URL will be:

/support-articles/

but when clicked takes me to:

/help-articles/?c=188

after adding vbseo custom rewrite rules for article.php.

Is this okay?
________
NEW JERSEY DISPENSARIES

fernas 04-19-2009 03:53 PM

It is possible to add pagination in articles? If not I suggest that :D.

bananalive 04-19-2009 03:56 PM

1 Attachment(s)
Quote:

Originally Posted by entertain (Post 1794486)
Can you please upload a screenshot when creating a new article?

.............

Sweeks 04-19-2009 03:57 PM

The search isnt working for me and displaying all articles from all time.

Also, I cant find where to create a new article either.

Thank you.
________
FISTING TUBE

nohuhu 04-19-2009 04:03 PM

Sweeks,

DB errors seem to arise when you try to choose a forum in Article settings while you should choose a category.

bananalive,

You're the man! It's just the mod I was looking for. Nomination for MOTM, definitely.

Sweeks 04-19-2009 04:03 PM

Actually, the display options/search is fine, I got confused on how it should be used.

But I still lack the new article creation :D

Yes it is working for me now when it is a forum and not a category. I just cant find where to create an article now.
________
ZX14 VS HAYABUSA

bananalive 04-19-2009 04:06 PM

1 Attachment(s)
Quote:

Originally Posted by Sweeks (Post 1794488)
Thank you it's working now. One question, is there a way to switch it so that it doesnt use the postbit template for replies and instead uses postbit legacy?

Added to options in attached file

bananalive 04-19-2009 04:07 PM

Quote:

Originally Posted by Sweeks (Post 1794513)
Actually, the display options/search is fine, I got confused on how it should be used.

But I still lack the new article creation :D

Yes it is working for me now when it is a forum and not a category. I just cant find where to create an article now.

add some sub-forums

bananalive 04-19-2009 04:08 PM

Quote:

Originally Posted by Sweeks (Post 1794494)
Another question, when I click the forums link on forumhome to get to the articles the link URL will be:

/support-articles/

but when clicked takes me to:

/help-articles/?c=188

after adding vbseo custom rewrite rules for article.php.

Is this okay?

not sure

Sweeks 04-19-2009 04:09 PM

Thanks for the sweet and fast update :) works a charm but still no create article anywhere :D

EDIT: Is there any way you could get this to work with just one forum? Instead of needing to use categories?
________
++++ TUBE TV

bananalive 04-19-2009 04:11 PM

Quote:

Originally Posted by nohuhu (Post 1794512)
Sweeks,

DB errors seem to arise when you try to choose a forum in Article settings while you should choose a category.

bananalive,

You're the man! It's just the mod I was looking for. Nomination for MOTM, definitely.

It works for me if i select a forum whether or not it has 'Act as Forum' as yes or no

nohuhu 04-19-2009 04:12 PM

bananalive,

uh... can you bring all article templates under a category? like album templates, announcement templates and so on. that will make style templates list less crowded. :)

and regarding categories, point taken. thanks. :)

bananalive 04-19-2009 04:18 PM

1 Attachment(s)
Quote:

Originally Posted by Sweeks (Post 1794513)
Actually, the display options/search is fine, I got confused on how it should be used.

But I still lack the new article creation :D

Yes it is working for me now when it is a forum and not a category. I just cant find where to create an article now.

Attached files works with one forum, no categories

nohuhu 04-19-2009 04:21 PM

bananalive,

showthread.php gives a warning on top of the page:
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/showthread.php(984) : eval()'d code on line 1

entertain 04-19-2009 04:23 PM

Quote:

Originally Posted by bananalive (Post 1794503)
.............

So this system takes one of the attachments as the "article image"?

bananalive 04-19-2009 04:24 PM

1 Attachment(s)
Quote:

Originally Posted by nohuhu (Post 1794523)
bananalive,

uh... can you bring all article templates under a category? like album templates, announcement templates and so on. that will make style templates list less crowded. :)

and regarding categories, point taken. thanks. :)

done in attached file

bananalive 04-19-2009 04:25 PM

Quote:

Originally Posted by entertain (Post 1794527)
So this system takes one of the attachments as the "article image"?

it will take first attached image if there is one

nohuhu 04-19-2009 04:27 PM

bananalive,

you're lightning fast man! other thing i discovered: in printer-friendly view it doesn't mention anywhere that it's an article. and one more thing, i think article posts shouldn't display user signatures.

Sweeks 04-19-2009 04:28 PM

Thank you. The only problem I can see now is that under Most Read Articles it doesnt have anyone even though people have read and responded and the same with the Most Commented Articles, both are blank. Cheers for those two it is fine other than the problem above :)
________
Medical marijuana dispensaries ventura

bananalive 04-19-2009 04:32 PM

1 Attachment(s)
Quote:

Originally Posted by nohuhu (Post 1794526)
bananalive,

showthread.php gives a warning on top of the page:
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/showthread.php(984) : eval()'d code on line 1

should be fixed in attached file

nohuhu 04-19-2009 04:32 PM

Sweeks, i second that. can't see anything in most commented and most read sections despite the fact that i pointed articles to a rather large category with several subcategories and lots of posts.

nohuhu 04-19-2009 04:34 PM

bananalive,

warning is fixed now, thanks. another suggestion: it would be good to have an option in articles' settings to turn on or off displaying articles link in navbar.

Sweeks 04-19-2009 04:35 PM

Please do the forum version with the most read etc fixed. I also notice the breadcrumbs when viewing the article is wrong and repeats the sites name at least here it does. Thank you :)
________
321

nohuhu 04-19-2009 04:39 PM

bananalive,

uh, i tried to turn "Use article postbit instead of default?" back and forth but it seems that it doesn't use article postbit anymore. same for comment postbit here.

bananalive 04-19-2009 04:39 PM

1 Attachment(s)
Quote:

Originally Posted by Sweeks (Post 1794534)
Thank you. The only problem I can see now is that under Most Read Articles it doesnt have anyone even though people have read and responded and the same with the Most Commented Articles, both are blank. Cheers for those two it is fine other than the problem above :)

try attached file

Sweeks 04-19-2009 04:43 PM

Still not working with the attached file :( also no way to create an article now :(
________
Posh Milf

BlueNinjaGo 04-19-2009 04:45 PM

1 Attachment(s)
I figured I'd try to install this on 3.7.3 to see if it works...

I installed it, and went straight to the options to pick which forums/boards i wanted it to be applied to.

I changed it from what it was defaulted to, to a board in the staff only section.

Immediately, whenever i tried to open a thread in the boards that used to have the article system, it wouldn't open the thread. (see second picture in attachment.)

Also, across the top of every page there is an error message. (First picture in attachment.)

I realize this is a 3.8 mod, but i just thought I'd let you know what happened when I installed it on a 3.7 board.

Suggestion: An enable/disable option in ACP option.

nohuhu 04-19-2009 04:53 PM

1 Attachment(s)
i made "comment" button for default style, see attached file. i think it'll look better than "post reply" button for articles.


All times are GMT. The time now is 10:07 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.01919 seconds
  • Memory Usage 1,838KB
  • 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
  • (6)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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