• [MOD] Multi-Lightboxes v1.03.2 (2011-09-20) 4 0 5 1
Currently:  

Author Topic: [MOD] Multi-Lightboxes v1.03.2 (2011-09-20)  (Read 253730 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #15 on: December 06, 2005, 07:07:23 AM »
Ok, if you search in functions.php for function get_msg there should be only one instance of that function. if you see more then one, then remove one (either).
If you cant find any, then add one from Step 6.4.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #16 on: December 06, 2005, 07:17:03 AM »
Ok, if you search in functions.php for function get_msg there should be only one instance of that function. if you see more then one, then remove one (either).
If you cant find any, then add one from Step 6.4.

Hi i donīt find the function get_msg in my functions.php. But when i insert the function from Step 6.4 i canīt write or read PMīs.....

*edit*

I have this function in the pm.php !!!!!!!!!!! Can i help you with this to help me???

*edit2*

OK, insert the function get_msg in includes/functions.php and delete it in pm.php. I thing it works.....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #17 on: December 06, 2005, 08:19:41 AM »
OK, insert the function get_msg in includes/functions.php and delete it in pm.php. I thing it works.....
Very good, you've got it right ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #18 on: December 06, 2005, 01:17:07 PM »
ok, thank you for your help!

a little sip up:  first step i look to a user profil than i want to change my album on the dropdownfield --> i get the lostpassword page..

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #19 on: December 06, 2005, 02:12:56 PM »
ok, thank you for your help!

a little sip up:  first step i look to a user profil than i want to change my album on the dropdownfield --> i get the lostpassword page..

Thatīs my problem, too! When i see a member profile and change the lightbox i come to the lost passwort page  8O

One Problem goes, one Problem comes :)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #20 on: December 06, 2005, 08:46:45 PM »
Hello,

I have an error:

Fatal error: Call to undefined function: get_dropdown_options() in /homepages/35/d85936339/htdocs/4images/includes/page_header.php on line 511

/*
  MOD MULTI-LIGHTBOXES
  START INSERT
*/
//-----------------------------------------------------
//--- Multi-Lightboxes ---------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER && $config['lightbox_count'])
{
  $user_lightbox_dropdown = (count($user_info['lightboxes_list']) > 1) ? get_dropdown_options("user_lightbox", $user_info['lightboxes_list'], $user_info['user_lightbox'], 1, 0, 1, 0, "", "lightboxidropdown") : "";
}
else
{
  $user_lightbox_dropdown = "";
}
$site_template->register_vars(array(
  "user_lightbox_dropdown" => $user_lightbox_dropdown,  "lang_lightbox_select" => $lang['lightbox_select'],
));
$user_lightbox_dropdown = ($user_lightbox_dropdown) ? $site_template->parse_template("lightbox_dropdown") : "";
$site_template->register_vars("user_lightbox_form", $user_lightbox_dropdown);
/*
  MOD MULTI-LIGHTBOXES
  END INSERT

This is the line for my error


Help

Greez Darkness

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #21 on: December 06, 2005, 09:58:36 PM »
another little problem:
the downloads are not count anymore :?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #22 on: December 07, 2005, 12:32:51 AM »
The changing lightbox from members profile page is a known bug, but its not exactly bug in this mod itself. It causes by 4images stripping out action= query from {self} tag. Its done to avoid any accidental actions, i.e. double sending emails, or double comments, etc.
I'll see what I can do about it.

Hello,

I have an error:

Fatal error: Call to undefined function: get_dropdown_options() in /homepages/35/d85936339/htdocs/4images/includes/page_header.php on line 511
Are you a superstitions person, trying to avoid Step 13? ;)


another little problem:
the downloads are not count anymore :?
This mod could not possibly affect download function. If I'm not misstaken by default 4images does not count downloads when downloading lightbox. There is patch for that.
[EDIT]
Just checked it, download count works just fine. Make sure you download it as a member, not as admin ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #23 on: December 07, 2005, 08:17:03 AM »
Quote
This mod could not possibly affect download function. If I'm not misstaken by default 4images does not count downloads when downloading lightbox. There is patch for that.
[EDIT]
Just checked it, download count works just fine. Make sure you download it as a member, not as admin


sorry. i'm stupid...   :oops:
it works...

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #24 on: December 07, 2005, 09:15:52 AM »
The changing lightbox from members profile page is a known bug, but its not exactly bug in this mod itself. It causes by 4images stripping out action= query from {self} tag. Its done to avoid any accidental actions, i.e. double sending emails, or double comments, etc.
I'll see what I can do about it.

Hello,

I have an error:

Fatal error: Call to undefined function: get_dropdown_options() in /homepages/35/d85936339/htdocs/4images/includes/page_header.php on line 511
Are you a superstitions person, trying to avoid Step 13? ;)


another little problem:
the downloads are not count anymore :?
This mod could not possibly affect download function. If I'm not misstaken by default 4images does not count downloads when downloading lightbox. There is patch for that.
[EDIT]
Just checked it, download count works just fine. Make sure you download it as a member, not as admin ;)

Hello,

thanks I waiting for a massage  :mrgreen:


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #25 on: December 09, 2005, 01:55:13 AM »
I've changed the condition logic in Step 2.1 so it will work properly with other mods that use $action variable.

In lightbox.php find:
Code: [Select]
if ($action != "" || $user_info['user_level'] == GUEST || $action == "addtolightbox" || $action == "removefromlightbox")
{
  $action = "show";
}
elseif ($action == "clearlightbox")
{
  $action = "manage";
}
Replace with:
Code: [Select]
if ($user_info['user_level'] == GUEST || ($action != "manage" && $action != "save"))
{
  $action = ($action == "clearlightbox" && $user_info['user_level'] >= USER) ? "manage" : "show";
}

(or redo Step 2.1 ;))
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #26 on: December 09, 2005, 09:51:04 AM »
Hello V@no ,

thanks I will test it today.

Greez Darkness  :mrgreen:

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #27 on: December 12, 2005, 04:14:25 PM »
Hello,

all fine works, i have installed the other MOD Lightboxes. Jet is working.

Thanks Darkness  :mrgreen:

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #28 on: December 31, 2005, 01:26:36 PM »
Hi,

How can I change the fonts size in the dropdownlist for chosing the album.
{user_lightbox_form}{endif user_lightbox_form}

Thanks!

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #29 on: December 31, 2005, 01:33:38 PM »
take a look in the new css code... (o:

I think you can change it here:
Code: [Select]
.lightboxidropdown {
  font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
  color: #0f5475;
  font-size: 11px;
  width: 95px;
}