View Single Post
  #1  
Old 02-17-2006, 05:04 AM
 
jsa jsa is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 197
 

Default Including php on main page (to show vb posts)

Hi all

I want to include the last 5 or so topics posted to my forum on my main x-cart page.

I've found I can do that with this vbulletin hack called vbExternal. I'll give a link in case someone else wants to do this, too:
http://www.vbulletin.org/forum/showthread.php?t=83005

The thing is, it requires using some php.

You have to include this to give you the base code:

Code:
<?php chdir('./forums'); require_once('./vBExternal.php'); ?>

then use this to display the newest threads:

Code:
<?php output_NewestThreads(5,"1,2,3"); ?>

Is there a way to get this to work?
__________________
Building: X-Cart GoldPlus 4.6.1
Old cart:
XC 4.0.17 FComp-RMA-AOM-OFF-Affil
BCSE: Referral Pts-Surveys-BatchUp-OrderEZ- Reviews-RSS
FT: Glossary-OptCopt-AdvSrch-Recently Viewed-Also Bought
CM: eZConversion
XP: SalesRecovery, MultCrncy
Reply With Quote