Welcome to Geeklog, Anonymous Friday, November 08 2024 @ 08:53 pm EST
Geeklog Forums
Missing lines in user.php and users.php for 4 images integration
Lacy
Anonymous
I have a 4images integration running fine on another website - no problems - but I guess it is the old versin of Geeklog?
When I tried to set this up on a new server - with the freshest version of GL - I ran into quite a few problems.
The two main ones are not being able to properly edit the files. Everything in the manual instructions works fine except for two. The lines we are supposed to find - don't exist in the new files.
#### FIND ####
DB_change($_TABLES['usercomment'],'commentlimit',$_CONF['comment_limit'],'uid',$uid);
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,user_comments,user_homepage,user_icq)
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
and
#### FIND *THE FIRST* ####
DB_query("INSERT INTO {$_TABLES['userinfo']} (uid) VALUES ($uid)");
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,user_comments,user_homepage,user_icq)
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
Anyone have a clue how to rework this? I LOVE geeklog AND 4images ... and I guess I could revert back to the old version of geeklog if I had to? But I would love to stay with the current version AND get 4images working properly.
Thoughts???
When I tried to set this up on a new server - with the freshest version of GL - I ran into quite a few problems.
The two main ones are not being able to properly edit the files. Everything in the manual instructions works fine except for two. The lines we are supposed to find - don't exist in the new files.
Text Formatted Code
9. OPEN <geeklogdir>/public_html/users.php:#### FIND ####
DB_change($_TABLES['usercomment'],'commentlimit',$_CONF['comment_limit'],'uid',$uid);
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,user_comments,user_homepage,user_icq)
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
and
Text Formatted Code
11. OPEN <geeklogdir>/public_html/admin/user.php:#### FIND *THE FIRST* ####
DB_query("INSERT INTO {$_TABLES['userinfo']} (uid) VALUES ($uid)");
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,user_comments,user_homepage,user_icq)
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
Anyone have a clue how to rework this? I LOVE geeklog AND 4images ... and I guess I could revert back to the old version of geeklog if I had to? But I would love to stay with the current version AND get 4images working properly.
Thoughts???
6
9
Quote
Lacy
Anonymous
One of the missing codes IS in that file ... thanks
For others having this problem .... New instructions for Number 11.
11. OPEN /public_html/system/lib-user.php
#### FIND *THE FIRST* ####
DB_query ("INSERT INTO {$_TABLES['userinfo']} (uid) VALUES ($uid)");
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,user_comments,user_homepage,user_icq)
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
----------------------------
The wierd thing is that most of #9 is ALSO in this file ... but it doesn't make sense to add the same code to the document twice?
For others having this problem .... New instructions for Number 11.
11. OPEN /public_html/system/lib-user.php
#### FIND *THE FIRST* ####
DB_query ("INSERT INTO {$_TABLES['userinfo']} (uid) VALUES ($uid)");
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,user_comments,user_homepage,user_icq)
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
----------------------------
The wierd thing is that most of #9 is ALSO in this file ... but it doesn't make sense to add the same code to the document twice?
9
5
Quote
geeklog-fan
Anonymous
it works, but in the code in the quote above there is a } missing
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
}
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
}
7
8
Quote
geeklog-fan
Anonymous
ok.. there is something I need a little help with.. I have made changes to system/lib-user.php (instead of to /users.php) and also to /usersettings.php.. that's done and fully working!
it seems also some changes have been made to admin/user.php, so I can't put the code for admin there..
So I need to put the code somewhere else to make sure when an admin edits an account, the 4images tables are updated as well..
it's all about this code:
11. OPEN /public_html/admin/user.php:
#### FIND *THE FIRST* ####
DB_query("INSERT INTO {$_TABLES['userinfo']} (uid) VALUES ($uid)");
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,
user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,
user_comments,user_homepage,user_icq)
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
}
#### FIND ####
DB_query("UPDATE {$_TABLES['users']} SET username = '$username', fullname = '$fullname', passwd = '$passwd', email = '$email', homepage = '$homepage', photo = '$curphoto' WHERE uid = $uid");
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("UPDATE 4images_users SET user_name='$username',user_email='$email',user_homepage='$homepage' WHERE user_id=$uid");
where do I have to put this?
it seems also some changes have been made to admin/user.php, so I can't put the code for admin there..
So I need to put the code somewhere else to make sure when an admin edits an account, the 4images tables are updated as well..
it's all about this code:
11. OPEN /public_html/admin/user.php:
#### FIND *THE FIRST* ####
DB_query("INSERT INTO {$_TABLES['userinfo']} (uid) VALUES ($uid)");
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("INSERT INTO 4images_users (user_id,user_level,user_name,user_password,user_email,user_showemail,user_allowemails,
user_invisible,user_joindate,user_activationkey,user_lastaction,user_location,user_lastvisit,
user_comments,user_homepage,user_icq)
VALUES ('$uid','2','$username','','$email','1','1','0','$regdate','','','','','','','')");
}
#### FIND ####
DB_query("UPDATE {$_TABLES['users']} SET username = '$username', fullname = '$fullname', passwd = '$passwd', email = '$email', homepage = '$homepage', photo = '$curphoto' WHERE uid = $uid");
#### PLACE BELOW ####
// GALLERY
if ($GLOBALS['photogallery'] == true) {
DB_query("UPDATE 4images_users SET user_name='$username',user_email='$email',user_homepage='$homepage' WHERE user_id=$uid");
where do I have to put this?
8
6
Quote
manhi
Anonymous
Bump.
Interested in this solution myself.
Interested in this solution myself.
5
4
Quote
geeklog-fan
Anonymous
yes please, somebody willing to help with my last post?
9
3
Quote
All times are EST. The time is now 08:53 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content