MyBB Community Forums

Full Version: Integrating MyBB into your website. (Login Form)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Okay it dose not seem to show the login form it tacks me to my forum ??

here is the code i am using and its in forumlog.php and its iframed in v3.php

<?php
define("IN_MYBB", 1); 
chdir('forum/'); // path to MyBB
require './global.php';
?>
<?php

if($mybb->user['uid'])
{

echo "Hey, $mybbuser[username].<br>
Thanks for logging in.";
}
else
{

echo "<form action='forums/member.php' method='post'>
Username: <input type='text' name='username' size='25' maxlength='30' /><br />
Password: <input type='password' name='password' size='25' />
<input type='hidden' name='action' value='do_login'>
<input type='hidden' name='url' value='index.php' />
<input type='submit' class='submit' name='submit' value='Login' /></form><br>";
}
?>

help some one Smile
Some One???
hi all! i've included the forum with
define("IN_MYBB", 1);
chdir('C:/xampp/htdocs/mybb');
require 'C:/xampp/htdocs/mybb/global.php';
at the top of my template and i get the following error:
Quote:Fatal error: Call to a member function simple_select() on a non-object in C:\xampp\htdocs\mybb\inc\class_datacache.php on line 42
anyone knows what's the problem?

thank you!
spook.68
Hi my name is miguel, I am php Programmer living in London. I´ve found this wonderful site. Thanks
what about duplicated functions eg. in WordPress and MyBB?
spook.68 Wrote:hi all! i've included the forum with
define("IN_MYBB", 1);
chdir('C:/xampp/htdocs/mybb');
require 'C:/xampp/htdocs/mybb/global.php';
at the top of my template and i get the following error:
Quote:Fatal error: Call to a member function simple_select() on a non-object in C:\xampp\htdocs\mybb\inc\class_datacache.php on line 42
anyone knows what's the problem?

thank you!
spook.68

Try
define("IN_MYBB", 1);
chdir('C:/xampp/htdocs/mybb');
require './global.php';
Is there away to make it say
Hey, Username. 
Thanks for logging in. (User CP — Log Out)
I would like to have the whole userbox up the top.
E.G
Quote:Welcome blueparukia (Log Out - Admin CP - User CP)
Private Messages New 0, Unread 0, Total 3

etc. etc.


That would be very useful for me
Help me!!! I get an rror when I do this.
<?php
chdir('forums'); // path to MyBB
require './global.php';
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>BeZdreDge</title><style type="text/css">
div#container
{
   position: relative;
   margin-top: 0px;
   margin-left: auto;
   margin-right: auto;
   text-align: left;
}
body
{
   text-align: center;
   margin: 0;
}
</style></head>
<body bgcolor="#87CEEB" text="#000000">

<div id="container">
<img src="m%5F111a.gif" alt="" align="top" border="0" width="100%" height="745" style="position: absolute; left: 0px; top: 77px; width: 100%; height: 745px; z-index: 0" /><?php

if($mybb->user['uid'])
{
��// The user is logged in, say Hi
echo "Hey, $mybbuser[username].<br>
Thanks for logging in.";
}
else
{
��// The user is not logged in, Display the form
echo "<form action='forums/member.php' method='post'>
Username: <input type='text' name='username' size='25' maxlength='30' /><br />
Password: <input type='password' name='password' size='25' />
<input type='hidden' name='action' value='do_login'>
<input type='hidden' name='url' value='index.php' />
<input type='submit' class='submit' name='submit' value='Login' /></form><br>";
}
?>
<img src="back%201.jpg" alt="" align="top" border="0" width="1101" height="78" style="position: absolute; left: 0px; top: 0px; width: 100%; height: 78px; z-index: 1" />
<img src="/CA81850R1.gif" alt="" align="top" border="0" width="214" height="42" style="position: absolute; left: 410px; top: 9px; width: 214px; height: 42px; z-index: 2" />

<div style="position: absolute; left: 33px; top: 262px; width: 134px; height: 22px; z-index: 3" align="left">

<script language="JavaScript" type="text/javascript">    
function onImageRollover3Over() {}
function onImageRollover3Out() {}
//--></script>

<script language="JavaScript" type="text/javascript">    
Image1Rollover3 = new Image();
Image1Rollover3.src ='mouse%201.jpg';
Image2Rollover3 = new Image();
Image2Rollover3.src = 'mouse%20over.jpg';
function onImageRollover3Over() {
document.ImageRollover3.src=Image2Rollover3.src;
}
function onImageRollover3Out() {
document.ImageRollover3.src=Image1Rollover3.src;
}
//--></script> 
<a href="http://bezdredge.net/" onmouseover="onImageRollover3Over(this)" onmouseout="onImageRollover3Out(this)"><img id="rollimg3" width="134" height="22" src="http://www.freewebs.com/acroma103/mouse%201.jpg" alt="" border="0" name="ImageRollover3" /></a> 
 
</div>

<div style="position: absolute; left: 36px; top: 308px; width: 134px; height: 22px; z-index: 4" align="left">

<script language="JavaScript" type="text/javascript">    
function onImageRollover5Over() {}
function onImageRollover5Out() {}
//--></script>

<script language="JavaScript" type="text/javascript">    
Image1Rollover5 = new Image();
Image1Rollover5.src = 'mouse%201.jpg';
Image2Rollover5 = new Image();
Image2Rollover5.src = 'mouse%20over.jpg';
function onImageRollover5Over() {
document.ImageRollover5.src=Image2Rollover5.src;
}
function onImageRollover5Out() {
document.ImageRollover5.src=Image1Rollover5.src;
}
//--></script>
<a href="http://bezdredge.net/about.html" onmouseover="onImageRollover5Over(this)" onmouseout="onImageRollover5Out(this)"><img id="rollimg5" width="134" height="22" src="http://www.freewebs.com/acroma103/mouse%201.jpg" alt="" border="0" name="ImageRollover5" /></a>
 
</div>

<div style="position: absolute; left: 76px; top: 312px; width: 150px; height: 16px; z-index: 5" align="left">
<font style="font-size: 13px" color="#000000" face="Arial">About</font>
</div>

<div style="position: absolute; left: 36px; top: 353px; width: 134px; height: 22px; z-index: 6" align="left">

<script language="JavaScript" type="text/javascript">    
function onImageRollover7Over() {}
function onImageRollover7Out() {}
//--></script>

<script language="JavaScript" type="text/javascript">    
Image1Rollover7 = new Image();
Image1Rollover7.src = 'mouse%201.jpg';
Image2Rollover7 = new Image();
Image2Rollover7.src = 'mouse%20over.jpg';
function onImageRollover7Over() {
document.ImageRollover7.src=Image2Rollover7.src;
}
function onImageRollover7Out() {
document.ImageRollover7.src=Image1Rollover7.src;
}
//--></script>
<a href="http://bezdredge.net/forums/" onmouseover="onImageRollover7Over(this)" onmouseout="onImageRollover7Out(this)"><img id="rollimg7" width="134" height="22" src="http://www.freewebs.com/acroma103/mouse%201.jpg" alt="" border="0" name="ImageRollover7" /></a>
 
</div>

<div style="position: absolute; left: 79px; top: 357px; width: 150px; height: 16px; z-index: 7" align="left">
<font style="font-size: 13px" color="#000000" face="Arial">Forums</font>
</div>

<div style="position: absolute; left: 36px; top: 401px; width: 134px; height: 22px; z-index: 8" align="left">

<script language="JavaScript" type="text/javascript">    
function onImageRollover9Over() {}
function onImageRollover9Out() {}
//--></script>

<script language="JavaScript" type="text/javascript">    
Image1Rollover9 = new Image();
Image1Rollover9.src = 'mouse%201.jpg';
Image2Rollover9 = new Image();
Image2Rollover9.src = 'mouse%20over.jpg';
function onImageRollover9Over() {
document.ImageRollover9.src=Image2Rollover9.src;
}
function onImageRollover9Out() {
document.ImageRollover9.src=Image1Rollover9.src;
}
//--></script>
<a href="www.bezdredge.net\Contact.html" onmouseover="onImageRollover9Over(this)" onmouseout="onImageRollover9Out(this)"><img id="rollimg9" width="134" height="22" src="http://www.freewebs.com/acroma103/mouse%201.jpg" alt="" border="0" name="ImageRollover9" /></a>
 
</div>

<div style="position: absolute; left: 78px; top: 404px; width: 150px; height: 16px; z-index: 9" align="left">
<font style="font-size: 13px" color="#000000" face="Arial">Contact</font>
</div>

<div style="position: absolute; left: 79px; top: 265px; width: 150px; height: 16px; z-index: 10" align="left">
<font style="font-size: 13px" color="#000000" face="Arial">Home</font>
</div>
</div>
 


<script type="text/javascript">
 
  message     = "Welcome to BezDredge^" +
                "We hope you enjoy your stay^" +
                ":D " +
                "Welcome to BezDredge ...^" +
                "^"
  scrollSpeed = 25
  lineDelay   = 1500
 
  // Do not change the text below //
 
  txt         = ""
 
  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }
 
  // Unhide -->
scrollText(0)
  </script>

</body> </html>


The error I get is:
Parse error: syntax error, unexpected '&' in /home/www/bezdredge.net/index.php on line 33
I get this error:
Parse error: syntax error, unexpected '?' in /mounted-storage/home50b/sub001/sc34385-GRVN/www/sonicsoft/TurbohogStudio/something.php on line 130
This is my code:
<?php
chdir('forums'); // path to MyBB
require './global.php';
?>

<html>
<head>
  <title>Sonic-Turbocharged</title>


  <style type="text/css">
<!--
BODY {
scrollbar-face-color: #C0C0C0;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #C0C0C0;
scrollbar-darkshadow-color: #000000;
scrollbar-shadow-color: #646464;
scrollbar-arrow-color: #990000;
scrollbar-track-color: #DDDDDD;
}
-->
  </style>
</head>
<body style="background-color: black;">

<center>
<img src="http://img402.imageshack.us/img402/5317/bannerer2.png"></center>

<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="0" WIDTH="120" HEIGHT="540" ALIGN="LEFT">
<TR>
<TBODY BGCOLOR="#990000">
<TD VALIGN="TOP">
<center>
<img src="http://img248.imageshack.us/img248/2886/stcdvf1.png">
<a href="index.html">
<img border="0" src="/navbar/home.png"><BR>
<a href="pages/fangames.html">
<img border="0" src="navbar/fangames.png"><BR>
<a href="pages/comics.html">
<img border="0" src="/navbar/comics.png"><BR>
<a href="pages/sprites.html">
<img border="0" src="/navbar/sprites.png"><BR>
<a href="pages/artwork.html">
<img border="0" src="/navbar/artwork.png"><BR>
<a href="pages/gamearchive.html">
<img border="0" src="/navbar/gamearchive.png"><BR>
<a href="pages/officialcomics.html">
<img border="0" src="navbar/officialcomics.png""><BR>
<a href="pages/history.html">
<img border="0" src="navbar/history.png"><BR>
<a href="pages/contribute.html">
<img border="0" src="navbar/contribute.png"><BR>
<a href="pages/staff.html">
<img border="0" src="navbar/staff.png"><BR>
<a href="http://turbohog.110mb.com/forums/">
<img border="0" src="navbar/forum.png"></a>
</center>
<marquee direction="down" scrollamount="2" border="0" height="200" scrolldelay='1' onmouseover="this.stop()" onmouseout="this.start()">
<div align=center>
<a href="http://www.missioncomplete.smackjeeves.com" target="_blank"><img src="affiliates/kca.png" ALT="Mission Complete" border="0"></a><br>
<a href="http://www.freewebs.com/allaboutsonicexe" target="_blank"><img src="affiliates/allaboutsonic.gif" ALT="All About Sonic" border="0"></a><br>
<br></marquee>
<font size="1"><a href="pages/affiliate.htm">Become An Affiliate</a></font>
 
<a href="http://www.free-counters.net/" target="_blank"><img src="http://www.free-counters.net/counter.php?id=86317" alt="free hit counters by free-counters.net" border="0"></a>
<font size="1">Since Nov. 2005<BR><center>Subscribe to feed: </font>
<a href="pages/RSS_FEED.html" target="_blank"><img src="navbar/rss.gif" border="0" /></a>
</center>
</TR>
</table>



