miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

Intergrated Anonymous username?

 
Author Rocky
Partaker
#1 | Posted: 29 Dec 2006 15:32 
I have almost fully integrated minibb into my site in one hour :)
Only problem when a user posts a message its saved with the name Anonymous. if you hover over Members you can see the correct userID
In the preferences everything is showing correct. Name, password etc...


do i have to get
poster_id int(10) NOT NULL default '0',
poster_name varchar(40) NOT NULL default 'Anonymous',

into my $dbUserSheme=array ?

Could someone please give me a clue???

Author Anonymous
Guest
#2 | Posted: 29 Dec 2006 20:03 
I fixed it!!!
bb_cookie.php

<?php
/*
This file is part of miniBB. miniBB is free discussion forums/message board software, without any warranty. See COPYING file for more details. Copyright (C) 2004 Paul Puzyrev, Sergei Larionov. www.minibb.com
*/
if (!defined('INCLUDED776')) die ('Fatal error.');

//echo $guessurl;

$cookieexptime=time()+$cookie_expires;

function user_logged_in() {

if(isset($GLOBALS['cook']) and trim($GLOBALS['cook'])!='') { $c=explode('|',$GLOBALS['cook']); }
elseif(isset($_SESSION['user_id'])) $c=explode('|',$_SESSION['name']);
else $c=getMyCookie();

$username=$c[0]; $userpassword=$c[1]; $exptime=$c[2];

$returned=FALSE;
$resetCookie=FALSE;

if($username=='') { $returned=FALSE; return; }

$GLOBALS['user_usr']=$username;

}
?>


thanks :)

Specific miniBB Support Forums / Specific /
 Intergrated Anonymous username?
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