Author Topic: [MOD] Recently Viewed Videos  (Read 3923 times)

NL-Extreme

  • Sr. Member
  • ****
  • Posts: 170
Re: [MOD] Recently Viewed Videos
« Reply #15 on: April 17, 2010, 06:24:03 AM »
but now i want     
MOD Related and Member Videos JS Title  in tje titel.
i tride it but that did not work right :d

can you help me out.

bigt11

  • Newbie
  • *
  • Posts: 93
Re: [MOD] Recently Viewed Videos
« Reply #16 on: April 17, 2010, 12:10:58 PM »
can you explain that better, no idea what you are trying to ask for

NL-Extreme

  • Sr. Member
  • ****
  • Posts: 170
Re: [MOD] Recently Viewed Videos
« Reply #17 on: April 17, 2010, 02:26:20 PM »
look at the tumbnail on www.nl-extreme.com

The normal one are with js script, but not the last viewed.
I want to change the value in to js script

mygamebirds

  • Jr. Member
  • **
  • Posts: 132
Re: [MOD] Recently Viewed Videos
« Reply #18 on: April 22, 2010, 09:17:18 PM »
I wanted to have a section of recently viewed videos as I've seen on other sites, so I coded up my own.  Figured I would share.

I'm using the ProMOTION theme right now and version 3.5 of phpmotion, but I made sure this works for the default theme also.  I don't run ads, so I don't know how that might effect websites.  Sorry.  You're on your own there.

Follow the instructions in the zip file depending on your theme.  BTW:  This should work fine for v3.0 also, as I had this running under 3.0 as well.

Demo:  http://www.mcbtv.com
Goto the bottom of the main index page for the "recently viewed" section.

Download: http://www.mcbtv.com/mycode/Recently Viewed Videos.zip

There are two image files, one grey, and one blueish that should fit most themes... Obviously edit the image in photoshop to fit your needs.  I stink at photoshop, so it's close enough for what I can accomplish.

New Files Included:

recently_viewed.php - New File to add to your Root Directory

Files to Edit:  index.php and your main.css file

Enjoy!

Thank you painthappy for sharing this mod.  I'm sure everybody appreciates your hard work!!

mikev

  • Hero Member
  • *****
  • Posts: 647
Re: [MOD] Recently Viewed Videos
« Reply #19 on: April 23, 2010, 01:52:26 PM »
Hi,
Very nice mod.  I made a few changes to match my site. Thank you for sharing.

« Last Edit: August 31, 2010, 02:38:16 PM by mikev »

mygamebirds

  • Jr. Member
  • **
  • Posts: 132
Re: [MOD] Recently Viewed Videos
« Reply #20 on: April 23, 2010, 04:41:44 PM »
Hi,
Very nice mod.  I made a few changes to match my site. Thank you for sharing.

 see it at thegabshack.com

Hi Mike, nice site.  I get a lot of guest, but they don't register.  How did you implement the line on top of your site that notifies them of registering.  I like that, after they register, it goes away right?

Thanks.

mikev

  • Hero Member
  • *****
  • Posts: 647
Re: [MOD] Recently Viewed Videos
« Reply #21 on: April 24, 2010, 12:15:08 AM »
hi mygamebirds,
the bar goes away after a user logs in. there was a X that would turn off the bar even if your not logged in but i removed it.

here is the mod.

http://phpmotion.com/forum/index.php/topic,9909.0.html


mygamebirds

  • Jr. Member
  • **
  • Posts: 132
Re: [MOD] Recently Viewed Videos
« Reply #22 on: May 05, 2010, 09:28:40 PM »
hi mygamebirds,
the bar goes away after a user logs in. there was a X that would turn off the bar even if your not logged in but i removed it.

here is the mod.

http://phpmotion.com/forum/index.php/topic,9909.0.html



Thanks Mike

killakastro

  • Newbie
  • *
  • Posts: 30
Re: [MOD] Recently Viewed Videos
« Reply #23 on: May 17, 2010, 09:24:24 PM »
Hi,
Very nice mod.  I made a few changes to match my site. Thank you for sharing.

 see it at thegabshack.com
nice,  how did you get it to fit that size as opposed to stretching out?

mikev

  • Hero Member
  • *****
  • Posts: 647
Re: [MOD] Recently Viewed Videos
« Reply #24 on: May 18, 2010, 04:00:29 PM »
Hi,
Very nice mod.  I made a few changes to match my site. Thank you for sharing.

 see it at thegabshack.com
nice,  how did you get it to fit that size as opposed to stretching out?

