Aug
10
Posted by Mario Mansour in Tube Press, features
ThumbView is a custom view for wordpress. No matter what wordpress template you are using, ThumbView uses a thumbnail image of the imported video with a text description underneath. If you click on the title of the post or on the thumbnail image you enter the post page that you can also customize what to display (Video length, author, average rating, tags, number of views, uploaded date)














October 26th, 2007 at 3:57 am
Where can I get the ThumbView Plugin?
October 26th, 2007 at 4:07 am
Graham: ThumbView is an option within TubePress. It allows you to display the imported videos from youtube as thumbnails in certain pages where many posts are listed (main page, archive, category)
You should download TubePress click on the Download icon on the right and install TubePress, you will find ThumbView in the setup menu.
If you need more help please let me know
October 26th, 2007 at 6:37 am
Thanks for the help…
I have installed TubePress, but I get the following error when I try to Import my videos:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /hsphere/local/home/alexande/youtubecurated.com/blog/wp-content/plugins/youtube/class.youtube.php on line 15
Any idea what that could be?
October 26th, 2007 at 6:50 am
TubePress requires PHP5 to work. The error you got is due because you don’t have PHP5 installed.
Most hosting companies offer both PHP4 and PHP5, you could choose it from your control panel. If you don’t have PHP5 then you can ask your hosting provider to install for you.
October 30th, 2007 at 9:04 am
okay, I switched to PHP5. But I still encounter some problems. If I import my favorites, it only takes the 10 latest and not the entire youtube favorite archive I have. Also, I do get the following error message, even though, the videos (the 10 latest) show up in the blog:
WordPress database error: [Table ‘abenz2_youtube.wp_categories’ doesn’t exist]
SELECT cat_ID FROM wp_categories WHERE cat_name=’abenz0101′
also, if I set (show user comment) to no it still shows all the user comments.
Would be great if you could help me with this
October 30th, 2007 at 12:28 pm
Graham: what version of Wordpress do you have? The error message is completely strange to me. I assume your database name is abenz2_youtube right?
and if your wordpress setup worked fine, then a table called wp_categories should exist in your database.
- For some reason I forgot to add 2 input boxes in the Favorite Videos section like in My Videos to set the number of videos you want to import (10 is the default number)
I will update the plugin and upload to the site.
- The user comment checkbox does not enable the view/ hide comments, but it allows you to choose whether you want to import the comments or not. This means that this affects the import action. If you choose to import the comments then they are stored in your wordpress database. You can control this from the admin menu > Comments to delete, spam, edit … You can also choose not import any comment at all.
Note that all the presentation related settings are grouped in the TubePress menu under TubePress Setup (the first tab) this is where you can control the view.
Please let me know if you have other issues
October 30th, 2007 at 2:02 pm
Graham: I have checked again the 10 videos limitation. Unfortunately, Youtube doesn’t allow you to specify the number of videos you want to import from the Favorite Video list like it does for the User List or a keyword search.
More info can be found in this page
http://www.youtube.com/dev_api_ref?m=youtube.users.list_favorite_videos
October 30th, 2007 at 2:29 pm
Thanks for your reply…
I have installed the latest version of Wordpress (2.3.1) and to be sure, I reinstalled it again.
Yes, abenz_youtube is the database name.
After I reinstalled both, wordpress and tubepress, I get the following error message when trying to import my favorites:
WordPress database error: [Table ‘abenz2_youtube.wp_post2cat’ doesn’t exist]
INSERT INTO wp_post2cat (`post_id`, `category_id`) VALUES (3, 0)
WordPress database error: [Table ‘abenz2_youtube.wp_categories’ doesn’t exist]
SELECT cat_ID FROM wp_categories WHERE cat_name=’graffiti’
Strangely enough, they do show up in my blog, but all the settings are reset every time I go back to the tubepress plugin.
Thank you so much for all the help
October 30th, 2007 at 2:56 pm
WP 2.3.1 ! Now I understand…I haven’t got the time to test my plugin on this version yet. I’ve been too busy lately, but I will try to see what are the changes and adapt my plugin to them. It seems like by including the “tag” option to this new wordpress, they have changed something to the database structure. I will check it out and fix my wordpress plugin accordingly. Thanks for your patience and understanding.
I’m very glad that you are interested in this plugin and testing it on your website and blog. This pushes me to develop it more and more to meet your requirements.
Please all comments, requirements, suggestions, questions are welcomed!
October 30th, 2007 at 3:05 pm
Great, thank you very much.
I think your plugin is great. It does exactly what I was looking for. One option that I am “missing” is to be able to turn off the “About This Video” text. I know I can manually edit it later, but It would be sweet if it could be left away, or , alternatively be limited to two lines.
Looking forward to the new updated plugin. If you don’t have time, and I would downgrade my wordpress software, how far back do I have to go to make it work? 2.3?
October 30th, 2007 at 3:29 pm
I don’t really understood what you mean by the “About This Video” text. Do you mean the video description? I could add it as an option to the TubePress Setup menu, so you can check the box to show/hide the video description. However, the plugin will always import this text and store it in the database. The reason that I didn’t implemented is that it doesn’t give that much power. If you decide to show or hide the description then this action will applies to all the imported videos. (Perhaps sometimes you want to hide the description), what will be more powerfull is the access to the text as a normal post, change it, delete it, do whatever you want to EACH post independently.
But I can add the show/hide description as well in the next version !!
October 31st, 2007 at 12:36 am
Yes, maybe you are right. Maybe it is easier to manually edit the text once it is too long or too strange. Most of them are okay to start with.
One more thing I thought about that would be nice. Could it be possible to import single youtube videos without having to import whole categories? Sometimes I come across something that I like and could see in my blog, but don’t want to add to my favorites.
January 8th, 2008 at 3:59 am
Hi Mario,
I’ve just discovered your fantastic plugin (BIG thanks for taking the time to put it together!).
I was wondering if you help me with the following:
I am building a site that will use your plugin and I would like to display the thumbnail for the latest video I have imported on the homepage. I want to create a ’static’ home page (under ‘Options’ > ‘Reading’ in the admin centre) using a template that I will create that will be different from the blog.
Is there a PHP snippet I can use or some way you can think of that will allow me to pull in a video thumbnail into this template page?
Many thanks,
Scott.
January 8th, 2008 at 5:58 am
Hi Scott,
The static page is still part of the wordpress template which means that you can still use all wordpress functions to pull out data from your database.
The videos you import using my plugin will be stored in the database as normal posts you would write from the WP admin panel. If you go inside Manage > Posts and edit a post that contains video information you can see the pattern I use to store the information.
[ID]IbrUmPnL11Q[/ID] …etc
A solution would be to hook the_content() functions presented by WordPress. In which u can search for the THUMBNAIL tag and parse it in an html image tag.
I hope this helps you with your project..if you have other questions please let me know.
January 8th, 2008 at 6:40 am
Hi Mario,
Many thanks for your response.
I follow what you are saying and had noticed that the ID etc were stored in the database. I had also had a quick look through the youtube.php file itself to see if I could get any clues as to how you were pulling in the thumbnails for the category pages. However, my PHP isn’t too hot which why I had asked if there was any neat little snippet or template tag from your plugin that I could use.
I had thought that a mini loop would do the trick but it was here I ran into the issue of how to hook into ID value and use that as part of the URL for the thumbnail:
“>
This may not be the way to go though. As I say, my knowledge of PHP isn’t great and I’m only using bits of code that I can follow from the Wordpress Codex.
I appreciate that I’m essentially trying to do something out-with the normal operation of your plugin, but if there is any help you can provide here I would be extremely grateful.
Best wishes,
Scott.
January 8th, 2008 at 6:43 am
Ooops! It looks like the comment system has removed the example PHP code I had written. Is it possible to send you an e-mail directly Mario?
Cheers,
Scott.
January 8th, 2008 at 7:11 am
Here’s a tip
in youtube.php locate the function tp_filter_content then inside the code locate the condition that says
if ((is_home() || is_archive() || is_category()) && $options[’is_thumb’])
inside this if condition is the display code in Homepage, Archive and Category pages in case ThumbView option is selected
The code here will display thumbnail images.
You can split this code by creating a sub condition for is_home() to create custom design for Homepage as follows
if ((is_home() || is_archive() || is_category()) && $options[’is_thumb’])
if (is_home()) {
//write your code in here
} else {
// here u can keep my code
}
note that there’s another else later on in this function
} else {
//here comes the part where you display the video which means ThumbView is not selected or you are viewing a post.
January 8th, 2008 at 8:16 am
Hi Mario,
I’ve managed to solve this in part using a mini loop and your guidance on where the appropriate function lay in the youtube.php file.
I also had to change the ‘Front Page’ section in ‘Options’ > ‘Reading’ back to the default ‘Front Page displays your latest posts’. From there I re-created the homepage template as home.php and everything seemed to work fine.
Again, many thanks for your help and a fantastic plug-in.
All the best,
Scott.