Author Topic: Integration 4images 1.7.x / phpBB  (Read 649977 times)

0 Members and 1 Guest are viewing this topic.

Offline scherzbold

  • Pre-Newbie
  • Posts: 6
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #135 on: January 16, 2003, 12:18:23 PM »
Nein tun sie leider nicht, sonst hätte ich eine Möglichkeit gesehen.
Das weibe liegt:
http://web5.bigben085.server4free.de/intern/forum
das andere
http://web5.bigben085.server4free.de/intern/4images

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #136 on: January 16, 2003, 11:21:45 PM »
So wie ich das sehe, werden überhaupt keine Cookies dort gesetzt, das merkt man daran, dass sowohl im Forum als auch bei 4images immer die Session ID an jedem Link hängt. Dürfte wohl an der Konfiguration des Hosters hängen.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline scherzbold

  • Pre-Newbie
  • Posts: 6
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #137 on: January 17, 2003, 01:06:10 AM »
Hmm bei einer alleinigen installation werden cookies aber gesetzt und akzeptiert komischer weise

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #138 on: January 18, 2003, 05:06:49 PM »
Bist Du sicher? An phpBB wurde ja nichts verändert und dort werden keine Cookies gesetzt.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #139 on: January 23, 2003, 07:51:45 PM »
http://www.tipscheck.com/tradertt/4images/


If I try to login it will lead me to my FORUM login page instead of loggin me in directly. Why is this so? When I reach my Forum login page I have to login again ... what is wrong?

Please help

Offline robertmf

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://dliflc.org/
Integration 4images 1.7 / phpBB
« Reply #140 on: January 23, 2003, 08:22:49 PM »
Quote from: Jan
If the user has cookies enabled, he should stay logged in. If not, you have to append the session id to the link.

For phpBB, open includes/page_header.php and add this line
Code: [Select]
'U_4IMAGES' => append_sid('<the_url_to_4images>'),
below this line
Code: [Select]
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
After that, you can use {U_4IMAGES} in your phpBB templates, i.e.
Code: [Select]
<a href="{U_4IMAGES}">Go to the Gallery</a>

The same now for 4images. Add in includes/page_header.php this line
Code: [Select]
"url_phpbb" => $site_sess->url("<your_url_to_phpBB"),
below this line
Code: [Select]
"url_home" => $site_sess->url(ROOT_PATH."index.php"),
Now you can use {url_phpbb} in the 4images templates, ie
Code: [Select]
<a href="{url_phpbb}">Go to the Forum</a>
Jan


Okay.  I am this far with the integration.  So far sehr gut.

Now a real "newbie" question . :oops:

I would like, of course, to have the [goto 4images] and [goto phpbb] at the top of the main pages.  In which respective .php template files am I putting the  links?
Code: [Select]

<a href="{U_4IMAGES}">Go to the Gallery</a>
  ?

Thanks in advance!!!
[/b][/size]
DLI Alumni & Friends at DLIFLC.ORG

Offline robertmf

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://dliflc.org/
finished integration!
« Reply #141 on: January 24, 2003, 12:54:02 AM »

I must say Jan did a good job - all you have to do is be a good German follow his instruction set VERY EXACTLY !! hahahaha.  Should be easy if you've got German blood !!

Just now I have put up icons on both 4images and phpBB mainpages to switch back/forth.  

http://www.dliflc.org/community

Now, it is just a matter of customizing the 4images CSS to get the 'look & feel' of my website.

BTW where do you increase the 4images <TABLE HEIGHT= WIDTH= ?  


Again, thank you for a nice effort.   :D
DLI Alumni & Friends at DLIFLC.ORG

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #142 on: January 24, 2003, 07:53:40 AM »
@tradertt

For me it works. Be sure to have cookies enabled.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Re: finished integration!
« Reply #143 on: January 24, 2003, 09:23:18 AM »
Quote from: robertmf
Now, it is just a matter of customizing the 4images CSS to get the 'look & feel' of my website.

try 4images templates from http://www.vierstra.com/4images2.htm
4blue_orange1 looks very similar to phpBB design...

Offline fatman

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://photo.nixrex.com
phpBB2 redirect function
« Reply #144 on: January 24, 2003, 10:02:03 AM »
When I try to integrated a testing site, I found when login from 4images is fail. the phpBB2 redirect function have prevent 4images login page to redirect back... am i correct?

at phpPP2/include/functions.php
Code: [Select]

function redirect($url)
{
global $db, $board_config;

if (!empty($db))
{
$db->sql_close();
}

$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}

// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
exit;
}

Offline robertmf

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://dliflc.org/
Re: finished integration!
« Reply #145 on: January 24, 2003, 05:23:04 PM »
Quote from: SLL
Quote from: robertmf
Now, it is just a matter of customizing the 4images CSS to get the 'look & feel' of my website.

try 4images templates from http://www.vierstra.com/4images2.htm
4blue_orange1 looks very similar to phpBB design...

viele dank !
DLI Alumni & Friends at DLIFLC.ORG

Offline Clow Read

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://vectorcandy.com
Integration 4images 1.7 / phpBB
« Reply #146 on: January 28, 2003, 02:32:33 AM »
i have a problem integrating phpBB and 4images...

here's where both scripts are located...
phpBB: http://vectorcandy.com/home/
4images: http://vectorcandy.com/gallery/

the installation worked out fine and i've installed all the necessary files for integration but when i log in...i always receive this error

Code: [Select]
Not Found

The requested URL /home/http://vectorcandy.com/gallery/index.php was not found on this server.


here's the value that i've inputed to session.php

$url_app = http://vectorcandy.com/home/

Thanx for you help ^_^

Offline robertmf

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://dliflc.org/
Integration 4images 1.7 / phpBB
« Reply #147 on: January 28, 2003, 02:48:51 AM »
Quote from: Clow Read
i have a problem integrating phpBB and 4images...

here's where both scripts are located...
phpBB: http://vectorcandy.com/home/
4images: http://vectorcandy.com/gallery/

the installation worked out fine and i've installed all the necessary files for integration but when i log in...i always receive this error

Code: [Select]
Not Found

The requested URL /home/http://vectorcandy.com/gallery/index.php was not found on this server.


here's the value that i've inputed to session.php

$url_app = http://vectorcandy.com/home/

Thanx for you help ^_^


See the errmsg "The requested URL /home/http://vectorcandy.com

somewhere you have mixed the URLpath with the serverpath  name2file.
DLI Alumni & Friends at DLIFLC.ORG

Offline Clow Read

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://vectorcandy.com
Integration 4images 1.7 / phpBB
« Reply #148 on: January 28, 2003, 06:01:37 AM »
like where?

Offline limes

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
phpbb neu bei 4images mit 2000 usern
« Reply #149 on: February 03, 2003, 12:58:30 AM »
hi,
es scheint bisher wohl keine möglichkeit zu geben, eine bestehende 4images-installation um phpbb zu erweitern. ich habe derzeit ca. 2000 user in 4images und möchte phpbb integrieren. gibt es nicht doch ein chance? ich verfüge über html/perl und ein wenig php/sql-kenntnisse. wer kann mir weiterhelfen. ich bin auch gerne bereit einen angemessenen euro-betrag springen zu lassen ...?
markus