MyBB Community Forums

Full Version: star ratings are not visible.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
See in here my site, star ratings appear as broken, the stars don't load at all too. but I noticed that if I attached the star_ratings.css file globally, then it works fine.
Home » Themes » Default » star_ratings.css 

http://nucuta.com/community/forumdisplay.php?fid=2

I use nginx btw, I remember when using apache there was any problem at all, so I believe the css file isn't attached to forumdisplay.php and showthread.php properly for some reason, I am wondering how to solve this.

folders_sprite doesn't work too due to the same problem, the css file isn't attached to forumdisplay.php

just found usercp_sprite.png doesn't show either because usercp.css style sheet doesn't attach to " usercp.php, usercp2.php and private.php"

okay I fixed it by removing
include snippets/fastcgi-php.conf;
from default file in /etc/nginx/sites-available

As I found that something in fastcgi-php.conf doesn't work properly with mybb, so have to specify

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

instead of..

include snippets/fastcgi-php.conf;

I post my fastcgi-php.conf file in here, hope mybb developers can fix the problem, because in latest versions of nginx, it's recommend to use fastcgi-php.conf instead of separately including fastcgi_param parameters.

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;

fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_SCHEME $scheme;
fastcgi_param HTTPS $https if_not_empty;

fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
(2017-01-28, 11:12 AM)Stormyy Wrote: [ -> ]See in here my site, star ratings appear as broken, the stars don't load at all too. but I noticed that if I attached the star_ratings.css file globally, then it works fine.
Home » Themes » Default » star_ratings.css 

http://nucuta.com/community/forumdisplay.php?fid=2

I use nginx btw, I remember when using apache there was any problem at all, so I believe the css file isn't attached to forumdisplay.php and showthread.php properly for some reason, I am wondering how to solve this.

folders_sprite doesn't work too due to the same problem, the css file isn't attached to forumdisplay.php

just found usercp_sprite.png doesn't show either because usercp.css style sheet doesn't attach to " usercp.php, usercp2.php and private.php"

okay I fixed it by removing
include snippets/fastcgi-php.conf;
from default file in /etc/nginx/sites-available

As I found that something in fastcgi-php.conf doesn't work properly with mybb, so have to specify

fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
include fastcgi_params;

instead of..

include snippets/fastcgi-php.conf;

I post my fastcgi-php.conf file in here, hope mybb developers can fix the problem, because in latest versions of nginx, it's recommend to use fastcgi-php.conf instead of separately including fastcgi_param parameters.

fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
fastcgi_param  QUERY_STRING      $query_string;
fastcgi_param  REQUEST_METHOD    $request_method;
fastcgi_param  CONTENT_TYPE      $content_type;
fastcgi_param  CONTENT_LENGTH    $content_length;

fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI      $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;
fastcgi_param  REQUEST_SCHEME    $scheme;
fastcgi_param  HTTPS              $https if_not_empty;

fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS    200;


I almost went crazy trying to figure out what the problem was!  Big Grin Big Grin
Many many thnx!!!