Fixed : Group Video Count

Fixed : User Relationship Status
Fixed : Made $Cbucket Global
Updated : Will remove <b> tag from embed code
This commit is contained in:
Fawaz 2010-04-16 12:01:42 +00:00
parent 395a243ce0
commit f33dc984b7
4 changed files with 12 additions and 9 deletions

View file

@ -1605,7 +1605,7 @@ class CBGroups extends CBCategory
if(SEO==yes)
return BASEURL.'/view_topic/'.SEO($tdetails['topic_title']).'_tid_'.$tdetails['topic_id'];
else
return BASEURL.'/view_topic?tid='.$tdetails['topic_id'];
return BASEURL.'/view_topic.php?tid='.$tdetails['topic_id'];
}
@ -1872,10 +1872,10 @@ class CBGroups extends CBCategory
{
if(!empty($cond))
$cond .= " AND ";
$result = $db->select(tbl($this->gp_tbl.",users"),'*',$cond." ".tbl("groups.userid")." = ".tbl("users.userid")." ",$limit,$order);
$result = $db->select(tbl($this->gp_tbl.",users"),''.tbl($this->gp_tbl).'.*, '.tbl("users").'.username, '.tbl("users").'.userid',$cond." ".tbl("groups.userid")." = ".tbl("users.userid")." ",$limit,$order);
}
//echo $db->db_query;
// echo $db->db_query;
if($params['count_only'])
return $result = $db->count(tbl($this->gp_tbl),'*',$cond);
if($params['assign'])

View file

@ -2102,11 +2102,11 @@ class userquery extends CBCategory{
'name'=> "relation_status",
'id'=> "last_name",
'value'=> array(
0 => lang('usr_arr_no_ans'),
1 =>lang('usr_arr_single'),
2 =>lang('usr_arr_married'),
3 =>lang('usr_arr_comitted'),
4 =>lang('usr_arr_open_relate')),
lang('usr_arr_no_ans') => lang('usr_arr_no_ans'),
lang('usr_arr_single') =>lang('usr_arr_single'),
lang('usr_arr_married') =>lang('usr_arr_married'),
lang('usr_arr_comitted') =>lang('usr_arr_comitted'),
lang('usr_arr_open_relate') =>lang('usr_arr_open_relate')),
'checked'=> $default['relation_status'],
'db_field'=>'relation_status',
'auto_view'=>'yes',

View file

@ -1407,7 +1407,8 @@
* Function use to get video files
*/
function get_video_file($vdetails,$return_default=true,$with_path=true,$multi=false,$count_only=false,$hq=false)
{
{
global $Cbucket;
# checking if there is any other functions
# available
if(is_array($Cbucket->custom_video_file_funcs))

View file

@ -240,6 +240,8 @@ if(!function_exists('validate_embed_code'))
$h_w_r = array($data['width'],$data['height']);
$embed_code = str_replace($h_w_p,$h_w_r,$embed_code);
$embed_code = unhtmlentities($embed_code);
$embed_code = preg_replace('/<b>(.*<\/b>)?/','',$embed_code);
//Checking for REF CODE , if its youtube, add AUTOPLAY accordingly)
$ref = get_refer_url_from_embed_code($embed_code);
if(!empty($ref) && $ref['website'] == "youtube")