Author Topic: MOD Related and Member Videos JS Title  (Read 2412 times)

EMPEROR_SO

  • V3 Beta Tester
  • Full Member
  • *
  • Posts: 398
MOD Related and Member Videos JS Title
« on: December 18, 2009, 04:53:00 AM »
Are you bored of not having titles in the related and member videos ? are you bored of waiting to see the alt title? well im..

here a little trick to see the full titles  ;D

DEMO (mouse over related videos and member videos thumbs):http://www.para-tube.com/videos/313/video-of-paranormal-activity
DEMO (mouse over the thumbs): http://www.para-tube.com





STEP 1:

add this to your main.css file

Code: [Select]
#tt {position:absolute; display:block; background:url(images/js/tt_left.gif) top left no-repeat}
#tttop {display:block; height:5px; margin-left:5px; background:url(images/js/tt_top.gif) top right no-repeat; overflow:hidden}
#ttcont {display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF}
#ttbot {display:block; height:5px; margin-left:5px; background:url(images/js/tt_bottom.gif) top right no-repeat; overflow:hidden}

STEP 2:

add this to main_1.htm

Code: [Select]
<script type="text/javascript" language="javascript" src="[var.base_url]/javascripts/script.js"></script>
STEP 3:

3.1 Download the attached file
3.2 Make a folder "js" in your root/images/ folder and put the attached images in it
3.3 Put script.js in the /javascripts/ folder

STEP 4:

4.1 Open inner_play.htm in the templates folder
4.2 Replace

Code: [Select]
<img src="uploads/thumbs/[blk2.video_id;block=div].jpg" title="<!--[blk2.title;block=div;comm]-->" width="80" height="60" border="0" alt="Preview" style="border:2px solid #DDDDDD;" onmouseover="this.style.border='2px solid #0099FF'" onmouseout="this.style.border='2px solid #DDDDDD'" /></a>
With

Code: [Select]
<img onmouseover="tooltip.show('<strong><!--[blk2.title;block=div;comm]--></strong>');" onmouseout="tooltip.hide();" src="uploads/thumbs/[blk2.video_id;block=div].jpg" width="80" height="60" border="0" alt="Preview" style="border:2px solid #DDDDDD;" onmouseover="this.style.border='2px solid #0099FF'" onmouseout="this.style.border='2px solid #DDDDDD'" /></a>
4.3 Replace

Code: [Select]
<img src="uploads/thumbs/[blk1.video_id;block=div].jpg" title="<!--[blk1.title;block=div;comm]-->" width="80" height="60" border="0" alt="Preview" style="border:2px solid #DDDDDD;" onmouseover="this.style.border='2px solid #0099FF'" onmouseout="this.style.border='2px solid #DDDDDD'" /></a>
With

Code: [Select]
<img onmouseover="tooltip.show('<strong><!--[blk1.title;block=div;comm]--></strong>');" onmouseout="tooltip.hide();" src="uploads/thumbs/[blk1.video_id;block=div].jpg" width="80" height="60" border="0" alt="Preview" style="border:2px solid #DDDDDD;" onmouseover="this.style.border='2px solid #0099FF'" onmouseout="this.style.border='2px solid #DDDDDD'" /></a>
STEP 5 (Optional) :
To add this Mod to the other files just add the script in the img tag of the thumbernail and replace "TITLE VAR" with the title variable

Code: [Select]
onmouseover="tooltip.show('<strong>TITLE VAR</strong>');" onmouseout="tooltip.hide();"
END



« Last Edit: December 18, 2009, 07:28:42 PM by EMPEROR_SO »

sbcjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6247
    • PHPmotion Mods
Re: MOD Related and Member Videos JS Title
« Reply #1 on: December 18, 2009, 05:16:58 AM »
Nice!  Thanks for sharing this!

priceyboy

  • Full Member
  • ***
  • Posts: 221
Re: MOD Related and Member Videos JS Title
« Reply #2 on: December 18, 2009, 05:59:13 AM »
Nice..
Will probally have go at this over the weekend... will update you.

Priceyboy

mikev

  • Hero Member
  • *****
  • Posts: 647
Re: MOD Related and Member Videos JS Title
« Reply #3 on: December 18, 2009, 12:32:34 PM »
thank you! nice mod EMPEROR_SO it works great. it need a few changes for the promotion template.

