The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[ADDON] cinq's vbArticles Latest 3 Featured Articles CMPS Module Details »» | |||||||||||||||||||||||||||
[ADDON] cinq's vbArticles Latest 3 Featured Articles CMPS Module
Developer Last Online: Nov 2023
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> 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 /> a. In your global.php file FIND PHP Code:
PHP Code:
b. In your includes/vba_cmps_include_top.php file FIND PHP Code:
PHP Code:
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 Show Your Support
|
Comments |
#22
|
|||
|
|||
is it possible to make it look like how the features articles bit looks on the actual articles section?
|
#23
|
|||
|
|||
Ok, i've done a bit of editing heres my templates:
adv_portal_articles HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr><td class="tcat" align="left">$vbphrase[vbart_featured]</td></tr> <tr> <td class="alt2" align="left" valign="top"> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="left"> <tr>$articlesbits</tr> </table> </td> </tr> and adv_portal_articlesbits HTML Code:
<td valign="top" align="center" class="alt1" width="20%"> <a href="articles.php?action=viewarticle&artid=$featuredid">$articonimg</a><br> <a href="articles.php?action=viewarticle&artid=$featuredid"> <span class="smallfont"><b>$title</b></span></a> </td> But look at my index: www.blaminator.co.uk the tables are touching, if i add a <br> it messes everything up :/ |
#24
|
|||
|
|||
Quote:
At the end of "adv_portal_articles" add: HTML Code:
</table><br> Thanks for the idea! |
#25
|
|||
|
|||
Is there a way to change the display order of the featured articles so that the most recient article is on top?
|
#26
|
|||
|
|||
Quote:
|
#27
|
||||
|
||||
I've installed on my 3.0.7 and CMPS 1.0.1 site (www.triumphowners.org) and image shows up fine in the Articles page but not on the CMPS portal page. I installed the revised cmps_articles.php file but no good. CMPS portal page seems to load slower now too. Any help is most appreciated.
|
#28
|
||||
|
||||
Quote:
|
#29
|
||||
|
||||
Thanks for the quick reply Princeton. What is the datastore? I assume I'd have to ask my server supplier to upgrade the PHP, but any concerns on affecting anything else if they do?
Randy Quote:
|
#30
|
||||
|
||||
there shouldn't be any problems .. it's a simple upgrade
You do not need to do anything on your end. |
#31
|
||||
|
||||
Thank you for the suggestion. I have already emailed them asking that this be done.
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|