Tutorial for plugin ?

Hi Djulia and others,

I’ve made some modifications and added some variables to add_notify.php to work with my application and they works perfectly.

I’m stuck on how to insert a link in the sent email message that’s generated from something like this:

Note: One of the defined variables is: $recNum = mysql_insert($tableName,$columnsToValues);

Or you can download the images by <a ref='http://{$_SERVER['HTTP_HOST']}/downloads.php?$recNum'>BY CLICKING ON THIS LINK</a>

When I insert that, instead of a clickable link, I get the href code in the actual email, like this:

Or you can download the images by <a href='http://96.0.18.42/downloads.php?45'>BY CLICKING ON THIS LINK</a>

I’m sure it’s something simple, but I can’t seem to figure it out.

Thanks for your help,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Tutorial for plugin ?

By Djulia - November 30, 2011

Hi Jerry,

You can perhaps modify the value of the heading.

To replace : Content-type: text/plain; charset=UTF-8

with :

Content-type: text/html; charset=UTF-8

Djulia
thanks for the suggestion ("admin_head"). I've updated my code. I actually tried that earlier before I really understood the difference between addFilter and addAction and I kept getting wierd results because I wasn't returning anything with addFilter. Works perfectly now, thanks!


__________________
Buy Electronics Wholesales and earn money from dropship:chingtown.com