vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=237)
-   -   Lightweight Style for VB3.8.7 iPhone/Mobile/Cell/PDA (https://vborg.vbsupport.ru/showthread.php?t=263822)

Chase 01-28-2013 09:18 PM

Having the Post Thank You Hack working (and looking good) on the mobile style would be fantastic.

dartho 01-30-2013 07:02 AM

Quote:

Originally Posted by karabaja3 (Post 2400102)
Thanks for reply. Here there are:

1. [AJAX] Post Thank You Hack

2. vB Ad Management 4

Those mods are for vb4 - this is for vb3. That being said, I have post thanks working on a 3.8 site with this style, I'll have a look at what I did ...

dartho 01-30-2013 07:21 AM

Quote:

Originally Posted by Chase (Post 2400170)
Having the Post Thank You Hack working (and looking good) on the mobile style would be fantastic.

Check this post: https://vborg.vbsupport.ru/showthrea...94#post2305594

Chase 02-01-2013 07:50 PM

Quote:

Originally Posted by dartho (Post 2305594)
Post Thanks Integration

edit postbit and postbit_legacy templates in lightweight style , search for
Code:

<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>

and replace with
Code:

<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
$template_hook[postbit_controls]
</div>
</if>
$template_hook[postbit_end]

caveat: this may introduce other hacks into the lightweight style which use the postbit_end and postbit_control hooks

I can't find these last 2 edits in the postbit or postbit_legacy templates in the mobile theme.

dartho 02-01-2013 11:48 PM

Try this:

edit postbit and postbit_legacy templates, search for (which should be the very end of those templates):

Code:

<div class="windowbg">
<if condition="$post['editlink']"><a id="btn" href="$post[editlink]">$vbphrase[edit]</a></if>
<if condition="$post['replylink']"><a id="btn" href="$post[replylink]">$vbphrase[reply]</a></if>
</div>

and replace with


Code:

<div class="windowbg" align="right">
<if condition="$template_hook[postbit_controls]">$template_hook[postbit_controls]</if>
<if condition="$post['editlink']"><a id="btn" href="$post[editlink]">$vbphrase[edit]</a></if>
<if condition="$post['replylink']"><a id="btn" href="$post[replylink]">$vbphrase[reply]</a></if>
</div>
<if condition="$template_hook[postbit_end]">$template_hook[postbit_end]</if>


bada_bing 02-14-2013 08:57 PM

Just for curiosity I am looking for a lightweight style for our site but before we try this one I want to know a couple of things.

1. When a user visits our site with a smartphone will they automatically be reverted to the Lightweight style ?

2. We use tapatalk and when you visit our site with a smartphone the javascript will prompt the user to download the tapatalk client. If I install this style what will be the behavior then?

3. We also use a content server which we can use to redirect smartphone to this style but I wanted to know if there is something in this style that detects mobile devices?

Thanks

dartho 02-16-2013 11:20 AM

This is just a simple style/template - no javascript, plugins or smarts to see here.

So to answer your questions: no, no different, and no

ludachris 05-13-2013 03:28 PM

Which style to use, this one or your other Mobile Style for 3.8?

We have a lot of members who use Tapatalk, but I don't like having Tapatalk dictate how things show up, not to mention the way they have their ads showing up, etc. I'd really like to look into implementing a mobile style. The only problem is that we use vba Dynamics for our classifieds section - I take it your style wouldn't be compatible with that. Would it be compatible with other solutions, like ProVB's advanced forum plugin:
http://www.provb.org/vbulletin-mods/...o&productid=11

Or maybe would it be better to just use the forums for the classifieds and use a couple of plugins like "thread thumbnails" (https://vborg.vbsupport.ru/showthread.php?t=214755) and "extra threadfields" (http://www.provb.org/vbulletin-mods/...fo&productid=1) to make it more like our existing classifieds solution, then apply one of your mobile styles? I just want the most effective and easy to integrate solution that will work with mobile. It seems like it would be easier to move away from Dynamics, but maybe it would be easier to just style that solution. I don't know. Would love your advice.

Which style would be best to start with to have more of our content viewable in a mobile style? This one or your other Mobile Style plugin? We also have a lot of static vBa CMPS pages, will this work with those? Or will we have to do a bit of work for those?

dartho 05-15-2013 09:15 AM

Either style would pose the same challenges when implementing add-ons. For the most part, you just need to change templates for add-ons to be friendly in a mobile interface. Depending on the addon, they might even look OK enough to get away with, with no template changes.

imported_silkroad 12-15-2013 06:17 PM

Hi.

This style just stopped working on our 3.8.7 vB forum and we cannot see any errors.

Any suggestions on how to debug this?

dartho 12-17-2013 03:23 AM

"just stopped working" isn;t much to go on.

I'd suggest re-install, or install as a new style (so you don;t affect anything else), turn on template comments and look at the source of pages.

cawnpore 01-14-2014 11:46 PM

I have a smimple question - If I install this mod to create a mobile version of vb forum, can I display specific pics or ad codes on the mobile version ONLY?
In other words they dont appear on main desktop version.

Mishal 01-30-2014 09:47 PM

I need your help with this plug in " Mobile Device Detection" is there any way to return to full site when i come from mobile device ?

I, Brian 02-12-2014 03:27 PM

This looks like a good product and seems to be working well.

The one problem is that the link "Default style" at the top does not revert the user to the default forum style.

I've had to disable it because it meant iPad users were forced onto the same format for iPod users, and unable to change the style type.

m7sen 03-29-2014 08:03 PM

can u please upgrade this product to be a modern and more attractive like the vb4.× styles !

dartho 03-29-2014 11:40 PM

Quote:

Originally Posted by m7sen (Post 2490315)
can u please upgrade this product to be a modern and more attractive like the vb4.? styles !

Then use vbulletin 4.x :confused:

m7sen 04-12-2014 07:05 PM

Quote:

Originally Posted by dartho (Post 2490349)
Then use vbulletin 4.x :confused:

I did not come here to take your opinion ^_^

i will buy it if u do it

karabaja3 04-24-2014 05:42 PM

Is there a functional detector of cell phones and tablet system such as the one that has the vB Mobile Style v4.1.?
I used this, but it is not working properly.
https://vborg.vbsupport.ru/showthread.php?t=173239
Also, how can I implement this component to display advertisements in this template.
https://vborg.vbsupport.ru/showthread.php?t=131150

oldengine 10-22-2014 08:52 PM

Looks good. Do we get to put Google Ads in this or not?

What version allows uploading photos?

Uninstalled.

mr.jo 11-19-2014 12:16 AM

you are the best man :up:

Smitty 11-19-2014 12:34 AM

Quote:

Originally Posted by m7sen (Post 2492864)
I did not come here to take your opinion ^_^

i will buy it if u do it

I suggest that you not complain about a free mod.

Reece^B 02-14-2015 07:19 PM

How do you force for mobiles?

Sven 03-05-2015 01:02 PM

Q: How would I add basic editor capabilities to the reply textarea?
I think it would be nice to have quick options for 'B/I/U/URL/IMG/QUOTE' BB Codes to be inserted into the reply field.

Akeles 04-11-2015 12:30 AM

works well with me
thanks

m2006 04-15-2015 01:58 AM

I can add Previous | Next Post link Below Post

kingbrend 04-21-2015 09:33 AM

For some reason.. when I view the template and enable the template for others on the forum, it starts to increase server load... I'm not sure what is causing the trouble.

I have these plugins..
Cyb - Advanced Forum Statistics (I disabled for the template)
Cyb - ChatBox (I disabled for the template)
Post Thank You Hack
vB Ad Management
vBadvanced CMPS (I tried to disable but couldn't figure out how for this template)

And a few other plugins but I don't think they interfere with anything.

Could having any of the above plugins running with the template cause issues?

Why would server load increase with the template?

Any ideas?

Trevor Hannant 04-21-2015 10:43 AM

Quote:

Originally Posted by kingbrend (Post 2543724)
For some reason.. when I view the template and enable the template for others on the forum, it starts to increase server load... I'm not sure what is causing the trouble.

I have these plugins..
Cyb - Advanced Forum Statistics (I disabled for the template)
Cyb - ChatBox (I disabled for the template)
Post Thank You Hack
vB Ad Management
vBadvanced CMPS (I tried to disable but couldn't figure out how for this template)

And a few other plugins but I don't think they interfere with anything.

Could having any of the above plugins running with the template cause issues?

Why would server load increase with the template?

Any ideas?

Installed it here and no noticable change - if anything the values inside AdminCP decreased!

Have you tried disabling Hooks via the config.php file temporarily to make sure it's not a conflict with a modification?

kingbrend 04-21-2015 11:06 AM

**Fixed

BirdOPrey5 04-21-2015 03:50 PM

DIsabling Hooks in config.php will turn off all modifications. If your site has features that depends on add-ons then yet those features will break.

The default forum features will continue to work.

I did not notice any increased load with this style. If anything load should decrease as less images need to be served.

dartho 04-21-2015 08:12 PM

As others have said, increased server load seems a very unlikely effect of installing this style. Could it just be coincidence?

kingbrend 04-22-2015 05:17 AM

*situation being worked out.

AnonymousHC 04-28-2015 11:45 AM

Very Basic but still nice.

kingbrend 04-28-2015 08:44 PM

**fixed

Ladillaxx 05-06-2015 09:05 PM

Hello thank you for this wonderful contribution .

I have a problem when I enable vBSEO phones does not recognize me = (

Pakblogger 07-10-2015 03:21 PM

Hi its great only one thing
I want to remove
strike through from closed threads title
But failed
Any idea?

dartho 07-10-2015 10:30 PM

edit the lightweight.css.php file, search for "text-decoration: line-through" and remove/modify to your preference.

trnim.com 08-09-2015 08:54 AM

thank you. It is great style.

Midohash 11-14-2015 05:56 PM

Thanks a lot for the great style.

Just a little problem when I add youtube link, the video looks like that:

https://vborg.vbsupport.ru/external/2015/11/45.png

Is there any way to get rid of the extra: https://?

The problem happens with post reply template but not with quick reply! :confused:

Thanks

Midohash 11-15-2015 10:09 AM

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:
PHP Code:

    $dimensions         =  "_$ameinfo[zone]";
    
$ameinfo['width']     = $vbulletin->options['automediaembed_width' $dimensions];
    
$ameinfo['height']     = $vbulletin->options['automediaembed_height' $dimensions]; 

and below it Add:
PHP Code:

if ($vbulletin->userinfo['styleid'] == 38)
{
  
$ameinfo['height'] = round($ameinfo['height']/2.3);
  
$ameinfo['width']  = round($ameinfo['width']/2.3);


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.

Tried it but still not working when surfing the forum from my mobile phone but works only when using my laptop!

How can I change /2.3 into px?

should it look like that:

$ameinfo['height'] = round($ameinfo['height']/150px);
$ameinfo['width'] = round($ameinfo['width']/200px);

Thanks

3DSJFH 08-31-2016 05:06 PM

1 Attachment(s)
Both on Chrome & Opera Mini on Android 6 & 4 The "New Thread" button gets broken up into two rows if there exists several pages of post on the forum section you view.
Anyone got some fix for that? (See attached picture for example).


All times are GMT. The time now is 01:39 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
  • Page Generation 0.01490 seconds
  • Memory Usage 1,843KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete