Current time: 01-08-2009, 11:23 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Basic Site-Forum Integration
09-27-2007, 06:14 PM
Post: #41
RE: [Tutorial] Basic Site-Forum Integration
hi guys...
I'd like to insert the last posts titles in a web page but I have not understood how...
Can u please explain me?
Thanks!!
Find all posts by this user
Quote this message in a reply
11-10-2007, 03:50 PM
Post: #42
RE: [Tutorial] Basic Site-Forum Integration
Need help with the "Recent Posts" box...it does not show up the recent posts at all, but it showed up blank.
Find all posts by this user
Quote this message in a reply
11-10-2007, 10:53 PM
Post: #43
RE: [Tutorial] Basic Site-Forum Integration
For the recent post there are a couple of plugins available that can do this for you that is what i am using on my site http://www.fish-n-tassie.com.

I found that the best way less code in the actual page for you toworry about and more support at the moment.

Fishntassie...

[Image: big_sig.png]
My Site & My Business Site
Find all posts by this user
Quote this message in a reply
11-12-2007, 05:23 PM
Post: #44
RE: [Tutorial] Basic Site-Forum Integration
Wow your login form code works pretty good but with a few customizations. Cool
Find all posts by this user
Quote this message in a reply
11-17-2007, 04:54 AM
Post: #45
RE: [Tutorial] Basic Site-Forum Integration
How do I make a LOG OUT link?
Find all posts by this user
Quote this message in a reply
11-17-2007, 05:40 AM (This post was last modified: 11-21-2007 01:46 AM by ahero4heor.)
Post: #46
RE: [Tutorial] Basic Site-Forum Integration
Getting this for both login and recent posts boxes.
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/lastmach/public_html/forum/login.php:2) in /home/lastmach/public_html/forum/inc/functions.php on line 1133

Any ideas?

EDIT: Getting error code 3 times after another, per frame, per load/refresh.
EDIT2: No 3 time error; just once now.

Bulletzero.com - Under Construction - High quality design - Discounts for MyBB community members
"A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools."
- Doug Adams
Find all posts by this user
Quote this message in a reply
11-21-2007, 12:33 AM
Post: #47
RE: [Tutorial] Basic Site-Forum Integration
I really like the latest posts box, and I'd like to put this into my site, but is there anyway that someone can get the file and find out the database password?

I'm just worried about the security

[Image: lorddonkcreationsig.png]
Latest Release: MyBB November for MyBB 1.4!
Find all posts by this user
Quote this message in a reply
12-03-2007, 06:14 PM
Post: #48
RE: [Tutorial] Basic Site-Forum Integration
About the latest posts box....how would this be adapted for the download system?
Find all posts by this user
Quote this message in a reply
12-16-2007, 08:34 PM
Post: #49
RE: [Tutorial] Basic Site-Forum Integration
ahero4heor Wrote:Getting this for both login and recent posts boxes.
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/lastmach/public_html/forum/login.php:2) in /home/lastmach/public_html/forum/inc/functions.php on line 1133

Any ideas?

EDIT: Getting error code 3 times after another, per frame, per load/refresh.
EDIT2: No 3 time error; just once now.

Make sure you've added the MyBB Include code (like the database/forum dictionary info etc.) at the way beginning of your PHP page.
Find all posts by this user
Quote this message in a reply
02-10-2008, 08:48 PM
Post: #50
RE: [Tutorial] Basic Site-Forum Integration
What am I doing wrong? Whenever I try any of these "integration" codes, all I get are errors. Here's the code I'm working with.
PHP Code:
<?php
$rel 
"/public_html/forums"// The directory to your forum--relative to this file's location; include ending slash
chdir($rel);
require(
"./global.php");
?>

<?php
if($mybb->user["uid"])
{
?>
&nbsp;• <a href="<?php echo $rel?>search.php?action=getnew">View new posts</a><br>
&nbsp;• <a href="<?php echo $rel?>private.php">View new PM's</a><br>
&nbsp;• <a href="<?php echo $rel?>usercp.php">User CP</a><br>
&nbsp;&nbsp;&nbsp;&nbsp; <b>·</b> <a href="<?php echo $rel?>usercp.php?action=editsig">Edit Signature</a><br>
&nbsp;&nbsp;&nbsp;&nbsp; <b>·</b><a href="<?php echo $rel?>usercp.php?action=avatar">Edit Avatar</a><br>
&nbsp;• <a href="<?php echo $rel?>member.php?action=profile&uid=<?php echo $mybb->user["uid"]; ?>">My Profile</a><br>
&nbsp;• <a href="<?php echo $rel?>search.php?action=finduser&uid=<?php echo $mybb->user["uid"]; ?>">My Posts</a>
<?php
}
else
{
?>
<table>
 <form method="POST" action="<?php echo $rel?>member.php" onsubmit="return submitted();">
  <input type="hidden" name="action" value="do_login">
  <input type="hidden" name="url" value="">
  <tr>
   <td>Username</td>
   <td><input type="text" name="username" size="15"></td>
  </tr>
  <tr>
   <td>Password</td>
   <td><input type="password" name="password" size="15"></td>
  </tr>
  <tr>
   <td colspan="2"><center><input type="submit" value="Login" name="submit"></center></td>
  </tr>
  <tr>
   <td colspan="2"><center><a href="<?php echo $rel?>member.php?action=register">Not a member? Register now!</a></center></td>
 </form>
</table>
<?php
}
?>

[Image: affbanner.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: