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: windowtarget problems  (Read 10941 times)

0 Members and 1 Guest are viewing this topic.

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
windowtarget problems
« on: March 07, 2007, 01:31:09 am »

this is my code for my "updates" for my website for the gallery so far:

Code: [Select]
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$options = array( "windowtarget" => "_blank" );
$objCpm->cpm_viewLastAddedMediaFrom 14$source "cat=8,12:album=19,21,26,25" );
$objCpm->cpm_close();
?>

I have followed the instructions but the picture links still open in the parent target!?!?
Logged

Nibbler

  • Guest
Re: windowtarget problems
« Reply #1 on: March 07, 2007, 01:41:58 am »

You have to actually give it the options...

Code: [Select]
$objCpm->cpm_viewLastAddedMediaFrom ( 1, 4, "cat=8,12:album=19,21,26,25", $options);
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: windowtarget problems
« Reply #2 on: March 07, 2007, 01:42:24 am »

this is my code for my "updates" for my website for the gallery so far:

Code: [Select]
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$options = array( "windowtarget" => "_blank" );
$objCpm->cpm_viewLastAddedMediaFrom 14$source "cat=8,12:album=19,21,26,25" );
$objCpm->cpm_close();
?>

I have followed the instructions but the picture links still open in the parent target!?!?


You defined the options correctly... you just did nothing with it after that.

The $options array has to be passed as a parameter into the functions you are using it with
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

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #3 on: March 07, 2007, 01:44:41 am »

Ah thanks you two!!

I have one last question. I have been kicking myself trying to figure out how the hell to show when it was uploaded and who by underneath  each image but i just cant figure it out!

I promise i have read the Docs in the download AND on the fistfullofcodes site!!

Gah sorry

appreciate it if you could hlep. Sorry.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: windowtarget problems
« Reply #4 on: March 07, 2007, 01:46:40 am »

Ah thanks you two!!

I have one last question. I have been kicking myself trying to figure out how the hell to show when it was uploaded and who by underneath  each image but i just cant figure it out!

I promise i have read the Docs in the download AND on the fistfullofcodes site!!

Gah sorry

appreciate it if you could hlep. Sorry.

Ah you promise you read the docs...

and yet...

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s03.html

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

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #5 on: March 07, 2007, 01:47:48 am »

I read that, got confused. Im not lying. Yet i just spotted that the information goes in the options array! I was pondering over where to write the code!!!

Thanks!!
Logged

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #6 on: March 07, 2007, 01:51:47 am »

Ok so im practising what comes up by just typing in %d and seein gif it shows the album description and i get an error, heres my code:

Code: [Select]
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$options = array( "windowtarget" => "_blank" "subtitle" => "%d" );
$objCpm->cpm_viewLastAddedMediaFrom 14$options$source "cat=8,12:album=19,21,26,25" );
$objCpm->cpm_close();
?>

What am i doing wrong?

thanks

adam
Logged

Nibbler

  • Guest
Re: windowtarget problems
« Reply #7 on: March 07, 2007, 01:52:36 am »

Wrong way round I think

Code: [Select]
$objCpm->cpm_viewLastAddedMediaFrom ( 1, 4, "cat=8,12:album=19,21,26,25", $options);
Logged

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #8 on: March 07, 2007, 01:58:02 am »

I just tryed that but still has the same error and this is my code now:

Code: [Select]
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$options = array( "windowtarget" => "_blank" "subtitle" => "%d" );
$objCpm->cpm_viewLastAddedMediaFrom 14"cat=8,12:album=19,21,26,25"$options);
$objCpm->cpm_close();
?>
Logged

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #9 on: March 07, 2007, 02:16:47 am »

Hey i just figure dout what was wrong! was missing a comma to seperate the options!


thanks for you help guys!!

adam
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: windowtarget problems
« Reply #10 on: March 07, 2007, 02:26:11 am »

Hey i just figure dout what was wrong! was missing a comma to seperate the options!


thanks for you help guys!!

adam

Good. 

You need to work on posting as a knee jerk reaction...   If you get an error try to work it out first.

Regards,

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

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #11 on: March 07, 2007, 02:27:10 am »

Yeh sorry! my bad! Is there a way of making the subtitles closer to the the images!? cause there pretty far down underneath!
Logged

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #12 on: March 07, 2007, 02:32:21 am »

and lastly (last thing i promise) i cant seem to find how to show the text so it has a property on each line

E.G.

My video
Posted by Adam
March 07
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: windowtarget problems
« Reply #13 on: March 07, 2007, 02:32:39 am »

Yeh sorry! my bad! Is there a way of making the subtitles closer to the the images!? cause there pretty far down underneath!

Post your code and a link to it happening.  They should not be that far down.
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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: windowtarget problems
« Reply #14 on: March 07, 2007, 02:33:34 am »

and lastly (last thing i promise) i cant seem to find how to show the text so it has a property on each line

E.G.

My video
Posted by Adam
March 07

You are going to be the inspiration for rate / limiting connections to SMF

Insert <BR /> tags...  It just outputs HTML
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

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #15 on: March 07, 2007, 02:37:09 am »

Code: [Select]
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$options = array( "windowtarget" => "_blank""subtitle" => " %a <br> %w " );
$objCpm->cpm_viewLastAddedMediaFrom 14"cat=8,12:album=19,21,26,25"$options);
$objCpm->cpm_close();
?>


that is my code.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: windowtarget problems
« Reply #16 on: March 07, 2007, 02:49:26 am »

Code: [Select]
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$options = array( "windowtarget" => "_blank""subtitle" => " %a <br> %w " );
$objCpm->cpm_viewLastAddedMediaFrom 14"cat=8,12:album=19,21,26,25"$options);
$objCpm->cpm_close();
?>


that is my code.


Nothing looks weird there.  Without a screenshot or a link though, I can't tell you if what you are seeing is normal.

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

farmerjeffe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: windowtarget problems
« Reply #17 on: March 07, 2007, 02:51:05 am »

Well it has one line of texts spacing between the image and the text??
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: windowtarget problems
« Reply #18 on: March 07, 2007, 03:00:28 am »

Well it has one line of texts spacing between the image and the text??

It adds a <BR> to the img tag... Not sure if it does more than one though.  Does your HTML source show anything strange like that?
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
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.