![]() |
[v3Articles & vbAdvanced CMPS] Featured Article Front Page Module (Basic)
v3Articles: Home - vb.org Thread
vbAdvanced CMPS: Home - vb.org Thread This takes the same featured article teaser that displays on your article.php page, and pulls it in as a center column module in CMPS. The template is easy to edit, so you should be able to have it show up any way you like. The number of characters to be displayed is controlled by what you set (or is set by default) in the v3article settings, but could be hard coded in cmps_feature if you wish it to be different. I said 'basic' in the subject line, because there are other people working on much more advanced and involved implementations of this. Also, the image handling code is commented out in cmps_feature.php, it should work fine if you remove the comments, but that's not something I've tested as I don't want the image functionality for the front page. Thanks to John for v3articles and Tigga/Brian for both CMPS and the last key bit of info that made this module work. Not surprisingly, both are up for HotM. Too bad it's at the same time, I want to vote for both. --edit-- If the screenshot doesn't help, you can see this in use at http://www.buckeyeplanet.com |
Thnx though the screenshot is not clear.. I will check it out.. I have CMPS installed
thnx |
Good work, but I don't like the way it is.
I mean....who makes that many articles in one day? |
Quote:
|
It's no CMS...
|
What are you guys on about?
This is an ADDON like it says by the word 'module'. This pulls the featured article from v3articles onto the mainpage of your site, which I asked for in the v3articles thread, so thanks wcbryant, *I* appreciate it. :up: |
Great work, Bryant! Installed like a charm and quite a needed feature of our boards!
Thanks! Max Marijuana.Com |
it crashes the main page if there is no featured artical ......
any fix? |
Well - in looking for a fix for this, I realized that there appears to be no way to unset an article from being a feature once it is set as a feature article.
Im I overlooking something, or is making an article a feature no reversable? max |
Thankyou for sharing your work with the community :)
|
Quote:
Quote:
If they do that, suddenly the bug in this add-on is a bigger deal. |
I dont see it as a bug, more of a feature.
I did some template hacking and came up with the block bellow, its kinda a merge of both article block hacks. I will post up how to do it if no one objects, its realy easy to do and only took me 2 mins but I think it looks nice :) It would be nice to be able to use the first posted image as a thumbnail in the block as this would make it look realy nice. H |
Quote:
|
This is an easy template edit to allow you to display the contents of 2 different hacks using different php files into one block displaying the content of both. I take no credit whatsoever for the hacks as they were not made by me, I just did some template changes to suit my forum and wish to share them with others.
Ok first of all you need to install both the following hacks into your vbuletin install. Please backup your Vbull templates. Hack : [v3Articles & vbAdvanced CMPS] Featured Article Front Page Module (Basic) Link : https://vborg.vbsupport.ru/showthrea...threadid=66237 Author : wcbryant Hack : v3Articles - vBa CMPS module Link : https://vborg.vbsupport.ru/showthrea...threadid=66265 Author : maximux1 Once these are installed you need to make 2 modules we will call one Article Block A and one Article Block B details of which are as follows. Block Name : Article Block A Identifier : articleblocka PHP File : articleblock.php Active : Yes Column : Center Templates : adv_portal_blog,article_cmps Block Name : Article Block B Identifier : articleblockb PHP File : articleblock.php Active : Yes Column : Center Templates : adv_portal_article_module Set both blocks so that B is underneath A when displaid on the forum Now for your template edits...Replace the contents of both templates bellow with the text bellow the template name. //------------------------------------------------------------ adv_portal_blog //------------------------------------------------------------ PHP Code:
//------------------------------------------------------------ adv_portal_article_module //------------------------------------------------------------ PHP Code:
//------------------------------------------------------------ Dont forget to change the line The 'Top 5 Latest Articles' to show how many articles you are displaying, this can be configured in cmps-articles.php Thats it, go add some Articles and ensure you set at least one of them as a featured article. |
Hacked worked like a charm and looks fantastic. To see it in action you can also check out www.xgplanet.com. Very simple and easy, works perfect. :)
|
Hello.
I currently have a phpBB Forum but I plan to move to vB3. I have some questions regarding this hack or hacks. First of all, is this one single hack which is a combination of the vbAdvanced Home Page Hack and the v3Articles Hack, or is it something else? I intend to implement this hack because it looks good (I checked the site address given in the first post, something about American Football). What I would like to know is this: How do I set it up so that I have the home page (vbAdvanced) at the root folder (.com) and the Forums at .com/forum and the articles section at something like .com/info? I excuse myself if this is answered with some document in the software, I am currently trying to fix a problem with my PC which does not allow me to download, my sister or my mother must have meddled with my firewall (plus I cannot download vBulletin yet because they have not processed my Membership Renewal yet, I guess). |
Ok if I understood correctly, do I have to install the other two hacks? (vbAdvanced and v3Articles)
|
Quote:
Max |
articleblock.php??? I have both mods installed yet I dont have a articleblock.php....
|
No article_cmps either....
|
wcbryant I had this working on my old server. I moved the site to a new server and the cmps_index.php was white. If I disable this MOD it works fine. As soon as I turn it on its white again. I made an article and set it to featured yet the page is still white. Any ideas?
|
Quote:
The steps before were all completed. Please help !!! |
Files and instructions must have been changed since this thread began. I do not get text but blank areas between quotes. I can use the "most recent articles" hack on the cmps_index and everything is fine but I'd love to show some of the text.
I've noticed others are asking the same questions -- file names must have been changed and instructions are different. Regardless, this doesn't seem to work with my installation. I've installed, reinstalled, changed names, etc. I've asked on another board for people to show the screenshot of their admincp edit module setup so that I can see if that is setup wrong. :disappointed: |
Tigga helped me figure this one out... make sure in global.php that 'featuredarticle' is last in $specialtemplates array. Not sure why but *shrug*, I am not complaining.
|
Works Great! Thanks. Instructions were spot on and seems to work fine in vB3.0.3
|
Okay question... hopefully I don't confuse everyone. :ermm:
This hack is exactly what I am looking for to compliment my v3articles install. My questions is on layout. How hard would it be to have the module displayed across the entire table width ABOVE the left, right, center module areas so that it is truly called out as a featured article. For example, the v3articles article.php puts the featured article across the whole page above the categories. Would something like that be done easily or is it too much to ask for? ;) Have I confused you yet!?! |
i'm running v 3.0.3 this is not in my global.php file ??
==[Step 3]============================= Edit global.php; --{find}------------------------------- 'adv_modules', 'adv_portal_opts', |
Can this be used with vBIndex? Or is there something like this for v3Articles + vBIndex? Surely there are a lot of vBIndex users who'd like something like this.
Thanks |
Quote:
|
All times are GMT. The time now is 04:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|