Daniel15's forum integration *RC2 Help*- Need a PHP Expert!

Started by kizko, January 02, 2010, 09:20:04 PM

Previous topic - Next topic

kizko

Hi, i`ve tryed Daniel15's tutorial about integration SMF into a HTML page http://www.simplemachines.org/community/index.php?topic=145838.0
As i`ve expected, it didn`t work for 2.0 RC2. What i want to do?

I just want to integrate the SMF forum into a Wordpress page (don`t give me links with wordpress support, i need to make modifications in curent SMF files).


I`ve attached the source of the page. But here is the source:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<LINK REL="SHORTCUT ICON" HREF="http://psp-fanatik.ro/fav.jpg">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>PSP-Fanatik.ro | Like.no.other   &raquo; Download</title>

<meta name="generator" content="WordPress 2.8.6" />

<link rel="alternate" type="application/rss+xml" title="PSP-Fanatik.ro | Like.no.other &raquo; Download Comments Feed" href="http://www.psp-fanatik.ro/download/feed" />
<link rel='stylesheet' id='wp_dlmp_styles-css'  href='http://www.psp-fanatik.ro/wp-content/plugins/download-monitor/page-addon/styles.css?ver=2.8.6' type='text/css' media='all' />
<link rel='stylesheet' id='wp-pagenavi-css'  href='http://www.psp-fanatik.ro/wp-content/themes/eGamer/pagenavi-css.css?ver=2.50' type='text/css' media='all' />
<script type='text/javascript' src='http://www.psp-fanatik.ro/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>

<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.psp-fanatik.ro/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.psp-fanatik.ro/wp-includes/wlwmanifest.xml" />
<link rel='index' title='PSP-Fanatik.ro | Like.no.other' href='http://www.psp-fanatik.ro' />
<meta name="generator" content="WordPress 2.8.6" />

<script type="text/javascript">var AKPC_IDS = "";</script>

<link rel='archives' title='December 2009' href='http://www.psp-fanatik.ro/2009/12' />
<link rel='archives' title='November 2009' href='http://www.psp-fanatik.ro/2009/11' />
<link rel="stylesheet" href="http://www.psp-fanatik.ro/wp-content/themes/eGamer/style.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://www.psp-fanatik.ro/feed" />
<link rel="alternate" type="text/xml" title="RSS .92" href="http://www.psp-fanatik.ro/feed/rss" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://www.psp-fanatik.ro/feed/atom" />
<link rel="pingback" href="http://www.psp-fanatik.ro/xmlrpc.php" />
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="http://www.psp-fanatik.ro/wp-content/themes/eGamer/iestyle.css" />
<![endif]-->

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="http://www.psp-fanatik.ro/wp-content/themes/eGamer/ie6style.css" />
<script defer type="text/javascript" src="http://www.psp-fanatik.ro/wp-content/themes/eGamer/js/pngfix.js"></script>
<![endif]-->
<script type="text/javascript" src="http://www.psp-fanatik.ro/wp-content/themes/eGamer/js/jquery.js?ver=1.2.6"></script>
<script type="text/javascript" src="http://www.psp-fanatik.ro/wp-content/themes/eGamer/js/superfish.js"></script>
<script type="text/javascript">
jQuery(function(){
jQuery('ul.superfish').superfish();
});
</script>
</head>

<body>

<div id="wrapper2">
<div id="wrapper">
<!--This controls pages navigation bar-->

<div id="pages">

<ul>
<li class="page_item"><a href="http://www.psp-fanatik.ro" class="title" title="home again woohoo">Home</a></li>
<li class="page_item page-item-106"><a href="http://www.psp-fanatik.ro/forum" title="Forum">Forum</a></li>
<li class="page_item page-item-18 current_page_item"><a href="http://www.psp-fanatik.ro/download" title="Download">Download</a></li>
<li class="page_item page-item-21"><a href="http://www.psp-fanatik.ro/ps2" title="PS2">PS2</a></li>
<li class="page_item page-item-33"><a href="http://www.psp-fanatik.ro/ps3" title="PS3">PS3</a></li>
<li class="page_item page-item-35"><a href="http://www.psp-fanatik.ro/xbox" title="Xbox">Xbox</a></li>
<li class="page_item page-item-37"><a href="http://www.psp-fanatik.ro/nitendo" title="Nintendo">Nintendo</a></li>
<li class="page_item page-item-39"><a href="http://www.psp-fanatik.ro/english-section" title="English Section">English Section</a></li>

<li class="page_item page-item-29"><a href="http://www.psp-fanatik.ro/contact" title="Contact">Contact</a></li>
</ul>
<img src="http://www.psp-fanatik.ro/wp-content/themes/eGamer/images/pages-bg-right.gif" alt="pages bg right" style="float: right;" />
<!--Begin Search Form-->
<div class="search_bg">
<div id="search">
<form method="get" action="http://www.psp-fanatik.ro" style="padding:0px 0px 0px 0px; margin:0px 0px 0px 0px">
<input type="text"  name="s" value=""/><input type="image" class="input" src="http://www.psp-fanatik.ro/wp-content/themes/eGamer/images/search-button.gif" value="submit"/>
</form>
</div>
</div>
<!--Begin Search Form-->
</div>
<!--End pages navigation-->

<!--This controls the categories navigation bar-->

<div id="categories">
<ul class="nav superfish"> <li class="cat-item cat-item-1"><a href="http://www.psp-fanatik.ro/category/necategorisit" title="Actualizari/Concursuri/Event-uri.">Necategorisit</a>
</li>
<li class="cat-item cat-item-3"><a href="http://www.psp-fanatik.ro/category/stiri" title="Noutati aparute in domeniul PSP.">Stiri</a>
</li>
<li class="cat-item cat-item-7"><a href="http://www.psp-fanatik.ro/category/homebrew" title="Cauti un anumit program (Software)? Arunca un ochi aici.">Homebrew</a>
</li>
<li class="cat-item cat-item-8"><a href="http://www.psp-fanatik.ro/category/jocuri" title="Raspunsuri si nelamuriri pentru jocurile tale favorite.">Jocuri</a>
<ul class='children'>

<li class="cat-item cat-item-9"><a href="http://www.psp-fanatik.ro/category/jocuri/recenzii" title="Recenzii la jocurile aparute.">Recenzii</a>
</li>
<li class="cat-item cat-item-12"><a href="http://www.psp-fanatik.ro/category/jocuri/trailer" title="Trailer-ul jocului tau favorit.">Trailer</a>
</li>
<li class="cat-item cat-item-51"><a href="http://www.psp-fanatik.ro/category/jocuri/gameplay" title="View all posts filed under Gameplay">Gameplay</a>
</li>
<li class="cat-item cat-item-57"><a href="http://www.psp-fanatik.ro/category/jocuri/screenshot-uri" title="View all posts filed under Screenshot-uri">Screenshot-uri</a>
</li>
</ul>

</li>
<li class="cat-item cat-item-13"><a href="http://www.psp-fanatik.ro/category/firmware" title="Gasiti aici stiri despre ultimele firmware-uri lansate.">Firmware</a>
</li>
<li class="cat-item cat-item-14"><a href="http://www.psp-fanatik.ro/category/tutoriale" title="Tutoriale pentru diferite probleme/instalari.">Tutoriale</a>
<ul class='children'>
<li class="cat-item cat-item-15"><a href="http://www.psp-fanatik.ro/category/tutoriale/hardware" title="Tutoriale privind partea Hardware a PSP-ului !">Hardware</a>
</li>
<li class="cat-item cat-item-16"><a href="http://www.psp-fanatik.ro/category/tutoriale/software" title="Tutoriale privind partea Software al PSP-ului !">Software</a>
</li>

<li class="cat-item cat-item-17"><a href="http://www.psp-fanatik.ro/category/tutoriale/modding" title="Tutoriale de upgrade/downgrade/modari !">Modding</a>
</li>
<li class="cat-item cat-item-19"><a href="http://www.psp-fanatik.ro/category/tutoriale/ghiduri" title="Aici puteti gatsii ghiduri folositoare pentru PSP-urile dvs.">Ghiduri</a>
</li>
</ul>
</li>
</ul>
</div>
<!--End category navigation-->



<div id="container">


<div id="left-div">

<div id="left-inside">


[b]<!--Start Post-->
<span class="single-entry-titles" style="margin-top: 18px;"></span>
<div class="post-wrapper">

<h3 class="post-title"><a href="http://www.psp-fanatik.ro/download" rel="bookmark" title="Permanent Link to Forum">Forum</a></h3>

<div class="page-post">
!!HERE IS THE CONTENT SITE!!

<!--End Post-->[/b]

<p class="pagination"> </p>


</div>

</div>

<!--Begin Sidebar-->
<div id="sidebar">

<a href="http://www.psp-fanatik.ro"><img src="http://www.psp-fanatik.ro/wp-content/themes/eGamer/images/logo.jpg" alt="logo" class="logo" /></a>

<div style="margin-top: 18px;">

<!--Begin 125x125 Ad Block-->
<!--End 125x125 Ad Block-->

</div>

<div class="sidebar-box"><h3>Pagini</h3> <ul>
<li class="page_item page-item-18 current_page_item"><a href="http://www.psp-fanatik.ro/download" title="Download">Download</a></li>

<li class="page_item page-item-21"><a href="http://www.psp-fanatik.ro/ps2" title="PS2">PS2</a></li>
<li class="page_item page-item-29"><a href="http://www.psp-fanatik.ro/contact" title="Contact">Contact</a></li>
<li class="page_item page-item-33"><a href="http://www.psp-fanatik.ro/ps3" title="PS3">PS3</a></li>
<li class="page_item page-item-35"><a href="http://www.psp-fanatik.ro/xbox" title="Xbox">Xbox</a></li>
<li class="page_item page-item-37"><a href="http://www.psp-fanatik.ro/nitendo" title="Nintendo">Nintendo</a></li>
<li class="page_item page-item-39"><a href="http://www.psp-fanatik.ro/english-section" title="English Section">English Section</a>
<ul>
<li class="page_item page-item-45"><a href="http://www.psp-fanatik.ro/english-section/psp-discussion" title="PSP Discussion">PSP Discussion</a></li>
<li class="page_item page-item-49"><a href="http://www.psp-fanatik.ro/english-section/psp-news" title="PSP News">PSP News</a></li>

<li class="page_item page-item-60"><a href="http://www.psp-fanatik.ro/english-section/psp-tutorial" title="PSP Tutorial">PSP Tutorial</a></li>
<li class="page_item page-item-62"><a href="http://www.psp-fanatik.ro/english-section/psp-games" title="PSP Games">PSP Games</a></li>
<li class="page_item page-item-64"><a href="http://www.psp-fanatik.ro/english-section/others-console" title="Others console">Others console</a></li>
</ul>
</li>
<li class="page_item page-item-106"><a href="http://www.psp-fanatik.ro/forum" title="Forum">Forum</a></li>
</ul>
</div><div class="sidebar-box"><h3>Categorii</h3> <ul>

<li class="cat-item cat-item-145"><a href="http://www.psp-fanatik.ro/category/featured-articles" title="Stirile noi.">Featured Articles</a>
</li>
<li class="cat-item cat-item-13"><a href="http://www.psp-fanatik.ro/category/firmware" title="Gasiti aici stiri despre ultimele firmware-uri lansate.">Firmware</a>
</li>
<li class="cat-item cat-item-7"><a href="http://www.psp-fanatik.ro/category/homebrew" title="Cauti un anumit program (Software)? Arunca un ochi aici.">Homebrew</a>
</li>
<li class="cat-item cat-item-8"><a href="http://www.psp-fanatik.ro/category/jocuri" title="Raspunsuri si nelamuriri pentru jocurile tale favorite.">Jocuri</a>
<ul class='children'>
<li class="cat-item cat-item-51"><a href="http://www.psp-fanatik.ro/category/jocuri/gameplay" title="View all posts filed under Gameplay">Gameplay</a>

</li>
<li class="cat-item cat-item-9"><a href="http://www.psp-fanatik.ro/category/jocuri/recenzii" title="Recenzii la jocurile aparute.">Recenzii</a>
</li>
<li class="cat-item cat-item-57"><a href="http://www.psp-fanatik.ro/category/jocuri/screenshot-uri" title="View all posts filed under Screenshot-uri">Screenshot-uri</a>
</li>
<li class="cat-item cat-item-12"><a href="http://www.psp-fanatik.ro/category/jocuri/trailer" title="Trailer-ul jocului tau favorit.">Trailer</a>
</li>
</ul>
</li>
<li class="cat-item cat-item-1"><a href="http://www.psp-fanatik.ro/category/necategorisit" title="Actualizari/Concursuri/Event-uri.">Necategorisit</a>

</li>
<li class="cat-item cat-item-3"><a href="http://www.psp-fanatik.ro/category/stiri" title="Noutati aparute in domeniul PSP.">Stiri</a>
</li>
<li class="cat-item cat-item-14"><a href="http://www.psp-fanatik.ro/category/tutoriale" title="Tutoriale pentru diferite probleme/instalari.">Tutoriale</a>
<ul class='children'>
<li class="cat-item cat-item-19"><a href="http://www.psp-fanatik.ro/category/tutoriale/ghiduri" title="Aici puteti gatsii ghiduri folositoare pentru PSP-urile dvs.">Ghiduri</a>
</li>
<li class="cat-item cat-item-15"><a href="http://www.psp-fanatik.ro/category/tutoriale/hardware" title="Tutoriale privind partea Hardware a PSP-ului !">Hardware</a>
</li>

<li class="cat-item cat-item-17"><a href="http://www.psp-fanatik.ro/category/tutoriale/modding" title="Tutoriale de upgrade/downgrade/modari !">Modding</a>
</li>
<li class="cat-item cat-item-16"><a href="http://www.psp-fanatik.ro/category/tutoriale/software" title="Tutoriale privind partea Software al PSP-ului !">Software</a>
</li>
</ul>
</li>
</ul>
</div><div class="sidebar-box"><h3>Arhiva</h3> <ul>
<li><a href='http://www.psp-fanatik.ro/2009/12' title='December 2009'>December 2009</a></li>

<li><a href='http://www.psp-fanatik.ro/2009/11' title='November 2009'>November 2009</a></li>
</ul>
</div>               
</div>
           
</div>
<!--End Sidebar-->

<!--Begin Footer-->
<div style="clear: both;"></div>
</div>
</div>
<div id="footer">
<div style="width: 915px; padding-left: 25px; margin-left: auto; margin-right: auto; display: block;">

&copy; Copyright PSP-Fanatik.ro | Like.no.other 2009. Toate drepturile sunt rezervate.
</div>
</div><!--End Footer-->

</body>
</html>


NOTE:
- I`ve bolded where it is the Content of the page. There it should be SMF Forum.
- Iframe isn`t a solution becouse i can`t have a direct link to a forum's post.
- In the attachet page, i didn`t modify the CONTENT where SMF should be, if you preview it, you`ll see that I want it in That post section.
- The side bar is optional.


Andre N

What exactly is the result of following those modifications?
Could you post a link to the page you tried this on please?
"Every generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?"

kizko

Quote from: ike turner on January 04, 2010, 10:36:03 PM
What exactly is the result of following those modifications?
Could you post a link to the page you tried this on please?

This are modification made on index.template.php, after modification, the forum need to apear like in a site page like this one:
http://www.psp-fanatik.ro/download

But instead Donwload page, in that field i want the forum to be.
I only need to insert index.template.php in a page like that, but don`t know how to do that.

Andre N

instead of the download portion of that page, try this
:


<?php
error_reporting
(E_ALL);

// Theme we're going to use
$ssi_theme 4//put your theme number here

require('SSI.php'); //make sure the path is correct

template_main_above();
template_main_below();


ssi_shutdown();
?>



You have smf installed already right?

what does that give you?
"Every generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?"

kizko

Quote from: ike turner on January 05, 2010, 12:07:08 PM
instead of the download portion of that page, try this
:


<?php
error_reporting
(E_ALL);

// Theme we're going to use
$ssi_theme 4//put your theme number here

require('SSI.php'); //make sure the path is correct

template_main_above();
template_main_below();


ssi_shutdown();
?>



You have smf installed already right?

what does that give you?


http://www.psp-fanatik.ro/test1/
I want to tell you that my forum is installed in a subdomain. Is that a problem?

That`s why i want to make modification in index.template.php, the path to forum is forum.psp-fanatik.ro and if i will try to edit the site`s pages, there can`t exist direct links.

kizko

I want to keep the link path and design the forum lookout.

http://forum.psp-fanatik.ro/test/asd.html

Here is the file runing in that subdomain (to acces the SSI.php file).


Andre N

Is the subdomain on the same server? like: forum.yourdomain.com = yourdomain.com/forum ?

You should still be able to include SSI.php if the path is correct. That is all you need to include for this to work if I understand correctly. Modifying index.template.php will change the layout.
"Every generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?"

kizko

Quote from: ike turner on January 06, 2010, 03:32:25 PM
Is the subdomain on the same server? like: forum.yourdomain.com = yourdomain.com/forum ?

You should still be able to include SSI.php if the path is correct. That is all you need to include for this to work if I understand correctly. Modifying index.template.php will change the layout.

Yes, they are on the same server, But how it will be the link?
it isn`t much easyer to include the whole idex.template.php in that page? (or header/footer and content).


Andre N

the link will be like this:

<?php
require_once ($_SERVER['DOCUMENT_ROOT'].'/path/to/forum/SSI.php';
error_reporting(E_ALL);
// Theme we're going to use
$ssi_theme 4//put your theme number here
template_main_above();
template_main_below();
ssi_shutdown();


If you navigate to your forum folder in ftp it will likely show you the path to use.

You can't just run index.template.php directly. There are things that need to be loaded first such as functions and variables. That's why you include SSI, to load SMF for you and then use it to call the portions of the forum you want displayed.
"Every generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?"

Kindred

you also need to make sure that subdomain independent cookies are turned ON in your smf admin
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: