Back to vBulletin 3.0 Add-Ons

[ADDON] cinq's vbArticles Latest 3 Featured Articles CMPS Module
Mod Version: 1.1, by cinq

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 23
Released: 22 Feb 2005 Last Update: 25 Feb 2005 Downloads: 12
Not Supported  

A small addon to show the latest 3 featured articles on your Portal page.
This add on CMPS module is for cinq's vbArticles Hack v2.0

Hack version 1.1

Install instructions
===========================================

1. Upload the cmps-articles.php file to your modules directory.

2. Create 2 new templates:

a. First template:

adv_portal_articlesbits
Code:
	<tr>
		<td class="$getbgrow" width="100%">
		<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="0" class="tborder" width="100%">
		<tr>
		<td width="20%" align="center">$articonimg</td>
		<td width="80%" align="left"><span class="smallfont"><b>Title: <a href=$vboptions[bburl]/articles.php?action=viewarticle&artid=$articleid>$title</a></b>
		<br>$summary</span></td>
		</tr>
		</table>
		</td>
	</tr>
b. Second template:

adv_portal_articles
Code:
<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] Featured Articles</strong></span></td>
	</tr>
$articlesbits
</table>
<br />
3. Next, perform the following file edits.

a. In your global.php file

FIND
PHP Code:
$specialtemplates array_merge($specialtemplates
        array(
            
'adv_modules',
            
'adv_portal_opts',
            
'attachmentcache',
            
'bbcodecache',
            
'birthdaycache',
            
'eventcache',
            
'iconcache',
            
'maxloggedin',
            
'smiliecache',
            
'userstats'
        
)
    ); 
REPLACE WITH
PHP Code:
$specialtemplates array_merge($specialtemplates
        array(
            
'adv_modules',
            
'adv_portal_opts',
            
'attachmentcache',
            
'bbcodecache',
            
'birthdaycache',
            
'eventcache',
            
'iconcache',
            
'maxloggedin',
            
'smiliecache',
            
'userstats',
            
'vbart_options'
        
)
    ); 
Save and upload global.php

b. In your includes/vba_cmps_include_top.php file

FIND
PHP Code:
$portalopts unserialize($datastore['adv_portal_opts']); 
ADD ABOVE
PHP Code:
$vbart_options unserialize($datastore['vbart_options']);
unset(
$datastore['vbart_options']); 
Save and upload includes/vba_cmps_include_top.php

4. Next, create the new module using the drop down menu, selecting "cmps-articles.php".
In the "templates used" field enter the following templates: 'adv_portal_articles, adv_portal_articlesbits'

5. Don't forget to update your index pages(s) to show the new module.

6. Done !

===========================================

Enjoy
- cinq

Download

This modification is archived and cannot be downloaded.

Similar Mods

vBadvanced CMPS 2nd Latest Topics Module addon / for specific forums vBulletin 3.0 Full Releases
[ADDON] cinq's vbArticles Latest Featured Articles on ForumHome vBulletin 3.0 Full Releases
[ADDON] cinq's vbArticles Latest 3 Articles VBIndex Block vBulletin 3.0 Full Releases
[Addon] cinq's vbArticles Hack v2.0 - Show number of articles per category vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024