News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Integrating the forum into your site...

Started by [Unknown], November 09, 2004, 11:18:05 PM

Previous topic - Next topic

wcravens

<?php
echo '<!-- just a test-->';
echo 
'<link rel="stylesheet" type="text/css" href="../styles/sawgrass_styles.css" />
    <div id="banner">
        <!--<img src="images/gradient_100x2.jpg" />-->
        <img class="banner_left" src="../images/sawgrass_main.jpg" />
        <span align="center">
            <h1 style="color: #412500;">Sawgrass</h1>
            <h2 style="color: #eac755;">Home Owners Association</h2>
        </span>
            <a href="http://maps.google.com/maps?f=q&hl=en&q=61822&ie=UTF8&z=16&ll=40.123881,-88.309886&spn=0.011338,0.017166&om=1&iwloc=addr">
            <img class="banner_right" src="../images/sawgrass_map.jpg" /></a>
    </div>
    <div id="horiz_bar">
            <!--<img id="Gradient" src="../images/gradient_square.png" />-->
    </div>'
;

?>



When I prepare a simple index.php as follows, these characters don't appear:


<?php

echo '<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sawgrass Home Owners Association</title>
    <link href="styles/sawgrass_styles.css" rel="stylesheet" type="text/css" />
</head>

<body>'
;
include (
'./header.php');
echo 
'
</body>
</html>'
;

?>


Daniel15

QuoteIn using the 'simple' method I'm getting extra non-printable characters output any time I use an include('xyz.php') in the index.template.php.  The characters are '' by the time they get to the browser.  The codes seen on the network are #ef #bb and #bf.  I've tried both with and without compression just in case.
Have you tried simple header.php file? Try something like:

A test header

and see if it still occurs.

Note that PHP files do not need to include PHP code. If you put plain HTML (as I did), it will be output directly to the client. Basically, you don't need to put everything in echo statements, just copy the raw HTML directly into the PHP file  :)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

hcm_erhan

Hi everybody
I'm Turkish, my English is not very good for this :( sorry about that.
This is my site's forum page. I used to frame, but its not so good :(
Can you help me to integrating the forum, please..
Thankyou

forum page:
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
<META HTTP-EQUIV="Page-Enter" CONTENT="BlendTrans(Duration=0.5)">
<META HTTP-EQUIV="Page-Exit" CONTENT="BlendTrans(Duration=0.5)">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<link href="stylesheet.htm" type="text/css"
rel="stylesheet">
<link href="standard_v2.css" type="text/css"
rel="stylesheet">
<link href="retail.css" type="text/css" rel="stylesheet">
<title>PumpRock : FORUM</title>
</head>

<body class="doc-home">
<div class="module" id="m-nav">
  <div class="list" style="width: 966; height: 25">

<ul>
  <li><a title="" href="index.htm">ANA SAYFA</a> </li>
  <li><a href="etkinlikler.htm">ETKİNLİKLER</a></li>
  <li class="on"><a href="forum.htm">FORUM</a></li>
  <li><a href="radyo.htm">RADYO</a></li>
  <li><a href="chat.htm">CHAT</a></li>
  <li><a href="kurallar.htm">KURALLAR</a></li>
  <li><a href="uye_resim_albumleri.htm">ÜYE RESİM ALBÜMLERİ</a></li>
  <li><a href="iletisim.htm">İLETİŞİM</a></li>
  <li><a href="linkler.htm">LİNKLER</a></li>
  <li><a href="kayit.htm">KAYIT OL</a></li>
  <li><a href="giris.htm">GİRİŞ</a></li>
</ul>
</div></div>

<table id="doc-layout" cellSpacing="0" cellPadding="0" border="0" height="129" width="94%">
<TBODY>
  <tr>
    <td id="leftcol" vAlign="top" align="left" height="129" width="33%">
            <div class="module" id="m-subnav">
      <h4 class="hdr-asset">&nbsp;</h4>
      <div class="list" style="width: 885; height: -2">
<iframe  frameborder="0" src="http://www.pumprock.com/forum"  width="880px" height="7300px" allowtransparency="true" style="margin-left:0px; margin-top:0px "></iframe>
    </div>
    </div>
    </td>
    </tr>
</TBODY>
</table>
<center><script type="text/javascript"><!--
google_ad_client = "pub-9612100770747093";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-03-05: pumprock.com/forum, pumprock.com/forum/radyo.php, pumprock.com
google_ad_channel = "3369310324+5804894352+9634059199";
google_color_border = "000000";
google_color_bg = "000000";
google_color_link = "FFFFFF";
google_color_text = "CCCCCC";
google_color_url = "999999";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script></center>
     <p align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-9612100770747093";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQ9fGAlAIaCPvVtZKiFJKBKKW9mHQ";
google_ad_channel = "3599094081";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
     <br>
     <br>
     <p align="center">&nbsp;<p align="center"><span class="smalltext"><font size="1">Copyright © 2006 -
    2007 PumpRock</font></span>
</h3>
</body>
</html>

KingBowser

I am making a rpg with SMF as my boards, and I am wondering how will I be able to make register and login for both my site and forum. And how will I be able to check if they are logged in and stuff

Kindred

look at ssi_examples.php in your smf directory...

use
<?php
require("path/to/SSI.php");
ssi_login();

ssi_whosOnline();
?>
Сл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."

Daniel15

