I’m starting to get lost customizing all the plugins I’m using. regarding this plugin, I won’t be using all of the wonderful features it has to offer (like shortcodes, etc.), rather I will only be using the following code in my theme (hardcoded):
/* Load the "Related YouTube Videos" API class if it does not exist yet. */
if( !class_exists( 'RelatedYouTubeVideos_API' ) ) {
$file = str_replace( '/', DIRECTORY_SEPARATOR, ABSPATH ) . 'lib' . DIRECTORY_SEPARATOR . 'RelatedYouTubeVidoes' . DIRECTORY_SEPARATOR . 'API.php';
if( file_exists( $file ) ) {
include_once $file;
}
}
/* Only continue if the API class could be loaded properly. */
if( class_exists( 'RelatedYouTubeVideos_API' ) ) {
$RytvAPI = new RelatedYouTubeVideos_API();
/* Do your configuration */
$data = $RytvAPI->validateConfiguration(
array(
'relation' => 'postTitle',
'max' => '3',
'width' => 150,
'height' => 150
)
);
/* Search YouTube. */
$results = $RytvAPI->searchYouTube( $data );
/* Create your very own custom HTML */
if( !empty( $results ) ) {
foreach( $results as $video ) {
$videoID = ( isset( $video['videoID'] ) ) ? $video['videoID'] : '';
$videoLink = ( $videoID !== '' ) ? 'https://www.youtube.com/watch?v=' . $videoID : 'javascript:void(0);';
echo '<a href="' . $videoLink . '"><img src="https://img.youtube.com/vi/' . $videoID . '/0.jpg" alt="" width="150" height="150" /></a>' . "\n";
}
}
}
I’m hoping to minimize the plugin as much as possible, so if I want to make changes (customizations like making the video thumbnails open in a lightbox, etc.), I will be able to navigate a smaller number of pages to find what code I’ll need to work with to achieve my desired results.
So, my question is: If all I will be using is the code above in my theme, is there a drastically smaller number of files I’ll only need?
I’m hoping you can tell me which files I’ll need to keep (or which files I can delete and still have the plugin work with the hardcoded code above).
This request may be expecting too much from you and if so I completely understand. Regardless, I thank you again for your wonderful contribution;
Dana
https://www.ads-software.com/plugins/related-youtube-videos/
]]>I can add just a slider, but I would rather it have the featured posts from the hoe page and preferable be full page width under the menu bar.
My site – www.monsieurandmoi.com
Thanks..
Coen.
]]>We started InforRids https://inforids.com/ on this excellent platform & found that its amazing.
We can see here too many Happy people using WordPress. Its a platform that gives untapped power to theme developers, Designers & of-coarse gives Blogger to speak out what they want to.
We thanks WordPress & those you are coming with the latest interesting things here. We love this community & people also.
]]>the page button do hover but when i select a specific page the button for that page doesn’t appear in a different color.
here u can see the problem: www.blinked.de
here is my relating css code:
#navcontainer ul
{
padding: 0;
margin: 0;
background: #5F707A;
border-top: 1px solid #DFDFDF;
border-bottom: 1px solid #DFDFDF;
float: left;
width: 729px;
font: 15px arial, helvetica, sans-serif;
}
#navcontainer ul li { display: inline; }
#navcontainer ul li.page_item a
{
padding: 8px 14px 9px 14px;
background: #000000;
color: #CCCCCC;
text-decoration: none;
font-weight: bold;
float: left;
border-right: 1px solid #FFFFFF;
}
#navcontainer ul li.page_item a:hover
{
color: #FFFFFF;
background: #C9C0B0;
}
#navcontainer ul li.current_page_item a
{
padding: 8px 14px 9px 14px;
background: #C9C0B0;
color: #CCCCCC;
text-decoration: none;
float: left;
border-right: 1px solid #DFDFDF;
}
#navcontainer ul li.current_page_item a:hover
{
background: #6F6F6F;
}
Any help please?
Here’s the error message:
WordPress database error: [Unknown column ‘time_modified’ in ‘order clause’]
SELECT * FROM waitepost_posts WHERE post_status = ‘static’ ORDER BY time_modified ASC
This can temporarily be seen at www.waitepost.com until I either find a fix or change themes.
The theme is available at https://www.alexking.org/software/wordpress/theme_browser.php.
Would appreciate any ideas on how to fix this–my database knowledge is, shall we say, limited!
]]>