<table align="right" border="1" cellpadding="0" cellspacing="0" height="540" width="120">

  <tbody>

    <tr>

    </tr>

  </tbody><tbody bgcolor="#990000">

    <tr>

      <td valign="top"><br>

<!-- BEGIN CBOX - http://www.cbox.ws -->
      <div id="cboxdiv" align="center"><iframe src="http://www.cbox.ws/box/?boxid=898521&amp;boxtag=5238&amp;sec=main" marginheight="2" marginwidth="2" allowtransparency="yes" name="cboxmain" style="border: 1px solid rgb(237, 222, 219);" id="cboxmain" frameborder="0" height="215" scrolling="auto" width="150"></iframe><br>

      <iframe src="http://www.cbox.ws/box/?boxid=898521&amp;boxtag=5238&amp;sec=form" marginheight="2" marginwidth="2" allowtransparency="yes" name="cboxform" style="border-style: none solid solid; border-color: -moz-use-text-color rgb(237, 222, 219) rgb(237, 222, 219); border-width: 0px 1px 1px;" id="cboxform" frameborder="0" height="75" scrolling="no" width="150"></iframe>
      </div>

<!-- END CBOX --><br>

      <marquee direction="down" scrollamount="2" border="0" height="200" scrolldelay="1" onmouseover="this.stop()" onmouseout="this.start()">
      <div align="center"><a href="http://www.teamartail.com/topsites/in.php?id=6461"><img src="http://www.teamartail.com/topsites/button.php?id=6461" border="0"><br>

      </a><a href="http://top10.sonikku.com/in.php?id=6359">
      <img src="http://top10.sonikku.com/button.php?id=6359" border="0"> <br>

      </a><a href="http://www.davessonicsite.com/topsites/in.php?id=53">
      <img src="other/davetopsites.png" border="0"></a> <br>

      <a href="http://www.blueblurcentral.net/top10/"><img alt="Blue Blur Central Top 10" src="http://www.blueblurcentral.net/top10/button.php?u=Turbohog" border="0"> </a><br>

      <a href="http://www.sonicstrike.net/users/shadowflash/bbs/index.php?act=toplist&amp;code=hitin&amp;site=5" target="_top"><img src="http://www.sonicstrike.net/users/shadowflash/bbs/style_images/shadow/topsites.gif" border="0"></a><br>

      <a href="http://chaossonic.quotaless.com/top10/index.php?a=in&amp;u=Turbohog"><img src="http://chaossonic.quotaless.com/top10/button.php?u=Turbohog" alt="CSF Top 10" border="0"></a>
      </div>
      </marquee>
      </td>
    </tr>
  </tbody>
</table>
<table align="center" border="1" cellpadding="0" cellspacing="0" height="540" width="720">
 </tbody><tbody bgcolor="#990000">
  <tr>

        <td valign="top"><?php if (!@include 'http://www.sonicstadium.org/sonicnews/ticker/php/') if (!@include 'http://www.w00ty.com/sonicstadium/sonicnews/sn_ticker.php') print 'Sonic News feed unavailable.'; ?>
      <script language="Javascript" type="text/javascript" src="http://www.sonicstadium.org/sonicnews/ticker/js/"></script><br>

      <img src="navbar/bigstcdtag.png"><br>
<?php

if($mybb->user['uid'])
{
??// The user is logged in, say Hi
echo "Hey, $mybbuser[username].<br>
Thanks for logging in.";
}
else
{
??// The user is not logged in, Display the form
echo "<form action='http://stcd.createmybb.com/member.php' method='post'>
Username: <input type='text' name='username' size='25' maxlength='30' /><br />
Password: <input type='password' name='password' size='25' />
<input type='hidden' name='action' value='do_login'>
<input type='hidden' name='url' value='http://stcd.createmybb.com/index.php' />
<input type='submit' class='submit' name='submit' value='Login' /></form><br>";
}
?>
      <center><br>

      <div style="width: 720px; height: 440px; overflow: scroll;" 4=""><b><font size="1"><b> <a href="http://www.youtube.com/profile?user=Turbohog"><img src="other/[email protected]" border="0"> </a>
			<font size="4"><b>5-13-07: 3 Months of DARKNESS</b></font>
      </b></font> <a href="http://www.bluehog.d-padnetwork.com/"><img src="other/bgsbutton.png" border="0"> </a> <font size="3"><b>
      </b></font></b>
      <div class="fw-text"><b><font size="3"><b> 
