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 |
#32
|
|||
|
|||
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. |
#33
|
||||
|
||||
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? |
#34
|
||||
|
||||
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? |
#35
|
||||
|
||||
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. |
#36
|
||||
|
||||
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:
|
#37
|
|||
|
|||
yep, both are checked. I may move away from this system anyway, since it will be paid in the future.
|
#38
|
|||
|
|||
thanks
|
#39
|
||||
|
||||
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:
|
#40
|
||||
|
||||
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: Invalid SQL: SELECT a.title, a.articles_articleid, a.icon, SUM(r.rating) / COUNT(r.rating) avg FROM articles_article a LEFT JOIN articles_rating r ON a.articles_articleid = r.articleid WHERE a.featured=1 GROUP BY a.articles_articleid ORDER BY RAND() LIMIT mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8 mysql error number: 1064 |
#41
|
|||
|
|||
please tell me what happen when i install it.
Quote:
My Full Database infor Database nhactinhvienxu_us_-_diendan - Table article running on localhost |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|