Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
-
Tony_nl
- Berichten: 40
- Lid geworden op: 14 feb 2006, 23:09
Bericht
door Tony_nl » 04 mar 2006, 23:21
- Wat is het probleem? Gebruikers dienen telkens 2x in te loggen
Wanneer ontstond het probleem? Vanaf extra domeinnaam
Adres van je forum: http://canecorso-forum.nl
Geïnstalleerde mods: Die mod wat de cookie instellingen goed zet
Huidige template: SubSilver
phpBB versie: 2.0.19
Waar is je forum gehost: Digitalus
Heb je onlangs iets verandert aan je forum? n.v.t
Heb je gezocht naar een antwoord? (Ja, inloggen, 2keer inloggen, dubbel inloggen etc, etc...
Overige opmerkingen: Het forum draaide reeds onder het domein
http://www.pcvital.nl/forum en inloggen via dat domein gaat zonder problemen.
Daarna heb ik een apparte domeinnaam (zie boven) aangeschaft die gekoppeld staat aan het hoofddomein
http://www.pcvital.nl
Op het hoofddomein redirec ik de nieuwe domeinnaam via een .htaccess bestand naar de subfolder waar het forum staat (
http://www.pcvital.nl/forum)
Iedereen die nu het forum bezoekt via
http://www.canecorso-forum.nl moet dus 2x inloggen.
(Cookies staan ingesteld op pcvital.nl heb al eens geprobeerd om de cookies in te stellen op canecorso-forum.nl echter ook dat werkt niet)
mvg,
Tony
-
Tony_nl
- Berichten: 40
- Lid geworden op: 14 feb 2006, 23:09
Bericht
door Tony_nl » 05 mar 2006, 11:43
Thnks, zodra phpBB.com weer in de lucht is zodat ik die mod kan downloaden zal ik hem proberen.
mvg,
Tony
-
Raimon
- Berichten: 4397
- Lid geworden op: 27 aug 2005, 12:59
-
Contacteer:
Bericht
door Raimon » 05 mar 2006, 11:48
Heb hem gevonden voor bij het chinees of Taiwans phpBB support forum
Code: Selecteer alles
##############################################################
## MOD Title: Allow multiple domain names
## MOD Author: dirtdart <drew@burchett-family.com> (Drew Burchett) http://www.conservativefriends.com
## MOD Author, Secondary: HSorgYves < N/A > (Yves Kreis) N/A
## MOD Description: This MOD allows you to use multiple domain names and/or access paths with your phpbb board
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: common.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## This MOD allows multiple domain names (ie: www.mydomain.com and www.yourdomain.com) as well as different
## access paths (ie: forum.mydomain.com and www.mydomain.com/forum ) to the same phpbb board. It is able to
## set cookie domain and cookie path accordingly. It might require users who move from one access way to
## another to re-login the first time each access way is used.
## This MOD requires some changes in your configuration in the admin control panel:
## - if you want to use multiple domain names, then you need to remove any entry in the "Domain Name" field
## - if you want to use different access paths, then you need to remove any entry in the "Script path" field
## Do not forget to save your configuration after your changes.
##
## Thanks to A_Jelly_Donut for the php3 compliant code change.
##############################################################
## MOD History:
##
## 2005-04-30 - Version 1.1.0 (HSorgYves)
## - different way to detect the domain name
## - multiple access paths
## - set cookie domain and cookie path if they are empty as well
## - removed the comments
##
## 2004-07-25 - Version 1.0.0 (dirtdart)
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
common.php
#
#-----[ FIND ]------------------------------------------
#
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if (!empty($HTTP_SERVER_VARS['SERVER_NAME']) || !empty($HTTP_ENV_VARS['SERVER_NAME']))
{
$server_name = (!empty($HTTP_SERVER_VARS['SERVER_NAME'])) ? $HTTP_SERVER_VARS['SERVER_NAME'] : $HTTP_ENV_VARS['SERVER_NAME'];
}
else if (!empty($HTTP_SERVER_VARS['HTTP_HOST']) || !empty($HTTP_ENV_VARS['HTTP_HOST']))
{
$server_name = (!empty($HTTP_SERVER_VARS['HTTP_HOST'])) ? $HTTP_SERVER_VARS['HTTP_HOST'] : $HTTP_ENV_VARS['HTTP_HOST'];
}
else
{
$server_name = '';
}
if (empty($board_config['server_name']) && !empty($server_name))
{
$board_config['server_name'] = $server_name;
if (empty($board_config['cookie_domain'])) {
$board_config['cookie_domain'] = $board_config['server_name'];
}
}
if (empty($board_config['script_path'])) {
$board_config['script_path'] = str_replace('admin/', '', dirname($HTTP_SERVER_VARS['PHP_SELF']) . '/');
if (empty($board_config['cookie_path'])) {
$board_config['cookie_path'] = $board_config['script_path'];
}
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM