Author Topic: [Mod] Show user's lightbox to admin.  (Read 89745 times)

0 Members and 1 Guest are viewing this topic.

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [Mod] Show user's lightbox to admin.
« Reply #45 on: August 30, 2006, 01:06:56 AM »
hi!
i don't see the link to the lightbox gallery -.- and i'm the admin.. i have 1.7.3 version. Could you help me please?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline mf-d

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #46 on: October 23, 2006, 08:11:13 PM »
Hi, thanks for the quick reply. 
Yes, search works otherwise.  Any other ideas?  Maybe its just a stupid error, but I have done the steps several times carefully and still same results.

I have the same problem.  I just get a blank Search page when I click on the link on the Member Profile page.  Any help would be appreciated :)  Thanks.

Can anybody help me with this?  I've checked and quadruple checked all the changes made to the files and I can't find anything wrong.  I still get a blank search page when I click on the Show User's Lightbox link.  It has to be something simple, but I just can't find it  :roll:

Thanks in advance.

Hi everybody, first of all thanks for your really great work, i like it very much, and I'm almost finished in modding it. However there's a little problem in showing user's lightbox to admin. Like the other people here, I can see how many pictures a specific user has in his lightbox, by clicking on it I only get a blank search form. I tried using english instead of german language, I thought maybe its a problem in language translation, but same problem in english. My Version of 4images is 1.7.2, I checked the mod  more than one time and i didn't see cause of the problem.

Has anyone solved this problem or has got an idea?

thanks so far
mf-d

Offline mf-d

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #47 on: October 28, 2006, 10:52:24 PM »
HELP pleaaaase  :roll: (if someone solved the problem mentioned above)

Offline sweetmisery

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #48 on: November 15, 2006, 09:22:44 PM »
I have the same problem. It shows up only a blank search screen when I click on the link. I had the mod in 1.7 and it worked fine. Now I have 1.7.4 and it doesn't work..  :(

Please V@no help us out here.  :)

Offline sweetmisery

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #49 on: November 21, 2006, 09:52:39 PM »
Anybody following this thread? Now I don't just get a blank search screen when I click on "show users lightbox" but also this error message:

Undefined variable: search_lightbox in /home/gardenph/public_html/gallery/search.php on line 64

Does anybody know what I should do?

Mirra

  • Guest
Re: [Mod] Show user's lightbox to admin.
« Reply #50 on: December 07, 2006, 06:57:58 PM »
Hm, well check what your line 64 in search.php say ;)
[or print it here]

