Linking Problem Linking Problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Linking Problem

Started by Mintschi, June 29, 2007, 12:23:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mintschi

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

vuud

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?
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Mintschi

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

vuud

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.
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

warhonowicz

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.
Tell me and I will forget
Show me and I might remember
But involve me and I will understand

vuud

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.

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Proleter

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.

Nibbler

That's not the correct way to link to a picture by pid. Use displayimage.php?pos=-'.$value['pPid']