vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=263822

BirdOPrey5 26 May 2011 17:35

If anyone is running AME 2.5 (automatic media embedder) I have figured out how to have embedded videos made smaller in the mobile style so they can still be watched inside posts.

In the file ame_bbcode.php that came with the AME mod (in your /includes directory)

find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and below it Add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change 38 to the styleid of your mobile style.

Yo can set absolute heights and widths if you prefer, I am calculating it as a fraction of my set values which words well for me. You can experiment with the exact numbers to find what works best for you.

Installed
by Leongsam
30 May 2011 22:30

Installed.

Paul M 01 Jun 2011 19:59

Tagged to look at later in the month.

Stephan Whelan 11 Jun 2011 20:37

Quote:

Originally Posted by BirdOPrey5 (Post 2200239)
If anyone is running AME 2.5 (automatic media embedder) I have figured out how to have embedded videos made smaller in the mobile style so they can still be watched inside posts.

In the file ame_bbcode.php that came with the AME mod (in your /includes directory)

find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and below it Add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change 38 to the styleid of your mobile style.

Yo can set absolute heights and widths if you prefer, I am calculating it as a fraction of my set values which words well for me. You can experiment with the exact numbers to find what works best for you.

Thanks for this - however doesn't seem to work on our site. E.g. look at this thread via a browser - doesn't seem to make a difference:

http://forums.deeperblue.com/test-forum/91308-test.html

BirdOPrey5 11 Jun 2011 22:13

Quote:

Originally Posted by Stephan Whelan (Post 2206346)
Thanks for this - however doesn't seem to work on our site. E.g. look at this thread via a browser - doesn't seem to make a difference:

http://forums.deeperblue.com/test-forum/91308-test.html

A couple of things... Make sure you make a video post AFTER making the file change. Otherwise it may take hours or days for the cache to update to show the smaller video.

Second, check the youtube definition you're using- if the height and width are hard coded numbers this won't work. Width and height must be set to $ameinfo[width] and $ameinfo[height].

Stephan Whelan 11 Jun 2011 23:06

Joe,

Thanks for that - unfortunately still doesn't work. I've confirmed the /includes/ame_bbcode.php has the change you've suggested, as well as the youtube definition having $ameinfo[width] and $ameinfo[height].

Any further ideas?

BirdOPrey5 11 Jun 2011 23:21

I joined your forum to take a look but I don't see the mobile style as an option- do you have it public? If so what is the styleid number?

You can see how it works on my forum:
Mobile Style: http://www.juot.net/forums/showthrea...000&styleid=38
Regular Style: http://www.juot.net/forums/showthrea...0000&styleid=1

Stephan Whelan 11 Jun 2011 23:46

Indeed - we normally disable the style selector (it is set automatically based on browser accessing the site) but i've re-enabled it for now.

BirdOPrey5 12 Jun 2011 00:12

1 Attachment(s)
It's working... I just posted a video, here is a screen shot:

The older videos will turn small once the cache expires for them. I think you can force the issue by editing the post and re-saving it.

But in time all the videos will be small on the mobile style, as will all new videos.

Stephan Whelan 12 Jun 2011 20:13

Joe - it does work well indeed.

Another question to the group...I see that when I use the style assignment mod (http://www.vbulletin.org/forum/showthread.php?t=173239) the link at the top of the page (default style, etc...) won't allow visitors to switch styles to the full blown version. I know that is a default option on that Mod but any ideas on how it might work in conjunction with this style?

dartho 13 Jun 2011 04:05

Try this on for size:

In AdminCP->Plugins & Products->Add New Plugin create a new plugin for product: vBulletin, hook location: style_fetch, Title: Mobile Detection, Execution Order: 5 Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

edit the first 3 lines of the plugin code to suit your purposes (should be self explanatory) and see how you go. Make sure you disable any mobile detect type scripts/plugins you may have running such as the one you linked to in your last post whilst testing this. Also be aware that you should probably do testing under a standard user account as administrator accounts have different permissions when it comes to style selections.

Please feedback how it goes.

Stephan Whelan 13 Jun 2011 07:24

Worked a treat Dartho!

dartho 13 Jun 2011 12:39

Good to hear.

plazzman 13 Jun 2011 20:26

Quote:

Originally Posted by dartho (Post 2197152)
If you link me up with an example, I could look. via PM is OK.
Worked it out. Not highlight is 'hot' new threads (thread_hot_new). I'll fix that up.

To fix, edit the CSS, search for

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

search for

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks for the code for default style link, I'll put that in.

First off, absolutely love this template. Real smooth, last one I had was so convoluted.

Bit of a noob here though. Can you please explain to me where I can actually find those CSS changes?

Also, is it possible to just change the colours of the theme to make it fit my forum a bit better? Full credit/royalty would still apply obviously

Thanks alot

dartho 14 Jun 2011 00:03

Those changes have been implemeneted in the last release - just make sure you uploaded the lightweight.css.php file to your forum root from the last zip.

It is also this file where you can make changes to the color scheme - open it up with your favorite text editor (I use notepad++) and read the comments at the top, it tells you what to do.


All times are GMT. The time now is 22:30.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.