5 Star + Thumb + Hearts Rate Extension + translate variable

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.
There is a dedicated section for commercial extensions.
Post Reply
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Post by BaconFries »

WOW as the words of the song......
"Things can only get better Can only get better"
thx Eddy......
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

What are the difference between the 1st (with translation) and the others
I did write an answer in the first post.
rolo
 
 
Posts: 9
Joined: Sat Jun 09, 2007 5:42 pm

Php Rater Bug

Post by rolo »

I insert the php rater in a wysiwyg .php page.

When published, I get this error:

Warning: fopen(item_1.rating) [function.fopen]: failed to open stream: Permission denied in /home/todo/domains/mydomain.com/public_html/prueba/rater.php on line 86

Warning: fclose(): supplied argument is not a valid stream resource in /home/todo/domains/mydomain.com/public_html/prueba/rater.php on line 87


Any idea on how to fix it?

Thanks
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

There are two files,the proses file and the rate file.

check the file permissions - they are probably set in a way that the web server cannot open it.

Cmod to 755 or 777
Look also if php safe mode is off.
rolo
 
 
Posts: 9
Joined: Sat Jun 09, 2007 5:42 pm

Post by rolo »

I only have Rater.php file (with chmod 777)

and a Stars dir with png files.

1) Where can I find "Rater" and "Proses" files you mention ?

2) How can I know if I have php safe mode off in cpanel ?

Thanks !
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

Code: Select all

I only have Rater.php file (with chmod 777) 
and a Stars dir with png files.
The rate file what stores the ratings is generated after the first rating on your server.(item_1.rating)
1) Where can I find "Rater" and "Proses" files you mention ?
On your server.
2) How can I know if I have php safe mode off in cpanel ?

You can ask your hosting compagny.

Ask them also about the error message ,maybe they know how to solve it or what they have to change on the server to make it work.

This is where you have the error,

Code: Select all

 }
 fclose($rater_file);
}else{
 $rater_file=fopen($rater_filename,"w");
 fclose($rater_file);
}
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

The rate file what stores the ratings is generated after the first rating on your server.(item_1.rating)

Have u tried changing the permission to 777 right after the file item1.rating is created?

cmod the file item1.rating to 777

Please contact your hosting maybe they can help you if cmod to 777 das not solve your problem.
User avatar
v84x4
 
 
Posts: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

hey...

I was messing around with the NEW star rater (80 max)
I deleted (item_1.rating ) from my server & now when I re-upload the Star rater extention
the upload dosnt put the nessesary file back...........hmmmm

I have tried uploading the entire site to get it to work but still
wont upload the file item_1.rating

See example here http://www.highwaytrucker.com/talent.php

Regards V8
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

item_1.rating is generated on your server after the first rating,please read previous posts about the same problem.

It looks that the rater das not work on your server ,something on your server is not configured for this script ( fopen) I have read this from other users to but dont know how to change the php to make it work on al servers.
Contact your hosting maybe they know what todo. :?

Your error code:
Warning: fopen(item_5.rating) [function.fopen]: failed to open stream: Permission denied in /home/v84x4/public_html/rater.php on line 35

Warning: fread(): supplied argument is not a valid stream resource in /home/v84x4/public_html/rater.php on line 37

Warning: fwrite(): supplied argument is not a valid stream resource in /home/v84x4/public_html/rater.php on line 60

Warning: fclose(): supplied argument is not a valid stream resource in /home/v84x4/public_html/rater.php on line 63

Warning: fopen(item_5.rating) [function.fopen]: failed to open stream: Permission denied in /home/v84x4/public_html/rater.php on line 86

Warning: fclose(): supplied argument is not a valid stream resource in /home/v84x4/public_html/rater.php on line 87
Maybe you can use this?
http://nl2.php.net/function.fopen
User avatar
v84x4
 
 
Posts: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

I manually created the item_1.rate and then chmod it to 666. All works now.

Thank you eddy This is a great estention

Regards V8
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

manually created the item_1.rating and then chmod it to 666.

Never thought about that,maybe this works for others to :?
Last edited by Eddy on Wed Sep 23, 2009 4:54 pm, edited 1 time in total.
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

Open notepad.
Save a new page as item_1.rating
Upload that empty page to your server in the same directorie as rate.php and cmod to 666.

Or look first in the php file for the exact name:
Open rater.php and look to the raterID "rating" for the exact name after item_1.

// DO NOT MODIFY BELOW THIS LINE
$rater_filename='item_'.$rater_id.".rating";
User avatar
v84x4
 
 
Posts: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

Thanks Eddy

It worked but now Im having a problem using "Star Rater" with "Form" with submit button

When I hit "Rate" it mixes up with the "Submit" button on the form

See Here http://highwaytrucker.com/talent.php

Regards V8
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

The form prosesses the rater after submit and thats what the form prosessor from webbuilder shut do,it proseses all forms in your page.

I think the best thing todo is:
Make the form on another page and show the form in an iframe page.
User avatar
v84x4
 
 
Posts: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

:wink:

Ahhhh,

Good Idea Eddy

Once again...........Your the man


Best Regards V8
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

Built with Extension Builder 2.0.2
User avatar
DarrenH
 
 
Posts: 46
Joined: Thu Apr 10, 2008 9:31 am

Post by DarrenH »

Hi Eddy

This is what I posted in the general section:

"When they enter the password they can then vote. But my problem is when a vote is taken, the page then goes back to the password protected page and says password not valid.

How can I overcome this? I know it's code related - maybe a session - any help or ideas?"

Someone best sumed up what I want to do in your star rater section:
brassnugget wrote:Great extension, really useful - just a thought, would be even better ( for my purposes anyway) if placing a comment required a login ie only registered members can place a rating.
That's what I want to do. Do you know how to achieve this??

Any ideas?

Thanks for the hard work and invluable contributions
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Post by JimmyJazz »

I'm also searching for a star rater combined with comment, is this achievable with this extension?
User avatar
Eddy
 
 
Posts: 473
Joined: Tue Nov 27, 2007 1:52 am
Location: Nederland.

Post by Eddy »

Sorry DarrenH and JimmyJazz I do not know how to code php to make it work in password protected pages or how to combine a comment box with the star rater. :?
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by BaconFries »

@ carib64 » Fri Jan 14, 2011 4:40 pm
@ victoriaw » Mon Jan 31, 2011 2:39 pm

I have ben in contact with Eddy regarding the Extension and recieved a email today with the extension please note this was made for WB6.5 but it should work fine if it doesnt I will try and update with the extension builder using the files Eddy has provided please be patient as I am busy with work and other commitments...BF
Star Rater 800
http://www.mediafire.com/?bo4875r84kbkl5f
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by BaconFries »

Star rater I have uploaded a 800 version for user who need this Thanks to Eddy for supplying the extension to be used ....I had contact with him and he is busy with work so cannot get in forum as much as he would like but he will be back
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by JimmyJazz »

Hi Baconfries,

I posted this on the extensions suggestion thread but it is about star raters.

"Just found this open source star rater using jquery, it is called:

RateIt - a jQuery (star) rating plugin

Can be found at this website:

http://rateit.codeplex.com/

I've downloaded two .js files, a css file & related star images but unfortunately I do not know how to implement it in wysiwyg

This is a recently developed script that is billed as being easy to implement (they not meet me before)

The script is highly configurable & would be of great benefit to the community if someone could develop this into an extension.

Hopefully someone can pick up on this."

......................................................

Maybe better to let go the old rater & start again, anyone with experience in creating extensions will probably get this up & running in no time at all, it gives some amazing options as well.
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by BaconFries »

As I have mentioned in the previous other topic I am not taking over Eddys extensions...I am only trying to help were help can be given. I have taken a look at the Rateit script and it uses jQuery 1.4.3 at prescnt all WB jQuery and the majority of user made extension use jQuery 1.4.2 making them uncompatible with the Rateit script, so using with a extension/object that uses 1.4.2 will cause conflicts it would mean all WB jQuery objects/extension be updated to work with one script....
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by JimmyJazz »

Aaaahhh, ok, I didn't realise there would be backward compatibility issues with the jquery script. I just thought I could upgrade & there would be no problem with existing scripts.

It may be a blessing I am not a developer :!:

Does anyone know how often jquery gets updated in web builder?
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by BaconFries »

I cant say, but we will probably have to wait till the next major upgrade/update as WB has been using jQuery 1.4.2 since WB 7 was released last year but we can rely on Pablo if it is needed then it will be on the ro do list of improvments...
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by BaconFries »

Eddy the builder of the "Extension", is no longer a active member due to other comitments away from WB, so you will not recieve a anwser to your post from him.... looking at the source of the PHP it is possible for you to manually modify it and adding a height and width to the code to suit your requirements...
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by BaconFries »

You can either do it one of two ways either in a HTML Editor such a Notepad++ or you can modify through your cpanel once you have uploaded to your host server, before that we need to first install the extension on the page that you require it on, now save this...first way to modify is to browse to were you have saved to, look for the PHP file name rater.php open in Notepad++ and look for line 125 it should look like the code below once you have saved you can then upload...the second way is to upload all the files to your server ythe make the same changes through cpanel as described below..

Before
echo '<input type="submit" name="rate'.$rater_id.'" value="rate" style="font-size:12px;color:#FFFFFF;border: 2px solid #000000;background: #FFF000;font-family:Verdana" />';
After

Code: Select all

echo '<input type="submit" name="rate'.$rater_id.'" value="rate" style="font-size:12px;color:#FFFFFF;border: 2px solid #000000;background: #FFF000;font-family:Verdana";[color=#FF0000]width:56px;height:25px[/color]/>';
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: 5 Star + Thumb + Hearts Rate Extension + translate varia

Post by BaconFries »

You should note that Eddy is no longer a active member of the forum so this will not be possible sorry...
Post Reply