Well... It's been three months since the host died, but it's back up now and none of you are probably here because of the new url. I don't have anything
for you yet, but I'm going to try to get a page up for Mario and Sonci Olympics and Sonic Rush Adventure. Why don't you check BGS out until then. Just 
wanted to let you all know this site's STILL not dead!
      <script type="text/javascript" src="http://images.freewebs.com/JS/fw.js"></script>
      <script type="text/javascript" src="http://images.freewebs.com/JS/fwRatingBox.js"></script>
      <script type="text/javascript" src="http://link.freewebs.com/Members/Feedback/loadRatingBoxJS.jsp?ownerID=17879467&amp;listID=2925090&amp;limit=20&amp;duration=40&amp;showRatings=false&amp;showComments=true&amp;startHidden=true"></script><br>
<center><font size="4"><b>3-7-07 New forum, plus more! </b></font></center>
      
      <div class="fw-text"><b><font size="3"><b> 
Well, I really would have updated sooner, but my internet broke and now I have to reformat my computer... Don't worry, I'm backing up what I need! We 
have 2 new staff members, Spikeman, and Blade. Both are spriters. Blade has a sprite comic and is also our affaiate now! I finally finished the forums,
and I'm looking for moderators, so join! <a href="http://turbohog.110mb.com/forums/">(Click to go to forums)</a> I've got Sonic and the Secret Rings 
and I've got to say, Sonicteam finally did something right. I'm currently making a review. I'll post it ASAP as well as some more stuff. Oh and I've a
scrollbar and two link at the top of this table. One is to my Youtube account, cause I post lots of videos there that I never get the time to post here,
and to Bluehog Gaming Studio. Yep, I'm finally a staff member. I'm the "Fan-Game Director". I handle the fan game submissions... But they're have been 
any yet, so submit! Again, <a href="http://turbohog.110mb.com/forums/">join the forums!</a><br>   

<center><font size="4"><b>2-5-07 TGS LIVES!</b></font></center>
   
      <div class="fw-text"><b><font size="3"><b>
You didn't think I'd just let this site dye, did you? Well, I obviously did not win the SSA. I usually try to update at least once a month, but got I
really busy. I found and bought a Wii finally and played about 54 hours of Zelda, 20 hours of Warioware, and 20 hours of my downloaded Virtual Console 
games. Then Semester Exams arivved at school along with 3 more big tests. The good news is I fixed Windows Movie Maker and almost finished a new
version of City Escape. This version has loops, better sprites, better background, and better grinding. The name of this site has also changed from
Turbohog Gaming Studio to Sonic-Turbocharged. I felt a bit guilty ripping Bluehog off like that... We even have a nice new banner! I've updated with
<a href="http://sonicsoft.supersanctuary.com/TurbohogStudio/SATSR_screenshots">screenshots of Sonic and the Secret Rings</a> which comes out Feb.20. 
Expect info on Sonic 06 and Sonic Rivals soon. Maybe something with Eggman's Revenge too. Just letting you all know that this site isn't dead! Oh and
REALLY soon, I'll update again with the new forums, AGAIN! This time my pc doesn't block it, and I promise this will be the last forum change for a 
LONG time!
      <script type="text/javascript" src="http://images.freewebs.com/JS/fw.js"></script>
      <script type="text/javascript" src="http://images.freewebs.com/JS/fwRatingBox.js"></script>
      <script type="text/javascript" src="http://link.freewebs.com/Members/Feedback/loadRatingBoxJS.jsp?ownerID=17879467&amp;listID=1446162&amp;limit=20&amp;duration=40&amp;showRatings=false&amp;showComments=true&amp;startHidden=true"></script></b></font><br>
</div>

   
      </td>

    </tr>

  </tbody>
</table>


<!-- -->
<script type="text/javascript" src="/i.js"></script>
</body>
</html>
I would also like a way to have my whole userbox appear.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48