The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
CMS articles from multiple forums
All right, I'm not sure if this is already a feature, or if there's a modification out there that does this, so please point me in the right direction if either are true. I'm still new to (and very confused by) this CMS stuff, so please bear with me. This may have been answered previously, but I'm not really sure what I'm Searching for, so I couldn't find the answer.
What I would like is a CMS page with two columns. The column on the left would contain a preview of the first post of each of the newest 10 threads in a forum (we'll call it "Forum1"), just like how regular Articles appear in the CMS. The column on the right would contain a preview of the first post of each of the newest 10 threads in "Forum2." Each Article would allow Comments to be posted on it. Comments would show up in the threads as regular posts and (vice versa) posts made in the threads would show up as Comments in the Articles. I do understand that Articles do have their own forum, but I'd actually like each section of Articles to have its own forum. Ideally, new threads posted in these forums would automatically become Articles, but if I have to manually "Promote" it to an Article, that's okay by me. Is this possible? Is this already a feature that I just don't see somewhere? |
#2
|
||||
|
||||
After a bunch of searching with no result, I decided to try and tackle this on my own.
Here is the full (so far) code I am using: PHP Code:
Here are the two templates used by the code: custom_cms_block HTML Code:
<div class="block"> <h2 class="blockhead">{vb:raw head.content}</h2> <div class="blockbody settings_form_border"> <div class="blockrow"> {vb:raw body.content} <div style="clear:both;"> </div> </div> </div> <vb:if condition="$foot"> <div class="blockfoot actionbuttons settings_form_border"> {vb:raw foot.content} </div> </vb:if> </div> HTML Code:
<div class="article_preview"> <div class="title"> <h3 class="article_preview">{vb:raw titlebit}</h3> </div> <div class="cms_article_username">by {vb:raw authorbit} on {vb:raw datebit}</div> <div class="fullwidth article_preview_contents showpreviewonly restore"> <div class="cms_article_txt_content postcontainer"> {vb:raw previewtext} <vb:if condition="$preview_chopped">...</vb:if> </div> </div> <div class="fullwidth"> <span class="cms_article_readmore">Full topic & replies: <img src="{vb:stylevar imgdir_cms}/read_more-{vb:stylevar right}.png" alt="{vb:rawphrase read_more_phrase}" /> {vb:raw titlebit}</span> </div> </div> ------------------------------------------------------------------ This is working okay (although there's a lot I'd like to add), except for the previews cenerated by the following code: PHP Code:
I am pretty lost on where to find the function that parses the previews for the Articles. Could someone kindly point me in the right direction? I'll share mah code with y'all when it's done :P --------------- Added [DATE]1342153095[/DATE] at [TIME]1342153095[/TIME] --------------- Ah, and um, since this thread has turned to something more befitting the programming forum, if one of the Staff would like to move it there, that's fine. |
#3
|
||||
|
||||
Just wanted to bump this, see if anyone's got any input.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|