Announcement

  •  » Engine
  •  » Open file with iBox (lightbox clone)

#1 2012-11-24 00:41:45

ihop
Guest

Open file with iBox (lightbox clone)

Hi all,
I am just programming a plugin but I've got some questions that maybe you can answer me.

I've got a PHP file (plugins/my_plugin/doc.php) that I want to open with iBox (lightbox clone).
But I need the Piwigo functions in this file.
iBox opens but it shows me only "Hacking attempt!"
How can i open this file correctly?

Exist a global Variable for Image_ID?

greetings Stefan

PS.: I know, my english is terrible, but i hope you understand my problems ;)

 

#2 2012-11-24 10:08:10

EvilKant
Member
Russia
1970-01-01
98

Re: Open file with iBox (lightbox clone)

Offline

 

#3 2012-11-24 11:22:26

ihop
Guest

Re: Open file with iBox (lightbox clone)

I read the Tutorial (again) but that doesnt bring me to my goal.

Maybe its helpful to see what i mean.

Link to my testpage: http://test.afl-headset.com/piwigo/pict … category/1

If you click on to "Privat" (Orange Text) open the iBox.

code:
function skeleton_picture_prefilter($content)
{

 
  $search = '{if $display_info.author and isset($INFO_AUTHOR)}';
  $replace = '
  <div id="Skeleton" class="imageInfo">
        <dt>{\'Skeleton\'|@translate}</dt>
    <dd>
<table border="0" width="90%">
      {foreach from=$skeleton_preisliste_public item=skeleton_preisliste_public_list}
          <tr>
            <td><a href="{$skeleton_selling_page}?open=sell&product_id={$skeleton_preisliste_public_list.id}&picture_id={$current.id}" rel="ibox&fullscreen=true" title="Warenkorb"><font color="orange">{$skeleton_preisliste_public_list.name}</font></a></td>
            <td align="right">{$skeleton_preisliste_public_list.preis},00 {$skeleton_preisliste_public_waehrung}</td>
          </tr>
           
      {/foreach}
</table>


<br>
Titel: {$current.TITLE}<br>
Album: {$current.id}<br>
File: {$current.U_IMG}<br>
Pic: {$skeleton_test1}<br>
    </dd>
    </div>
'.$search;

  return str_replace($search, $replace, $content);
}

 

#4 2012-11-24 11:24:36

ihop
Guest

Re: Open file with iBox (lightbox clone)

The selling.php is in /plugins/skeleton/

 

#5 2012-11-24 11:27:54

flop25
Piwigo Team
2006-07-06
7037

Re: Open file with iBox (lightbox clone)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2012-11-24 11:31:12

EvilKant
Member
Russia
1970-01-01
98

Re: Open file with iBox (lightbox clone)

I can advise only look to lightbox plugin how done there.

Offline

 

#7 2012-11-24 11:32:57

flop25
Piwigo Team
2006-07-06
7037

Re: Open file with iBox (lightbox clone)

EvilKant wrote:

I can advise only look to lightbox plugin how done there.

+1


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2012-11-24 16:49:56

ihop
Guest

Re: Open file with iBox (lightbox clone)

Thx flop25 this links were very helpful!

Now, i have a new Problem ;)

http://piwigo.org/dev/browser/extension … 4_5.tpl#L5
Include a new css, but i search a way to include the combined css on this site.

greetings Stefan

 
  •  » Engine
  •  » Open file with iBox (lightbox clone)

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact