Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Is there any existing contribution that allows an InfoBox display a list of the forum's recent posts? I tried searching the forum and contributions but only came up with a "InvisionBoard Integration" which didn't seem to work. Some parts of the instructions were unclear, but I believe that one was to combine the logins only.

Posted

easiest thing to do in an invision board, is to click on 'View New Posts' and then they are all there.

Posted
Is there any existing contribution that allows an InfoBox display a list of the forum's recent posts?

 

I am using "ssi.php" it is included in invisionboard (in the root directory of the board).

It starts with an explanation:

<?php

/*
+--------------------------------------------------------------------------
|   IBFORUMS v1.2
|   ========================================
|   by Matthew Mecham
|   (c) 2001,2002 IBForums
|   http://www.ibforums.com
|   ========================================
|   Web: http://www.ibforums.com
|   Email: [email protected]
|   Licence Info: [email protected]
+---------------------------------------------------------------------------
|
|   > SSI script
|   > Script written by Matt Mecham
|   > Date started: 29th April 2002
|
+--------------------------------------------------------------------------
*/

/* USAGE:
  ------
  
  Simply call this script via PHP includes, or SSI .shtml tags to generate content
  on the fly, streamed into your own webpage.
  
  To show the last 10 topics and posts in the news forums...
  
  include("http://domain.com/forums/ssi.php?a=news&show=10");
  
  You can adjust the "show" attribute to display a different amount of topics.
  
  To show the board statistics
  
  include("http://domain.com/forums/ssi.php?a=stats");
  
  To show the active users stats (x Members, X Guests, etc)
  
  include("http://domain.com/forums/ssi.php?a=active");
  
  Syndication..
  
  RSS:
  
  http://domain.com/forums/ssi.php?a=out&f=1,2,3,4,5&show=10&type=rss
  http://domain.com/forums/ssi.php?a=out&f=1,2,3,4,5&show=10&type=xml
  
  Will show last 10 topics in reverse chronological last post date order from
  all the forums in the comma separated list
  
*/

//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------

// Root path

 

Is this what you are looking for?

 

You can take a look at www.panda.nl/nieuws.php if you like, almost live shop so please don't mess around to much :)

Posted

Thanks paulm! That's what I'm looking for. How do I enclose it within an infobox? I'm not too familiar with php. I tried inserting it after the InfoBoxContent[] = but got a couple of errors.

Posted

Hmm.. I am using the BTS and I have created a news.tpl.php file which looks like this:

<h1><?php echo HEADING_TITLE; ?></h1>
<p><?php echo TEXT_INFORMATION; ?></p>
<div class="boardIncludePM" id="boardNieuwsPM"><?php include("http://forums.panda.nl/ssi.php?a=news&show=10"); ?></div> 
<div><?php echo '<a href="' . $origin_href . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></div>

But I suppose you don't use the BTS, so you probably have to include it somewhere between <!-- body_text //--> and <!-- body_text_eof //--> in the .php file you want it to appear.

 

That's all I know, may be someone else could give you more details how to do this on a "standard" (non BTS) osC install?

 

succes!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...