miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

®
 
 | Forums | Register | Reply | Search | Statistics | 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


 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

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