Ondersteuning » Algemeen WordPress » externe site in wordpress theme

  • hallo allemaal.

    ik heb voor men radio zender sam broadcast.
    hiervan gebruik ik het request systeem.
    deze wil ik echter in men site ook actief hebben.
    nu heb ik elf geprobeerd een aan gepast theme bestand te maken.
    waarin ik probeer de site in te voegen.
    echter dit lukt tot op heden niet.
    de pagina die in gevoegd moet worden is: http://www.jenp.net/wp-zelf/sam-php/web/playlist.php
    hij staat op de zelfde server als wordpress.
    wordpress staat in /var/www
    en de sam php bestanden staan in /var/www/wp-zelf/sam-php waarvan de playlist in de onderliggende map /web staat.
    de code die ik heb ge maakt en die dus nog niet werkt is als volgt

    <?php
    /*
    Template Name: sam playlist
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="wrapper1">
       <div id="wrapper2">
    	<div id="container">
    
    	 <?php get_sidebar(); ?>
    
    	   <?php get_template_part( 'nav' ) ; // left column navigation ?>
    
    	   <div id="page_content">
    	   <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	   <div <?php post_class(); ?>  id="post-<?php the_ID(); ?>">
    		  <h1><?php the_title();
    		  include "/wp-zelf/sam-php/web/playlist.php";
    		   ?></h1>   
    
    		    <!-- <?php trackback_rdf(); ?> -->
    
    		  <div class="page-link">
    			 <?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=Page %'); ?>
    		  </div>
    
    		  <div class="edit-link">
    			 <?php edit_post_link( __('Edit', 'tpSunrise'), '<p>', '</p>' ); ?>
    		  </div>
    	   </div>
    	   <?php endwhile; else: ?>
    	   <p><?php _e('Sorry, no posts matched your criteria.', 'tpSunrise'); ?></p><?php endif; ?>
    
    	   <?php comments_template(); // Get wp-comments.php template ?>
    
    	   	<?php if( is_front_page() ) {  // for home page only do second loop to get 4 most recent post excerpts ?>
    		   <div id="recent_posts">
    		   <h2>Recent Blog Posts</h2>
    		   <?php $args = array( 'numberposts' => 4 );
    		   global $post;
    		   $recent_posts_array = get_posts( $args );
    		   foreach( $recent_posts_array as $post ) : setup_postdata($post); ?>
    			<li class="recent_posts_item"><a>" class="recent_posts_title"><?php the_title(); ?></a>
    			<div id="recent_posts_meta">
    			   <p>Posted by <?php the_author(); ?> on <?php the_time( get_option('date_format') ); ?>
    			</div>
    			<?php the_post_thumbnail('thumbnail', array('class' => 'alignleft')); ?>
    			<?php the_excerpt(); ?>
    			<a>">Read The Full Post</a>
    		   <?php endforeach; ?>
    		   </div>
    
    		<?php } ?>
    
    	   </div> <!-- page content -->
    
    	   </div> <!-- container -->
    
    	   <?php if( is_front_page() ) {  // for home page only - script to control clickable image resizing ?>
    		<script type="text/javascript">
    		jQuery(document).ready(function() {
    
    		function imageresize() {
    		   var contentwidth = jQuery('#page_content').width();
    		   if ((contentwidth) < '660'){ // little window
    			jQuery('#relaxmenu a').css({
    			   'height': '150px',
    			   'width': '475px',
    			   'background': 'url(/images/body_button_sm.jpg) 0 0 no-repeat'
    			});
    			jQuery('#pleasuremenu a').css({
    			   'height': '150px',
    			   'width': '475px',
    			   'background': 'url(/images/pleasure_button_sm.jpg) 0 0 no-repeat'
    			});
    			jQuery('#passionmenu a').css({
    			   'height': '150px',
    			   'width': '475px',
    			   'background': 'url(/images/passion_button_sm.jpg) 0 0 no-repeat'
    			});
    			// handle hovers - adjust sliding windows
    			jQuery('#relaxmenu a').mouseenter(function(){
    			   jQuery(this).css('background-position', '0px -150px');
    			}).mouseleave(function(){
    			   jQuery(this).css('background-position', '0 0');
    			});
    			jQuery('#pleasuremenu a').mouseenter(function(){
    			   jQuery(this).css('background-position', '0px -150px');
    			}).mouseleave(function(){
    			   jQuery(this).css('background-position', '0 0');
    			});
    			jQuery('#passionmenu a').mouseenter(function(){
    			   jQuery(this).css('background-position', '0px -150px');
    			}).mouseleave(function(){
    			   jQuery(this).css('background-position', '0 0');
    			});			
    
    		   } else { // big window
    			jQuery('#relaxmenu a').css({
    			   'height': '200px',
    			   'width': '633px',
    			   'background': 'url(/images/body_button.jpg) 0 0 no-repeat'
    			});
    			jQuery('#pleasuremenu a').css({
    			   'height': '200px',
    			   'width': '633px',
    			   'background': 'url(/images/pleasure_button.jpg) 0 0 no-repeat'
    			});
    			jQuery('#passionmenu a').css({
    			   'height': '200px',
    			   'width': '633px',
    			   'background': 'url(/images/passion_button.jpg) 0 0 no-repeat'
    			});
    			// handle hovers - adjust sliding windows
    			jQuery('#relaxmenu a').mouseenter(function(){
    			   jQuery(this).css('background-position', '0px -200px');
    			}).mouseleave(function(){
    			   jQuery(this).css('background-position', '0 0');
    			});
    			jQuery('#pleasuremenu a').mouseenter(function(){
    			   jQuery(this).css('background-position', '0px -200px');
    			}).mouseleave(function(){
    			   jQuery(this).css('background-position', '0 0');
    			});
    			jQuery('#passionmenu a').mouseenter(function(){
    			   jQuery(this).css('background-position', '0px -200px');
    			}).mouseleave(function(){
    			   jQuery(this).css('background-position', '0 0');
    			});
    
    		   }
                };
    
    		imageresize(); // triggers when document first loads
    		jQuery(window).bind("resize", function(){ // when browser resized
    		   imageresize();
    		});
    
    		});
    		</script>
    	   <?php } 
    
    	   get_footer(); ?>

    de volgende regel zou moeten verwijzen naar de sam playlist: include “/wp-zelf/sam-php/web/playlist.php”;
    echter kan het dus zijn dat de regel niet klopt of de verkeerde plaats staat.
    echter kom ik er niet uit.
    hopelijk is er iemand die me kan helpen het wel werkende te krijgen.

    groeten: peter

1 reactie aan het bekijken (van in totaal 1)
1 reactie aan het bekijken (van in totaal 1)
  • Het onderwerp ‘externe site in wordpress theme’ is gesloten voor nieuwe reacties.