X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Including php on main page (to show vb posts) (https://forum.x-cart.com/showthread.php?t=19980)

jsa 02-17-2006 05:04 AM

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?

cotc2001 02-17-2006 09:42 AM

try
Quote:

{php}
chdir('./forums');
require_once('./vBExternal.php');
{/php}

and then

Quote:

{php}
output_NewestThreads(5,"1,2,3");
{/php}

jsa 02-25-2006 01:02 PM

So that's how you include php on smart pages... wow! Thanks a million!

I'm going to try this out ASAP.

Thanks again! :)


All times are GMT -8. The time now is 06:50 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.