TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 10.10.2007, 01:33
Morten Kjems
Gast
 
Beiträge: n/a
Standard [TYPO3] CoolURI and Tip-A-Friend

Hi.

I have asked about this before but have not found a solution.

I have tried to implement a "tip a friend" function in my current project.

I have looked into two extensions:

1. The original Tip-A-Friend (tipafriend)

2. The Tip-A-Friend-Plus (tipafriend_plus)

None of them work when CoolURI is installed and both works just fine
otherwise.

The problem is that the Url of the recommended page is not generated
correct. It looks like this:

http%3A%2F%2domain.com%2Fpage.html

instead of just: http://domain.com/page.html

(the latest version of CoolURI does not change this behavior)

The way I see it there are two options:

1. The problem is related to CoolURI and can be fixed by an update.
Maybe Jan can tell if this is an option.

Or

2. I will have to hard code the link as suggested by Peter Klein in
another post. Here is the snippet that Peter suggests:

http://www.typo3wizard.com/en/snippe...erstellen.html

When I use this snippet I still get incorrect URLs like the one above.
The output in the browser looks like this:
tip.html?tipUrl=http%253A%252F%252Fdomain.com%252F subpage.html%253F%253D
And no link is generated.

So my questions are:

1. Can the problem be solved with a fix of CoolURI?

2. And if not. How do I then achieve my gold of having a "tip a friend"
link on every page?

Hope someone can help.

Thanks

/Morten














_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 14.10.2007, 20:26
Jan Bednarik
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] CoolURI and Tip-A-Friend

Hey,

bug found, I will upload it ASAP (when typo3.org is back online).

--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 16.10.2007, 14:01
Morten Kjems
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] CoolURI and Tip-A-Friend

> bug found, I will upload it ASAP (when typo3.org is back online).

Hi Jan.

Thanks a lot for your effort.

I have installed the new version (1.0.6) and I am quite confused with
the result.

At first it seemed to work since the tiplink was generating the correct
URL. And everything was fine.

But (this is the weird part) after I resaved the page with the tiplink
it stopped generating the correct URL and started to generate wrong URLs
again:

http%3A%2F%2domain.com%2Fpage.html

I have reinstalled the extension a couple of times and have not been
able to get it to work a second time.

Also the Tip-A-Friend-Plus extension is completely unaffected and still
generates wrong URLs.

I also tried to create a link to the TIPFORM page as a lib.object with
the snippet below. But even this simple code comes out as:

http://www.domain.com/tip.html?tipUr....domain.com%2F


----Constants----
# ID to page with Tip-a-Friend plugin inserted
plugin.tipafriend.PIDtipForm = 27

# Site URL
plugin.tipafriend.siteUrl = http://www.easybartricks.com

# If set to #, then the url sent by Tip-a-friend is the SITE URL, not the
PAGE URL
plugin.tipafriend.rootOnly = #

----Setup----
lib.tiplink = COA
lib.tiplink {
stdWrap.prefixComment = 2 | lib.tiplink
10 = TEXT
10.typolink.parameter = {$plugin.tipafriend.PIDtipForm}
10.typolink.returnLast = url
10.wrap = {$plugin.tipafriend.siteUrl}/|?tipUrl=

20 = COA
20.1 = TEXT
{$plugin.tipafriend.rootOnly} 20.1.typolink.parameter.field = uid
{$plugin.tipafriend.rootOnly} 20.1.typolink.returnLast = url
20.1.wrap = {$plugin.tipafriend.siteUrl}/|
20.stdWrap.rawUrlEncode = 1


I really appreciate your effort. Do you have any suggestions on what to
try next?

/Morten
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 16.10.2007, 19:10
Jan Bednarik
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] CoolURI and Tip-A-Friend

Hey again,

> I have installed the new version (1.0.6) and I am quite confused with
> the result.


I guess that's the answer for my question in the registration thread.

> But (this is the weird part) after I resaved the page with the tiplink
> it stopped generating the correct URL and started to generate wrong URLs
> again:


what does it mean "resaved"? You mean reloaded?

Oh man, shame on me, I've did the fix in other version than the one I've
uploaded. Oh my...

Uploading again with the same version number (1.0.6).

Or you can recognize it by these 3 lines:

418: //$qs = '?'.http_build_query($qsp);
419: foreach ($qsp as $k=>$v) $qsp[$k] = $k.'='.$v;
420: $qs = '?'.implode('&',$qsp);

This could solve all troubles.

--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 16.10.2007, 22:18
Morten Kjems
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] CoolURI and Tip-A-Friend

Hi Jan.

Thanks a lot for helping out.

> what does it mean "resaved"? You mean reloaded?


I mean things changed after I editted the page proberties and saved.

> Oh man, shame on me, I've did the fix in other version than the one I've
> uploaded. Oh my...


That explains a lot...

> This could solve all troubles.


Seems that it did everyting works just fine now.

Thanks a lot. I am glad that you have been so willing to help and solve
these problems.

/Morten

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 16.10.2007, 23:38
Jan Bednarik
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] CoolURI and Tip-A-Friend

> Thanks a lot. I am glad that you have been so willing to help and solve
> these problems.


It's my baby and I have to raise it well

--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3] CoolURI: problems with Tip-A-Friend Plus extension Morten Kjems typo3-english@lists.netfielders.de 7 18.09.2007 22:23
[TYPO3-german] Sent Tip to a friend Christian Platt typo3-german@lists.netfielders.de 0 18.08.2007 09:06
[TYPO3] freeCap Captcha and Tip-A-Friend Aji Johannes typo3-english@lists.netfielders.de 2 30.03.2007 00:20
[TYPO3] tip a friend and url Andrea Giorgini typo3-english@lists.netfielders.de 6 16.01.2007 11:19
[TYPO3-UG France] TIP A FRIEND Chakir Piro typo3-france@lists.netfielders.de 0 16.02.2006 18:31


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:22 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75