Hello,
A few days ago, I was asked for a way of displaying the name of the category along with the video title in the <title></title> tags. Here’s the code so everyone can enjoy it! Tested under v2.6.
1. Open ./watch_video.php
2. Find:
assign('vid_cat',$vid_cat);
and before that, paste:
$catsarr = explode(' ',$vdo['category']); //Explode DB cats, they're in format: #1# #2# #43# $firstcat = str_replace('#','',$catarr[0]); //Remove # $catarr = get_category($firstcat); //Fetch cat array $catname = $catarr['category_name']; //We just need the category name Assign('catname',$catname); //Assign it so we can use it in our template
3. Save and Upload.
1. Open ./styles/{YOURTEMPLATE}/layout/global_header.html
2. Find:
<title>{cbtitle}</title>
and replace it with:
<title>{cbtitle}{if $catname} - {$catname}{/if}</title>
3. Save and Upload.
There you go. Whenever you are watching a video, it will display the category name inside the title. If the video pertains to multiple categories, it will just show the first category. Should you have any questions or comments, please post them down below.
Best Regards.
Richi
On the main page as you guys know there is a profile detail like my videos, account, friend requests etc. And also there is an avatar image located. But mine is not showing the changed avatar, it is showing me only the default avatar image, even though I changed my avatar. So I checked the code:
profile_link($userquery->udetails)}”>
What is wrong here?How to fix this please help.
Hello,
Is this a default Clip-Bucket installation or have you made any modifications?
Also, it is very possible (and likely) that you’re just viewing a cached copy. Please try clearing your browser and DNS cache and/or trying in a different browser.
If none of the above helps, feel free to reply.
-Alex.