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

0 Members and 2 Guests are viewing this topic.

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Integration 4images 1.7.x / phpBB
« Reply #495 on: February 04, 2007, 03:48:23 PM »
@neonplayer
That Post is more than 4 Years old... (o:

Offline neonplayer

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #496 on: February 04, 2007, 03:52:33 PM »
sry .. can i know how to solve that login problem ? I got logout problem just now . Only login problem occured.


Offline neonplayer

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Redirect phpbb mod
« Reply #498 on: February 04, 2007, 04:22:27 PM »
All credits to thoul http://darkmods.sourceforge.net
##############################################################
# Title: Redirect Outside phpBB After Log In/Out
# Author: Thoul  thoul@users.sourceforge.net  http://darkmods.sourceforge.net
# Description: Guide that allows redirecting outside phpBB for log in or out.
# Version: 1.1.1
# Installation Level: Easy
# Installation Time: 3 Minutes
# Files To Edit: login.php
# Included Files: n/a
##############################################################
# Author's Notes:
# This file is intended to be a guide to redirecting users to files outside of the
# phpBB directories when they log in or log out on a case-by-case basis (that is to
# say, so that you can have some log ins/outs redirect like this and have some
# not). This file deals only with login.php, logging in, and logging out, but
# similar ideas can also be applied to redirecting outside of the phpBB
# directories in other files.
#
# If you are redirecting users to pages outside of your phpBB directories (aka
# folders), be sure to read the file function_change.txt also. It contains other
# modifications and instructions that you will need to read.
#
# Once all these modifications have been applied, you can use log in forms to
# redirect users outside the phpBB directories by adding two hidden form inputs
# like these:
# <input type="hidden" name="outside" value="1" />
# <input type="hidden" name="redirect" value="index.htm" />
# You can also create log in links like this one:
# <a href="login.php?redirect=/index.html&outside=1">Log In</a>
# And you can create log out links like this one:
# <a href="login.php?logout=true&redirect=/index.phtml&outside=1">Log Out</a>
#
#
# Thanks to RyanThaDude29 for developing some of the concepts presented in the mod
# on the FetchAll forums. :)
##############################################################
# BEFORE ADDING THIS TO YOUR FORUM, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
forum/login.php

#
#-----[ FIND ]------------------------------------------
#

               
Code: [Select]
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

Code: [Select]
/*  Original phpBB code - commented out for Redirect Outside phpBB After Log In/Out
if( $session_id )
{
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
}
*/
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if( $session_id )
{
$url = ( !empty($_REQUEST['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars(addslashes($_REQUEST['redirect']))) : 'index.' . $phpEx;

$outside = ( !empty($_REQUEST['outside']) ) ? true : false;
redirect(append_sid($url, true), $outside);
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#

      
Code: [Select]
if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url = str_replace('&amp;', '&', $url);
redirect(append_sid($url, true));
}

#
#-----[ REPLACE WITH ]------------------------------------------
#

Code: [Select]
/*  Original phpBB code - commented out for Redirect Outside phpBB After Log In/Out
if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect']))
{
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
$url = str_replace('&amp;', '&', $url);
redirect(append_sid($url, true));
}
*/
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if (!empty($_REQUEST['redirect']) )
{
$url = htmlspecialchars(addslashes($_REQUEST['redirect']));
$url = str_replace('&amp;', '&', $url);
$outside = ( !empty($_REQUEST['outside']) ) ? true : false;
redirect(append_sid($url, true), $outside);
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------


#
#-----[ FIND ]------------------------------------------
#
Code: [Select]
$s_hidden_fields = '<input type="hidden" name="redirect" value="' . $forward_page . '" />';

#
#-----[ AFTER, ADD ]------------------------------------------
#
Code: [Select]
//---------------------------------------------------------------------------------
// Redirect Outside phpBB After Log In/Out - Begin Code Addition
//
if( isset($_REQUEST['outside']) )
{
$outside = ( !empty($_REQUEST['outside']) ) ? true: false;
$s_hidden_fields .= '<input type="hidden" name="outside" value="' . $outside . '" />';
}
//
// Redirect Outside phpBB After Log In/Out - End Code Addition
//---------------------------------------------------------------------------------

Open 4images/includes/sessions.php
#
#-----[ FIND ]------------------------------------------
Code: [Select]
$url_logout        = $url_app."login.php?logout=true";
#
#-----[REPLACE WITH]------------------------------------------
Code: [Select]
$url_logout        = $url_app."login.php?logout=true&redirect=../index.php&outside=1";note you will have to edit ../index.php so it points to the site you want.

#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#


This is for Login also rite ?

I did all those things and I still got login 404 error. How can i do ?   :(

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Integration 4images 1.7.x / phpBB
« Reply #499 on: February 04, 2007, 04:26:18 PM »
Why you quote the hole Post???  :evil:

Please read the hole Thread... Yes - all the 33 sites...

When you have done this aks the next questions...

Offline neonplayer

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #500 on: February 04, 2007, 04:35:09 PM »
sry again and again , i think i miss somethings . let me do it again  :(

Offline neonplayer

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #501 on: February 04, 2007, 04:40:27 PM »
OKie ,

 I did all the things start from editing forum login. php .

 But still got login error .

 I read the whole thread again and i doubt for that .

 
Quote
<input type="hidden" name="outside" value="1" />
# <input type="hidden" name="redirect" value="index.htm" />
# You can also create log in links like this one:
# <a href="login.php?redirect=/index.html&outside=1">Log In</a>
# And you can create log out links like this one:
# <a href="login.php?logout=true&redirect=/index.phtml&outside=1">Log Out</a>

Where should i do that ? Am i need to do that for login or what ?

Offline Mahonni

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Forum Boher.cat
Re: Integration 4images 1.7.x / phpBB
« Reply #502 on: February 06, 2007, 11:59:10 PM »
Acidgod, do you know how to solve our problem? We're quite a lot of people stuck with the following problem and we can't find a solution.

Ok, I've tried what Jan said in a post in the page 9, but also didn't work. I don't know if something has improved since I always entered first in the gallery and I don't know if I didn't notice the following or if the solution in page 9 worked: If I login, close the navigator, open again and go to the gallery it seems like I'm logged in BUT if I refresh the page or just click a link I get logged out. However, if after opening the navigator I go to the forum and then to the gallery everything works fine, I don't get logged out.

I've seen that once I'm logged in I've got a cookie called xxxx@yyyy[1].txt BUT when I go to the gallery after closing the navigator the cookie changes its name and its content (slightly) to xxxx@yyyy[2].txt (checked in IE).

Any idea would be really appreciated.

I'd really appreciate if you could help us with that. I've slowly read all the 33 pages (not now, but when I first asked about that) and I didn't find anything. I've even translated all german posts with google's translator and I didn't have any luck. Pleeeease  ;)

Offline neonplayer

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #503 on: February 08, 2007, 11:34:18 AM »
Anyone ,

 Who can help to get login redirection ? I got about the logoout error one . But I didn't get to make login yet . Please help me .  :?

Offline Murat

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • Lavinya
Re: Integration 4images 1.7.x / phpBB
« Reply #504 on: February 11, 2007, 03:01:00 PM »
hello.
i using phpbb 2.0.22+4images 1.7.4
I HAVE EXTRA SET-COOKIE...  8O

Set-Cookie: phpbbmysql_data=a%3A2.....; expires=Mon, 11 Feb 2008 13:49:54 GMT; path=/
Set-Cookie: phpbbmysql_sid=9d6b....; path=/
Set-Cookie: phpbbmysql_data=a%3A2%3A%7Bs%3A.......; expires=Mon, 11 Feb 2008 13:49:54 GMT; path=/
Set-Cookie: phpbbmysql_sid=40a647....; path=/

But in forum true.(2 set-cookie)

How to fix?
thanks.
<?php echo 'Hello, World!'; ?>

Offline low-deluxe

  • Pre-Newbie
  • Posts: 1
    • View Profile
phpbb 4images Integration
« Reply #505 on: February 23, 2007, 05:01:41 PM »
Hi!

wollte nur mal fdragen ob es nun möglich ist phpbb 2.0.22 und 4images 1.74 zu integrieren!?
Hatte es früher mit der 1.72 version ohne probleme am laufen, aber nach irgendeiner umstellung des hosters funztre es nich mehr!
Hab es mehrmals versucht bekomme aber immer nur errors!
Ich blicke leider auch nicht mehr in dem phpbb/4images integration thread durch!

Wäre echt nett wenn mir jemand helfen könnte!
-----------------------------------------------------
Just wanted to ask if the integration of 4images 1.74 in phpbb 2.0.22 is possible or not, because when i tried only errors occcured!

Danke im voraus
low

Offline cipriansamoila

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Integration 4images 1.7.x / phpBB
« Reply #506 on: February 23, 2007, 11:11:00 PM »
hi, has any of you integrated 4images and phpBB and then used the MOD for saving votes in the DB?
this mod here http://www.4homepages.de/forum/index.php?topic=6123.msg37763#msg37763
i am getting this error after inserting the MOD:

Code: [Select]
DB Error: Bad SQL Query: SELECT v.user_id, v.vote, u.user_name FROM 4images_voted v LEFT JOIN phpbb_users u ON (u.user_id = v.user_id) WHERE u.user_id = v.user_id AND image_id = 1
Unknown column 'u.user_name' in 'field list'

Offline Gibsy

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Gibsys Spielparadies
Re: Integration 4images 1.7.x / phpBB
« Reply #507 on: March 19, 2007, 09:38:47 PM »
Hallo,

Auf meiner phpbb Portal befindet sich ein Link wer ist wo online, leider zeigt dort nichts an wer sich in der Galerie (4images) befindet.
Es steht immer Forum-Index.

Kann mir da jemand weiterhelfen :oops:

Danke im voraus by Gibsy

Offline Gibsy

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Gibsys Spielparadies
Re: Integration 4images 1.7.x / phpBB
« Reply #508 on: March 20, 2007, 08:36:43 PM »
Hätte jemand eine Idee was ich machen könnte :oops: :?:

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Integration 4images 1.7.x / phpBB
« Reply #509 on: March 21, 2007, 06:03:41 AM »
Hi cipriansamoila,

test this:

search in the code from the mod

all
Code: [Select]
user_nameand replace it with:
Code: [Select]
username

cu
Kurt