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

0 Members and 1 Guest are viewing this topic.

Offline Joel K

  • Pre-Newbie
  • Posts: 3
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #240 on: June 13, 2003, 11:09:23 PM »
OK, this is the first mod i have had any trouble with, and it's giving me more trouble than an invisible bull in the world's most expensive china shop!!  OK, exaggeration, but this is pretty important (to me, at least).

Before i start, let me tell you a few details:

-My PHPBB 2.0.4 table prefixes are "bb_"
-This is the code in my constants.php file:
Code: [Select]
define('USERS_TABLE', $table_prefix.'bb_users');
define('SESSIONS_TABLE', $table_prefix.'bb_sessions');

// User levels
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);

define('ADMIN_SAFE_LOGIN', 0);

-This is the code in my sessions.php file (i wont put in the URLS that link to my forum/correspond to my forum database as i have checked and they are all correct):
Code: [Select]
define('PHPBB_BANLIST_TABLE', 'bb_banlist');
define('PHPBB_CONFIG_TABLE', 'bb_config');

// Set here the URL to your phpBB forum. WITH trailing slash!
$url_app           = "http://www.skrunge.co.uk/bb/";




Now you know a little about my set up, i can tell you the problem :) :

Code: [Select]
DB Error: Bad SQL Query: UPDATE 4images_bb_sessions SET session_user_id = -1, session_start = 1055538219, session_time = 1055538219, session_page = 0, session_logged_in = 0 WHERE session_id = '' AND session_ip = 'd9292428'
Table 'skrunge_bb.4images_bb_sessions' doesn't exist

DB Error: Bad SQL Query: INSERT INTO 4images_bb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('8627c20ab60da54524b2328dee5a754e', -1, 1055538219, 1055538219, 'd9292428', 0, 0)
Table 'skrunge_bb.4images_bb_sessions' doesn't exist

Warning: Cannot modify header information - headers already sent by (output started at /home/skrunge/public_html/kites/includes/db_mysql.php:188) in /home/skrunge/public_html/kites/includes/sessions.php on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/skrunge/public_html/kites/includes/db_mysql.php:188) in /home/skrunge/public_html/kites/includes/sessions.php on line 326

DB Error: Bad SQL Query: SELECT u.user_id, u.user_level, u.username, u.user_allow_viewonline, s.session_user_id, s.session_time, s.session_ip FROM 4images_bb_users u, 4images_bb_sessions s WHERE u.user_id = s.session_user_id AND (s.session_time >= 1055537919 OR u.user_session_time >= 1055537919) ORDER BY u.user_id ASC, s.session_ip ASC
Table 'skrunge_bb.4images_bb_users' doesn't exist

DB Error: Bad SQL Query: SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.username FROM 4images_images i, 4images_categories c LEFT JOIN 4images_bb_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY RAND()
Table 'skrunge_bb.4images_bb_users' doesn't exist

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.username FROM 4images_images i, 4images_categories c LEFT JOIN 4images_bb_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0) ORDER BY i.image_date DESC LIMIT 3
Table 'skrunge_bb.4images_bb_users' doesn't exist

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/skrunge/public_html/kites/includes/db_mysql.php on line 116


If you need any more info just PM me and i'll come on over and give it to you :) or whatever, the gallery is at http://kites.skrunge.co.uk

Please help me fix this problem - i love 4iamges and don't want to be forced to change it to another gallery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Offline Joel K

  • Pre-Newbie
  • Posts: 3
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #241 on: June 14, 2003, 03:46:58 PM »
OK, got rid of that error :D

BUT - now when i try to sign into my gallery, i get a new error:

Code: [Select]
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the www.skrunge.co.uk home page, and then look for links to the information you want.
Click the  Back button to try another link.
Click  Search to look for information on the Internet.



HTTP 404 - File not found
Internet Explorer  


I've checked, and the page does actually exist - click refresh and it works fine.  All links to the various parts of my forum correctly.  However, when logged into my forum i can't go to my gallery and edit anything (as an admin user).

Why is this???  any ideas anyone???

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
how
« Reply #242 on: June 15, 2003, 04:52:13 PM »
Jan how to make ,
 If admin  delete user  from board [ pbpbb ] it will delete user on 4image too.
8)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #243 on: June 15, 2003, 05:36:00 PM »
Because of the fact that 4images deals with the users from phpBB after the integration, the users will be deleted.

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

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
no not after
« Reply #244 on: June 16, 2003, 02:51:40 AM »
After I make itregation with phpbb, and restore my all member to both program, now everytime guest make register it will add user to both [ 4images and phpbb ]

acording to this script

Code: [Select]
Index: includes/constants.php
===================================================================
diff -Naur includes/constants.php
--- includes/constants.php   2002-07-29 06:04:04.000000000 +0800
+++ includes/constants.php   2002-10-19 02:46:37.000000000 +0800
@@ -178,4 +178,16 @@
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

+// Album integration
+$album_table_prefix = '4images_';
+//define('ALBUM_INTEGRATED', 0); // Integrated album off
+define('ALBUM_INTEGRATED', 1); // Integrated album on
+define('ALBUM_USERS_TABLE', $album_table_prefix.'users');
+
+// Album User levels
+define('ALBUM_GUEST', -1);
+define('ALBUM_USER_AWAITING', 1);
+define('ALBUM_USER', 2);
+define('ALBUM_ADMIN', 9);
+
?>
Index: includes/usercp_activate.php
===================================================================
diff -Naur includes/usercp_activate.php
--- includes/usercp_activate.php   2002-05-20 01:21:38.000000000 +0800
+++ includes/usercp_activate.php   2002-10-19 03:25:49.000000000 +0800
@@ -56,6 +56,19 @@
      {
         message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql_update);
      }
+      if ( defined('ALBUM_INTEGRATED') )
+      {
+         if (ALBUM_INTEGRATED == 1)
+         {
+            $album_sql = "UPDATE " . ALBUM_USERS_TABLE . "
+               SET user_level = " . ALBUM_USER . "
+               WHERE user_id = " . $row['user_id'] . " AND user_activationkey = '" . $HTTP_GET_VARS['act_key'] . "'";
+            if ( !($result = $db->sql_query($album_sql)) )
+            {
+               message_die(GENERAL_ERROR, 'Could not update album users table', '', __LINE__, __FILE__, $sql_update);
+            }
+         }
+      }

      if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN && $sql_update_pass == '' )
      {
Index: includes/usercp_register.php
===================================================================
diff -Naur includes/usercp_register.php
--- includes/usercp_register.php   2002-09-28 12:21:18.000000000 +0800
+++ includes/usercp_register.php   2002-10-18 02:57:36.000000000 +0800
@@ -440,6 +440,13 @@
         {
            message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
         }
+         $album_sql = "UPDATE " . ALBUM_USERS_TABLE . "
+            SET " . $album_username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_homepage = '" . str_replace("\'", "''", $website) . "', user_showemail = $viewemail, user_invisible = " . (1 - $allowviewonline) . "
+            WHERE user_id = $user_id";
+         if ( !($result = $db->sql_query($album_sql)) )
+         {
+            message_die(GENERAL_ERROR, 'Could not update album users table', '', __LINE__, __FILE__, $sql);
+         }

         if ( !$user_active )
         {
@@ -499,6 +506,8 @@
         //
         $sql = "INSERT INTO " . USERS_TABLE . "   (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
+         $album_sql = "INSERT INTO " . ALBUM_USERS_TABLE . "   (user_id, user_name, user_password, user_email, user_showemail, user_allowemails, user_invisible, user_joindate, user_lastaction, user_lastvisit, user_comments, user_homepage, user_icq, user_level, user_activationkey)
+            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', $viewemail, 1, " . (1 - $allowviewonline) . ", " . time() . ", " . time() . ", " . time() . ", 0, '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $icq) . "', ";
         if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
         {
            $user_actkey = gen_rand_string(true);
@@ -506,10 +515,14 @@
            $key_len = ( $key_len > 6 ) ? $key_len : 6;
            $user_actkey = substr($user_actkey, 0, $key_len);
            $sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
+            $user_level = ALBUM_USER_AWAITING;
+            $album_sql .= $user_level . ", '" . str_replace("\'", "''", $user_actkey) . "')";
         }
         else
         {
            $sql .= "1, '')";
+            $user_level = ALBUM_USER;
+            $album_sql .= $user_level . ", '')";
         }

         if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
@@ -517,6 +530,11 @@
            message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
         }

+         if ( !($result = $db->sql_query($album_sql, BEGIN_TRANSACTION)) )
+         {
+            message_die(GENERAL_ERROR, 'Could not insert data into photo album users table', '', __LINE__, __FILE__, $album_sql);
+         }
+
         $sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator)
            VALUES ('', 'Personal User', 1, 0)";
         if ( !($result = $db->sql_query($sql)) )



------------------------------------------------------------


my question is the same system as above script,

 to remove user in both progran Jan, when admin remove the user on phpbb it will remove in 4images to.


 :wink:

Offline m-a-b

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • http://www.markus-kress.de
HILFE! phpbb Integration
« Reply #245 on: June 17, 2003, 11:18:24 AM »
Quote from: Jan
Probiere diesen Teil in login.php zu löschen (wieder beim phpBB):
Code: [Select]
// session id check
if ($sid == '' || $sid != $userdata['session_id'])
{
    message_die(GENERAL_ERROR, 'Invalid_session');
}


Das liegt daran, dass die Integration für Version 2.0.0 geschrieben wurde und sich jetzt bei Version 2.0.4 dort etwas geändert hat.

Jan


hi Jan!
das sollte vielleicht in der Datei in diesem Beitrag http://www.4homepages.de/forum/viewtopic.php?p=6985#6985
hinzugefügt werden! (in der readme)
hab schon ewig danach gesucht!
und das phpBB 2.0.4 ist eben nun mal die aktuelle Version!

mfg

Markus  8)

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
jan
« Reply #246 on: June 18, 2003, 12:03:47 PM »
Jan ....... please?

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
Integration 4images 1.7 / phpBB
« Reply #247 on: June 20, 2003, 02:43:23 PM »
Finally I can make it,......  

for whom want to delete 4images user , when you delete user  from phpbb control panel.

change this admin_userlist.php

to this


Code: [Select]

<?php
/***************************************************************************
 *                             admin_userlist.php
 *                            -------------------
 *   begin                &#58; Thursday, Jul 12, 2001
 *   copyright            &#58; &#40;C&#41; 2001 The phpBB Group
 *   email                &#58; support@phpbb.com
 *
 *   $Id&#58; admin_userlist.php,v 1.1.0 2003/01/05 02&#58;36&#58;00 psotfx Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   &#40;at your option&#41; any later version.
 *
 ***************************************************************************/

define&#40;'IN_PHPBB', 1&#41;;

if&#40; !empty&#40;$setmodules&#41; &#41;
&#123;
$file basename&#40;__FILE__&#41;;
$module['Users'&#93;['User_List'&#93; = $file;
return;
&
#125;

//
// Load default header
//
$phpbb_root_path "./../";
require&
#40;$phpbb_root_path . 'extension.inc'&#41;;
require&#40;'./pagestart.' . $phpEx&#41;;
include&#40;$phpbb_root_path . 'config.'.$phpEx&#41;;
include&#40;$phpbb_root_path . 'includes/functions_admin.'.$phpEx&#41;;

$start = &#40; isset&#40;$HTTP_GET_VARS['start'&#93;&#41; &#41; ? intval&#40;$HTTP_GET_VARS['start'&#93;&#41; &#58; 0;

if &#40; isset&#40;$HTTP_GET_VARS['mode'&#93;&#41; || isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41;
&#123;
$mode = &#40; isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41; ? $HTTP_POST_VARS['mode'&#93; &#58; $HTTP_GET_VARS['mode'&#93;;
&#125;
else
&
#123;
$mode 'joined';
&
#125;

if&#40;isset&#40;$HTTP_POST_VARS['order'&#93;&#41;&#41;
&#123;
$sort_order = &#40;$HTTP_POST_VARS['order'&#93; == 'ASC'&#41; ? 'ASC' &#58; 'DESC';
&#125;
else if&#40;isset&#40;$HTTP_GET_VARS['order'&#93;&#41;&#41;
&#123;
$sort_order = &#40;$HTTP_GET_VARS['order'&#93; == 'ASC'&#41; ? 'ASC' &#58; 'DESC';
&#125;
else
&
#123;
$sort_order 'ASC';
&
#125;

if &#40; isset&#40;$HTTP_GET_VARS['alphanum'&#93;&#41; || isset&#40;$HTTP_POST_VARS['alphanum'&#93;&#41; &#41; 
&#123; 
   
$alphanum = &#40; isset&#40;$HTTP_POST_VARS['alphanum'&#93;&#41; &#41; ? $HTTP_POST_VARS['alphanum'&#93; &#58; $HTTP_GET_VARS['alphanum'&#93;; 
   
$alpha_where = &#40; $alphanum == '#' &#41; ? "AND username NOT RLIKE '^[A-Z&#93;'"&#58;"AND username LIKE '$alphanum%'"; 
&#125;

if &#40;$HTTP_GET_VARS['mode'&#93; == "edit"&#41; &#123;
$user_status $HTTP_GET_VARS['user_status'&#93;;
$user_id2 $HTTP_GET_VARS['u'&#93;;

if &#40;$user_id2 == 2&#41; &#123;
echo "Can't change status of Board owner";
exit;
&#125;

$sql "UPDATE " USERS_TABLE "
SET user_active = 
$user_status
WHERE user_id = 
$user_id2";

if&#40; $result = $db->sql_query&#40;$sql&#41; &#41;
&#123;
$message .= $lang['User_status_updated'&#93;;
&#125;
else
&#123;
$error TRUE;
$error_msg = &#40; &#40; isset&#40;$error_msg&#41; &#41; ? '<br />' &#58; '' &#41; . $lang['Admin_user_fail'&#93;;
&#125;

&
#125;

if&#40; $HTTP_GET_VARS['mode'&#93; == "delete" &#41; &#123;

$user_id $HTTP_GET_VARS['u'&#93;;
$message $lang['Confirm_user_delete'&#93; . '<br /><br />' . sprintf&#40;$lang['Yes_delete_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx?mode=confirm_delete&u=" . $user_id&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['No_delete_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if &
#40;$HTTP_GET_VARS['mode'&#93; == "confirm_delete"&#41; &#123;
$user_id $HTTP_GET_VARS['u'&#93;;

/*if &#40;$user_id == 2&#41; &#123;
echo "Can't delete Board owner";
exit;
&#125;*/
$sql "SELECT g.group_id 
FROM " 
USER_GROUP_TABLE " ug, " GROUPS_TABLE " g  
WHERE ug.user_id = 
$user_id 
AND g.group_id = ug.group_id 
AND g.group_single_user = 1"
;
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$row $db->sql_fetchrow&#40;$result&#41;;

$sql "UPDATE " POSTS_TABLE "
SET poster_id = " 
DELETED ", post_username = '$username
WHERE poster_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "UPDATE " TOPICS_TABLE "
SET topic_poster = " 
DELETED 
WHERE topic_poster = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "UPDATE " VOTE_USERS_TABLE "
SET vote_user_id = " 
DELETED "
WHERE vote_user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "SELECT group_id
FROM " 
GROUPS_TABLE "
WHERE group_moderator = 
$user_id";
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql&#41;;
&#125;

while &#40; $row_group = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$group_moderator[&#93; = $row_group['group_id'&#93;;
&#125;

if &#40; count&#40;$group_moderator&#41; &#41;
&#123;
$update_moderator_id implode&#40;', ', $group_moderator&#41;;

$sql "UPDATE " GROUPS_TABLE "
SET group_moderator = " 
$userdata['user_id'&#93; . "
WHERE group_moderator IN &#40;$update_moderator_id&#41;";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql&#41;;
&#125;
&#125;

$sql "DELETE FROM " USERS_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

//------------------------------------------------------------------------------------------------
//------------------- DELETE 4IMAGES USER-----------------------------------------------------------
//---------------------------------------------------------------------------------------------

$album_sql "DELETE FROM " ALBUM_USERS_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
            
$album_sql "DELETE FROM "ALBUM_GROUP_MATCH_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
              
$album_sql "DELETE FROM "ALBUM_LIGHTBOXES_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete lightboxes user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
  
$album_sql "DELETE FROM "ALBUM_COMMENTS_TABLE .
            WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$album_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete comment user 4images', '', __LINE__, __FILE__, $sql&#41;;
&#125;
//-----------------------------------------------------------------------------------
//--------- END OF DELETE 4IMAGES USER
//-----------------------------------------------------------------------------------
$sql "DELETE FROM " USER_GROUP_TABLE "
WHERE user_id = 
$user_id";
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " GROUPS_TABLE "
WHERE group_id = " 
$row['group_id'&#93;;
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " AUTH_ACCESS_TABLE "
WHERE group_id = " 
$row['group_id'&#93;;
if&#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " TOPICS_WATCH_TABLE "
WHERE user_id = 
$user_id";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "DELETE FROM " BANLIST_TABLE "
WHERE ban_userid = 
$user_id";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$sql "SELECT privmsgs_id
FROM " 
PRIVMSGS_TABLE "
WHERE privmsgs_from_userid = 
$user_id 
OR privmsgs_to_userid = 
$user_id";
if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql&#41;;
&#125;

// This little bit of code directly from the private messaging section.
while &#40; $row_privmsgs = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$mark_list[&#93; = $row_privmsgs['privmsgs_id'&#93;;
&#125;

if &#40; count&#40;$mark_list&#41; &#41;
&#123;
$delete_sql_id implode&#40;', ', $mark_list&#41;;

$delete_text_sql "DELETE FROM " PRIVMSGS_TEXT_TABLE "
WHERE privmsgs_text_id IN &#40;
$delete_sql_id&#41;";
$delete_sql "DELETE FROM " PRIVMSGS_TABLE "
WHERE privmsgs_id IN &#40;
$delete_sql_id&#41;";

if &#40; !$db->sql_query&#40;$delete_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql&#41;;
&#125;

if &#40; !$db->sql_query&#40;$delete_text_sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql&#41;;
&#125;
&#125;

$message $lang['User_deleted'&#93; . '<br /><br />' . sprintf&#40;$lang['Click_return_userslist'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['Click_return_admin_index'&#93;, '<a href="' . append_sid&#40;"index.$phpEx?pane=right"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if&#40; $HTTP_GET_VARS['mode'&#93; == "ban" &#41; &#123;

$user_id $HTTP_GET_VARS['u'&#93;;
$message $lang['Confirm_user_ban'&#93; . '<br /><br />' . sprintf&#40;$lang['Yes_ban_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx?mode=confirm_ban&u=" . $user_id&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['No_ban_user'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

if &
#40;$mode == "confirm_ban"&#41; &#123;

   
$user_id $HTTP_GET_VARS['u'&#93;;
   
   
$sql "INSERT INTO " BANLIST_TABLE " &#40;ban_userid&#41;
VALUES &#40;" 
$user_id "&#41;";
if &#40; !$db->sql_query&#40;$sql&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, "Couldn't insert ban_userid info into database", "", __LINE__, __FILE__, $sql&#41;;
&#125;

$message $lang['User_banned'&#93; . '<br /><br />' . sprintf&#40;$lang['Click_return_userslist'&#93;, '<a href="' . append_sid&#40;"admin_userlist.$phpEx"&#41; . '">', '</a>'&#41; . '<br /><br />' . sprintf&#40;$lang['Click_return_admin_index'&#93;, '<a href="' . append_sid&#40;"index.$phpEx?pane=right"&#41; . '">', '</a>'&#41;;

message_die&#40;GENERAL_MESSAGE, $message&#41;;
&#125;

//
// Memberlist sorting
//
$mode_types_text = array&#40;$lang['Sort_Joined'&#93;, $lang['Sort_Username'&#93;, $lang['Sort_Posts'&#93;, $lang['Sort_Email'&#93;,&#41;;
$mode_types = array&#40;'joindate', 'username', 'posts', 'email'&#41;;

$select_sort_mode '<select name="mode">';
for&
#40;$i = 0; $i < count&#40;$mode_types_text&#41;; $i++&#41;
&#123;
$selected = &#40; $mode == $mode_types[$i&#93; &#41; ? ' selected="selected"' &#58; '';
$select_sort_mode .= '<option value="' $mode_types[$i&#93; . '"' . $selected . '>' . $mode_types_text[$i&#93; . '</option>';
&#125;
$select_sort_mode .= '</select>';

$select_sort_order '<select name="order">';
if&
#40;$sort_order == 'ASC'&#41;
&#123;
$select_sort_order .= '<option value="ASC" selected="selected">' $lang['Sort_Ascending'&#93; . '</option><option value="DESC">' . $lang['Sort_Descending'&#93; . '</option>';
&#125;
else
&
#123;
$select_sort_order .= '<option value="ASC">' $lang['Sort_Ascending'&#93; . '</option><option value="DESC" selected="selected">' . $lang['Sort_Descending'&#93; . '</option>';
&#125;
$select_sort_order .= '</select>';

//
// Generate page
//

$template->set_filenames&#40;array&#40;
'body' => 'admin/userlist_body.tpl'&#41;
&#41;;
make_jumpbox&#40;'viewforum.'.$phpEx&#41;;

$template->assign_vars&#40;array&#40;
'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'&#93;,
'L_EMAIL' => $lang['Email'&#93;,
'L_USERNAME' => $lang['Username'&#93;,
'L_ORDER' => $lang['Order'&#93;,
'L_SORT' => $lang['Sort'&#93;,
'L_SUBMIT' => $lang['Sort'&#93;,
'L_JOINED' => $lang['Joined'&#93;, 
'L_POSTS' => $lang['Posts'&#93;, 
'L_PM' => $lang['Private_Message'&#93;, 
'L_ACTIVE' => $lang['Active'&#93;,
'L_ACTION' => $lang['Action'&#93;,
'L_EDIT_PERMISSION' => $lang['Edit_Permission'&#93;,
'L_EDIT_PROFILE' => $lang['Edit_Profile'&#93;,
'L_PM' => $lang['Private_Message'&#93;,
'L_USER_LIST_TITLE' => $lang['User_list_title'&#93;,
'L_USER_LIST_DESCRIPTION' => $lang['User_list_description'&#93;,
'L_USERGROUP' => $lang['User_group'&#93;,

'S_MODE_SELECT' => $select_sort_mode,
'S_ORDER_SELECT' => $select_sort_order,
'S_MODE_ACTION' => append_sid&#40;"admin_userlist.$phpEx" . &#40; &#40;isset&#40;$alphanum&#41;&#41; ? "?alphanum=$alphanum" &#58; '' &#41;&#41;
&#41; &#41;;

$alpha_range range&#40;'A','Z'&#41;;
$alphanum_range array_merge&#40;array&#40;'' => 'All'&#41;,array&#40;'%23' => '#'&#41;,$alpha_range&#41;;
foreach &#40; $alphanum_range as $key => $alpha &#41;
&#123;
if &#40; in_array&#40;$alpha,$alpha_range&#41; &#41; $key = $alpha;
$alphanum_search_url append_sid&#40;"admin_userlist.$phpEx?mode=" . &#40; &#40; isset&#40;$HTTP_GET_VARS['mode'&#93;&#41; || isset&#40;$HTTP_POST_VARS['mode'&#93;&#41; &#41; ? $mode &#58; 'username' &#41; . "&amp;sort=$sort_order&amp;alphanum=" . strtolower&#40;$key&#41;&#41;;
$template->assign_block_vars&#40;'alphanumsearch', array&#40;
'SEARCH_SIZE' => floor&#40;100/count&#40;$alphanum_range&#41;&#41; . '%',
'SEARCH_TERM' => $alpha,
'SEARCH_LINK' => $alphanum_search_url
&
#41;&#41;;
&#125;

switch&#40; $mode &#41;
&#123;
case 'joined'&#58;
$order_by "user_regdate ASC LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'username'&#58;
$order_by "username $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'posts'&#58;
$order_by "user_posts $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
case 'email'&#58;
$order_by "user_email $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
default&#58;
$order_by "user_regdate $sort_order LIMIT $start, " $board_config['topics_per_page'&#93;;
break;
&
#125;

$sql "SELECT * 
   FROM " 
USERS_TABLE 
   WHERE user_id <> " 
ANONYMOUS $alpha_where 
   ORDER BY 
$order_by";
if&
#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Could not query users', '', __LINE__, __FILE__, $sql&#41;;
&#125;

if &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$i 0;
do
&#123;
$username $row['username'&#93;;
$user_id $row['user_id'&#93;;
$status $row['user_active'&#93;;

$sql "SELECT * 
     FROM " 
USER_GROUP_TABLE 
    WHERE user_id = " 
$user_id;
if&#40; !&#40;$result2 = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
  message_die&#40;GENERAL_ERROR, 'Could not query group', '', __LINE__, __FILE__, $sql&#41;;
&#125;

$group_name "";

 
while &#40;$user_group = $db->sql_fetchrow&#40;$result2&#41;&#41; &#123;

  $group_status "";
  $group_id $user_group['group_id'&#93;;
  
  $sql "SELECT * 
          FROM " 
GROUPS_TABLE 
         WHERE group_id = " 
$group_id;
 
   if&#40; !&#40;$result3 = $db->sql_query&#40;$sql&#41;&#41; &#41;
   &#123;
       message_die&#40;GENERAL_ERROR, 'Could not query groups', '', __LINE__, __FILE__, $sql&#41;;
   &#125;

   while &#40;$group_info = $db->sql_fetchrow&#40;$result3&#41;&#41; &#123;

     if &#40;$group_name != ""&#41; 
 &#123;
  $group_name .= "<br />";
 &#125;

 
    $group_name .= $group_info['group_name'&#93; . "&nbsp;" . $group_status;
&#125;
&#125;

$user_group_name $group_name;

$email_uri append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id&#41;;
$email '<a href="' $email_uri '" class="gen">' $lang['Email'&#93; . '</a>';

$joined create_date&#40;$lang['DATE_FORMAT'&#93;, $row['user_regdate'&#93;, $board_config['board_timezone'&#93;&#41;;
$posts = &#40; $row['user_posts'&#93; &#41; ? $row['user_posts'&#93; &#58; 0;


//status varible
if &#40;$status == '0'&#41; &#123;
$l_active $lang['No'&#93;;
$l2_active 1;
&#125;
if &#40;$status == '1'&#41; &#123;
$l_active $lang['Yes'&#93;;
$l2_active 0;
&#125;

$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=edit&amp;" . POST_USERS_URL . "=$user_id&amp;user_status=$l2_active"&#41;;
$active '<a href="' $temp_url '" class="gen">' $l_active '</a>';

//delete link
$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=delete&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$delete '<a href="' $temp_url '" class="gen">' $lang['Delete'&#93; . '</a>';

//ban link
$temp_url append_sid&#40;"admin_userlist.$phpEx?mode=ban&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$ban '<a href="' $temp_url '" class="gen">' $lang['Ban'&#93; . '</a>';

//profile varibles
$temp_url append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$profile '<a href="' $temp_url '" class="gen">' $lang['Read_profile'&#93; . '</a>';

//post search varibles
$temp_url append_sid&#40;$phpbb_root_path . "search.$phpEx?search_author=" . urlencode&#40;$username&#41; . "&amp;showresults=posts"&#41;;
$search '<a href="' $temp_url '" class="gen">' $lang['Search_user_posts'&#93; . '</a>';

//pm varibles
$temp_url append_sid&#40;$phpbb_root_path . "privmsg.$phpEx?mode=post&amp;" . POST_USERS_URL . "=$user_id"&#41;;
$pm_img '<a href="' $temp_url '"><img src="' $images['icon_pm'&#93; . '" alt="' . $lang['Send_private_message'&#93; . '" title="' . $lang['Send_private_message'&#93; . '" border="0" /></a>';
$pm '<a href="' $temp_url '" class="gen">' $lang['PM'&#93; . '</a>';

$row_color = &#40; !&#40;$i % 2&#41; &#41; ? $theme['td_color1'&#93; &#58; $theme['td_color2'&#93;;
$row_class = &#40; !&#40;$i % 2&#41; &#41; ? $theme['td_class1'&#93; &#58; $theme['td_class2'&#93;;

$template->assign_block_vars&#40;'memberrow', array&#40;
'ROW_NUMBER' => $i + &#40; $HTTP_GET_VARS['start'&#93; + 1 &#41;,
'ROW_COLOR' => '#' $row_color,
'ROW_CLASS' => $row_class,
'USERNAME' => $username,
'JOINED' => $joined,
'POSTS' => $posts,
'PROFILE' => $profile
'SEARCH' => $search,
'EMAIL' => $email,
'ACTIVE' => $active,
'PM_IMG' => $pm_img,
'PM' => $pm,
'EMAIL' => $email,
'DELETE' => $delete,
'GROUP' => $user_group_name,
'BAN' => $ban,

'U_EDIT_PERMISSION' => append_sid&#40;"admin_ug_auth.$phpEx?mode=user&amp;" . POST_USERS_URL . "=" . $user_id&#41;,
'U_EDIT_PROFILE' => append_sid&#40;"admin_users.$phpEx?mode=edit&amp;" . POST_USERS_URL . "=" . $user_id&#41;,

'U_SEARCH_POST' => append_sid&#40;$phpbb_root_path . "search.$phpEx?search_author=" . urlencode&#40;$username&#41; . "&amp;showresults=posts"&#41;,
'U_VIEWPROFILE' => append_sid&#40;$phpbb_root_path . "profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$user_id"&#41;&#41;
&#41;;

$i++;
&#125;
while &#40; $row = $db->sql_fetchrow&#40;$result&#41; &#41;;
&#125;

if &#40; $mode != 'topten' || $board_config['topics_per_page'&#93; < 10 &#41;
&#123;
   
$sql "SELECT count&#40;*&#41; AS total 
      FROM " 
USERS_TABLE 
      WHERE user_id <> " 
ANONYMOUS $alpha_where";

if &#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
message_die&#40;GENERAL_ERROR, 'Error getting total users', '', __LINE__, __FILE__, $sql&#41;;
&#125;

if &#40; $total = $db->sql_fetchrow&#40;$result&#41; &#41;
&#123;
$total_members $total['total'&#93;;

$pagination generate_pagination&#40;"admin_userlist.$phpEx?mode=$mode&order=$sort_order" . &#40; &#40; isset&#40;$alphanum&#41; &#41; ? "&alphanum=$alphanum" &#58; '' &#41;, $total_members, $board_config['topics_per_page'&#93;, $start&#41;;
&#125;
&#125;
else
&
#123;
$pagination '&nbsp;';
$total_members 10;
&
#125;

$template->assign_vars&#40;array&#40;
'PAGINATION' => $pagination,
'PAGE_NUMBER' => sprintf&#40;$lang['Page_of'&#93;, &#40; floor&#40; $start / $board_config['topics_per_page'&#93; &#41; + 1 &#41;, ceil&#40; $total_members / $board_config['topics_per_page'&#93; &#41;&#41;, 

'L_GOTO_PAGE' => $lang['Goto_page'&#93;&#41;
&#41;;

$template->pparse&#40;'body'&#41;;

include&#40;'./page_footer_admin.'.$phpEx&#41;;

?>



and add this in your constants.php [ in folder phpbb ]

 // Album integration
 $album_table_prefix = '4images_';
 //define('ALBUM_INTEGRATED', 0); // Integrated album off
 define('ALBUM_INTEGRATED', 1); // Integrated album on
 define('ALBUM_USERS_TABLE', $album_table_prefix.'users');
 define('ALBUM_GROUP_MATCH_TABLE', $album_table_prefix.'groupmatch');
 define('ALBUM_LIGHTBOXES_TABLE', $album_table_prefix.'lightboxes');
 define('ALBUM_COMMENTS_TABLE', $album_table_prefix.'comments');
 
 // Album User levels
 define('ALBUM_GUEST', -1);
 define('ALBUM_USER_AWAITING', 1);
 define('ALBUM_USER', 2);
 define('ALBUM_ADMIN', 9);


I hope this is right, because on my site it's works fine

Offline nccsoft

  • Pre-Newbie
  • Posts: 5
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #248 on: June 21, 2003, 04:12:35 AM »
Quote from: Aho
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 ?


you can edit details.php
find
Code: [Select]
       "comment_user_profile_button" => $comment_user_profile_button,
after add
Code: [Select]
       "comment_user_profile_link" => $comment_user_profile_link,
--
Digital man & womam http://phpbb.mychat.to

Offline Paprika

  • Newbie
  • *
  • Posts: 25
    • View Profile
Integration 4images 1.7 / phpBB
« Reply #249 on: June 22, 2003, 05:20:01 AM »
Will this mod work with the newly released phpBB 2.0.5 ? :?:

Offline Magico

  • Pre-Newbie
  • Posts: 1
    • View Profile
4images Login Box Problem after fusion with phpbb :-)
« Reply #250 on: June 22, 2003, 12:26:02 PM »
Hallo,

hab ein kleines Problem ich hoffe ihr könnt mir weiterhelfen. Habe das 4images V 1.7 und phpbb2 V2.04. Hab den Integration_phpbb.zip mir runtergeladen den Installations Anweisungen gefolgt.

Hab folgendes Problem wenn man sich von der 4images Login Box Einloggen will dann erscheint bei mir eine ( 404 ERROR ) Seite d.h das die Login Box irgendwie in eine falsch verlinkt ist. Das Passiert aber nur wenn man die Login Daten eingibt! Wenn mal Benutzername und Passwort leer lässt dann linkt die Box schon zum Forum hmmmm bin am verzweifeln. Alles läuft unter einer Datenbank scheint alles richtig zu sein aber funktionieren tut es nicht.....
Habe alle Dateien Editiert und Angepasst also sessions.php usw...

Ich hoffe es kann mir jemand weiter helfen! Danke!

Bedanke mich im voraus


mfg

Magic

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / phpBB
« Reply #251 on: June 23, 2003, 04:39:02 PM »
Das wurde ein paar Beiträge weiter oben besprochen.

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

Offline otnemem

  • Pre-Newbie
  • Posts: 1
    • View Profile
Language problem
« Reply #252 on: June 28, 2003, 08:46:47 PM »
Hi
I've integrated 4images and phpbb 2.04.  Everything is working great....except.....If I set a test account for a language other than the PHPbb board default (english), such as German or Spanish, the language setting is not picked up by 4images.  I made sure that phpbb and 4images each had corresponding language packs installed...

Anyone have an idea how to fix this?  I've got members from all over the world on my site.

THX!
otnemem

Offline andyfr

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • http://www.et-frohnhoefer.de
Integration 4images 1.7 / phpBB
« Reply #253 on: June 29, 2003, 10:55:06 AM »
also ich habe bei 4images bei config.php aus 4imges_ in phpbb_ umgwandelt und dann bin ich auf meine seit von der gallay gegeng dann war dieser fehler:
DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM phpbb_settings
Table 'andyfro_de_db.phpbb_settings' doesn't exist
dann bin ich in meine datenbank gegang und wolte zuerst mal images_settings änder auf phpbb_settings
aber dann kamm eine fehler meldung diese hier:
SELECT * FROM `phpbb_settings` WHERE 1 LIMIT 0, 30

MySQL meldet:

Table 'andyfro_de_db.phpbb_settings' doesn't exist

was mache ich fahlsch??? :?:  :?:  :?:

MfG
Andy FR

Offline webslingers

  • Newbie
  • *
  • Posts: 38
    • View Profile
login questions
« Reply #254 on: June 29, 2003, 11:59:38 AM »
I just read through all 16 pages and did not see what I am looking for. The integration went fine, and works great. The only problem I have is when people go to the site, they are on the photo site, then when they try to login, it takes them to the forum login page. I have put a link to go back and forth but can someone please tell me how to have a separate login page that redirects to a page with the option of going to the forum or photo gallery? Even an option for the forum or gallery would be nice on the login form itself. My site is mainly for the photo gallery with the forums being a side thing, the way it works now it doesn't look like that. Someone please help. Thanks in advance!

Have a good one!