Log in

View Full Version : [v3Articles & vbAdvanced CMPS] Featured Article Front Page Module (Basic)


wcbryant
06-16-2004, 10:00 PM
v3Articles: Home (http://www.v3arcade.com/play/article.php?) - vb.org Thread (https://vborg.vbsupport.ru/showthread.php?t=65934&highlight=v3articles)
vbAdvanced CMPS: Home (http://www.vbadvanced.com) - vb.org Thread (https://vborg.vbsupport.ru/showthread.php?t=65797&highlight=CMPS)

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

Merjawy
06-16-2004, 11:51 PM
Thnx though the screenshot is not clear.. I will check it out.. I have CMPS installed

thnx

GamerJunk.net
06-17-2004, 04:15 AM
Good work, but I don't like the way it is.

I mean....who makes that many articles in one day?

wcbryant
06-17-2004, 04:48 AM
Good work, but I don't like the way it is.

I mean....who makes that many articles in one day?

No idea what you mean. One article gets flagged as 'featured' in the v3articles area, and the teaser for that appears by itself on the CMPS index page. In the case of the site used in the example, it's the top center column table.

gmarik
06-17-2004, 12:15 PM
It's no CMS...

Tim Wheatley
06-17-2004, 04:43 PM
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:

maximux1
06-17-2004, 07:03 PM
Great work, Bryant! Installed like a charm and quite a needed feature of our boards!

Thanks!

Max
Marijuana.Com

teksigns
06-17-2004, 09:02 PM
it crashes the main page if there is no featured artical ......

any fix?

maximux1
06-17-2004, 10:18 PM
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

Dean C
06-17-2004, 10:33 PM
Thankyou for sharing your work with the community :)

wcbryant
06-17-2004, 10:37 PM
it crashes the main page if there is no featured artical ......


any fix?

Yes, feature an article. :nervous: I'll look at it tonight, but honestly, once you select a featured article, you'll always have one, so it should be a non-issue after that.


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

Selecting a different article as feature is the only set way I've seen of removing the featured tag from an article. Might be able to suggest an option to unset featured status for the next version. On the flip side, the code to set it is down pretty low in article.php, someone might be able to figure out how to add an if statement that would add another link (if the article is featured) that would unfeature.

If they do that, suddenly the bug in this add-on is a bigger deal.

Shack Networks
06-18-2004, 10:06 AM
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

wcbryant
06-18-2004, 12:50 PM
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

Looks good. I certainly have no problem with you posting the how-to here.

Shack Networks
06-18-2004, 01:25 PM
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/showthread.php?&threadid=66237
Author : wcbryant

Hack : v3Articles - vBa CMPS module
Link : https://vborg.vbsupport.ru/showthread.php?&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

//------------------------------------------------------------


<!-- Navigation Block -->
<style type="text/css">
<!--
td.row1 {background:#D5D8E5;border:0px solid; border-color:#ffffff #1b1b1b #1b1b1b #ffffff}
.style1 {color: #D5D8E5}
-->
</style>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet]
Block Title Here</strong></span></td>
</tr>
<tr>
<td class="$getbgrow">
<!-- Section 1 -->
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 WIDTH="100%"><tr class="tcat"><TD class="info1"><b><center>Latest News Articles From [Your Site Here]</center></b></td></tr></table>


<body>


<fieldset class="fieldset">
<legend><b>Featured Article</b></legend>
<table>
$articlecontent
</table>
</fieldset>


//------------------------------------------------------------

adv_portal_article_module

//------------------------------------------------------------

<fieldset class="fieldset">
<legend><b>The Top 5 Latest Articles</b></legend>
<table>
$string
</table>
</fieldset>

</body>
</html>

</td>
</tr>
</table>
<br />
<!-- End Article Block -->


//------------------------------------------------------------

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.

tHe Rk
06-20-2004, 07:04 PM
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. :)

Edric
06-21-2004, 07:43 AM
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).

Edric
06-21-2004, 09:09 AM
Ok if I understood correctly, do I have to install the other two hacks? (vbAdvanced and v3Articles)

maximux1
06-21-2004, 01:41 PM
Ok if I understood correctly, do I have to install the other two hacks? (vbAdvanced and v3Articles)
yes, v3 Artiles and vBa CMPS are necessary to move forward with this mod.


Max

venomx
09-22-2004, 07:13 PM
articleblock.php??? I have both mods installed yet I dont have a articleblock.php....

venomx
09-22-2004, 07:17 PM
No article_cmps either....

venomx
09-22-2004, 07:37 PM
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?

DoKoK
09-30-2004, 03:54 PM
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/showthread.php?&threadid=66237
Author : wcbryant

Hack : v3Articles - vBa CMPS module
Link : https://vborg.vbsupport.ru/showthread.php?&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



Not sure what I'm doing wrong but I don't have an articleblock.php.

The steps before were all completed.

Please help !!!

LPH2004
10-10-2004, 04:54 PM
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:

Reeve of shinra
11-07-2004, 04:31 PM
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.

D-Caf
11-20-2004, 03:41 AM
Works Great! Thanks. Instructions were spot on and seems to work fine in vB3.0.3

jarvis
11-27-2004, 02:30 AM
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!?!

mikexxx
12-16-2004, 06:47 PM
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',

ACentral
12-16-2004, 07:31 PM
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

aranthorn
06-29-2005, 12:01 AM
No article_cmps either....
Same error here, although it looks like this mod's support ia over and done...