#### Welcome guest/username HACK #### by C.v. Marle (C.A.vanMarle@inter.NL.net) # Some things may differ, because I've a very modified board... # Sorry... If you can't find any thing, please mail me... # BACK-UP all your files before editing!!! # Don't blame me if your board's messed up [loginout.cgi(RECOMMEND) messanger.cgi, newposts.cgi, postings.cgi, profile.cgi, register.cgi] # Add this: $namelog = cookie(-name => "loggedname", -value => "$inmembername", -path => "/", -expires => "+30d"); # After this: (may differ a little in some files) $namecookie = cookie(-name => "amembernamecookie", -value => "$inmembername", -path => "$cookiepath", -expires => "+30d"); $passcookie = cookie(-name => "apasswordcookie", -value => "$inpassword", -path => "$cookiepath", -expires => "+30d"); # And change this: (may also differ a little in some files) (In some files it's not direct after "-expires => "+30d");") print header(-cookie=>[$namecookie, $passcookie]); # to this: print header(-cookie=>[$namecookie, $passcookie, $namelog]); [loginout.cgi] >> Change this: $namecookie = cookie(-name => "amembernamecookie", -path => "$cookiepath", -value => "", -expires => "now"); $passcookie = cookie(-name => "apasswordcookie", -value => "", -path => "$cookiepath", -expires => "now"); $trashcookie = cookie(-name => "templastvisit", -path => "$cookiepath", -value => "", -expires => "now"); print header(-cookie=>[$namecookie, $passcookie, $trashcookie]); >> To this: $namecookie = cookie(-name => "amembernamecookie", -path => "$cookiepath", -value => "", -expires => "now"); $passcookie = cookie(-name => "apasswordcookie", -value => "", -path => "$cookiepath", -expires => "now"); $trashcookie = cookie(-name => "templastvisit", -path => "$cookiepath", -value => "", -expires => "now"); $namelog = cookie(-name => "loggedname", -value => "$inmembername", -expires => "now"); print header(-cookie=>[$namecookie, $passcookie, $trashcookie, $namelog]); >> Add this the page where you want the membername: >> If you have the "Log-in | Register" version use this to show "Log-in | Register" if the user is a guest: # cgi-bin/ikonboard/ is the relative path to your ikonboard directory in your cgi-bin # from of your page where you inserted # You can use this is HTML tags i.e.

Welcome

## NOTE: YOUR PAGENAME SHOULD END WITH .shtml # Or add these lines to your .htaccess file: # (If you don't have one, make one in your rootdir.) AddType text/html .shtml .htm .html AddHandler server-parsed .shtml .htm .html # I think that should do it... ;) # Mzzl, Chris # P.S. if you find any bugs/errors please send me an e-mail