• [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 254482 times)

0 Members and 1 Guest are viewing this topic.

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #90 on: December 02, 2007, 03:50:48 PM »
no - have a look:
http://www.photofront.ch/lightbox.php?action=show&lightbox_id=545b22454ac16273c246a260117cc396

but I dont want to show the user name who has created the lightbox, I want to show the name of the ligthbox - san francisco in this case.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #91 on: December 02, 2007, 03:54:37 PM »
Ah ! now is clear. :)
I edit post. ;)
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 thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #92 on: December 02, 2007, 03:57:49 PM »
I edit again. Is ok. ;)
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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #93 on: December 02, 2007, 04:08:51 PM »
I get now following error message:
Parse error: syntax error, unexpected ')', expecting ']' in /home/httpd/vhosts/photofront.ch/httpdocs/lightbox.php on line 279

but bevor your last update it works - than I did the changes again and I get now the error message above.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #94 on: December 02, 2007, 04:10:59 PM »
This is right. I find error. Try again. ;)
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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #95 on: December 02, 2007, 04:17:19 PM »
same problem: Parse error: syntax error, unexpected ';' in /home/httpd/vhosts/photofront.ch/httpdocs/lightbox.php on line 279

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #96 on: December 02, 2007, 04:21:38 PM »
Is today my day ?  :|
Try now ...
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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #97 on: December 02, 2007, 04:26:58 PM »
YES - IT WORKS  :D

Last question: what do I have to do if I dont want to show the user in brackets?
instead of
Album: San Franciso (Serge Meier)
new
Album: San Francisco

Thanks!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #98 on: December 02, 2007, 04:29:11 PM »
Find:

Code: [Select]
$lightbox_name = (isset($row['lightbox_name']) && !empty($row['lightbox_name']) && isset($row[$user_table_fields['user_name']]) && !empty($row[$user_table_fields['user_name']])) ? format_text(trim($row['lightbox_name']), 2) . " (" . format_text(trim($row[$user_table_fields['user_name']]), 2) . ") " : "";

replace:

Code: [Select]
$lightbox_name = (isset($row['lightbox_name']) && !empty($row['lightbox_name']) && isset($row[$user_table_fields['user_name']]) && !empty($row[$user_table_fields['user_name']])) ? format_text(trim($row['lightbox_name']), 2) : "";

Problem is affect all <<lightbox >> ( word ) ... (word) is remove for all multiboxes ... is ok or is just for this remove ?
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 TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #99 on: December 02, 2007, 04:36:20 PM »
thats ok for me.
another possibility would be:
Ablum: San Francisco erstellt von Serge Meier
means:
Lightbox: San Francisco created by Serge Meier

Thank you very mucht for your support!  :D

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #100 on: January 20, 2008, 11:30:07 PM »
Hi,

when I click on a lightbox (link is shown in user profile), all images of this lightbox are shown.
Also shown is the link "Delete Lightbox".
This link should only be shown, if I'm the owner of the Lightbox.
Now everybody can click on the link "Delete Lightbox" and the message, that the lightbox is delete, is displayed.
Of corse the lightbox is not deleted, because I'm not the owner, the creater, of the lightbox.
So, this link should not be displayed. How can I get rid of it?

I also have installed the following MOD:
Lightbox for GUESTs v1.2: http://www.4homepages.de/forum/index.php?topic=4826.0

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #101 on: March 23, 2008, 08:33:48 PM »
Hi, does anybody have a hint for me? How get I rid of the "Delete Link"?

Thanks for helping me!!!
TIMIT
« Last Edit: March 28, 2008, 01:17:46 PM by TIMT »

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #102 on: April 05, 2008, 08:57:32 AM »
Hi,

I have upload an example (please see below).
Here you can see the Link "Bilder löschen" (Delete pictures).
As a guest, I click in the users profile on the link to one of his lightboxes and get the page with his pictures in his lightbox and with this link for deleting pictures.

I can click on the delete link, I'm asked if I realy want to delelte, I say yes and I get the message, that the pictures were deleted. Of course they are not, what is good so.
The only thing is, how get I rid of of the delete link for guests?

Thanks!

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #103 on: April 05, 2008, 06:03:52 PM »
Hi TIMT,

i don't now your 4images version, but test/ use this in lightbox.html:

Code: [Select]
{if user_loggedin}Delete Link{endif user_loggedin}



KurtW

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] Multi-Lightboxes v1.03.1
« Reply #104 on: April 06, 2008, 02:20:46 AM »
Hi Kurt

I still run the version 1.7.2

I will check your idea.
But the link shouldn't be displayed at all - or lets say only for the owner of the lightbox.
With your proposal, the links will be displayed for all logged in users, wont't it?

TIMT