Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[ADDON] cinq's vbArticles Latest 3 Featured Articles CMPS Module Details »»
[ADDON] cinq's vbArticles Latest 3 Featured Articles CMPS Module
Version: 1.1, by cinq cinq is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 02-21-2005 Last Update: 02-24-2005 Installs: 23
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 06-29-2005, 09:32 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cinq, what would we do if the global php section isn't there?
Reply With Quote
  #43  
Old 07-02-2005, 05:02 AM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok these edits I'm posting are if you us vbadvanced portal 2.0 then follow these steps:
In your vba_cmps_include_template.php find:
Code:
$specialtemplates = array_merge($specialtemplates, 
	array(
		'adv_modules',
		'adv_portal_opts',
		'adv_portal_page',
		'attachmentcache',
		'bbcodecache',
		'birthdaycache',
		'eventcache',
		'iconcache',
		'maxloggedin',
		'rankphp',
		'smiliecache',
		'userstats',
	)
);
Replace with:
Code:
$specialtemplates = array_merge($specialtemplates, 
	array(
		'adv_modules',
		'adv_portal_opts',
		'adv_portal_page',
		'attachmentcache',
		'bbcodecache',
		'birthdaycache',
		'eventcache',
		'iconcache',
		'maxloggedin',
		'rankphp',
		'smiliecache',
		'userstats',
        'vbart_options'
	)
);

In your vba_cmps_include_top.php find:
Code:
$cmps_options = unserialize($datastore['adv_portal_opts']);
Add Above:
Code:
$vbart_options = unserialize($datastore['vbart_options']);
unset($datastore['vbart_options']);
Enjoy and glad I could help.
Reply With Quote
  #44  
Old 08-09-2005, 07:37 AM
michaelsilvia michaelsilvia is offline
 
Join Date: Jul 2005
Location: South Korea
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did everthing, but it is not showing up.

In my ACP, the modules are showing in the CMPS hack, BUT the module does not show up:

http://forums.usfkclassifieds.com/

What do you mean by this:

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

Mike
Reply With Quote
  #45  
Old 08-31-2005, 01:37 PM
DonLKSAB DonLKSAB is offline
 
Join Date: Dec 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same here cant get it to show up.

Anyone managed to get the module to show up in RC2?

/DonLKSAB
Reply With Quote
  #46  
Old 09-17-2005, 06:20 PM
DonLKSAB DonLKSAB is offline
 
Join Date: Dec 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Noone managed to get it to show up?

/DonLKSAB
Reply With Quote
  #47  
Old 10-09-2005, 08:06 PM
wim20178 wim20178 is offline
 
Join Date: Dec 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my mistake ... shouldnt have posted
Reply With Quote
  #48  
Old 01-05-2006, 01:55 AM
Sean S's Avatar
Sean S Sean S is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wim20178
my mistake ... shouldnt have posted
I just installed this one today for my site and I also couldn't get the thumbnails to show up, so here is a little fix that I made for the thumbnails to show, it worked for me so hopefully it will work for you.

first, for the new version of vba, follow the updated instructions at post 42, https://vborg.vbsupport.ru/showpost....8&postcount=42

after that, replace lines 20 to 22 in cmps_articles.php with the following,

Code:
		$articon=$featuredbits['icon'];
		$articonimg = '<a href="' . $vboptions[bburl] . '/articles.php?action=viewarticle&artid=' . $articleid . '"><img title="' . $title . '" src="' . $articon . '" border=1></a>';
that should fix the problem with the images not showing up.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05015 seconds
  • Memory Usage 2,299KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete