Hi there,
first, english is not my native language! Hopefully you'll understand my Question?! ;)
I've integrated a Random Pic Block with cpmfetch in my Tinyportal. It works fine, so far...
But, how can I realize, after clicking on the Pic in the Block, to open it in normal view (Coppermine)
wrapped inside the Portal? I tried several Parameters with the windowtarget Option, but it opens
Coppermine always in a seperate window.
With the following code it's possible to open an Album inside Tinyportal:
global $context, $settings, $options, $scripturl, $txt;
$current_action = 'gallerie';
if (in_array($context['current_action'], array( 'gallerie')))
$current_action = $context['current_action'];
$current_action == 'gallerie' ? 'active_back' : 'back';
echo ' <a href="', $scripturl, '?page=Coppermine%20Galerie">Galerie</a> ';
But how can I open the current Random Pic by the way? I would be very grateful for any help in this case!
greetz,
Mintschi
Quote from: Mintschi on June 29, 2007, 12:23:45 AM
Hi there,
first, english is not my native language! Hopefully you'll understand my Question?! ;)
I've integrated a Random Pic Block with cpmfetch in my Tinyportal. It works fine, so far...
But, how can I realize, after clicking on the Pic in the Block, to open it in normal view (Coppermine)
wrapped inside the Portal? I tried several Parameters with the windowtarget Option, but it opens
Coppermine always in a seperate window.
With the following code it's possible to open an Album inside Tinyportal:
global $context, $settings, $options, $scripturl, $txt;
$current_action = 'gallerie';
if (in_array($context['current_action'], array( 'gallerie')))
$current_action = $context['current_action'];
$current_action == 'gallerie' ? 'active_back' : 'back';
echo ' <a href="', $scripturl, '?page=Coppermine%20Galerie">Galerie</a> ';
But how can I open the current Random Pic by the way? I would be very grateful for any help in this case!
greetz,
Mintschi
You can format the link to whatever you need it to be. I think someone may have done this already... did you check the forum?
Quote from: vuud on June 29, 2007, 04:13:40 AM
I think someone may have done this already... did you check the forum?
Yes I did, but I didn't found anything. :-[
It would be nice, if you can give me please a tip or an example.
Mintschi
Quote from: Mintschi on June 29, 2007, 04:32:37 AM
Yes I did, but I didn't found anything. :-[
It would be nice, if you can give me please a tip or an example.
Mintschi
Perhaps someone with tiny portal experience can help... I do not know much about it.
I've had a good look on the TP forum and there is no answer, but one or two pointers to maybe have a look here. I also had a look through here and couldn't find anything ... if someone finds a solution, please do let me know.
Quote from: warhonowicz on July 19, 2007, 05:51:24 PM
I've had a good look on the TP forum and there is no answer, but one or two pointers to maybe have a look here. I also had a look through here and couldn't find anything ... if someone finds a solution, please do let me know.
Can you manually create a link that when you type it into your browser does what you want? If so, we can probably disect it.
Well I don't know if this is similar problem, but I'm trying to implement cpmFetch into smf forum.
I use the "resultset" value.
The code looks as following:
<ul class="carousel-list">';
$objCpm = new cpm('./gallery/cpmfetch/cpmfetch_config.php');
$i=1;
$arrayt = $objCpm->cpm_viewLastAddedMediaFrom('cat=1',1, 20);
foreach ($arrayt as $value) {
echo'
<li id="mycarousel-item-'.$i.'"><a href="./gallery/displayimage.php?album='.$value[pAid].'?pos='.$value[pPid].'"><img src="./gallery/', $value[fullPathToThumb] ,'" alt="',$value[pTitle],'"/>',$value[pTitle],'</a></li>';
$i++;
}
$objCpm->cpm_close();
echo'
</ul>
As you can see I create the link manualy. And it is not as it should be. The [pPid] is wrong.
That's not the correct way to link to a picture by pid. Use displayimage.php?pos=-'.$value['pPid']