find this in promotion inner_play.htm
<img src="uploads/thumbs/[blk2.video_id;block=div].jpg" title="<!--[blk2.title;block=div;comm]-->" width="100" height="80" alt="Preview" />[/url]
and replace with this
<img onmouseover="tooltip.show('<strong><!--[blk2.title;block=div;comm]--></strong>');" onmouseout="tooltip.hide();" src="uploads/thumbs/[blk2.video_id;block=div].jpg" width="100" height="80" border="0" alt="Preview" style="border:2px solid #DDDDDD;" onmouseover="this.style.border='2px solid #0099FF'" onmouseout="this.style.border='2px solid #DDDDDD'" />[/url]
find this in promotion inner_play.htm
<img src="uploads/thumbs/[blk1.video_id;block=div].jpg"
title="<!--[blk1.title;block=div;comm]-->" width="100"
height="80" alt="Preview" />[/url]
and replace with this
<img onmouseover="tooltip.show('<strong><!--[blk1.title;block=div;comm]--></strong>');" onmouseout="tooltip.hide();" src="uploads/thumbs/[blk1.video_id;block=div].jpg" width="100" height="80" border="0" alt="Preview" style="border:2px solid #DDDDDD;" onmouseover="this.style.border='2px solid #0099FF'" onmouseout="this.style.border='2px solid #DDDDDD'" />[/url]



EMPEROR_SO

  • V3 Beta Tester
  • Full Member
  • *
  • Posts: 398
Re: MOD Related and Member Videos JS Title
« Reply #4 on: December 18, 2009, 03:06:55 PM »
with step 5 just replace the title var and put that in your img tag

Acidztrip

  • Newbie
  • *
  • Posts: 20
Re: MOD Related and Member Videos JS Title
« Reply #5 on: January 10, 2010, 02:59:03 PM »
thanks for the mod....

but which file contains that other mouseover that pops up? 
I went to para-tube and on mouseover both boxes come up... the new one and the original one that says "preview", "thumb", and "video pic".

I would like to add this mod but get rid of the other... thanks again

epinett

  • Guest
Re: MOD Related and Member Videos JS Title
« Reply #6 on: January 17, 2010, 11:00:30 AM »
Hello,
just wanted to fix some bugs on this MOD

the Code in Step 1 must be remplaced with this:
Code: [Select]
#tt {position:absolute; display:block; background:url(../images/js/tt_left.gif) top left no-repeat}
#tttop {display:block; height:5px; margin-left:5px; background:url(../images/js/tt_top.gif) top right no-repeat; overflow:hidden}
#ttcont {display:block; padding:2px 12px 3px 7px; margin-left:5px; background:#666; color:#FFF}
#ttbot {display:block; height:5px; margin-left:5px; background:url(../images/js/tt_bottom.gif) top right no-repeat; overflow:hidden}

- Because when you added something in main.css that means it's main directory is the (custom)Themes folder.

and in the Step 3:
change this:  3.2 Make a folder "js" in your root/images/ folder and put the attached images in it
to:
3.2 Make a folder "js" in your root/themes/user_themes/images/folder and put the attached images in it

and the Result is better demo here: http://www.motion.tubehost.co.uk/videos/238/k2W4-0qUdHY

evilgenius

  • Jr. Member
  • **
  • Posts: 104
Re: MOD Related and Member Videos JS Title
« Reply #7 on: January 17, 2010, 01:47:18 PM »
i tried this
'
dont seem to work on promoted section on main page and it works on sections under it

but looks different than the one that popsup under related

http://www.fragvidz.com

epinett

  • Guest
Re: MOD Related and Member Videos JS Title
« Reply #8 on: January 17, 2010, 02:25:12 PM »
i tried this
'
dont seem to work on promoted section on main page and it works on sections under it

but looks different than the one that popsup under related

http://www.fragvidz.com

But it works also great on promoted Videos. Demo Here : http://www.motion.tubehost.co.uk

evilgenius

  • Jr. Member
  • **
  • Posts: 104
Re: MOD Related and Member Videos JS Title
« Reply #9 on: January 17, 2010, 03:03:00 PM »
not for mine :(

lhamas

  • Newbie
  • *
  • Posts: 17
Re: MOD Related and Member Videos JS Title
« Reply #10 on: April 13, 2010, 02:44:41 PM »
Thanks!!!

Henrique
www.futetube.net

NL-Extreme

  • Sr. Member
  • ****
  • Posts: 170
Re: MOD Related and Member Videos JS Title
« Reply #11 on: April 17, 2010, 06:22:59 AM »
« Last Edit: April 17, 2010, 09:53:03 PM by NL-Extreme »

NL-Extreme

  • Sr. Member
  • ****
  • Posts: 170
Re: MOD Related and Member Videos JS Title
« Reply #12 on: April 22, 2010, 01:27:40 PM »
Watch out.
If you use this script, it works 100%.
Be sure u dont have a " orwe a ' in youre titel.
You will get a error down in youre screen (in IE)

ferdon

  • Newbie
  • *
  • Posts: 1
Re: MOD Related and Member Videos JS Title
« Reply #13 on: August 24, 2010, 02:48:00 AM »
Dank u wel