1
Shine
How to include SMF recent topics in Xoops block?
  • 2006/2/26 10:57

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


I've installed the standalone forumscript SMF 1.1 RC2. I'd like to include the recent forum topics within a XOOPS block. SMF uses SSI. According to their tutorial I should include:
<?php
require("http://forum.adoptietrefpunt.nl/SSI.php");
?>

within the header of my theme.
Next I should simply include:
{<?php ssi_recentTopics(); ?>}

within my own created xoopsblock.
Whatever happens,...nothing is showing up.
I've already tried all code variations, but I don't get this thing to show up. So after fuzzling and puzzling several nightly hours I give up and call for help.

The main website is located at:http://www.adoptietrefpunt.nl/portaal (using XOOPS 2.013.x)
The forum is located at:http://forum.adoptietrefpunt.nl (still behind closed doors)

If anybody can help me out on this it would be much appreciated!

Grtz., Shine

2
Herko
Re: How to include SMF recent topics in Xoops block?
  • 2006/2/26 14:32

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Have you tried to create a custom block with type set to PHP with the following code:

ssi_recentTopics();


And nothing else?

PHP type blocks automagically add the <?php and ?> tags.

Herko

3
Shine
Re: How to include SMF recent topics in Xoops block?
  • 2006/2/26 16:18

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


Yes, tried that also. All what happens is that my blocks are getting chaotic and not appearing. It doesn't even wanna store the block I make with your suggested code. (yes content type put on php)

Anybody else?
Where are those ppl who uses this forum as a standalone script and include this in a xoopsblock?
If I remember well there were several long topics of SMF bridge wishes of xoopsusers who already make use of this standalone forum.

Grtz., Shine

4
Shine
Re: How to include SMF recent topics in Xoops block?
  • 2006/2/27 19:09

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


^ bump ^

5
Shine
Re: How to include SMF recent topics in Xoops block?
  • 2006/2/28 22:21

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


^bump-bump^

6
Lance_
Re: How to include SMF recent topics in Xoops block?
  • 2006/3/1 1:00

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


I've just about tried every thing I can think of and always get stupid parse errors.

Sorry, haven't gotten it yet.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

7
Shine
Re: How to include SMF recent topics in Xoops block?
  • 2006/3/3 23:08

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


Great,.......yesyes an answer!
Thanks Lance!
No I know it is not just me or something that I am doing wrong why I cannot get this block thing to work!

Anybody else of the users of this forumscript in combination with xoops?

Grtz., Shine

8
Shine
Re: How to include SMF recent topics in Xoops block?
  • 2006/3/22 21:28

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


Prox One month later........
Bump_bump_bump

9
PeterGW
Re: How to include SMF recent topics in Xoops block?
  • 2007/1/1 13:11

  • PeterGW

  • Just popping in

  • Posts: 3

  • Since: 2006/12/17


9 Month later

today i had the same problems and here a solution ....

Create a custom block (PHP Script)

and here is something that works ....

echo '<center><b><font color="yellow"> Forum Online Statistic</font><br><br>';
include 'http://PATH_TO_YOUR_SSI_FILE/SSI.php?ssi_function=logOnline';
echo '</b></center>';


..... it works for my site. the same works also with all other functions u have just remove the ssi_ and the () from the command.

i hope it helps!

10
Shine
Re: How to include SMF recent topics in Xoops block?
  • 2007/1/1 13:30

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


Great!

But em,....what do you mean by just remove the ssi_ and the () from the command.
?
Which command?

Grtz., Shine

Login

Who's Online

255 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 255


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits