| Autor |
Nachricht |
darwing
phpBB2.de User

Anmeldungsdatum: 28.01.2007
Beiträge: 1
|
Verfasst am:
So 28 Jan, 2007 08:34 |
  |
Hello there!
I would just like to start off by saying that this is my first time using PHPBB, and I'm in the midst of trying to get it fully functional the way I want it before I swich boards. Unfortunately there is no converter from the latest version of YABB yet so I think I will have to suffer for transferring for the time being.
Anyways, I am having difficulties with this mod, what I want it to be able to do are the following but am unsure if this is the mod to to it.
On an external html page I would like there to be a login section on each header of my site. Once the user has logged in from that page I would like the login buttons to switch to the forum statistics while staying on the same page with a possible button that says "you are now logged in continue to the forum?"
If this is not possible then I would like ot have two sections on the front page, (html if possible) (http://canadatrack.com) I would like to have the login section, and below it the stats of the forum/site.
Finally, ultimately what I am looking to do is incorperate the Ajax shoutbox onto each html page (or convert them to php), where once the user logs in and is moving about the site, they will be viewing the shoutbox all the time and can message anywhere on the site..
I know I am asking for a lot so please if you can lend any sort of help that would be greatly appreciated.
Thanks |
|
|
   |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
ozmofa
phpBB2.de User

Anmeldungsdatum: 09.03.2007
Beiträge: 1
|
Verfasst am:
Fr 09 März, 2007 18:41 |
  |
well how to make external registration page?  |
|
|
   |
 |
wylee
phpBB2.de User

Anmeldungsdatum: 20.06.2007
Beiträge: 5
|
Verfasst am:
Mi 20 Jun, 2007 01:16 |
  |
ok ill start by admitting im a php/sql n00b..i have stebbie67's login script running on my index page, referencing the phpbb.php page provided by kambodianboi as well as his snippet running at the top of all my members page before ANY other text. my problem is this: i cant dechiper the login script well enough to determine what parts i need to edit with my table info or to see if i have all the correct fields set up on my table..can anyone tell me where i might find these?
Thanks
ok ive been looking at it and i "think" that it doesnt tie into my sql at all...correct? all of the authentication runs off the phpbb database? anyway i have the loginpage working but it keeps just refreshing the page when i put in my credentials...no messages at all just refreshes...any ideas what ive done wrong?
ok i think ive gotten a lil farther...i now have the login showing at the top of my page with the rest of my index...i login and it takes me to a blank page with the url "http://www.wyleekiot.com/phpbb.php" showing in the browser. with no hints or clue whats wrong im stuck also the phpbb.de link wont show up...but if you view my source you will see its there.... |
|
|
   |
 |
kambodianboi
phpBB2.de User

Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]
|
Verfasst am:
Mi 20 Jun, 2007 10:01 |
  |
This is what you need to do.
Create a form, and make sure the action is set to "phpbb.php". For example
| Code: |
<form action="phpbb.php" method="post">
<input type="text" name="username" value="" />
<input type="password" name="password" value="" />
<input type="submit" name="login" value="Login" />
</form>
|
Basically, use that formation, you can do some changes as you please. The SQL that I used in that script is the exact same as the forum. If your forum works, then this script should work with no problem. Be sure to define the directory path of the phpBB forum.
* Additional note:
Your not suppose to access the script directly. Only the form is able to process thru it.
If you have any more problems, post back and I'll get back to you ASAP. |
_________________ - kambodianboi |
|
     |
 |
wylee
phpBB2.de User

Anmeldungsdatum: 20.06.2007
Beiträge: 5
|
Verfasst am:
Mi 20 Jun, 2007 13:33 |
  |
this is my modified form from stebbie67..did i mess up the code while re-arranging the table?
<form action="phpbb.php" method="post">
<!--- <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" class="nav"><a href="index.php" class="nav">http://www.wyleekiot.com Forum Index</a></td>
</tr>
</table> --->
<table width="150" bordercolor="Black" border="1" align="center">
<!--- <tr>
<th height="25"><font face="arial" size="2" color="#C00000">Log in </font></th>
</tr> --->
<tr>
<td><table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr>
<td width="25%" align="center"><span class="gen"><font face="arial" size="2" color="#a41900">
Username:
<input type="text" name="username" size="10" maxlength="40" value="" />
</font></span></td>
<td width="25%" align="center"><font face="arial" size="2" color="#a41900">Password:
<input type="password" name="password" size="10" maxlength="32" />
</font></td>
<td width="16%" align="center"><font face="arial" size="2" color="#a41900"> <font face="arial" size="2" color="#a41900">Automatic login</font>
<input type="checkbox" name="autologin2" />
</font></td>
<td width="8%" align="center"><font face="arial" size="2" color="#a41900">
<input type="hidden" name="redirect2" value="" />
<input type="submit" name="login2" class="mainoption" value="Log in" />
</font></td>
<td width="26%" align="center"><font face="arial" size="2" color="#a41900"> <a href="profile.php?mode=sendpassword" class="gensmall"><font face="arial" size="2">I forgot my password
<br /> <br /> <style type="text/css">
<!--
body {
background-color: #000000;
background-image: url();
}
.style2 {color: #CCCCCC}
.style26 {
color: #FFFF00;
font-size: 9;
}
.style27 {
color: #CCCCCC;
font-size: 9;
}
.style29 {font-size: 9; }
.style32 {font-size: xx-small}
.style34 {font-size: 36px}
-->
</style>
<style type='text/css'>
<!-- MenuBuilderStyle -->
select {
font-size:14;
color:#000000;
background-color:#F0F0F0;
}
</style>
</font></a></font></td>
</tr>
</table>
<!--- </td>
</tr>
</table> --->
</form>
i do have the form action set to phpbb.php as well as the input types however my form doesnt end until quite a bit of code later. could that be the problem? |
|
|
   |
 |
wylee
phpBB2.de User

Anmeldungsdatum: 20.06.2007
Beiträge: 5
|
Verfasst am:
Do 21 Jun, 2007 01:01 |
  |
ok if i substitute cambodianboi's login script for the one provided by stebbie67 it works fine. im using ver 2.0.22 so maybe stebbie67's isnt compatible? then i tried cutting the bits of stebbie's script that says "welcome (name) yada yada yada" and listed phpbb forum info...
when i pasted that to the bottom of the cambodianboi script it died on me again (sigh) is that the part thats not compatible? if so can you enlighten me what the updated code is?
Thanks |
|
|
   |
 |
wylee
phpBB2.de User

Anmeldungsdatum: 20.06.2007
Beiträge: 5
|
Verfasst am:
Do 21 Jun, 2007 02:22 |
  |
am i driving anyone nuts yet? i feel like this is my personal blog hehe. anyway using cambodianboi's phpbb.php page and login script i was able to get it to work. for page protection i used the snippet
<?php
include("phpbb.php");
if(!$userdata['session_logged_in'])
{
redirect($phpbb_root_path."login.php?redirect=../".$HTTP_SERVER_VARS['PHP_SELF']);
}
?>
which does keep people from seeing the protected pages when you arent logged in. the only problem is it is giving ppl a 404 page, not redirecting them to the index.php page as i thought it should. and i would still like the welcome message and forum stats to display on index when someone logs in...anyone have any solutions for these two issues? |
|
|
   |
 |
coolsoft
phpBB2.de User


Anmeldungsdatum: 09.11.2005
Beiträge: 5498
Wohnort: deep in the south (G)
|
Verfasst am:
Do 21 Jun, 2007 02:34 |
  |
|
    |
 |
wylee
phpBB2.de User

Anmeldungsdatum: 20.06.2007
Beiträge: 5
|
Verfasst am:
Do 21 Jun, 2007 14:19 |
  |
umm your over my head on vanilla or plus...im writing it in .txt and renaming to php..is that vanila? and as to what those tags are i dunno what they are either..the scripts are provided by cambodianboi and stebbie67. stebbie's script on page 1 of this thread has forum info that will be displayed when a user logs in...unfortunatly the script wouldnt work for me..so i used cambodianboi's script thats on this page. i would like to get the forum info displayed as stebbie67's script did. and using the security snippet thats also on page 1 of this thread i get a 404 page if you arent logged in.. |
|
|
   |
 |
|
|
|
|
Gehe zu Seite Zurück 1, 2
|
Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
|
|