vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [v3Articles & vbAdvanced CMPS] Featured Article Front Page Module (Basic) (https://vborg.vbsupport.ru/showthread.php?t=66237)

wcbryant 06-17-2004 10:37 PM

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.

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

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.

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/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.

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

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

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....


All times are GMT. The time now is 06:54 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.01312 seconds
  • Memory Usage 1,768KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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