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 ;)
Read that first http://piwigo.org/doc/doku.php?id=dev:plugin_tutorial1
Offline
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);
}
The selling.php is in /plugins/skeleton/
http://piwigo.org/dev/browser/extension … eur.php#L2
and http://piwigo.org/dev/browser/extension … eur.php#L3
for an independent page
Offline
I can advise only look to lightbox plugin how done there.
Offline
EvilKant wrote:
I can advise only look to lightbox plugin how done there.
+1
Offline
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