One forums latest posts on another forum

Started by yourdailysaver, December 10, 2009, 01:07:06 AM

Previous topic - Next topic

yourdailysaver

Hello Seniors,

Here is what i want to do ,

i am running two forums using smf rc2. i want to display one forums latest 10 posts on another forums portal block. is it possible ?

yourdailysaver

Can somebody please reply its really urgent for me

yourdailysaver

hey sorry to bounce topic again but please reply seniors its really urgent

yourdailysaver

Do i accept that its not possible seniors ? give me some idea friends.

shumilica

I think it's possible via SSI. search for more information.
Today, if you're not confused it means you're not thinking clear!

Arantor

First up, please DON'T bump 3 times in under a day - we're all volunteers here.

It is possible, but depending on whether the two forums run on the same server or not depends on how you end up doing it.

Can we have plenty more details about what you have and what you're trying to achieve?
Holder of controversial views, all of which my own.


yourdailysaver

sorry for that buddy . actually i have two forums both running on smf version 2.0 RC 2. i have ezportal activated on one forum and it has latest posts block in it. i want to display this block in another forum so that it will display first forums latest posts. both are on same servers.

Matthew K.

First of all, please do not bump topics within 24 hours as all of the Support Members are volunteers.

Regarding your issue, take a look at Using SSI.php

Labradoodle-360

Arantor

Quote from: Arantor on December 11, 2009, 03:44:30 PM
It is possible, but depending on whether the two forums run on the same server or not depends on how you end up doing it.

Can we have plenty more details about what you have and what you're trying to achieve?

So, are they running on the same server or not?
Holder of controversial views, all of which my own.


yourdailysaver

i have looked at that topic but didnt find anything its for showing posts to webpage or something. sorry sir but i am not very tech savvy please can you explain in detail ?

yourdailysaver

Quote from: Arantor on December 11, 2009, 04:00:45 PM
Quote from: Arantor on December 11, 2009, 03:44:30 PM
It is possible, but depending on whether the two forums run on the same server or not depends on how you end up doing it.

Can we have plenty more details about what you have and what you're trying to achieve?

So, are they running on the same server or not?

yes sir they both are on same server

yourdailysaver

i have read the ssi.php introduction. have some confusions. where do i need to put <?php require("/path/to/forum/SSI.php"); ?>  and after that how can i use <?php ssi_recentPosts(); ?>  function in my another forum ? dont i need to give some path in it ?

shumilica

i don't know how ezportal works , but try creating a block, pick php block (so that you can enter php code) and in that block enter:
ssi_recentPosts();

if it doesn't work go to your forum directory, open index.php the comments put there:
require("SSI.php");
Today, if you're not confused it means you're not thinking clear!

yourdailysaver

if i put ssi_recent posts() function in my forum B how can posts from forum A will be fetched. there must be some connection between them

Arantor

When you require SSI.php, you have to use the path to the other forum's files.

So if forum A is the one with the portal in /home/user_a/public_html and forum B is the other content in /home/user_b/public_html, you have to use require('/home/user_b/public_html/SSI.php'); first to load the details of the other forum.
Holder of controversial views, all of which my own.


yourdailysaver

Quote from: Arantor on December 11, 2009, 04:38:10 PM
When you require SSI.php, you have to use the path to the other forum's files.

So if forum A is the one with the portal in /home/user_a/public_html and forum B is the other content in /home/user_b/public_html, you have to use require('/home/user_b/public_html/SSI.php'); first to load the details of the other forum.

sorry brother i am not very tech savvy can you please explain me step by step if possible ?

Arantor

Not really without knowing more details, like the full paths of both forums.
Holder of controversial views, all of which my own.


Arantor

Please remove those links. They are not suitable for the family friendly site we are.

I need to know the FULL physical paths, not the domains, nor the subpaths. You may need to ask your host for the full physical path.
Holder of controversial views, all of which my own.


shumilica

Or better than asking the hoster go to your forums - admin - configuration - server settings - database and paths and copy paste the 'smf directory' field. Now go to the other forum and do the same. Paste it here, or put it yourself in the:
require("/path/to/forum/SSI.php"); (change path to forum with the forum you want to get recent posts, and put it in the index of the forum you want to show the recent posts from the other forum).
Today, if you're not confused it means you're not thinking clear!

yourdailysaver

Thanks shumilica for info on how to get paths

The forum where i want to get recent posts from another forum has following paths,
         
SMF Directory    /homepages/9/d269191381/htdocs/bf
Sources Directory  /homepages/9/d269191381/htdocs/bf/Sources
Cache Directory    /homepages/9/d269191381/htdocs/bf/cache

and the forum from which i want to get latest posts has paths as follows,

SMF Directory          /homepages/9/d269191381/htdocs/ForumBollychilli
Sources Directory    /homepages/9/d269191381/htdocs/ForumBollychilli/Sources
Cache Directory      /homepages/9/d269191381/htdocs/ForumBollychilli/cache

And can you please explain from where i should download ssi.php file and what to do with that ? i am not yet sure what exactly i need to do. Please sir if you can guide me step by step it will be really great help to me

Advertisement: