|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
> 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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
> 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 |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| 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 |