Page 2 of 2

Re: "Tell a friend" box

Posted: Wed 6. Feb 2008, 17:04
by update
But isn't "tell a friend" invoked by the page which I want to be able to "tell a friend" thus taking the page address where it is living? If not: :shock: then I didn't get the working specs of "TAF" :?
In short a question: where would you place the form "TAF" - at the end of the story or within every chapter?

Re: "Tell a friend" box

Posted: Wed 6. Feb 2008, 17:22
by fopulu
the best solution: in the image caption of every picture in different galleries and in different categories

the other solution: on every site of different galleries in different categories

Re: "Tell a friend" box

Posted: Wed 6. Feb 2008, 23:34
by Jensensen
Would try this one

[attention!! --> hack || i'm no php programmer ]

/include/inc_front/content/cnt23.article.inc.php
find around line 1143

Code: Select all

		$cnt_form['template'] = str_replace('{FORM_URL}', FE_CURRENT_URL, $cnt_form['template']);
add above:

Code: Select all

		$myarticleurl = $_SERVER['HTTP_REFERER'];
		$cnt_form['template'] = str_replace('{MY_ARTICLE_URL}', $myarticleurl, $cnt_form['template']);
Then add to your --> form template:
Hi,
your friend XYZ want you to read this article:
{MY_ARTICLE_URL}
Have fun with it
[worked, tested]

don't know, whether all REFERER's are caught the right way all the time ... [not tested!!!]

[edit]
at least a trick when working with TAF forms in a --> pop up window.
[/edit]

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 06:41
by fopulu
Thanks Jensensen..... sound's good....
I'll test later that day... and tell you, how it works!

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 14:34
by fopulu
Sorry, won't work on 1.3.3.... :(

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 15:05
by Oliver Georgi
Send a friend does not need any hack!!! Here comes the simplified solution - more comfort more work, but these are the basics.

1. create a special form content part somewhere in your site structure - best at "non-official" section.
2. place a {SHOW_CONTENT:CP,ID-of-the-CP} replacement tag in your template. Newer releases could use another replacement tag to check if list or article view

That's all. See the screenshot for basic settings.

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 16:53
by isac
very good :D

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 19:45
by update
yes indeed! (almost) exactly what I was trying to tell...
Newer releases could use another replacement tag to check if list or article view
Whispering: what is the other one?

EDIT: Hrrmmh :oops: found it (again)! :lol:

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 19:53
by fopulu
Yes, that's everything correct.... but it doesn't solve my problem.....

I have different image galeries in different categories.... and now I would give the user the chance to the send a TAF-mail form every image he could see and in this mail the direct link to the selected image is shown.... under every picture I place a button TAF-from-this-pretty-picture.... you understand, guys!?

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 19:55
by Jensensen
claus wrote:...
Newer releases could use another replacement tag to check if list or article view
Whispering: what is the other one?...

OG meant:
<!--IF_LIST_MODE_START//-->
<p>listing is on</p>
<!--IF_LIST_MODE_END//-->


<!--ELSE_LIST_MODE_START//-->
<p>else here</p>
<!--ELSE_LIST_MODE_END//-->

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 19:59
by update
This I did miss indeed :shock:
Thank you :lol:
Where could I try this to see the effect?

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 20:17
by Jensensen
[vorschnell reply]
@fopulu

don't believe, that this really is needed or even a good idea.
because the receiver will always get a link to [only] the certain image then!!?

Right now i know only one way to get this work:

For this you NEED to be able to place HTML in image caption which will be displayed by --> Lightbox {slimbox}
http://forum.phpwcms.org/viewtopic.php?f=16&t=16603

Then the visitor can TAF the link [out of slimbox full screen view mode] to the --> full size image --> as plain URL....

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 20:23
by Jensensen
[x]

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 21:53
by flip-flop
Hi,
changelog wrote:2007-05-18
[ADD] New section tags which can be used to differentiate template in "article listing" and "article detail" mode. Wrap in "<!--IF_LIST_MODE_START//--><!--IF_LIST_MODE_END//-->" and "<!--ELSE_LIST_MODE_START//--><!--ELSE_LIST_MODE_END//-->".
Duck und wech ...

Re: "Tell a friend" box

Posted: Thu 7. Feb 2008, 22:35
by update
:lol: