https://www.icyphoenix.com/viewtopic.php?f=26&t=4407&p=29826#p29826
-----------------------------------
Artie
Wed 16 Jul, 2008 23:20

Re: Integration Of JS Rating Widget
-----------------------------------
I assume you need the absolute path ([b]http://WorldBiology.net/files/album/d487cef125753f0852423f9a8ee25f65.png[/b]) in both showpage and album_cat for all to work correctly?
Adding the following code to what you have already added should give you that absolute path in album_cat...

OPEN [b]album_heirarchy_sql.php[/b]
FIND
[codeblock]$template->assign_block_vars('index_pics_block.picrow.pic_detail', array([/codeblock]
BEFORE ADD
[codeblock]// server_path required for JS-Kit's Ratings widget
	$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
	$server_name = trim($board_config['server_name']);
	$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';
	$script_name = preg_replace('/^/?(.*?)/?$/', '1', trim($board_config['script_path']));
	$script_name = ( $script_name == '' ) ? '' : $script_name . '/';
	$server_path = $server_protocol . $server_name . $server_port . $script_name;[/codeblock]


