Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
exciting
Hangin' Around



Joined: Nov 14, 2006
Posts: 32

PostPosted: Fri Nov 17, 2006 9:43 pm Reply with quote

hello,

maybe anyone can help or have a block or script that makes ssi (like recent topics, latest poster.... ) to use in a block with phpnuke.

i search, tried to make one self, but i can not.

or have some tipps for me.

thanks

greets

ps: i run ravennuke 2.02.02 7.6 nuke
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Fri Nov 17, 2006 11:05 pm Reply with quote

There are several recent topics blocks, including the center block Raven has in the downloads section here.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
exciting







PostPosted: Sat Nov 18, 2006 5:48 am Reply with quote

yes, thx, but it should not be for phpBB.

it should be a block only, where i can list up with ssi some things from smf.
 
kguske







PostPosted: Sat Nov 18, 2006 7:08 am Reply with quote

You could modify one of those blocks to use the SMF tables.
 
exciting







PostPosted: Sat Nov 18, 2006 7:20 am Reply with quote

would be one thing yes.
when my php is good enough for it Smile Wink

the other way is i think easier, to create a centerblock, and get over ssi
the things.

similar like this code here:


Code:


<?php
if (eregi("block-smf.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
require("http://www.mysite/pathtosmf/SSI.php");




$content="<?php ssi_recentPosts(); flush(); ?>";


?>


but something is wrong here.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Nov 19, 2006 8:39 pm Reply with quote

If you use a require to an external site, that site must return PHP code. Most likely if you are going to http://www.mysite/pathtosmf/SSI.php - it doesn't. It returns HTML.

Why are you trying to get stuff from an external site?
You will need a better integration of SMF code into your code.
If this is just static data, can you just grab an RSS feed?

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©