[Typo3] TV & Tip-a-Friend Plugin

Taylor, Jeff JTaylor at venterinstitute.org
Tue Feb 15 18:52:02 CET 2005


-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Ries
van Twisk
Sent: Monday, February 14, 2005 2:51 PM
To: TYPO3 English
Subject: Re: [Typo3] TV & Tip-a-Friend Plugin

Taylor, Jeff wrote:

>Has anyone gotten the tip-a-friend plugin working with TV.  I'm
>perfectly able to map the "email to friend" link to point to the proper
>page.  
>However I have tried a number of options for the Template setup code
>with no success.  If not, are there any viable alternatives to the tip
a
>friend plugin? 
>
>>From what I understand, the actual tip a friend template is not being
>included in the page...
>
>
>Any help would be appreciated.
>
>
>
>The tipafriend page has the code TIPLINK
>This is what I (currently) have in the template setup.
>I have played with this excessively to no avail.
>
>
>
>includeLibs.ts_tipafriend = EXT:tipafriend/pi/class.tx_tipafriend.php
>
>plugin.tipafriend >
>plugin.tipafriend = USER
>plugin.tipafriend {
>  userFunc = tx_tipafriend->main_tipafriend
>  code.field = TIPLINK
> 
>  templateFile = files/template/tipafriend/tipafriend_template.html
>  tipolink.parameter = 116 500x350  #uid of the Tip Form page
>  htmlmail = {$plugin.tipafriend.htmlMail}
>
>}
>
>>>>>>
>
>Jeff,
>
>this is what I use in my TV setup:
>
>temp.tipafriend = USER
>temp.tipafriend {
>  userFunc = tx_tipafriend->main_tipafriend
>  code = TIPLINK
>  templateFile = {$plugin.tipafriend.file.templateFile}
>  typolink.parameter = 100997 # uid of the TipForm page
>}
>
>lib.tipafriend = TEXT
>lib.tipafriend < temp.tipafriend
>
>Works on: http://www.livetravelguides.com
>
>cheers,
>Ries
>

Thanks for your quick response and help... 
However, it still isn't working properly.
Where are you setting $plugin.tipafriend.file.templateFile ?
Does your template mirror the template example included with the plugin?
Does anything else need to be set on the plugin page content besides the
CODE?

The first thing I noticed with this setup is that lib.tipafriend doesn't
get set to the proper URL and just points at my server root in my actual
html output, so the "email to friend" link doesn't even point to the tip
a friend page. 
Is that the only setup you need in the master template? 


(here's what I have for my lib.tipafriend)

lib.tipafriend = TEXT

lib.tipafriend.value =
index.php?id=tipafriend&tipUrl=http://sitename/?{page:uid}&no_cache=1

lib.tipafriend.htmlSpecialChars = 1
lib.tipafriend.insertData = 1

with that the link to tip a friend works on every page but once to the
plugin page there is just no output from the plugin.

Sorry if this is vague, I'm not feeling well.

Thanks again for the help.

.jeff.




More information about the TYPO3-english mailing list