Hello all
I'm new with Pligg (it's about 10 days I'm working with).
I've implemented my site www.vincipremi.it with Pligg: I have modified Mollio template (but I have some problem in IE) and a deep translation in italian (translation is still an hell ;-) ).
So, sorry if site is not complete and not tested but is online since a couple of hours (If you can't see it probably is due a DNS stuff, try later!!).
I have implemented a voting system in frame when you click on link to go to the external site.
I've seen the solution from qxygene (good job!) but I think is more important to permit user to vote from outside because we hope he returns on site after viewing and voting linked site.
Go to www.vincipremi.it and try to clik on link "Vai alla notizia direttamente" from one of the articles and see if that is what you mean!
You can vote clicking on button "VOTALO!" and you can see vote changing. If you are not logged you are redirected to login, but if you are logged in and try to revote, button change state and said that you have already voted.
If you are interested I have modified some files:
2 files created for the external frame
1 js ajax
1 template file
2 lib php
With this modified code you can link in normal mode through admin panel/Outgoing links -> "url, title or id" , but I have added "frame" that you can use to call external site with this method.
Probably there are other methods to do this (I'm not so good programmer), and coding could be better!!
If you want I can share my solution.
Thanks all for pligg...and sorry for my "italianenghlish"!!
bye
Ram
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Voting from external frame |
| The Following 3 Users Say Thank You to ramos67 For This Useful Post: | ||
| |||
| Good Work!
Ciao! I'm also "playing" with pigg from some weeks, I'm really interested oon your good work on the external link frame, can you share it?? Many thanks! |
| |||
| Here's my code
Hi, this code is working for me, and probably you could do better (querystring etc), but I've done it quickly... Here's attached all the modified files: go_ext.php and go_ext_top.php are the frame called by our story. go_ext_top.php : you can see which field are used by the function "votalo" that is inside xmlhttp.js. This file is the top part of the frame. Don't change the tags <span id="butvotazione"> and other span because these are referenced by the code in xmlhttp.js. xmlhttp.js : contains new function "votalo" similar to menealo. link_summary.tpl : I use mollio template. Search "QUI RAM" in the code and see <a href="{$url}{$link_frameram_vote}" . I extended $url. Probably I've changed this file, but you can use the original and change in the file where there's comment "QUI RAM" html1.php : search "RAMMOD". I changed calling page (standard is out.php, I call go_ext.php that is the frame containing go_ext_top.php passing parameters. link.php: search MOD RAM . I insert the new keyword "frame" that is used in the admin panel for outgoing link. Remember to change this in the panel, otherwise out.php will be called. Also you need some button graphics in dir /img/vote (as you want) Tell me your site when you implement this , please. I hope this help! ciao! RAM [UPD]For version 9.8.2 go to page 2 to download. This is for beta9.0
__________________ www.vincipremi.it - pligg powered Last edited by ramos67; 01-06-2008 at 07:19 AM.. Reason: Older version |
| The Following 4 Users Say Thank You to ramos67 For This Useful Post: | ||
| |||
|
ramos67 thanks for your good work! I implement on http://wins.ro and work like a charm. ![]() anonymous vote doesn't work from frame. in website works but in frame not... maybe it is something wrong in xmlhttp.js
__________________ Daily Fun is my job Last edited by justelite; 02-27-2007 at 07:26 AM.. |
| |||
| Anonymous vote
hi, probably the problem is in function votalo in xmlhttp.js. In my site anonymous vote is disabled but you can try this mod: This is the original votalo function PHP Code: PHP Code: bye RAM
__________________ www.vincipremi.it - pligg powered |
| The Following User Says Thank You to ramos67 For This Useful Post: | ||
| |||
|
Now voting from frame works for anonymous ! thanks!
__________________ Daily Fun is my job |
| |||
| well! but probably the best solution is from this post so you can enable and disable through admin panel bye RAM
__________________ www.vincipremi.it - pligg powered Last edited by ramos67; 02-28-2007 at 06:51 PM.. |
| ||||
|
Hi ramos,(anch'io italiano) I notice the frame <iframe src="<? echo $go; ?>" is in the go_ext and also in the go_ext_top. I set the height of the frametop to 40px and so i seen two bottom frame. If you open your story u can listen two audio ![]() The function votalo doesn't work with pligg 9.1 , the function menealo now is function vote: PHP Code: Is possible use EVB for this mod? Also my enlgish is maccheronico! Last edited by peppolone; 03-07-2007 at 01:12 AM.. |
| |||
| You are right
Ciao Peppolone, You are right, probably I've forgotten the <iframe src="<? echo $go; ?> in go_ext_top. I can't test now but you can delete this iframe from go_ext_top.php because this is called already in go_ext.php. For version 9.1 I've seen that function is changed, but my installation is 9beta. I don't plan to upgrade now bbecause I'm busy, but as soon as I can I'll try to modify this. I can change the function and pass it to you so you cant test. bye RAM UPDATE: you can delete the iframe in go_ext_top. I've tested it. thanks
__________________ www.vincipremi.it - pligg powered Last edited by ramos67; 03-07-2007 at 06:12 AM.. Reason: testing mod |
| |||
|
Can someone point out how to implement this using pligg 9.7. The external frame is actually working. The problems are. The vote button is not fonctional, and doesn't even put the number of votes on it. The url after go_ext.php?go= is all messed up but working(it takes you to the site desired). The title of the page that appears is www. EDIT: You can change the title from the go_ext.php file at line 16. Any help here? I think menealo isn't used in 9.7. So I think it has to do with xmlhttp.php/.js. Edit2: In 9.7 do we use both xmlhttp.php and xmlhttp.js or are they the same? Last edited by Unknown; 08-21-2007 at 04:01 AM.. Reason: 1 solution found |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [MOD] External Frame | qxygene | Modification Tutorials | 19 | 06-25-2008 04:09 AM |
| External Voting Button Setup | MarekSpace | General Help | 0 | 01-18-2008 02:16 PM |
| Voting Error on page | jitu | "Mollio-Beat" | 7 | 11-02-2007 05:46 AM |
| [Fixed] Voting and login problems with latest build (702) | silversow | Bug Report | 2 | 02-14-2007 04:13 AM |
| api, evb, check_url and external voting | hm2k | General Help | 2 | 11-20-2006 09:00 AM |





Linear Mode