Quote from: KingBowser on March 14, 2007, 11:32:23 PM
I am making a rpg with SMF as my boards, and I am wondering how will I be able to make register and login for both my site and forum. And how will I be able to check if they are logged in and stuff
As Kindred said, take a look at the ssi_examples.php file. Also, some pages in the SMF Online Manual would be of use to you (in particular, http://docs.simplemachines.org/index.php?topic=400)

To begin, you may try something like:

require('forum/SSI.php');
if ($context['user']['is_logged'])
{
echo 'Welcome back!';
ssi_logout();
}
else
{
ssi_login();
}

Heaps of data is stored in $context; you may see it by putting

echo '<pre>', print_r($context, true), '</pre>';

Somewhere below the require('SSI.php') line. Also, $user_info contains some information about the user.

Quote from: hcm_erhan on March 12, 2007, 10:27:25 AM
Hi everybody
I'm Turkish, my English is not very good for this :( sorry about that.
This is my site's forum page. I used to frame, but its not so good :(
Can you help me to integrating the forum, please..
Thankyou

forum page:
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
<META HTTP-EQUIV="Page-Enter" CONTENT="BlendTrans(Duration=0.5)">
<META HTTP-EQUIV="Page-Exit" CONTENT="BlendTrans(Duration=0.5)">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<link href="stylesheet.htm" type="text/css"
rel="stylesheet">
<link href="standard_v2.css" type="text/css"
rel="stylesheet">
<link href="retail.css" type="text/css" rel="stylesheet">
<title>PumpRock : FORUM</title>
</head>

<body class="doc-home">
<div class="module" id="m-nav">
  <div class="list" style="width: 966; height: 25">

<ul>
  <li><a title="" href="index.htm">ANA SAYFA</a> </li>
  <li><a href="etkinlikler.htm">ETKİNLİKLER</a></li>
  <li class="on"><a href="forum.htm">FORUM</a></li>
  <li><a href="radyo.htm">RADYO</a></li>
  <li><a href="chat.htm">CHAT</a></li>
  <li><a href="kurallar.htm">KURALLAR</a></li>
  <li><a href="uye_resim_albumleri.htm">ÜYE RESİM ALBÜMLERİ</a></li>
  <li><a href="iletisim.htm">İLETİŞİM</a></li>
  <li><a href="linkler.htm">LİNKLER</a></li>
  <li><a href="kayit.htm">KAYIT OL</a></li>
  <li><a href="giris.htm">GİRİŞ</a></li>
</ul>
</div></div>

<table id="doc-layout" cellSpacing="0" cellPadding="0" border="0" height="129" width="94%">
<TBODY>
  <tr>
    <td id="leftcol" vAlign="top" align="left" height="129" width="33%">
            <div class="module" id="m-subnav">
      <h4 class="hdr-asset">&nbsp;</h4>
      <div class="list" style="width: 885; height: -2">
<iframe  frameborder="0" src="http://www.pumprock.com/forum"  width="880px" height="7300px" allowtransparency="true" style="margin-left:0px; margin-top:0px "></iframe>
    </div>
    </div>
    </td>
    </tr>
</TBODY>
</table>
<center><script type="text/javascript"><!--
google_ad_client = "pub-9612100770747093";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-03-05: pumprock.com/forum, pumprock.com/forum/radyo.php, pumprock.com
google_ad_channel = "3369310324+5804894352+9634059199";
google_color_border = "000000";
google_color_bg = "000000";
google_color_link = "FFFFFF";
google_color_text = "CCCCCC";
google_color_url = "999999";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script></center>
     <p align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-9612100770747093";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQ9fGAlAIaCPvVtZKiFJKBKKW9mHQ";
google_ad_channel = "3599094081";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
     <br>
     <br>
     <p align="center">&nbsp;<p align="center"><span class="smalltext"><font size="1">Copyright © 2006 -
    2007 PumpRock</font></span>
</h3>
</body>
</html>

Have you seen the post at http://www.simplemachines.org/community/index.php?topic=145838.0? It may be able to help you :)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

CuTe_MaN

I have a problem

After I have added the query I got this error in my website

and i couldnt come back to it



"Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later."

any body can help me.


Thx

CuTe_MaN

CuTe_MaN

I have solved the problem of the connection to the Database

I had the passoword of the database changed and I forgot to change it in the Forum
looool

but I couldnt fix integrating the style into my forum


anybody can help me??

this is the code that is in the index.template.php

<

?php
// Version: 1.1 RC3; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1 RC3';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc3"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
// ]]></script>
<title>', $context['page_title'], '</title>';

// The ?rc3 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc3" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc3" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
        <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_leftbar = ', empty($options['collapse_leftbar']) ? 'false' : 'true', ';

                function shrinkHeaderLeftbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "', $context['session_id'], '");';
        echo '
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = ', empty($options['collapse_rightbar']) ? 'false' : 'true', ';

                function shrinkHeaderRightbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "', $context['session_id'], '");';

        echo '
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>



<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

function shrinkHeader(mode)
{';

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>';

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

function shrinkHeaderIC(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>';
// TinyPortal start
     if($context['TPortal']['fixed_width']!=0)
             echo '<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';

// TinyPortal end



echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';


// TinyPortal
     if($context['TPortal']['showtop']==1)
     {
// TinyPortal end

// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>';

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
</td>';

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' , $context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>';

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

echo '
</td>
</tr>
</table>
</td>
</tr>
</table>';

echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
</td>';
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
';
// TinyPortal
       }
//  end
echo '


</div>';


// Show the menu here, according to the menu sub template.
template_menu();


// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';

// TinyPortal integrated bars
          if($context['TPortal']['leftbar'])
          {
              echo '<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
                 <div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', ' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 TPortal_sidebar('left');
              echo '</div></td>';

          }

        echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
        if($context['TPortal']['centerbar'])
                     echo '<div>' , TPortal_sidebar('center') , '</div>';


}

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

   echo '</td>';

         // TinyPortal integrated bars
          if($context['TPortal']['rightbar']){
              echo '<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px; padding-left: 1ex;" valign="top" align="right">
                 <div id="rightbarHeader"', empty($options['collapse_rightbar']) ? '' : ' style="display: none;"', ' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              TPortal_rightbar();
              echo '</div></td>';
          }

        echo '</tr></table>';




// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
                           <td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>

<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}';
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';

