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 |
#2
|
|||
|
|||
Works great, except I had to modify the cmps-articles.php file on line 20 to correct for the image not showing on the home page. They originally showed only if you were within your forums page. Thus, I edited it to this
Code:
$articonimg = "<a href=\"$vboptions[bburl]/articles.php?action=viewarticle&artid=".$articleid."\"><img title=\"".$title."\" src=\"$vboptions[bburl]/articles.php?action=thumb&artid=".$articleid."&id=".$articon."\" border=\"0\" width=".$vbart_options['vbartssthumbwidth']."></a>"; |
#3
|
||||
|
||||
Thanks cinq.
And thanks ptmuldoon, I was just going to come report that.. |
#4
|
||||
|
||||
Thanks for the feedback guys, I have editted the file and reuploaded it.
For those who installed this add-on prior to the date/time of this post, just download the attachment again, and upload it, overwriting your existing cmps_articles.php file. |
#5
|
|||
|
|||
hmm i did didnt show up tho. im looking into it.
|
#6
|
||||
|
||||
Made some code change in the cmps-articles.php file.
If you had previously installed this add-on ( v1.0 ) please download the attachment ( v1.1 ) and upload it to your modules folder, overwriting the old file. Everything else ( other steps highlighted in the first post ) remains the same. |
#7
|
||||
|
||||
Cinq, I cannot thank you enough for all the great work you'd put into this Articles system. I love it and it has added so much potential to my site. Thank you!
|
#8
|
|||
|
|||
i'm not the greatest with html, so any chance someone can make a template to list horizontally as is done in the main article index? i'd appreciate it. excellent hack.
|
#9
|
||||
|
||||
You mean in columns instead Chief ?
|
#10
|
|||
|
|||
Hi!
How can I make the image of the article on the main page be wrapped from the text rather than be left and the text right? There was a hack that did something similar for the news posts on the vbadvanced cmps. Can we make the same here? thanks, Yannis |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|