btw. why would any admin know which pictures the users have in their lightbox? o.o [don't forget to say this in the license agreements at the registrations]

Offline sweetmisery29f

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #51 on: January 12, 2007, 07:07:00 PM »
Here are my lines 64-69. After a few changes now it's line 66 that is the trouble. Where the search lightbox is. What is wrong with it? Please help if you know.

$search_id = array();
if ($user_info['user_level'] == ADMIN){;
  if ($search_lightbox != ""){
      $sql = "SELECT *
           FROM ".LIGHTBOXES_TABLE."
           WHERE ".get_user_table_field("", "user_id")." = $search_lightbox";
« Last Edit: January 12, 2007, 07:48:09 PM by sweetmisery29f »

Offline mf-d

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #52 on: January 20, 2007, 05:22:52 PM »
hi everybody,

ok as I was some tiem away from working on this problem I now restartet on finding the failure. I just tried to see the lightbox of one of my testusers, i can see this "Show user's lightbox (2)". The lightbox seems to be saved as I can see how many pictures the user has in, but by clicking on it I only get a blank search form.

Its no problem for the users in my database, I surely want to see the pictures they have n lighbox because I will use this lightbox somethingh like a shopping cart. 4images will be an inhouse database only with a few connections from outside by some special people. they should see small pictures and decide which pictures they want to have, if they have the pictures they want in their lightbox, they will call me and I will look, if i can give all the pictures to them, or if some are restricted. For mi its more a kind of database to see which pictures I have, it will be used in a small office, users from outisde will not be allowed.

But where is the problem that i can not see the lightbox??

Offline mf-d

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #53 on: January 23, 2007, 12:35:38 PM »
I soveld the problem  :D

ok I did not really solve it, I used v@no's Mod fur Mutli Lightboxes, a litte bit "overdressed" for what I want to have, but its working (some failures I have to correct now, my Download from Big Folder is not working at the moment, but I'm sure I will find it :wink: )

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [Mod] Show user's lightbox to admin.
« Reply #54 on: October 19, 2007, 03:13:57 PM »
Hello!

I have a problem with the user lightboxes:
I've checked all the changes made to the files and I can't find anything wrong. 
I still get a blank search page with 2 errors (undefined variable) when I click on the Show User's Lightbox link. 
It has to be something simple, but I just can't find it :roll:
Can anybody help me with this? 
Thanks in advance.
Greetings.

Error reporting in search.php:
Quote
Notice: Undefined variable: search_lightbox in /home/www/html/search.php on line 47

Notice: Undefined variable: search_lightbox in /home/www/html/search.php on line 81

search.php
Code: [Select]
$main_template = 'search';

define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/search_utils.php');

if (isset($HTTP_POST_VARS['search_lightbox']) || isset($HTTP_GET_VARS['search_lightbox'])) {
  $search_ids = str_replace(",", ", ", trim((isset($HTTP_POST_VARS['search_lightbox'])) ? trim($HTTP_POST_VARS['search_lightbox']) : urldecode(trim($HTTP_GET_VARS['search_lightbox']))));
  if ($search_lightbox != "") {     // ************************************* line 47 ***********************************
    $show_result = 1;
  }
}
else {
  $search_lightbox = "";
}

search.php
Code: [Select]
$search_cat = $cat_id;

$search_id = array();

if ($user_info['user_level'] != GUEST){;
  if ($search_lightbox != ""){ // ************************************* line 81 ***********************************
$sql = "SELECT *
   FROM ".LIGHTBOXES_TABLE."
   WHERE ".get_user_table_field("", "user_id")." = $search_lightbox";
  $search_lightbox_info = $site_db->query_firstrow($sql);
  $search_lightbox_ids = str_replace(" ", ",", trim($search_lightbox_info['lightbox_image_ids']));
  $search_id['image_ids'] = $search_lightbox_ids;
  }
}

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #55 on: October 19, 2007, 07:10:51 PM »
In search.php file,

find:

Quote
if ($search_lightbox != ""){

replace:

Code: [Select]
if (isset($search_lightbox) && $search_lightbox != "") {
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [Mod] Show user's lightbox to admin.
« Reply #56 on: October 19, 2007, 07:52:49 PM »
Hi!
I had changed (twice). The errors doesn't shown.
But the images of the selected lightbox aren't shown. It still doesn't work = blank search page.
I use the 4images 1.7.4, php version 4.4.7, mysql version 4.1.11.
Has got anyone an idea?
Thanks for your help! Greetings

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #57 on: October 19, 2007, 08:30:12 PM »
Quote
blank search page.

Ok, so keep:

Quote
if (isset($search_lightbox) && $search_lightbox != "") {

find:

Quote
}
else {
  $search_lightbox = "";

replace:

Code: [Select]
}
elseif (!isset($search_lightbox)) {
   $search_lightbox = "";
} else {
   $search_lightbox = "";
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: [Mod] Show user's lightbox to admin.
« Reply #58 on: October 19, 2007, 11:14:42 PM »
Still a blank search page after i clicked the link: http://.../search.php?search_lightbox=1 !
Thank you!

My file search.php:
Code: [Select]
if (isset($HTTP_POST_VARS['search_lightbox']) || isset($HTTP_GET_VARS['search_lightbox'])) {
  $search_ids = str_replace(",", ", ", trim((isset($HTTP_POST_VARS['search_lightbox'])) ? trim($HTTP_POST_VARS['search_lightbox']) : urldecode(trim($HTTP_GET_VARS['search_lightbox']))));
  if (isset($search_lightbox) && $search_lightbox != "") {
    $show_result = 1;
  }
}
elseif (!isset($search_lightbox)) {
   $search_lightbox = "";
} else {
   $search_lightbox = "";
}
Code: [Select]
if ($user_info['user_level'] != GUEST){;
  if (isset($search_lightbox) && $search_lightbox != "") {
$sql = "SELECT *
   FROM ".LIGHTBOXES_TABLE."
   WHERE ".get_user_table_field("", "user_id")." = $search_lightbox";
  $search_lightbox_info = $site_db->query_firstrow($sql);
  $search_lightbox_ids = str_replace(" ", ",", trim($search_lightbox_info['lightbox_image_ids']));
  $search_id['image_ids'] = $search_lightbox_ids;
  }
}

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Show user's lightbox to admin.
« Reply #59 on: October 19, 2007, 11:29:28 PM »
Ok so keep change.

Find:

Quote
$search_ids = str_replace(",", ", ", trim((isset($HTTP_POST_VARS['search_lightbox'])) ? trim($HTTP_POST_VARS['search_lightbox']) : urldecode(trim($HTTP_GET_VARS['search_lightbox']))));

add after:

Code: [Select]
$search_lightbox = $search_ids
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?