echo '
// ]]></script>';
}

echo '
</div>';

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
';
// TinyPortal
     if($context['TPortal']['fixed_width']!=0)
             echo '</td></tr></table>';
// end
echo '


</body></html>';
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'tpadmin')))

$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';

if (isset($_GET['dl']))
$current_action = 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

if($settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">FORUM</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';


// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The end of tab section.
echo '
<td class="maintab_' , $last , '">&nbsp;</td>
';
// TinyPortal
if($context['TPortal']['leftbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
         if($context['TPortal']['rightbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end
echo '


</tr>
</table>';

}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '">&nbsp;</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' &nbsp;|&nbsp; ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '">&nbsp;</td>';
}

?>




and here is the code for the header:



<html dir="rtl">
<Div align="center">
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
<tr>
<td width="9%">
<img border="0" src="Header%20Right%20a.jpg" width="102" height="350"></td>
<td background="Header%20Match%20a.jpg" width="39%">
<img border="0" src="Header%20Center%20Right%20a.jpg" width="409" height="350" align="right"></td>
<td background="Header%20Match%20a.jpg" width="1%">&nbsp;</td>
<td background="Header%20Match%20a.jpg" width="40%">
<img border="0" src="Header%20Center%20Left%20a.jpg" width="411" height="350" align="left"></td>
<td width="9%">
<img border="0" src="Header%20Left%20a.jpg" width="102" height="350"></td>
</tr>
<tr>
<td background="Body%20Right%20a.jpg" width="9%">&nbsp;</td>
<td colspan="3">
<p align="center">




and here is the code for the footer:




<td background="Body%20Left%20a.jpg" width="9%">&nbsp;</td>
</tr>
<tr>
<td width="9%">
<img border="0" src="Footer%20Right%20a.jpg" width="102" height="140"></td>
<td background="Footer%20Match%20a.jpg" width="39%">
<img border="0" src="Footer%20Center%20Right%20a.jpg" width="409" height="140" align="right"></td>
<td background="Footer%20Match%20a.jpg" width="1%">&nbsp;</td>
<td background="Footer%20Match%20a.jpg" width="40%">
<img border="0" src="Footer%20Center%20Left%20a.jpg" width="411" height="140" align="left"></td>
<td width="9%">
<img border="0" src="Footer%20Left%20a.jpg" width="102" height="140"></td>
</tr>
</table>
</Div>



and the header and footer includes images that i want to add, where to put these images????



and body can help?


THX

CuTe_MaN

rs14smith

I get this error: hxxp:www.hastyhost.com/host/forum/test.php [nonactive]

hcm_erhan

Quote from: hcm_erhan on March 12, 2007, 10:27:25 AM
Hi everybody
I'm Turkish, my English is not very good for this :( sorry about that.
This is my site's forum page. I used to frame, but its not so good :(
Can you help me to integrating the forum, please..
Thankyou

forum page:
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
<META HTTP-EQUIV="Page-Enter" CONTENT="BlendTrans(Duration=0.5)">
<META HTTP-EQUIV="Page-Exit" CONTENT="BlendTrans(Duration=0.5)">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<link href="stylesheet.htm" type="text/css"
rel="stylesheet">
<link href="standard_v2.css" type="text/css"
rel="stylesheet">
<link href="retail.css" type="text/css" rel="stylesheet">
<title>PumpRock : FORUM</title>
</head>

<body class="doc-home">
<div class="module" id="m-nav">
  <div class="list" style="width: 966; height: 25">

<ul>
  <li><a title="" href="index.htm">ANA SAYFA</a> </li>
  <li><a href="etkinlikler.htm">ETKİNLİKLER</a></li>
  <li class="on"><a href="forum.htm">FORUM</a></li>
  <li><a href="radyo.htm">RADYO</a></li>
  <li><a href="chat.htm">CHAT</a></li>
  <li><a href="kurallar.htm">KURALLAR</a></li>
  <li><a href="uye_resim_albumleri.htm">ÜYE RESİM ALBÜMLERİ</a></li>
  <li><a href="iletisim.htm">İLETİŞİM</a></li>
  <li><a href="linkler.htm">LİNKLER</a></li>
  <li><a href="kayit.htm">KAYIT OL</a></li>
  <li><a href="giris.htm">GİRİŞ</a></li>
</ul>
</div></div>

<table id="doc-layout" cellSpacing="0" cellPadding="0" border="0" height="129" width="94%">
<TBODY>
  <tr>
    <td id="leftcol" vAlign="top" align="left" height="129" width="33%">
            <div class="module" id="m-subnav">
      <h4 class="hdr-asset">&nbsp;</h4>
      <div class="list" style="width: 885; height: -2">
<iframe  frameborder="0" src="http://www.pumprock.com/forum"  width="880px" height="7300px" allowtransparency="true" style="margin-left:0px; margin-top:0px "></iframe>
    </div>
    </div>
    </td>
    </tr>
</TBODY>
</table>
<center><script type="text/javascript"><!--
google_ad_client = "pub-9612100770747093";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-03-05: pumprock.com/forum, pumprock.com/forum/radyo.php, pumprock.com
google_ad_channel = "3369310324+5804894352+9634059199";
google_color_border = "000000";
google_color_bg = "000000";
google_color_link = "FFFFFF";
google_color_text = "CCCCCC";
google_color_url = "999999";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script></center>
     <p align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-9612100770747093";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQ9fGAlAIaCPvVtZKiFJKBKKW9mHQ";
google_ad_channel = "3599094081";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
     <br>
     <br>
     <p align="center">&nbsp;<p align="center"><span class="smalltext"><font size="1">Copyright © 2006 -
    2007 PumpRock</font></span>
</h3>
</body>
</html>

Have you seen the post at http://www.simplemachines.org/community/index.php?topic=145838.0? It may be able to help you :)
[/quote]

Thankyou very much

mike16889

im having probems i used the simplemeathod and itsworking great exept for the fact that after i started editing the theme it stuffed up my actual site not the forum

here are some screens:

the forum look like it should at this point


the site not looking like it used to even thow i havent changed it
[img=http://img356.imageshack.us/img356/802/untitledbcbzb8.th.jpg]

see my problem

Gary

That means it is not able to find the SSI.php file, ensure that the path is correct.

-ALM
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

mike16889

#232
it is correct

and seems to have corrected itself maybe its becouse im using a beta version of easy PHP


[EDIT]
it stuffed up again it only douse it when the theme as the code added...

i have not changed anything on the main pages just the forums theme...

mike16889

it is actualy using SSI.php it just produces that error for some reason i can actualy log in and out with the login box

DobleB

Hello, I'm new using the forum so try to understand me...
I'm trying to put te forum inside my page using this method, in the index.php of the forum I make this changes:

<html>
<head>
<title></title>
<style>
    /*Here goes all the style code*/
</style>
</head>

<body>
<table width="900" height="500" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr valign="top">
      <td width="900">
                   <table width="900" border="0" cellpadding="0" cellspacing="0">
                       <tr>
                          <td align="center" valign="top">
                                   /*Here goes the title banner*/
                          </td>
                       </tr>
        </table>
                  <table width="900" border="0" cellpadding="0" cellspacing="0">
               <tr>
                    <td>
                           /*Here goes the menu*/
                      </td>
          </tr>
          </table>
     <table width="900" height="265" border="0" cellpadding="0" cellspacing="0">
               <tr align="center" valign="top">
                   <td height="19" colspan="2">
                       <div align="justify" style="background-color:#FFFFFF; padding:5px">
             <?php
                     /**********************************************************************************
                     * index.php                                                                       *
                     ***********************************************************************************
                     * SMF: Simple Machines Forum                                                      *
                     * Open-Source Project Inspired by Zef Hemel ([email protected])                    *
                     * =============================================================================== *
                     * Software Version:           SMF 1.1.3                                           *
                     * Software by:                Simple Machines (http://www.simplemachines.org)     *
                     * Copyright 2006-2007 by:     Simple Machines LLC (http://www.simplemachines.org) *
                     *           2001-2006 by:     Lewis Media (http://www.lewismedia.com [nofollow])             *
                     * Support, News, Updates at:  http://www.simplemachines.org                       *
                     ***********************************************************************************
                     * This program is free software; you may redistribute it and/or modify it under   *
                     * the terms of the provided license as published by Simple Machines LLC.          *
                     *                                                                                 *
                     * This program is distributed in the hope that it is and will be useful, but      *
                     * WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
                     * or FITNESS FOR A PARTICULAR PURPOSE.                                            *
                     *                                                                                 *
                     * See the "license.txt" file for details of the Simple Machines license.          *
                     * The latest version can always be found at http://www.simplemachines.org.        *
                     **********************************************************************************/
                     
                     
                     /*   This, as you have probably guessed, is the crux on which SMF functions.
                        Everything should start here, so all the setup and security is done
                        properly.  The most interesting part of this file is the action array in
                        the smf_main() function.  It is formatted as so:
                     
                           'action-in-url' => array('Source-File.php', 'FunctionToCall'),
                     
                        Then, you can access the FunctionToCall() function from Source-File.php
                        with the URL index.php?action=action-in-url.  Relatively simple, no?
                     */
                     
                                                           .... and the rest of the index.php code...      
                     ?>
                  </div>
               </td>
              </tr>
        </table>
     </td>
   </tr>
</table>
</body>
</html>

The forum looks just fine, but it have a problem, each time I try to use a form like the register or try to post a message the page gets blank, don't show the forum, but it do post the message... Can somebody tell me what it's wrong with my method? Am I a mad scientist? WHAT'S WRONG!?!?!?!

ajayvibha

Hi,

I am following the cooler way and I facing problem as heder image are not appearing except for main forum page.I have made a separate post for this problem at http://www.simplemachines.org/community/index.php?topic=195826.0

Multiple times I have read the various tips / guidelines but still there seem to be problem.

Can someone help .

Thanks & Regards,
Ajay

<a href="http://www.obiztek.com [nofollow]" title="SEO Company India">Economical SEO Company</a>

Rabain

This is a lazy question:

Are there templates for sites using this integration where you just need to populate your own database address etc?

I just want to get something presentable up and then work on it as I go.

Kindred

Сл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."

lukehol

Hi,

I know this topic is rather old, but I already posted a new topic and nobody replied to it, so I thought I would restart this one.

My problem is this: after using the 'cooler way' I am having problems validating. It seems only to have a single error, that my </head> tag isn't showing.

My site is aenglish dot net / english-forum

Can anyone advise about this? Otherwise I'm extremely happy with this integration.

Luke

SA™

how can i sort this out im trying to include my left.php from my main site and i have manged to do so but im facing this problem see here

http://waynesworld.kicks-ass.net/forum/index.php

the forum is half way down the page

and when i click arcade the left blocks go all the way to the bottom

what need doing

this is the code i added to my index.template.php

echo ' <table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="20%">';
include 'C:\xampp\htdocs/left.php';
echo '</td>


and my left.php code

<link rel="stylesheet" type="text/css" href="site style.css" />
</div>
<div id="navcol">
    <table width="186"   style="border: solid 1px #696464; cellpadding="4" cellspacing="0" bgcolor="">
        <tr>
        <td width="186" height="29" class="titlebg">Best Players</td>
        </tr>
        <tr>
        <td width="186" height="70" class="windowbg2" valign="left">
<?php   //Game Of The Day                                                  
$no=5;

global 
$sourcedir,$user_info;
require_once(
$sourcedir.'/ArcadeDbConnector.php');
require_once(
$sourcedir '/Subs-Arcade.php');
require_once(
$sourcedir.'/ArcadeStats.php');
require_once(
$sourcedir.'/ArcadeBlocks.php');

//$user_info[query_see_game]=1;   

loadArcadeSettings();
loadLanguage('Arcade');

//$arcade_display = Arcade3champsBlock($no);

//$arcade_display = ArcadeInfoLongestChamps($no);

//$arcade_display = ArcadeInfoMostPlayed($no);

$arcade_display ArcadeInfoBestPlayers($no);

//$arcade_display = ArcadeRandomGameBlock();

//$arcade_display = ArcadeGOTDBlock();

echo $arcade_display
echo 
'</table><p>

 <table width="186"   style="border: solid 1px #696464; cellpadding="4" cellspacing="0" bgcolor="">
        <tr>
        <td width="186" height="29" class="titlebg">Most Played</td>
        </tr>
        <tr>
        <td width="186" height="70" class="windowbg2" valign="left">'
;
//Game Of The Day                                                  
$no=5;

global 
$sourcedir,$user_info;
require_once(
$sourcedir.'/ArcadeDbConnector.php');
require_once(
$sourcedir '/Subs-Arcade.php');
require_once(
$sourcedir.'/ArcadeStats.php');
require_once(
$sourcedir.'/ArcadeBlocks.php');

//$user_info[query_see_game]=1;   

loadArcadeSettings();
loadLanguage('Arcade');

//$arcade_display = Arcade3champsBlock($no);

//$arcade_display = ArcadeInfoLongestChamps($no);

$arcade_display ArcadeInfoMostPlayed($no);

//$arcade_display = ArcadeInfoBestPlayers($no);

//$arcade_display = ArcadeRandomGameBlock();

//$arcade_display = ArcadeGOTDBlock();

echo $arcade_display;

?>

</table>
<p>
<table width="186"   style="border: solid 1px #696464; cellpadding="4" cellspacing="0" bgcolor="">
        <tr>
        <td width="186" height="29" class="titlebg">Newest Games</td>
        </tr>
        <tr>
        <td width="186" height="70" class="windowbg2" valign="left">
<?php   //Game Of The Day                                                  
$no=5;

global 
$sourcedir,$user_info;
require_once(
$sourcedir.'/ArcadeDbConnector.php');
require_once(
$sourcedir '/Subs-Arcade.php');
require_once(
$sourcedir.'/ArcadeStats.php');
require_once(
$sourcedir.'/ArcadeBlocks.php');

//$user_info[query_see_game]=1;   

loadArcadeSettings();
loadLanguage('Arcade');

//$arcade_display = Arcade3champsBlock($no);

$arcade_display ArcadeInfoNewestGames($no);

//$arcade_display = ArcadeInfoLongestChamps($no);

//$arcade_display = ArcadeInfoMostPlayed($no);

//$arcade_display = ArcadeInfoBestPlayers($no);

//$arcade_display = ArcadeRandomGameBlock();

//$arcade_display = ArcadeGOTDBlock();

echo $arcade_display;?>

</table><p>
<table width="186"   style="border: solid 1px #696464; cellpadding="4" cellspacing="0" bgcolor="">
        <tr>
        <td width="186" height="29" class="titlebg">Game Of The Day</td>
        </tr>
        <tr>
        <td width="186" height="70" class="windowbg2" valign="left">
<?php
//Game Of The Day                                                  
$no=5;

global 
$sourcedir,$user_info;
require_once(
$sourcedir.'/ArcadeDbConnector.php');
require_once(
$sourcedir '/Subs-Arcade.php');
require_once(
$sourcedir.'/ArcadeStats.php');
require_once(
$sourcedir.'/ArcadeBlocks.php');

$user_info[query_see_game]=1;   

loadArcadeSettings();
loadLanguage('Arcade');

//$arcade_display = Arcade3champsBlock($no);

//$arcade_display = ArcadeInfoLongestChamps($no);

//$arcade_display = ArcadeInfoMostPlayed($no);

//$arcade_display = ArcadeInfoBestPlayers($no);

//$arcade_display = ArcadeRandomGameBlock();

$arcade_display ArcadeGOTDBlock();

echo 
$arcade_display;
?>

</table>
<p>
<table width="186"   style="border: solid 1px #696464; cellpadding="4" cellspacing="0" bgcolor="">
        <tr>
        <td width="186" height="29" class="titlebg">Link To Us & Friends  </td>
        </tr>
        <tr>
        <td width="186" height="70" class="windowbg2" valign="left">
<br>
<p align="center"><a href="http://waynesworld.kicks-ass.net"><img src="http://waynesworld.kicks-ass.net/forum/banners/banner.gif"><br>
<br><TEXTAREA id=holdtext rows=3 cols=20><p align="center"><a href="http://waynesworld.kicks-ass.net"><img src="http://waynesworld.kicks-ass.net/forum/banners/banner.gif"></textarea></a>
<br>
<p align="center"><a href="http://www.smfgames.net/index.php"><img src="http://www.smfgames.net/buttom.jpg">
<br>
<p align="center"><a href="http://www.ridersplace.net"><img src="http://waynesworld.kicks-ass.net/forum/banners/rider.gif">


</table>

<p>
<table width="186"   style="border: solid 1px #696464; cellpadding="4" cellspacing="0" bgcolor="">
        <tr>
        <td width="186" height="29" class="titlebg">Please Vote For us </td>
        </tr>
        <tr>
        <td width="186" height="70" class="windowbg2" valign="left">
<a href="http://tinyadminresources.com/extras/topsites/"><img
src="http://tinyadminresources.com/extras/topsites/button.php?u=wdm2005" alt="TAR
Topsites" border="0" /></a>




<a href="http://www.smftopsite.com/"><img src="http://www.smftopsite.com/button.php?u=wdm2005" alt="SMFTopSite.com" border="0" /></a>










<!-- BEGIN TOP SITE LIST PLANET VOTING CODE -->

<a href="http://arcade.top-site-list.com/vote572.html">
<IMG SRC="http://arcade.top-site-list.com/images/voteimage/arcade-1.gif" border=0></a><br><a href="http://www.top-site-list.com/">Arcade Top Site List</a>

<!-- END TOP SITE LIST PLANET VOTING CODE -->




<a href="http://www.best-arcade.net/"><img src="http://www.best-arcade.net/button.php?u=wdm2005" alt="The Best Arcade Sites on the Net!" border="0" /></a>




<!-- Begin TopGameSites voting code -->
<a href="http://www.topgamesites.net/general" title="Top General Gaming sites" target="_blank"> <img src="http://www.topgamesites.net/images/10.jpg" border="0" alt="Top General Gaming sites" /></a>
<noscript><a href="http://www.topgamesites.net">Private Servers</a></noscript>
<!-- End TopGameSites voting code -->


<!-- Arcade Top Sites -->
<a href="http://www.arcadetopsites.com/index.php?do=votes&id=1263"><img border="0" src="http://www.arcadetopsites.com/button.gif" alt="Arcade Top Sites" /></a>
<!-- /Arcade Top Sites -->


<a href="http://www.arcadetopsite.com/"><img src="http://www.arcadetopsite.com/button.php?u=wdm2005" alt="Arcade Top Site" border="0" /></a>


<a href="http://www.toparcadesite.com/"><img src="http://www.toparcadesite.com/button.php?u=wdm2005" alt="Top Arcade Sites" border="0" /></a>
</table>
</div>



please help thanks
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Advertisement: