Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-2007, 06:21 PM
New Pligger
 
Join Date: Oct 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
New EVB experiment

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
Attached Files
File Type: zip evb.zip (3.5 KB, 8 views)

Last edited by cameron65; 11-30-2007 at 09:42 AM..
Reply With Quote
  #2 (permalink)  
Old 11-29-2007, 10:17 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 914
Thanks: 169
Thanked 17 Times in 17 Posts
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 :)
Attached Thumbnails
new-evb-experiment-error.jpg  

Last edited by bbrian017; 11-29-2007 at 10:29 PM..
Reply With Quote
  #3 (permalink)  
Old 11-29-2007, 10:52 PM
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 156
Thanks: 27
Thanked 9 Times in 9 Posts
@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 :)
Reply With Quote
  #4 (permalink)  
Old 11-30-2007, 08:56 AM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 914
Thanks: 169
Thanked 17 Times in 17 Posts
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?
Reply With Quote
  #5 (permalink)  
Old 11-30-2007, 09:24 AM
New Pligger
 
Join Date: Oct 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
@ 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..
Reply With Quote
  #6 (permalink)  
Old 11-30-2007, 09:47 AM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 914
Thanks: 169
Thanked 17 Times in 17 Posts
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..
Reply With Quote
  #7 (permalink)  
Old 11-30-2007, 01:35 PM
New Pligger
 
Join Date: Oct 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
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.
Reply With Quote
  #8 (permalink)  
Old 11-30-2007, 03:11 PM
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 156
Thanks: 27
Thanked 9 Times in 9 Posts
@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.
Reply With Quote
  #9 (permalink)  
Old 11-30-2007, 05:12 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 914
Thanks: 169
Thanked 17 Times in 17 Posts
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 :)
Reply With Quote
  #10 (permalink)  
Old 11-30-2007, 06:10 PM
New Pligger
 
Join Date: Oct 2007
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Unknown View Post
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.
I looked at some of the old EVB threads. Even installed some of the mods but was not happy with them. That's why I did this.

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> 
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
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


Search Engine Friendly URLs by vBSEO 3.2.0