Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[v3Articles & vbAdvanced CMPS] Featured Article Front Page Module (Basic) Details »»
[v3Articles & vbAdvanced CMPS] Featured Article Front Page Module (Basic)
Version: 1.00, by wcbryant wcbryant is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 06-16-2004 Last Update: Never Installs: 22
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-17-2004, 10:37 PM
wcbryant wcbryant is offline
 
Join Date: Dec 2003
Location: Florida
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by teksigns
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.

Quote:
Originally Posted by maximux1
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.
Reply With Quote
  #13  
Old 06-18-2004, 10:06 AM
Shack Networks Shack Networks is offline
 
Join Date: Apr 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 06-18-2004, 12:50 PM
wcbryant wcbryant is offline
 
Join Date: Dec 2003
Location: Florida
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shack Networks
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.
Reply With Quote
  #15  
Old 06-18-2004, 01:25 PM
Shack Networks Shack Networks is offline
 
Join Date: Apr 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
<!-- 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

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

PHP Code:
                    <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.
Reply With Quote
  #16  
Old 06-20-2004, 07:04 PM
tHe Rk tHe Rk is offline
 
Join Date: Jan 2004
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 06-21-2004, 07:43 AM
Edric Edric is offline
 
Join Date: Mar 2004
Location: Melita, Evropa Latina
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #18  
Old 06-21-2004, 09:09 AM
Edric Edric is offline
 
Join Date: Mar 2004
Location: Melita, Evropa Latina
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok if I understood correctly, do I have to install the other two hacks? (vbAdvanced and v3Articles)
Reply With Quote
  #19  
Old 06-21-2004, 01:41 PM
maximux1's Avatar
maximux1 maximux1 is offline
 
Join Date: Mar 2002
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Edric
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
Reply With Quote
  #20  
Old 09-22-2004, 07:13 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

articleblock.php??? I have both mods installed yet I dont have a articleblock.php....
Reply With Quote
  #21  
Old 09-22-2004, 07:17 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No article_cmps either....
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 01:52 AM.


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.04838 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete