phpBB integration

STG related Support requests. Post site related support issues or questions about Star Trek Guide, or any of the tools or services on STG -- Not for phpBB Support --
Forum rules
Image
Post site related support issues or questions about phpBB Academy at Star Trek Guide, tools or STG services.
Post site feedback here as well.
Programming and general coding support or assistance should be requested in the Coding Assistance forums.

No phpBB Support in this forum

phpBB integration

Postby eagle » 17 Oct 2011, 13:34

Hi,

I'm trying to create a webpage ( you can look it at http://www.radio4ctiv3.com ...it's in Spanish but I can translate something if you want)...basically that idea is a group of some iframes (only loads a part of the page), but I'm having some problems trying to create custom pages using phpBB functions, like login.

I have entered the code (from one of your tutorials) that lets me login but it redirects me to the main forum...I know there is a way to redirect it to another page, but I'm having problems to create the REDIRECT page


This is the commun page that is INGRESO (which means "log in")
Code: Select all
<!DOCTYPE html>

<html>
   <head>
   
   <script type="text/javascript">
      function modiframe('index.html')
   </script>
   <style type="text/css">
   *{
      margin:0;
      }
   </style>
   
   <link href="estilos/radio4ctiv3.css" rel="stylesheet" type="text/css" />
   <meta name="author" content="Eduardo Guzman">
   <meta http-equiv="Content-Language" CONTENT="es">
   
   </head>
   
   <body id="body-ingreso">
      <div id="header-1">
         <div id="ingreso" align="center">
            <span valign="middle" class="header">INGRESO</span>
         </div>
      </div>
      <form action="/foros/ucp.php?mode=login" method="post">
         <div id="label-1">
            <div id="usuario">
               <p class="ingreso">Usuario:</p>
            </div>
            <div id="vuser">
               <input type="text" name="username" id="username" size="15" title="Username" />
            </div>
         </div>
         
         <div id="input-1">
            <div id="contrasena">
               <p class="ingreso">Contraseña:</p>
            </div>
            <div id="vpass">
               <input type="password" name="password" id="password" size="15" title="Password"/>
            </div>                                          
         </div>

         <div id="button-1" align="center">
            <input type="submit" name="login" value="Ingresar"/>
         </div>
      </form>   
         <div id="otros">
            <div id="registro">
               <a href="index.html" class="otros">Registrate</a>
            </div>
            <div id="olvido">
               <a href="index.html" class="otros">¿Olvidaste tu contraseña?</a>
            </div>
         </div>
   </body>
</html>   


This is the code of the "redirect", but I don't know how to call the user's username, total posts, avatar, messages, etc
Code: Select all
<?php
/**
*
* @author Original Author eagle90 eagle90@hotmail.com - http://www.Radio4ctiv3.com
*
* @package {PACKAGENAME}
* @version $Id$
* @copyright (c) 2011 Radio4ctiv3
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
// Specify the path to your phpBB3 installation directory.
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './foros/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
// The common.php file is required.
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);

// specify styles and/or localisation
$user->setup('mods/language');

// I don't know WHAT A I SHOULD DO RIGHT HERE

//THIS IS THE FOOTER (I THINK)

// Page title, this language variable should be defined in the language file you setup at the top of this page.
page_header($user->lang['Ingreso']);

// Set the filename of the template you want to use for this file.
// This is the name of our template file located in /styles/<style>/templates/.
$template->set_filenames(array(
    'body' => 'ingreso.html',
));

// Completing the script and displaying the page.
page_footer();

?>


The last php code, was basically a copy/paste from a tutorial of area51 topic.
I'm really new to php (but I have knowledge of java, javascripts and html obviusly)...is some one out there how can help me? or at least teach me some basics about what I should know about PHP or PHPBB?

Thanks in advance,

EAGLE

PD: if you want to test something the forum is located at http://foros.radio4ctiv3.com or use
user: test
pass: 123456
eagle    
Crewman
Crewman
 
Posts: 2
Joined: 17 Oct 2011, 13:09
Gender: Male
phpBB Knowledge: 1




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Return to STG Support

Who is online

Users browsing this forum: No registered users and 8 guests