Work fine "copperminefetch-2.0.0" how can it open in new page? Work fine "copperminefetch-2.0.0" how can it open in new page?
 

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

Work fine "copperminefetch-2.0.0" how can it open in new page?

Started by MastiMasti, June 08, 2007, 05:44:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MastiMasti

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


vuud

Quote from: mastimasti on June 08, 2007, 05:44:48 AM
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
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

Quote from: vuud on June 08, 2007, 09:01:28 PM
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

vuud

Quote from: mastimasti on June 26, 2007, 07:12:25 AM
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




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

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 :(

MastiMasti

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

Nefeli

Quote from: vuud on June 26, 2007, 03:27:10 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!!!!

Quote from: mastimasti on July 15, 2007, 05:46:54 PM
any code from anyone

how code will be look like?


Example

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);