[eluser]ebot[/eluser]
Here are the views both the one displaying the video and the on watching video playing:
Code:
<div class="videos">
<?php if($videos->num_rows() == 0){
echo 'No video was found, please use \'Create a new video\' link above to add a new video';
}?>
<?php
foreach($videos->result() as $postblogs){
echo "<h2><a href='#'>".$postblogs->title."</a></h2>";?>
<i class="postinfo"><img src="<?=base_url();?>images/ico_auth.jpg" alt="Author" /> : <?=$postblogs->author?></i>
Date Posted : <?=$postblogs->date?></i><br />
<img >thumbnail;?>" title="<?=$postblogs->title;?>"><br>
<b class="post_end"><img src="<?=base_url()?>images/ico_link.jpg" alt="permalink" />
<a >video_id?>" title="<?=$postblogs->title;?>">Play this video</a>
<img src="<?=base_url()?>images/ico_com.jpg" alt="Comment" width="18" height="13" />Comments(<?=$this->videoM->getVideoCommentCount($postblogs->video_id);?>)
</b>
<?
echo "<br />";
echo "<br />";
echo "<br />";
echo "<br />";
echo "<br />";
}
?>
<?php
//$this->load->library('pagination');
$config['base_url'] = base_url().'myvideo/videos';
$config['total_rows'] = $totalNum;
$config['per_page'] = $perpage;
$config['full_tag_open'] = '<p>';
$config['full_tag_close'] = '</p>';
$this->pagination->initialize($config);
echo $this->pagination->create_links();
?>
</div>
the view for watching the video
Code:
<div class="post">
<h1 style="color:#333333;">You're watching a video! ^_^<sup>?</sup></h1>
<br/>
<br/>
<br/>
<?php foreach ($video as $field): ?>
<h3>Title: <?=$field->title;?></h3><br/>
<i class="postinfo"><img src="<?=base_url();?>images/ico_auth.jpg" alt="Author" /><sub style="font-size:8px;">Author</sub> : <?=$field->author;?></i>
Date Posted: <?=$field->date;?><br/>
<img src="<?=base_url()?>images/ico_com.jpg" alt="Comment" width="18" height="13" />Comments(<?=$Videocount;?>)
<br/>
<br/>
[removed][removed]
<a
>vid;?>"
style="display:block;width:425px;height:300px;"
id="player">
</a>
[removed]
flowplayer("player", "<?=base_url();?>flowplayer-3.1.1.swf");
[removed]
<br/>
<br/>
<?php endforeach;?>
for the player (flowplayer-3.1.1) whi you can get from : <a href="flowplayer.org">flowplayer</a>
if any problem or enquiries, please do drop me mail at ebot.tabi[at]gmail[dot]com or PM me
thanks