![]() |
[ADDON] cinq's vbArticles Latest 3 Featured Articles CMPS Module
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> adv_portal_articles Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> 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 |
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>"; |
Thanks cinq.
And thanks ptmuldoon, I was just going to come report that.. |
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. |
hmm i did didnt show up tho. im looking into it.
|
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. |
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!
|
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.
|
You mean in columns instead Chief ?
|
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 |
Quote:
|
I'm getting an error when I'm putting in the include file.
the article system says syntax error 1064 and the cmps portal dosn't display images. |
Quote:
|
I followed the instructions, but it did not showing up on my portal. Any suggestions?
When I try to add the module, i get the following SQL error: Quote:
|
Nice one. Installed on my test machine and it works perfectly.
Btw, is it possible to display the beginning portion of the article (say, the first 1000 words)? I noticed mine only display the article title and summary. |
Quote:
|
I have a slight problem...the paths with this mod have the admin section as admincp my admin folder is just admin....
I removed the cp from the install files but I can't get the mod to update the templates etc. Is there a way to uninstall this, correct the admin path and then reinstall? |
Does this only display featured articles, or can it be configured to display latest articles, if so, how?
Many thanks and great hack. |
Will this work with VBPortal???
|
I could definately use a column version of this hack.
Aceman |
is it possible to make it look like how the features articles bit looks on the actual articles section?
|
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"> and adv_portal_articlesbits HTML Code:
<td valign="top" align="center" class="alt1" width="20%"> But look at my index: www.blaminator.co.uk the tables are touching, if i add a <br> it messes everything up :/ |
Quote:
At the end of "adv_portal_articles" add: HTML Code:
</table><br> Thanks for the idea! :) |
Is there a way to change the display order of the featured articles so that the most recient article is on top?
|
Quote:
|
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.
|
Quote:
|
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:
|
there shouldn't be any problems .. it's a simple upgrade
You do not need to do anything on your end. |
Thank you for the suggestion. I have already emailed them asking that this be done. :)
Quote:
|
I've installed this hack but can't get it to show up, what should I check? What do you mean by refreshing the index page? I'm using vBAdvanced.
EDIT: I just installed the top_rep hack for vBA with no problems. The box for this hack isn't even showing up. |
I've installed everything identical to my 3.0.5 setup on another site but this 3.0.7 install doesn't show the image on the CMPS page. It shows fine within the Articles portion of the site. (www.triumphowners.org)
Any ideas? |
In the attached photo you'll notice that there is a larger border on the middle of three articles being featured on the CMPS page. How can I change the border on the center display so that all three featured articles look the same? Thanks!
I'll bet it is the alternating colors 1 and 2 isn't it? How would I override that for this display? |
I'm stumped. I've done everything I can think of but the image does not show up on the CMPS page. I've attached an image showing the article image displayed on the ARticles page and an image that shows the image no show on the CMPS.
It is very strange cause it works on one of my sites but not the other. The files on both sites are identical (except path info). The only difference between the two sites is that the one that works is running vBulletin 3.0.5 and the one that doesn't is running 3.0.7. Any ideas are appeciated. Thanks. |
Be sure to activate the new module (mine is called "Featured Articles") in your AdminCP (vBa CMPS, Edit Modules, Featured Articles). Then you need to make sure it is turned on for the particular page where you want it to appear. I have mine on my main page so I edit the Default/Home Page (AdminCP, vBa CMPS, Edit Pages, Default/Home Page). Hope this helps!
Quote:
|
yep, both are checked. I may move away from this system anyway, since it will be paid in the future.
|
thanks
|
Okay I've got to quit working on the computer so much. I found the problem. Somehow in the process of editing three sites I forgot to add the vba_cmps_include_top.php edit. Sorry!
Quote:
|
Installed and module shows without picture .. when I try and add the vba_cmps_include_top.php edited file I receive error :-
Code:
Database error in vBulletin 3.0.6: |
please tell me what happen when i install it.
Quote:
My Full Database infor Database nhactinhvienxu_us_-_diendan - Table article running on localhost |
All times are GMT. The time now is 05:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|