Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: areyouserved.com on September 15, 2005, 04:10:09 PM

Title: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 04:10:09 PM
HI there i was wondering if anyone could intregrate part of my forums into my webpage.

Basically what i mean is:  I post in my announcements in my forums and it would be displayed on my index page in a new area.  So i could post in the forums but it would come up in my index page.

Could that be done?  and for how much please pm or email me.
Title: Re: If anyone could do this
Post by: dtm.exe on September 15, 2005, 04:16:21 PM
Integrating the forum into your site... (http://www.simplemachines.org/community/index.php?topic=19638.0)
Title: Re: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 04:26:09 PM
I would love to try all of that but i just dint have the time right now to learn CSS and HTML.  Also i dint want to intregrate the whole forums into my site i just want to be able to post new in the forums and that would come up on my index page.  If you know anybody who could do this for me please message me.

thanks
Title: Re: If anyone could do this
Post by: dtm.exe on September 15, 2005, 04:28:18 PM
Quote from: areyouserved.com on September 15, 2005, 04:26:09 PM
I would love to try all of that but i just dint have the time right now to learn CSS and HTML.  Also i dint want to intregrate the whole forums into my site i just want to be able to post new in the forums and that would come up on my index page.  If you know anybody who could do this for me please message me.

thanks

So you want someone to do this for you?
Title: Re: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 04:29:59 PM
Yes i would, im not asking for free, i would pay for the work.
Title: Re: If anyone could do this
Post by: 1MileCrash on September 15, 2005, 04:30:41 PM
Quote from: areyouserved.com on September 15, 2005, 04:26:09 PM
I would love to try all of that but i just dint have the time right now to learn CSS and HTML.  Also i dint want to intregrate the whole forums into my site i just want to be able to post new in the forums and that would come up on my index page.  If you know anybody who could do this for me please message me.

thanks

you can do this with ssi, look at this page (http://www.simplemachines.org/community/ssi_examples.php). I think you are looking for the recent posts function. It's really simple to do, and if you run into any problems, just post here.
Title: Re: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 04:51:36 PM
OK thanks ill give it a shot, i am really new to web design and stuff like this. 

One quick question with this:  when you put  <?php require("SSI.php"); ?> at the top of your page then when you find what you want to use you would put lets say <?php ssi_recentTopics(); ?> where you want it to show up? 
Title: Re: If anyone could do this
Post by: 1MileCrash on September 15, 2005, 04:56:34 PM
yep, simple as that.

But, if the page you are doing this on is not in your SMF directory, you will have to change the path to SSI to a full path, like

<?php require(" /home/***/public_html/smf/SSI.php"); ?>

replaceing *** appropriately.
Title: Re: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 05:08:58 PM
this is going to be a stupid question but:

Ok i have done that but as for the **** i put /home/public_html/forums/SSI.php") what would the **** be for?

Also do i have to do that for second one as well <?php ssi_recentTopics(); ?> ??
Title: Re: If anyone could do this
Post by: JayBachatero on September 15, 2005, 07:55:03 PM
Ok you go to http://mysite.com/forum/ssi_examples.php and copy and paste the lne that says <?php require("SSI.php");?>  you MUST paste it in the first line of you page. 

<?php ssi_recentTopics(); ?> you put that were you want recent topics to appear.  also you must rename your file form .html tp .php
Title: Re: If anyone could do this
Post by: 1MileCrash on September 15, 2005, 08:02:28 PM
yeah....he has that part down.

He is trying to get the path correct. If you are outside of the SMF directory, simply putting  <?php require("SSI.php");?> will not work. You have to put a full path.
Title: Re: If anyone could do this
Post by: JayBachatero on September 15, 2005, 08:04:39 PM
He is asking what does he replaces the asterics with.  He needs to get the path from the ssi_examples.php file.
Title: Re: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 08:05:50 PM
What about if i just want one board to appear in my index page?  So when i post in that annoucement board it will come up on my index page. 

also does those command work with 1.05 or just the new beta version?  also my pages are html not php.
Title: Re: If anyone could do this
Post by: 1MileCrash on September 15, 2005, 08:10:39 PM
it doesnt matter that your pages are html. You wont have to change anything but what you do to add ssi, and change the extension to php.
Title: Re: If anyone could do this
Post by: JayBachatero on September 15, 2005, 08:12:12 PM
you can use <?php ssi_boardNews(); ?> to include the news/announcements.  also rename your page.php so it culd work.
Title: Re: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 08:14:46 PM
so after i add the ssi then i have to change my index.html to index.php fo rit to work?
Title: Re: If anyone could do this
Post by: JayBachatero on September 15, 2005, 08:16:43 PM
yes you must change  it to .php
Title: Re: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 08:21:14 PM
Well i have a log in box on my index page that goes into my billing manager for my site will that mess it up if i change my site to .php?
Title: Re: If anyone could do this
Post by: JayBachatero on September 15, 2005, 08:21:58 PM
No it shouldnt.
Title: Re: If anyone could do this
Post by: 1MileCrash on September 15, 2005, 08:22:17 PM
no. PHP is only parse with <?php ?> tags around it. If you took a plain htlm document, renamed it to .php, it would be EXACTLY the same.
Title: Re: If anyone could do this
Post by: areyouserved.com on September 15, 2005, 08:24:47 PM
ok ill give it a shot thanks for all your help.