![]() |
Ok, i will try it.
After put the results here. |
Nice update - would be good to include a "Report this post" link in a future version :)
|
Will do as it's already coded, just no link ...
|
dartho,
I am sorry but no results with the litle mod in that line. I will try to solve it by myself, see what i can do. Regards |
working on next iteration - inline moderation tools!
|
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: PHP Code:
PHP Code:
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.
|
Tagged to look at later in the month.
|
Quote:
http://forums.deeperblue.com/test-forum/91308-test.html |
Quote:
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]. |
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? |
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 |
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.
|
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. |
Joe - it does work well indeed.
Another question to the group...I see that when I use the style assignment mod (https://vborg.vbsupport.ru/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? |
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: PHP Code:
Please feedback how it goes. |
Worked a treat Dartho!
|
Good to hear.
|
Quote:
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 |
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. |
Oh lol. My bad, I must have DL'd 0.0 instead of 0.1
Thanks a lot mate! |
1 Attachment(s)
Btw, if you have enabled "Prefixes" on your forum homepage (to display specific icons for each forum) the "lightweight theme" images (status icons) will not show up on the lightweight skin's homepage.
I had to cut this piece of code from the lightweight skin templates (the specific templates are listed below) ... Code:
$forum[imageprefix] forumhome_forumbit_level1_post forumhome_forumbit_level2_nopost forumhome_forumbit_level2_post |
Quote:
|
Quote:
I'm curious, does this have the auto-detect built-in or do I have to install the other mod? |
Quote:
|
Check this post: https://vborg.vbsupport.ru/showpost....7&postcount=56 for an updated autodetect based on vb's detect code in 4.x (ie. it allows over-riding)
|
Installed. Most excellent. Thank you for this good work!
|
Dartho, [S]I'll be sending[/S] I've sent a donation [S]in a moment[/S] for the brand-free option and to support your great work! :up:
I have a question to ask though. I have my default style (Sofia's Impact: http://www.unitedstateshistoryforum.com/) and I use the forums arranged in columns for the 'States' forums. When you switch to the mobile style (http://www.unitedstateshistoryforum.com/?styleid=3) it shows different icons than the ones being used on the other forums. How can I fix that? [s]I noticed that post #62 has a possible fix, but is that the way to do it?[/s] Fix on that post didn't work for me. I also just noticed a line through one of the threads: check here .... the only different thing about that thread is that it was an auto-thread from the social groups mod here. Any thoughts on what may be causing that? |
Thanks for the Donation, it's appreciated.
Easy one first - the line through the thread is because it's closed. Probably not the best way to denote a closed thread, but ... You can change this to what you want by editing the lightweight.css.php file and searching for : Code:
.thread_lock a,.lock a,.thread_lock ,._lock , ._hot_lock, ._dot_lock, ._dot_hot_lock, ._lock_new How do you arrange them in columns - is that a default vBulletin feature or an addon? Also, if you could turn on template names in HTML comments, that would help me track it down greatly. Thanks |
@MagicThemeParks - it looks like you're using this addon https://vborg.vbsupport.ru/showthread.php?t=99829
If you want the forums to display like standard forums in the lightweight style, you can edit the forumhome_forumbit_columncell template in the lightweight style and replace it's contents with the contents of the forumhome_forumbit_level2_post template (I think...) |
Thanks for the 'closed' suggestion. I'll see what I can think about using instead of the line-through.
Arrange in columns is a mod. I'll turn on the template names in HTML comments now to help you :up: EDIT: Saw that you added a post while I hadn't refreshed. LOL....I'll try that suggestion for the columncell template now. |
Quote:
Now, I just have to get the mobile style detect going and we'll be set! :D Thanks for your help again Dartho :up: |
Thank you dartho! This is a fantastic style. I see the auto-detect script that you outlined here and that should work great.
My question: Is there any way I can make it so if you're NOT using a mobile device that you can NOT select this style? The reason is my site depends heavily on CPM advertising, and since this is a lightweight style (light ads to possibly no ads), I'd prefer it not be user-selectable unless you are on a mobile device. Any thoughts? |
Quote:
This will keep the style from being selectable by users but the automatic detection script will still be able to use it. |
Is there a reason it won't show custom logo? I've entered my logo into the CSS supplied, and the path is correct, but it wont show image, just the text of site name
|
I think you'll need to edit the header template and change:
<div class="header" align="left"><strong>$vboptions[bbtitle]</strong></div> to something like <div class="header" align="left"><img src="mylogo.png" /></div> and play with it from there ... |
Awesome, worked like a charm. Thanks alot
|
can you create one for 4.14? I like simple and clean style..
It's nice! |
I already have https://vborg.vbsupport.ru/showthread.php?t=249277
|
Just missing attachment uploads and my users will all be happy :D
Would also be nice if the CSS was made using the build in editor, rather than manually editing a file. Easier to hook into my CDN then as well. |
All times are GMT. The time now is 12:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|