Welcome Guest, Not a member yet? Register   Sign In
Ajax star rating bar
#51

[eluser]developer_rtpl[/eluser]
I have used this Ajax Star Rating.It runs properly on my localhost but cant work on live.I am using hosting of Go-dady server.For working in CI,I can use this option only on the server -
Code:
$config['uri_protocol']    = "REQUEST_URI"
in config file. When i use
Code:
$config['uri_protocol']    = "PATH_INFO"
for Ajax rating,then it causes 404 error due to which CI doesn't work.I have also tried other uri protocols like- QUERY_STRING,ORIG_PATH_INFO,AUTO on this server.But all of them are not supporting to run CI.
Then i tried this ajax Rating on other server, where it runs properly.I can use
Code:
$config['uri_protocol']    = "PATH_INFO"
, on that server for running CI.
Can anybody suggest how to use both the uri protocols together or some other solution so that I can run Code Igniter as well as Ajax Rating on Server.
#52

[eluser]wiredesignz[/eluser]
This is one solution.
htaccess for PHP-CGI hosting (and use segments with query strings)
#53

[eluser]lotec[/eluser]
I just worked through this and had a few hang-ups along the way. In hopes of helping others ease into a star rating system I have compiled this along with documentation. Hope others find it useful. Download the package HERE Thanks to all the original contributors for their fine work.
#54

[eluser]handoyo[/eluser]
Thanks lotec and wiredesignz
#55

[eluser]no-cost lab[/eluser]
Guys,
first of all thank you for this great work!

i followed all of lotec's instructions, but i got stuck at the demo part.
what i get is:

* Currently 0/10
'.$i.''; } } $i=0; // resets the count; ?>

'.$id.' Rating: '.$rating1.'/'.$units.' ('.$count.' '.$tense.' cast)'; ?>

instead of the rating bars.
this is happening because of the dyanmic_rating.php file.
something over there is not working properly.
any ideas how to solve this?

thanks!

Ariel
#56

[eluser]lotec[/eluser]
Thanks Handoyo and Ariel, I just finished converting this into a module for pyrocms and ran into the same issue. To fix, change all opening instances of php short form in dynamic_rating.php from <?= to <?php
#57

[eluser]no-cost lab[/eluser]
Thanks for your assistance lotec,
but it didn't work for me :-(

I tried replacing the "<?=" as you suggested with "<?php",
tried it again with the "<?php echo",
later i tried replacing the "<?=" before the "for" loop,
and i got:

Fatal error: Call to undefined function site_url() in C:\wamp\www\codonco2\system\libraries\Loader.php(673) : eval()'d code on line 9

i guess something is off at the link statement.
any ideas how to fix it?

thanks again!
Ariel
#58

[eluser]lotec[/eluser]
Try loading the url helper: $this->load->helper('url'); and update EVERY php start string to <?php
#59

[eluser]no-cost lab[/eluser]
Works now, thanks a lot!
#60

[eluser]javer[/eluser]
From where can i download demo files ?




Theme © iAndrew 2016 - Forum software by © MyBB