Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Linking Problem  (Read 6001 times)

0 Members and 1 Guest are viewing this topic.

Mintschi

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Linking Problem
« 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:

Code: [Select]
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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Linking Problem
« Reply #1 on: June 29, 2007, 04:13:40 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:

Code: [Select]
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?
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Linking Problem
« Reply #2 on: June 29, 2007, 04:32:37 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Linking Problem
« Reply #3 on: June 29, 2007, 05:37:32 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.
Logged
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

  • Coppermine novice
  • *
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 21
    • unsere Galerie
Re: Linking Problem
« Reply #4 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.
Logged
Tell me and I will forget
Show me and I might remember
But involve me and I will understand

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Linking Problem
« Reply #5 on: July 21, 2007, 10:35:48 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.

Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Linking Problem
« Reply #6 on: August 01, 2007, 02:31:56 pm »

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:
Code: [Select]
<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.
Logged

Nibbler

  • Guest
Re: Linking Problem
« Reply #7 on: August 01, 2007, 02:55:35 pm »

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

Page created in 0.019 seconds with 16 queries.