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

0 Members and 1 Guest are viewing this topic.

Offline uksoreeyes

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.myleeneklass.com
Integration 4images 1.7 / phpBB
« Reply #210 on: March 11, 2003, 09:10:39 AM »
It's ok I fixed my problem, silly me had the 'user_loginform.html' setup wrong, I forgot to change 'user_name' to 'username' and 'auto_login' to 'autologin'

works fine now. just one more question?

is it possible to redirect users to the 4images main page when they click on log out from my 4images page?

and to redirect users to the forum main page when they click logout from the forum?

Maybe this could be done using a query string? This would finish the integration off nicely I think.

Many thanks

Carl

Offline Gabi

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.gabis-traum.de
Re: phpbb neu bei 4images mit 2000 usern
« Reply #211 on: March 11, 2003, 12:13:49 PM »
Quote from: Synapse
Quote from: limes
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


Es gibt eine möglichkeit, die wurde schon ein paar postings vorher beschrieben und sie funktioniert. du musst die bestehende 4images usertable so anpassen, dass sie der vom phpBB gleicht und dann entprechend in jene für das PHPBB umbekennen. Vorher solltest du allerdings einen SQL dump machen und die umbenannte tabelle wieder neu generieren... sonst funktioniert die userverwaltung im 4images logischerweise nicht.

Synapse


Wie geht das genau ???
Kannst du das näher erklären.....so das es auch eine phpAnfängerin versteht ???

lg

Gabi

Offline limes

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
ich auch
« Reply #212 on: March 11, 2003, 04:12:00 PM »
ja, so eine art to-do-liste! ich suche auch nach einer integration von einer bestehenden 4images-installation und phpbb.
cu
markus oeder
www.chauvi-seite.de

Offline Luang

  • Pre-Newbie
  • Posts: 2
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #213 on: March 13, 2003, 12:12:38 PM »
For those of you who like to give their mods administrator access to the gallery too, follow these instructions open up includes/contestants.php and find:

Code: [Select]
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);


after add

Code: [Select]
define('MOD', 2);

Close includes/contestants.php

Open up includes/auth.php and find

Code: [Select]
if ($cat_cache[$cat_id][$type] == AUTH_ALL || $user_info['user_level'] == ADMIN) {
    return true;
  }


after add

Code: [Select]
 if ($cat_cache[$cat_id][$type] == AUTH_ALL || $user_info['user_level'] == MOD) {
    return true;
  }


close includes/auth.php

open includes/page_header.php

find

Code: [Select]
"cp_link" => ($user_info['user_level'] != ADMIN) ? "" : "\n<p align=\"center\">[<a href=\"".ROOT_PATH."admin/index.php\">Control Panel</a>]</p>\n",

replace with

Code: [Select]
"cp_link" => ($user_info['user_level'] != ADMIN && $user_info['user_level'] != MOD) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Control Panel</a>]</p>\n",

close includes/page_header.php

open admin/admin_global.php and then find

Code: [Select]
if ($user_info['user_level'] != ADMIN

immediatly after that add

Code: [Select]
 && $user_info['user_level'] != MOD

close and save all files

All mods should have admin access to the gallery now, this is my first time writing some coding instructions so I might have overlooked something, please let me know if it works!

Offline cobacoba

  • Pre-Newbie
  • Posts: 3
    • View Profile
4images moderator
« Reply #214 on: March 14, 2003, 09:54:27 PM »
Quote from: Luang
All mods should have admin access to the gallery now, this is my first time writing some coding instructions so I might have overlooked something, please let me know if it works!


I need the specific moderator from phpBB forum can moderate  4images gallery so they can delete or move some images to the right catagory....

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #215 on: March 16, 2003, 08:12:37 AM »
without having to read 14 pages, do we have a working version yet? I understand the thing about changing the login.php with the old login

twmm

  • Guest
Integration 4images 1.7 / phpBB
« Reply #216 on: March 18, 2003, 03:45:42 PM »
Shap -

Time for you to not be so lazy and read all 14 pages. Yes, IT works... but you need to become familiar with the process rather than expect others to do the work for you,.

Regards,
T. McGuire

twmm

  • Guest
session_ip encoding and user_name in 4images_comments table
« Reply #217 on: March 18, 2003, 04:05:45 PM »
There are two areas that I have yet to work through. Perhaps, someone else has already done so.

1. phpBB encodes the session_ip field in the phpbb_sessions table. 4Images does not encode the session_ip, but it does store it into other tables. As a result of the integration, the encoded session_ip gets stored. Has anyone worked out the encode/decode process (borrowing the functions from phpBB functions.php)? If so, I would be most interested in your results.

The session_ip is used by 4Images in details.php, includes\sessions.php and admin\home.php.

2.  Is there any reason for the field user_name in 4images_comments table? If the user information is maintained via the user_id and the information in the phpbb_users table (4images_users table), this information is redundant. Does someone else have a better prespecttive of how this field is used by 4images?

Regards,
T. McGuire

Offline Clow Read

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://vectorcandy.com
Integration 4images 1.7 / phpBB
« Reply #218 on: March 19, 2003, 06:21:18 AM »
Hi Jan! ^^

could you help me with this prob???

i'm using phpBB 2.0.4 and i've integrated 4images 1.7 to phpBB and i've followed the instructions but when i login inside 4images...it gives me this 404 error

Code: [Select]

Not Found
The requested URL /forum/http://www.vectorcandy.com/gallery/index.php was not found on this server.


phpBB 2.0.4 is placed inside the /forum/ folder and 4images is placed inside /gallery/ folder...

do i have to modify phpBB's functions.php file???

thnx ^_~

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #219 on: March 19, 2003, 04:18:33 PM »
Quote from: twmm
Shap -

Time for you to not be so lazy and read all 14 pages. Yes, IT works... but you need to become familiar with the process rather than expect others to do the work for you,.

Regards,
T. McGuire


no thanks, I'm looking for MODS not headaches.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #220 on: March 20, 2003, 12:54:25 PM »
@twmm:

1. Just copy the function and used it, whats the problem?

2. You can allow comment posting for guests. In this case its possible to store the guests name instead of showing "Guest" as username for all guest postings.

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

Offline Aho

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #221 on: April 14, 2003, 07:47:06 PM »
ich habe gerade was entdeckt was nicht so ganz passen kann. und zwar steht in der comment_bit.html dieses hier:
Code: [Select]
 {if comment_user_profile_link}<a href="../profile.php?mode=viewprofile&u=2"><img src="{template_url}/images/profile.gif" border="0" alt="{comment_user_name}" /></a>{endif comment_user_profile_link}

das kann doch garnicht sein. so wie der link zum profil da steht würde der immer das profil von user=2 anzeigen. das ist natürlich falsch. wie kann ich das ändern das der da stets die jeweilige variable für den user auswählt der das post gemacht hat ?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #222 on: April 16, 2003, 09:41:37 AM »
Nein, das steht da normalerweise nicht drin. Da ist was schiefgelaufen ;)

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

Offline Aho

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #223 on: April 16, 2003, 04:48:56 PM »
naja, jetzt auch egal. hat mir ein anderer geholfen in einem anderen thread.

Offline Leitha

  • Pre-Newbie
  • Posts: 4
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #224 on: May 01, 2003, 05:54:12 PM »
Hi Everyone,

I am trying to intergrate phpBB 2.0.4 and 4images 1.7

I've setup a test server and installed phpBB 2.0.4 and 4images 1.7 (I made the necessary intergration changes before I installed 4images 1.7). After reading through this thread I noticed that you have to make a change to the phpBB function.php file for things to work properly so I changed  


Code: [Select]

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


to

Code: [Select]

if (!empty($db))
{
$db->sql_close();
}
   
if (stristr($url, 'http://')) { 
header('Location: ' . $url); 
exit; 
}


However, I now get the following error when I try to login (with a valid username and password)

Quote

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Inetpub\wwwroot\forums\includes\functions.php on line 707
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\forums\includes\functions.php:707) in C:\Inetpub\wwwroot\forums\includes\sessions.php on line 182
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\forums\includes\functions.php:707) in C:\Inetpub\wwwroot\forums\includes\sessions.php on line 183
Fatal error: Call to undefined function: redirect() in C:\Inetpub\wwwroot\forums\login.php on line 85


Can anyone help me out with this?