hi, here is what i have in main.css just above this/*---------------------- -- Promoted Videos ----------------------*/

/* Recently Viewed Mod    */
/**************************/
.recently_viewed{
   height: 72px;
   overflow: hidden;
   padding: 8px 0 0 12px;
}
.recently_viewed img{
   width: 105px;
   height: 85px;
}
/* End Recently Viewed Mod */


this is what i have in inner_index.htm just above this<!--Begin Promoted Videos-->

<!--Begin Recent Videos Mod-->
 <div class="header-wide">[var.lang_recently_viewed]</div>
<div class='recently_viewed_con'>
   
       <div class='recently_viewed'>
             <!--[var.recent_list;htmlconv=no;comm]-->
        <br style='clear:both;' />
       </div>
</div>
<!--End Recent Videos Mod-->
 

this is how i edited recently_viewed.php

<?php

///////////////////////////////////////////////////////////////////////////////////////
// PHPmotion                                                http://www.phpmotion.com //
///////////////////////////////////////////////////////////////////////////////////////
// License: You are not to sell or distribute this software without permission       //
// Help and support please visit http://www.phpmotion.com                            //
// Copyright reserved                                                                //
// File: recently_viewed.php                                                         //
// Created by:  M. Carter Brown                                                      //
// Description:  Get's the last 14 most recently viewed videos                       //
///////////////////////////////////////////////////////////////////////////////////////

include_once ('classes/config.php');

   $sql = "SELECT * FROM videos ORDER BY viewtime DESC LIMIT 0, 6";
   $query = mysql_query($sql);
   //get list
   $viewedlist = 0; //no result
   while($result = mysql_fetch_array($query)){

   $recent_video_indexer = $result['indexer'];
   $recent_video_id = $result['video_id'];
   $recent_video_title_seo = $result['title_seo'];
   $recent_video_desc = $result['description'];

$recent_video_title = $result['title'];

   $rlist = "&nbsp;<a href=\"./videos/".$recent_video_indexer."/".$recent_video_title_seo."\"><img src=\"./uploads/thumbs/".$recent_video_id.".jpg\" title=\"".$recent_video_title."\"/>[/url]&nbsp;";

   $recent_list = $recent_list.$rlist;
   $viewedlist = 1; //results found
   }

//NOTES >> You can call run through this array in any other script such as showing members page with their online status
// simply include this whole script


?>

this is what i added to lang/english

$lang_recently_viewed                                = 'Recently Viewed';



that's everything i have done to make it look like it does.

thewall68

  • Newbie
  • *
  • Posts: 15
Re: [MOD] Recently Viewed Videos
« Reply #25 on: July 10, 2010, 09:47:22 AM »
Hi, great mod

Its possible have it at the top (under the header) instead of bottom ?

I think yes, but Im not a php expert

thx

 :)

buxton161

  • Newbie
  • *
  • Posts: 54
Re: [MOD] Recently Viewed Videos
« Reply #26 on: May 23, 2011, 12:53:12 AM »
Can anyone figure out to use this for:

Most Viewed |  Most Recent |  Most Commented | 

Members ?

Thank you.

surjeett

  • Newbie
  • *
  • Posts: 7
Re: [MOD] Recently Viewed Videos
« Reply #27 on: September 11, 2011, 09:46:32 AM »
Its fun but i miss 1 thing.
if you go over the tymbnail with your mouse there is no titel
Can sombody help me out here becouse i want to have a titel when i mouse over the tumbnail.


in recently_viewed.php

under
     $recent_video_desc = $result['description'];

add
     $recent_video_title = $result['title'];


change the $rlist variable to ,all 1 line
     $rlist = "&nbsp;<a href=\"./videos/".$recent_video_indexer."/".$recent_video_title_seo."\"><img src=\"./uploads/thumbs/".$recent_video_id.".jpg\" title=\"".$recent_video_title."\"/>[/url]&nbsp;";



I'm not able to get this working, no title appears on mouseover.
Moreover "[/url]" keeps showing up, even after i delete "[/url]" titles still dont show on mouseover.
I wonder where have i gone wrong.
This is what i get :-


michelleann

  • Newbie
  • *
  • Posts: 31
Re: [MOD] Recently Viewed Videos = Dif Location
« Reply #28 on: September 17, 2011, 07:20:20 PM »
Great Mod!

Instead of placing at the bottom of the page, I placed mine directly under the advertising banners. Works great there! IF you wish to look, check out http://socialvideoshare.com

the placement was just underneath: <!--Begin Left Column--><title>ads</title>
and just before: <div id="column-left-1"> 

using default template spiced up a bit.

MichelleAnn