vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) (https://vborg.vbsupport.ru/showthread.php?t=249277)

dartho 12-25-2011 10:43 PM

Quote:

Originally Posted by Hippy (Post 2278483)
thanks for the update dartho
I have a questions for ya
How do I go about adding Next to the page nav..

Try replacing pagenav template with
HTML Code:

<div class="windowbg">
                <span>{vb:rawphrase page_x_of_y, {vb:raw pagenumber}, {vb:raw totalpages}}</span>

                <vb:if condition="$show['first']">
                <span class="first_last"><a rel="start" id="btn" href="{vb:raw firstaddress}{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase first_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw firstnumbers.first}, {vb:raw firstnumbers.last}, {vb:raw total}}">{vb:rawphrase first}</a></span>
                </vb:if>
                <vb:if condition="$show['prev']">
                <span class="prev_next"><a rel="prev" id="btn" href="{vb:raw prevaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw prevpage}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase prev_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw prevnumbers.first}, {vb:raw prevnumbers.last}, {vb:raw total}}">Prev</a></span>
                </vb:if>
                <vb:if condition="$show_prior_elipsis && $show['prev'] && $show['first']">
                <span class="separator">...</span>
                </vb:if>
                {vb:raw pagenav}
                <vb:if condition="$show_after_elipsis && $show['next'] && $show['last']">
                <span class="separator">...</span>
                </vb:if>
                <vb:if condition="$show['next']">
                <span class="prev_next"><a rel="next" id="btn" href="{vb:raw nextaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw nextpage}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase next_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw nextnumbers.first}, {vb:raw nextnumbers.last}, {vb:raw total}}">Next</a></span>
                </vb:if>
                <vb:if condition="$show['last']">
                <span class="first_last"><a id="btn" href="{vb:raw lastaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw totalpages}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}</a></span>
                </vb:if>
</div>


Mark.B 12-25-2011 11:19 PM

Every so often I like to pop into this thread for the benefit of any vB n00bs, to say that this mobile style is "light years" ahead of the THING that vBulletin offer by default.

Use this coupled with Dartho's mobile detection addon if you want your site to present a professional, easily customisable style for mobile users.

See HERE for what I did with it.

Hippy 12-25-2011 11:35 PM

Quote:

Originally Posted by dartho (Post 2280973)
Try replacing pagenav template with
HTML Code:

<div class="windowbg">
                <span>{vb:rawphrase page_x_of_y, {vb:raw pagenumber}, {vb:raw totalpages}}</span>

                <vb:if condition="$show['first']">
                <span class="first_last"><a rel="start" id="btn" href="{vb:raw firstaddress}{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase first_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw firstnumbers.first}, {vb:raw firstnumbers.last}, {vb:raw total}}">{vb:rawphrase first}</a></span>
                </vb:if>
                <vb:if condition="$show['prev']">
                <span class="prev_next"><a rel="prev" id="btn" href="{vb:raw prevaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw prevpage}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase prev_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw prevnumbers.first}, {vb:raw prevnumbers.last}, {vb:raw total}}">Prev</a></span>
                </vb:if>
                <vb:if condition="$show_prior_elipsis && $show['prev'] && $show['first']">
                <span class="separator">...</span>
                </vb:if>
                {vb:raw pagenav}
                <vb:if condition="$show_after_elipsis && $show['next'] && $show['last']">
                <span class="separator">...</span>
                </vb:if>
                <vb:if condition="$show['next']">
                <span class="prev_next"><a rel="next" id="btn" href="{vb:raw nextaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw nextpage}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase next_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw nextnumbers.first}, {vb:raw nextnumbers.last}, {vb:raw total}}">Next</a></span>
                </vb:if>
                <vb:if condition="$show['last']">
                <span class="first_last"><a id="btn" href="{vb:raw lastaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw totalpages}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}</a></span>
                </vb:if>
</div>


thanks U sir .. worked like a charm
Merry Christmas to you.
Have a great New Year

CappingTheGame 12-26-2011 02:10 AM

Quote:

Originally Posted by dartho (Post 2280972)
I can tell you how to remove the attachment button or implement fixes people find, but it works on my phone and that's what it is developed for.


I've not heard of that one before? What type of device?
iPhone 4 and also on Droid X. Have confirmed with about a dozen other people's devices also. Could be something on my end, but unsure how to fix it.

That would be easy to add in if you wish - where abouts do you want the thread starter name to appear?
Within the selected forum, adding the thread author directly below the forum title and above the last poster might be ideal. Just a thought...have had several suggestions on that. Again, thanks.

See bolded.

SRSC 12-26-2011 09:34 AM

How to resize the picture in post fit to screen?

yanref 12-29-2011 09:36 AM

hi dartho,

bit of an issue?
installed ok, looks and runs fine.
when i try to reply to a post, using over ten characters, it says, "sorry! this forum is not accepting posts" but it should be?
any ideas.

dartho 01-02-2012 09:40 PM

I'm not sure what would be causing this,and am unable to reproduce the error

yanref 01-02-2012 10:16 PM

Quote:

Originally Posted by dartho (Post 2283158)
I'm not sure what would be causing this,and am unable to reproduce the error

the site is, http://graphicshost.co.uk/gamers-asy...php?styleid=15
click a link? and you get this, Invalid Forum specified. If you followed a valid link

maybe its an issue on the latest vb...... any ideas!

snakes1100 01-03-2012 06:05 PM

dartho
i see numerous sites were this style will revert back to the forum default style when you click any link if your using 4.1.9, this includes yanrefs site. Just checked it on my droidx, doing it on my test site as well.

dartho 01-03-2012 11:00 PM

@yanref - still not sure what is causing your issue and no reports of anyone else with the same. Have you tried disabling all add-ons and plugins and testing? (do this in AdminCP->Settings->Options->Plugin/Hook System->Enable Plugin/Hook System = No)

@snakes - whilst yanref has other issues, it stays on the lightweight style for me when visiting his site from my PC and phone. my test site at vbdev.org doesn't have issues either. At any rate, I guess it would be a vBulletin problem if it couldn't maintain a style across pages ...


All times are GMT. The time now is 05:31 AM.

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.03179 seconds
  • Memory Usage 1,775KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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