Advanced search  

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

Pages: [1]   Go Down

Author Topic: Work fine "copperminefetch-2.0.0" how can it open in new page?  (Read 6240 times)

0 Members and 1 Guest are viewing this topic.

MastiMasti

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23

Hello Dear friend VUUD


I install yesterday copperminefetch-2.0.0 http://bollywoodfunda.com/cpmFetch_test.php

and it's work fine

but my question were this

how can be images can open in new page????

like when someone click on image  and it's open in new page??

any code to edit?
or it's doesn't work in that way??

and all it's showing LAST ADDED IMAGES


I know I have to change this code  cpm_viewLastAddedMedia  and I don't know
for most hits what I have to change  ;D

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Work fine "copperminefetch-2.0.0" how can it open in new page?
« Reply #1 on: June 08, 2007, 09:01:28 pm »

Hello Dear friend VUUD


I install yesterday copperminefetch-2.0.0 http://bollywoodfunda.com/cpmFetch_test.php

and it's work fine

but my question were this

how can be images can open in new page????

like when someone click on image  and it's open in new page??

any code to edit?
or it's doesn't work in that way??

and all it's showing LAST ADDED IMAGES


I know I have to change this code  cpm_viewLastAddedMedia  and I don't know
for most hits what I have to change  ;D



It is all in the documentation

For the new page, look at the options array

For the function, look in the functions list.

Take care,

Vuud
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

MastiMasti

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Work fine "copperminefetch-2.0.0" how can it open in new page?
« Reply #2 on: June 26, 2007, 07:12:25 am »

It is all in the documentation

For the new page, look at the options array

For the function, look in the functions list.

Take care,

Vuud


I still need help with NEW PAGE code
I were not able to find out

but I did  the other one  cpm_viewRandomMediaFrom("album=7",1,5);


so if u can help with other code

to open image in new page
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Work fine "copperminefetch-2.0.0" how can it open in new page?
« Reply #3 on: June 26, 2007, 03:27:10 pm »

I still need help with NEW PAGE code
I were not able to find out

but I did  the other one  cpm_viewRandomMediaFrom("album=7",1,5);


so if u can help with other code

to open image in new page


Look at this page int he documentation:
http://cpmfetch.fistfullofcode.com/docs/stable_basic/cpmfetch/tutorial_explainations.optionsarray.pkg.html#option.windowtarget

Read about windowtarget

You want _blank




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

MastiMasti

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Work fine "copperminefetch-2.0.0" how can it open in new page?
« Reply #4 on: June 29, 2007, 07:03:58 pm »

thanks for ur help VUUD

I think it's hard for me to do it

so I happy with what I have
I don't want to add pics on my other site
becuase it's not easy for ME :(
Logged

MastiMasti

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Work fine "copperminefetch-2.0.0" how can it open in new page?
« Reply #5 on: July 15, 2007, 05:46:54 pm »

any code from anyone

how code will be look like?

I did tried
""""""""Example of creating the option array

//Example #1
$options = array( 'option_name' => 'option_value' , 'option_name' => 'option_value' );
$objCpm->viewRandomMediaFrom("",1,1,$options);

//Example #2
$objCpm->viewRandomMediaFrom("",1,1, array( 'option_name' => 'option_value' , 'option_name' => 'option_value' ));

//Example #3 Real world example
$options = array( 'subtitle' => 'Image {{pTitle}} is {{pFilesizeKB}} KB' , 'imagewidth' => '200', "tablestyle" => "cssfortables" );
$objCpm->viewRandomMediaFrom("",1,1,$options);

"""""""""""


were able to find out
Logged

Nefeli

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • Nefelokokkygia
Re: Work fine "copperminefetch-2.0.0" how can it open in new page?
« Reply #6 on: July 24, 2007, 01:16:47 pm »

Look at this page int he documentation:
http://cpmfetch.fistfullofcode.com/docs/stable_basic/cpmfetch/tutorial_explainations.optionsarray.pkg.html#option.windowtarget

Read about windowtarget

You want _blank


One more Thank you vuud!!!!

any code from anyone

how code will be look like?


Example

Code: [Select]
echo "<CENTER>";
  include_once ("./Gallery/cpmfetch/cpmfetch.php");
  $objCpm = new cpm("./Gallery/cpmfetch/cpmfetch_config.php");
$options = array( 'imagewidth' => '80', 'windowtarget' => '_blank');
  $objCpm->  cpm_viewLastCommentedImages  ( 4, 2, $options);
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.