I'm posting this here because I'm not sure if it will actually qualify as a mod yet. Going off some of the other evb mods, I created this one so it works how I wanted.
I am asking for fellow users to look over how the button code works and whether they see any security problems. That is my main concern right now.
The attached zip file contains all the files necessary.
The remote vote button works like the vote buttons on a Pligg site. Meaning, they refresh the vote and vote status without leaving the page where the button is placed. You can also use multiple buttons on the same page for blogs and stuff.
Please let me know if anyone sees any problems with security? I'm worried about possible CSRF issues and whether any exist.
Thanks
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| New EVB experiment Last edited by cameron65; 11-30-2007 at 09:42 AM.. |
| |||
|
So this will be like me seeing digg logos, but instead "Engage" logo on fellow bloggers websites ? Asking their reader to Engage it? @ blogenage? Does what I just said even make sense? I'm also having issues opening the evb.js file to set the base url I get the following error. I added it as an attachment it's an image. Any advice because this script is perfect for me :) Last edited by bbrian017; 11-29-2007 at 10:29 PM.. |
| |||
|
@bbrian017 Pligg already has this feature implemented. Check the evb folder in your installation, accompanied with a readme file for instructions on how to put your buttons on other sites :) @cameron65 Sorry I can't check your modifications, I'm can't get my head around code lines, but in what way did you modify the evb, just curious :) |
| |||
|
Well my pligg site is for bloggers only so I wanted to allow then to put this vote button in their blogs :) Very good idea for me!!! I will look at the read me file now and see if I can figure this out! Is it pretty easy? |
| |||
|
@ Unknown... The EVB that comes with Pligg, and those EVB mods I found on this forum, did not perform the way I wished. My mod checks: 1) Whether user is logged in or not. 2) Whether Anonymous voting is enabled or not. 3) Whether the user voted for this particular link and displays Voted or Vote accordingly. 4) If Anonymous available, checks if user voted by IP 5) If a user votes, button refreshes with new votes and status without leaving the current web site. 6) If link has not been submitted yet, the buttons will lead people to the submit page if they are logged in. @ bbrian017 Are you trying to open the .js file using word pad or notepad? You should be able to right click on it and choose Open With. Edit: Forgot. The reason I'm asking about security is because I'm using xmlhttp.php to refresh the button with new vote information. I'm also reading the cookies to see if a person is logged in or not. All this is done by using javascript to call a javascript file, which then writes an iframe whose source is the php file. Last edited by cameron65; 11-30-2007 at 09:27 AM.. |
| |||
|
Well I got it working but tonight after work I will look at your mod. I'm also getting many images changed so I can have like 10 - 15 different colors for different blog sites. I'm seriously in love with pligg :( look is it working? Blog Engage Free Blog Submissions » Blog Archive » Blog Engage Keeping your Blogs Published! New Feature! hmm it seems to bring me to an unknown page when I'm not on the specific story page any one else seeing this? When I'm on this page, Blog Engage Free Blog Submissions I get sent here, Blog Engage - when I'm on this page, Blog Engage Free Blog Submissions » Blog Archive » Blog Engage Keeping your Blogs Published! New Feature! I get sent here, Blog Engage - Blog Engage Free Blog Submissions » Blog Archive » Blog Engage Keeping your Blogs Published! New Feature! any advice on this? EDIT: ok I think I understand what happened. it was trying to submit blogengage.com/blogger/ home page as a story so maybe I need to add this code to some page that will only display on new Blog story pages. anyone know what file I should add it too? using wordpress Last edited by bbrian017; 11-30-2007 at 09:55 AM.. |
| |||
|
I'm not exactly sure what you mean by all that. If you are placing it on blogs, you should set the variable LINK_URL = to the permalink for the particular blog entry. |
| |||
|
@bbrian017: Your button here: Blog Engage Free Blog Submissions » Blog Archive » Blog Engage Keeping your Blogs Published! New Feature! Worked fine, and once clicked took me to the story linked to the correct page for me to vote for. @cameron65: The mod you're doing is cool, refreshing directly on the other page. Plus all the checks are done on page. It's a hard thing you're doing there. Don't forget to search for an old thread here about the evb, very useful, and was very long. |
| |||
|
yes I found out what to do. I have to add the code to the page.php or in my case the single.php When I added it to the index.php it tried to submit the actual blog site because that's where the button was. now it only displays on the blog article :) I got help from here, Word press php code question! They probably explained it better then me :) |
| |||
| Quote:
I created a test page and enabled Anonymous voting in case anyone wants to check it out. I'm still testing things, so you won't effect anything by voting. The test page is on my hosting site. However, the Pligg installation is on an adult web site. So if adult stuff offends you, do not click the numbers to go to the article pages...just try the voting and you will see how it works. EVB Test Page @bbrian017 I'm not sure what you mean or what you are doing with Wordpress. Never really used it myself. I always figured when you wrote a blog, you could place the javascript code in blog text you are writing using some div tags to float it left of the text. For example: HTML Code: <div style="float: left; width:90px;"> <script type="text/javascript"> LINK_URL = 'http://permalink-for-blog.com/45/34/'; </script> <script type="text/javascript" src="http://mysite.com/pligg/evb/evb.js"></script> </div> |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| News2.by | mobilpress | My Pligg Site | 15 | 09-17-2008 01:00 PM |
| SEO (Google, Yahoo, Technorati Experiment) | GrinGEO | Wiki Articles | 26 | 01-06-2008 12:55 PM |
| Performance and loading time experiment | Daniel | General Help | 71 | 02-18-2007 02:46 AM |





Linear Mode

