How to Show “Upload” Tab to Logged in Users Only Using a Custom Template in Clip-Bucket v2
Last Updated on Thursday, 18 April 2013 02:34 Written by Richi González Friday, 19 April 2013 12:00
Hello,
Like I wrote in a previous article, How to Check if a User is Logged in When Uploading Videos in Clip-Bucket v2, I further saw that the Upload tab from the top navigation bar was still there, in some custom templates, even when users where not logged in, therefore I decided to write this article to show you how to add a check to see if the user is logged in, if not, don’t show the tab, otherwise, show it. Note, if you are using CB template cbv2new, you don’t need to add this modifications.
Learn MoreHow to Retrieve the ID of the Current Category in Clip-Bucket v2
Last Updated on Tuesday, 16 April 2013 09:08 Written by Richi González Wednesday, 17 April 2013 12:00
Hello,
As I’ve been asked two times already how to get the ID of the current category being browsed in Clip-Bucket v2, I decided to write an article for it so everyone can learn how do it by themselves. Knowing how to do this, you can display specific advertisement for each category, for example.
Learn MoreFunction to Generate a Copyright Since with PHP
Last Updated on Saturday, 23 February 2013 01:37 Written by Richi González Monday, 25 February 2013 12:00
Hello,
When working with a website, I always try to make things the most automated I can so that I don’t need to be editing them often, that’s why here I present you a function I created that is used to return the years for the copyright notice, for example. It will print the year since the website started and the current year. Keep reading to see what I’m talking about!
1. Copy paste the following function to your functions file or, if you don’t have one, to the top of your PHP file.
Learn MoreHow to Add a Placeholder with HTML5 to Form Fields
Last Updated on Saturday, 16 February 2013 11:36 Written by Richi González Sunday, 17 February 2013 12:00
Hello,
Now that HTML5 is becoming more and more compatible with web browsers, you should start thinking of adding placeholders to your form input fields. A placeholder is some text that is displayed when the form field hasn’t been clicked or has content in it. Here we have a picture of what a placeholder looks like in an input field:
Keep reading to learn how to do it by yourself!
Learn MoreHow to Get the Value of an Element’s Attribute with jQuery using attr()
Last Updated on Wednesday, 13 February 2013 08:35 Written by Richi González Wednesday, 13 February 2013 12:00
Hello,
Lately that I’ve been working a lot with jQuery, I have noticed how easy and small functions get endless possibilities for improving code. In this article, you will learn how to get the value of any attribute of an element with jQuery using attr()
We will imagine we have the following HTML code:
Learn More
Recent Comments