"Tell a friend" box

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: "Tell a friend" box

Post 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?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Re: "Tell a friend" box

Post 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
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: "Tell a friend" box

Post 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]
Last edited by Jensensen on Thu 7. Feb 2008, 18:50, edited 2 times in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Re: "Tell a friend" box

Post by fopulu »

Thanks Jensensen..... sound's good....
I'll test later that day... and tell you, how it works!
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Re: "Tell a friend" box

Post by fopulu »

Sorry, won't work on 1.3.3.... :(
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: "Tell a friend" box

Post 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.
Attachments
2008-02-07_145722.png
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Re: "Tell a friend" box

Post by isac »

very good :D
POR :D TUGAL
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: "Tell a friend" box

Post 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:
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
fopulu
Posts: 359
Joined: Tue 2. May 2006, 14:19
Location: Rhein-Main

Re: "Tell a friend" box

Post 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!?
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: "Tell a friend" box

Post 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//-->
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: "Tell a friend" box

Post by update »

This I did miss indeed :shock:
Thank you :lol:
Where could I try this to see the effect?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: "Tell a friend" box

Post 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....
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: "Tell a friend" box

Post by Jensensen »

[x]
Last edited by Jensensen on Sat 20. Sep 2008, 03:46, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: "Tell a friend" box

Post 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 ...
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: "Tell a friend" box

Post by update »

:lol:
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Post Reply