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: E Card Hyperlink Above and Banner under Image  (Read 6425 times)

0 Members and 1 Guest are viewing this topic.

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« on: December 16, 2003, 04:06:22 pm »

hello
i want add "send e-card" link above full size image in displayimage page en a banner under it.

what do i do & is this possible?

Beste regard,
Claudio (Netherlands)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
E Card Hyperlink Above and Banner under Image
« Reply #1 on: December 16, 2003, 06:43:15 pm »

yes, the template file for ecards can be modified as you wish, take a look at your theme file (/themes/yourtheme/theme.php) and search for
Code: [Select]
// HTML template for e-cardsand modify the stuff that comes after it as you wish, but remember: the file itself is not being sent along with the email, only the html code is - if a user has disabled html downloads in his email client or is offline while reading the emails, he will see broken images (this applies of course to the pic sent as ecard as well).

GauGau
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #2 on: December 16, 2003, 08:23:24 pm »

That isn't the thing i want to do :-)
On the page where the image is shown, i want to place the link above and under.
I have found the right spot in theme.php but nou i must figure a way to get the hyperlink to work and pointing to the e-card system.
This link
Code: [Select]
<a href="{ECARD_TGT}" title="{ECARD_TITLE}">
isnt working becourse of the html.
Any tips  :oops:

A sample you can find http://www.0906sex.nu/gallerie/
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
E Card Hyperlink Above and Banner under Image
« Reply #3 on: December 17, 2003, 12:10:04 am »

above link leads you possibly to an adult site - I wasn't able to find out, as I disabled scripting for security reasons and was sent back.
Please do always note with a link to a pron-related site that the visitor will be confronted with nudity for legal reasons (some people might get problems with their employers if they open porn sites).

@WizBiz: I didn't fully understand your problem. Could you describe it more detailed please?

GauGau
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #4 on: December 17, 2003, 12:35:26 am »

Oh  :oops:  i'm really sorry.

Here's a example of the thing i want to do:
This link can contain ADULT material

When the people click on the line:
"LEUK? STUUR DAN NU ALS E-CARD NAAR EEN KENNIS, KLIK HIER!"
they can sent a E-Card with that photo.

But i can't use the hyperlink <a href="{ECARD_TGT}" title="{ECARD_TITLE}">

how can i link to the e-card with this link?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
E Card Hyperlink Above and Banner under Image
« Reply #5 on: December 17, 2003, 07:33:30 am »

ok, I get the idea...
The stuff you wanted to add
Code: [Select]
<a href="{ECARD_TGT}" title="{ECARD_TITLE}">can only be used in template.html, as everything in curly braces will be replaced by some actual content when the template file is being parsed - you can't do that when you modify a coppermine core code file.
Instead, edit displayimage.php and find
Code: [Select]
       $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";replace with
Code: [Select]
       $pic_html='<a href="ecard.php?album='.$album.'&pid='.$pid.'&pos='.$pos.'">LEUK? STUUR DAN NU ALS E-CARD NAAR EEN KENNIS, KLIK HIER!</a><br />';
        $pic_html.= "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";


I haven't tested this, but this is the way to go, maybe there's a syntax error in above code that has to be corrected, but it'll give you an idea where to look.

GauGau
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #6 on: December 17, 2003, 03:48:39 pm »

GauGau,

That worked! but......not al the way  :(

Some pics does show the link, some don't. I cant figure out why.

This one show's the link:
This picture shows the link (Clean picture)

This one doesn't show's the link:
This picture doesn't shows the link (Clean picture)
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #7 on: December 18, 2003, 10:36:19 am »

I can't get it to work, please help me  :(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
E Card Hyperlink Above and Banner under Image
« Reply #8 on: December 18, 2003, 02:02:09 pm »

Try this code
Code: [Select]
$pic_html='<a href="ecard.php?pos=-'.$pid.'">LEUK? STUUR DAN NU ALS E-CARD NAAR EEN KENNIS, KLIK HIER!</a><br />';
        $pic_html.= "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
GauGau
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #9 on: December 18, 2003, 02:46:11 pm »

I'm really sorry, but no.

Sometime's its showing te link, sometime's he doen's.

And when i click on the link, i get the error that this album doesn't excist.

Example: Here (Clean picture)
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #10 on: December 18, 2003, 05:29:50 pm »

a combi of those two don't worked either *cry*
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #11 on: December 19, 2003, 01:41:13 pm »

Sorry, that i disturb you with my problems, but i really think this will generate more e-cards from my site.
So, please please help me  :(
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #12 on: December 20, 2003, 11:50:26 pm »

Isn't is possible? Or do'n't you have time.....
In case of "no time" i wish you and everybody on the board a nice Holiday
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
E Card Hyperlink Above and Banner under Image
« Reply #13 on: December 21, 2003, 01:30:48 pm »

sorry, it's more a question of me being reluctant to code a modification I only see little use in. Getting this to work would basically mean some looking into it in detail. Try looking into the code a little harder for yourself...

GauGau
Logged

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #14 on: December 21, 2003, 03:08:14 pm »

I have finded out why the links isn't schowing sometime's.
When the pic is bigger en i can open it in a popup, the link is showing, when the pics can't get bigger and the popup isn't  possible, there is no link showing.
You you ave any suggestion where i must look now?

Best regards,
Claudio
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
E Card Hyperlink Above and Banner under Image
« Reply #15 on: December 21, 2003, 07:08:45 pm »

you also need to replace
Code: [Select]
$pic_html = "<img src=\"".$picture_url."\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
with
Code: [Select]
$pic_html='<a href="ecard.php?pos=-'.$pid.'">LEUK? STUUR DAN NU ALS E-CARD NAAR EEN KENNIS, KLIK HIER!</a><br />';  
$pic_html .= "<img src=\"".$picture_url."\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

WizBiz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
E Card Hyperlink Above and Banner under Image
« Reply #16 on: December 21, 2003, 07:59:07 pm »

I haved figure it out for myzelf 2 ours ago, stil working to perfect it a litle :-)
TNX, works great!
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 18 queries.