vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=230)
-   -   Mobile, Cell, Phone, PDA, iPhone Style (https://vborg.vbsupport.ru/showthread.php?t=174375)

MissKalunji 06-21-2009 12:49 AM

Hey iw as wonderinG HOW can i make it available to everyone BUT a certain user? is there an if statement or an extra setting you can add?

make everyone see the mobile style...

i know it would be something like if this user id do this else show this...but i don't know the proper syntax and where it should go? if that's even possible?

Thanks!

dartho 06-21-2009 01:09 AM

So you wish to force a specific user to use use a specific style, or make a specific style unavailable to a specific user?

nhlchuck68 06-21-2009 02:02 AM

Can anyone tell me why I post from my mobile device and then when I go back to the thread my post does not show. However if I come to my PC and check, my post is there and looks just fine.

Thanks!

MissKalunji 06-21-2009 02:10 AM

Quote:

Originally Posted by dartho (Post 1833719)
So you wish to force a specific user to use use a specific style, or make a specific style unavailable to a specific user?

force a specific user to use a specific style :)

dartho 06-21-2009 05:13 AM

a plugin on style_fetch hook with an execution order of say 10 should do it - something like:

PHP Code:

if ($vbulletin->userinfo['userid']==x)
{
  
$styleid=y;


or if multiple for users:

PHP Code:

if (in_array($vbulletin->userinfo['userid'], array('x1','x2','x3')))
{
  
$styleid=y;



Akakios1 06-21-2009 11:29 PM

Is there a way to make images show up in the posts instead of the "image" link?

I went through most of the 38 pages and saw one post Dartho stating to remove the Replacement Variables but when I do that, I still have the word "image" and it's unlinked and the image doesn't show still.

Thanks in advance

dartho 06-22-2009 03:58 AM

The replacement variables are the thing that creats that "Image" link - did you remove all of the replacement variables for the style?

MissKalunji 06-22-2009 11:37 AM

Quote:

Originally Posted by dartho (Post 1833795)
a plugin on style_fetch hook with an execution order of say 10 should do it - something like:

PHP Code:

if ($vbulletin->userinfo['userid']==x)
{
  
$styleid=y;


or if multiple for users:

PHP Code:

if (in_array($vbulletin->userinfo['userid'], array('x1','x2','x3')))
{
  
$styleid=y;



Thank you!

rrudeboy 06-22-2009 07:24 PM

Quote:

Originally Posted by Fangs404 (Post 1820528)
I just installed this on a 3.8.2 install, and it seems to be working just fine. In the admin CP, I'm getting a message that says there are 34 templates that need to be updated/reverted, but other than that, it looks a-ok to me.

ditto here.... have been avoiding it, but it kinda bugs me :}

(even though everything works)

Akakios1 06-22-2009 08:34 PM

Quote:

Originally Posted by dartho (Post 1834523)
The replacement variables are the thing that creats that "Image" link - did you remove all of the replacement variables for the style?


No, just the img src="http a href="http. I replaced it when it wasn't the result I was hoping for!

Is it possible to have image itself show?

dartho 06-22-2009 09:29 PM

You need to remove all of the replacement variables in this style for images to show fully in line

Akakios1 06-23-2009 12:25 AM

Quote:

Originally Posted by dartho (Post 1835136)
You need to remove all of the replacement variables in this style for images to show fully in line

Ahh.. ok thanks Dartho. Gonna give it a shot now

**Edit**

That's perfect Dartho!! Thanks very much!

rrudeboy 06-24-2009 11:00 AM

oi dartho,

is there anyway you (or me if you tell me how :} can build-in a line break/wrap after x amount of characters, reason: if i post from my BB (me, and many other users) the post is like 2 feet wide which is kind of troublesome to proof read, re-read what you wrote.

if anybody else knows... chime in.

tks.

struff 06-28-2009 01:38 AM

Is there a way to make it suppress users' avatars?

Thanks.

dartho 06-28-2009 03:00 AM

Quote:

Originally Posted by struff (Post 1838638)
Is there a way to make it suppress users' avatars?

Thanks.

where are avatars showing? They shouldn't be there!

Quote:

Originally Posted by rudyboy
s there anyway you (or me if you tell me how :} can build-in a line break/wrap after x amount of characters, reason: if i post from my BB (me, and many other users) the post is like 2 feet wide which is kind of troublesome to proof read, re-read what you wrote.

WHere is this happening?

rrudeboy 06-29-2009 12:16 PM

Quote:

Originally Posted by dartho (Post 1838667)
WHere is this happening?

when a member posts using their Blackberry/Smartphone... it keeps going & going and never wraps, so 1. you don't see the entire reply until you submit and 2. it's troublesome to proof read and/or fix typos.

struff 06-29-2009 04:11 PM

Quote:

Originally Posted by dartho (Post 1838667)
where are avatars showing? They shouldn't be there!

Just as a non-mobile style, people's avatars appear next to their names in messages that they post.

dartho 06-29-2009 09:22 PM

@Struff:
That's not correct. Either you have somehow modified the postbit/postbit_legacy template (reverted it?), or an add-on is doing this.

The postbit is meant to look something like the 3rd screen shot.

Try re-installing the style.

rrudeboy 06-30-2009 11:01 AM

@dartho: how about the word wrap, is that something that can be done ?

struff 06-30-2009 02:14 PM

Quote:

Originally Posted by dartho (Post 1839841)
@Struff:
That's not correct. Either you have somehow modified the postbit/postbit_legacy template (reverted it?), or an add-on is doing this.

The postbit is meant to look something like the 3rd screen shot.

Try re-installing the style.

We've been running it for about five or six months (or more, I don't really remember) and we're quite sure it this has always been the case for us. We installed the "Extend and Customise "Mobile" Style Options" add-on but that shouldn't be an issue, right?

Could it be because we use more current versions of vBulletin? We are running it on vB v3.8.2 now (we update vB as soon as we can). Because we are running 3.8.3 now it won't let us reinstall your mobile style. :( Do you have any plans on releasing a version for 3.8 or is there a patch or anything available to use it on 3.8?

Is there a way that we can manually edit or replace that template?

Thanks.

rrudeboy 06-30-2009 02:26 PM

i am running this on my v3.8.2 vB forum (see sig) and it does not nor did it ever show avatars....

(i want word wrap... plz :}

Biker_GA 06-30-2009 10:43 PM

Quote:

Originally Posted by struff (Post 1840189)
We've been running it for about five or six months (or more, I don't really remember) and we're quite sure it this has always been the case for us. We installed the "Extend and Customise "Mobile" Style Options" add-on but that shouldn't be an issue, right?

Could it be because we use more current versions of vBulletin? We are running it on vB v3.8.2 now (we update vB as soon as we can). Because we are running 3.8.3 now it won't let us reinstall your mobile style. :( Do you have any plans on releasing a version for 3.8 or is there a patch or anything available to use it on 3.8?

Is there a way that we can manually edit or replace that template?

Thanks.

I'm running this on 3.8.3 just fine. You wouldn't be running vBAdvanced, would you?

dartho 06-30-2009 10:49 PM

Here is the postbit / postbit_legacy template code:
Code:

<div class="$post[statustitle]windowbg2" id="post$post[postid]">
<a name="post$post[postid]"></a>
<a href="member.php?userid=$post[userid]">$post[username]</a> $post[posttime] $post[postdate]
</div>
<div class="windowbg">$post[message]<br />

                <!-- attachments -->
                <if condition="$show['attachments']">
                        <div><span>Attached: </span>
                        <if condition="$show['thumbnailattachment']">
                                        <span>$post[thumbnailattachments]<br /></span>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                        <span>$post[imageattachments]<br /></span>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                        <span>$post[imageattachmentlinks]<br /></span>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                        <span>$post[otherattachments]<br /></span>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                        <span>$post[moderatedattachments]<br /></span>
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
<if condition="$post['editlink']"><a href="$post[editlink]">[$vbphrase[edit]]</a></if>
<if condition="$post['replylink']"><a href="$post[replylink]">[$vbphrase[reply]]</a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]rel="nofollow">[!!]</a> </if>
</div>

@rudeboy - try editing the newreplay template and replacing
Code:

<textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:100%; height:100px">$newpost[message]</textarea>
with
Code:

<textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:100%; height:100px" wrap="virtual">$newpost[message]</textarea>

edytwinky 07-01-2009 02:45 AM

How would one go about adding a style selector? Say a user doesn't want to view the Mobile style but would rather see the regular style.

dartho 07-01-2009 03:19 AM

Installing the add-on to this style (here: https://vborg.vbsupport.ru/showthread.php?t=182692) gives you an option to have a link to the default style, or the style selector.

Alternatively you could edit a template (navbar? footer?) and manually add a link in to the default style.

rrudeboy 07-01-2009 11:45 AM

Quote:

Originally Posted by dartho (Post 1840428)
@rudeboy - try editing the newreplay template and replacing
Code:

<textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:100%; height:100px">$newpost[message]</textarea>
with
Code:

<textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:100%; height:100px" wrap="virtual">$newpost[message]</textarea>

tried that, unfortunately does not work....

add: not fully understanding, i read that cols is the width of the input box so i changed it to 2 just to see what it does, nothing.. i thought maybe that will help the wrap (or lack there off), wonder why this does not work.

add#2: it works on my laptop when i go to my mobile site... but when i try it on my BlackBerry it does not wrap :]

struff 07-01-2009 09:54 PM

Quote:

Originally Posted by dartho (Post 1840428)
Here is the postbit / postbit_legacy template code:
Code:

<div class="$post[statustitle]windowbg2" id="post$post[postid]">
<a name="post$post[postid]"></a>
<a href="member.php?userid=$post[userid]">$post[username]</a> $post[posttime] $post[postdate]
</div>
<div class="windowbg">$post[message]<br />

                <!-- attachments -->
                <if condition="$show['attachments']">
                        <div><span>Attached: </span>
                        <if condition="$show['thumbnailattachment']">
                                        <span>$post[thumbnailattachments]<br /></span>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                        <span>$post[imageattachments]<br /></span>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                        <span>$post[imageattachmentlinks]<br /></span>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                        <span>$post[otherattachments]<br /></span>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                        <span>$post[moderatedattachments]<br /></span>
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
<if condition="$post['editlink']"><a href="$post[editlink]">[$vbphrase[edit]]</a></if>
<if condition="$post['replylink']"><a href="$post[replylink]">[$vbphrase[reply]]</a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]rel="nofollow">[!!]</a> </if>
</div>


I got it to work. Nice. Thanks.

rrudeboy 07-02-2009 12:00 PM

is there anyway to FORCE the line break ? because what i have discovered that most if not all Windows Mobile phone do wrap, even older Curve's do...

but not the Storm :(

Biker_GA 07-02-2009 01:13 PM

There is no difference between browsers on the various Blackberry's. As your Storm is having issues where other devices do not indicates it's a setting on your Blackberry. Ensure all your browser settings are turned on for the device.

rrudeboy 07-02-2009 01:36 PM

Quote:

Originally Posted by Biker_GA (Post 1841404)
There is no difference between browsers on the various Blackberry's. As your Storm is having issues where other devices do not indicates it's a setting on your Blackberry. Ensure all your browser settings are turned on for the device.

i beg to differ, members of my forum with "older" Curve's have no issue and it word wraps for them, i tried all "simulators" in the Storm's browser (Blackberry, Firefox and Internet Explorer) and in none of them does it word wrap.

all browser settings ?

tks.

Biker_GA 07-02-2009 05:19 PM

Under Options/Advanced Options/Browser double check your settings and make sure your default browser settings are configured for the Internet.

rrudeboy 07-02-2009 06:27 PM

Quote:

Originally Posted by Biker_GA (Post 1841529)
Under Options/Advanced Options/Browser double check your settings and make sure your default browser settings are configured for the Internet.

that's all good, and like i said i messed with most settings to test..

shirubia 07-02-2009 11:32 PM

Hello this is awesome thanks! I installed this and it looks fine when I view it under style manager from my PC, but for some reason when I point my phone to my forum URL, it doesn’t work.. is this compatible with 3.8.3? I also installed Mobile, Cell, Phone, PDA, iPhone Style 0.0.10a..

dartho 07-03-2009 08:09 AM

shirubia - you need to select the style, or install an add-on which will detect that your usinga phone and automatically select the style for you.

Try this https://vborg.vbsupport.ru/showthread.php?t=173239 and see if that helps

RoxyTheImpreza 07-08-2009 03:04 PM

any way to get this to work with 3.8?

rrudeboy 07-08-2009 03:13 PM

Quote:

Originally Posted by RoxyTheImpreza (Post 1845162)
any way to get this to work with 3.8?

yup, i use it on v3.8.2... no problems.

MissKalunji 07-08-2009 04:36 PM

same here 3.8.1

CR_TurboGuy 07-09-2009 05:19 PM

Quote:

Originally Posted by edytwinky (Post 1840513)
How would one go about adding a style selector? Say a user doesn't want to view the Mobile style but would rather see the regular style.

Check out my post here where I show how I added that option on my board.

--JOsh

filmking 07-12-2009 07:25 PM

This style for mobile viewing "out of the box" is real good. I just uploaded it.

I don't think this has been suggested, but I haven't read the 40+ pages of posts:

To make viewing better for mobile users I suggest you add the following as the first line in the style's "header" template.

<meta name="viewport" content="width=device-width,user-scalable=no" />

MissKalunji 07-13-2009 11:58 AM

Is this to make sure it keeps the size of the screen?


All times are GMT. The time now is 03:14 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.03368 seconds
  • Memory Usage 1,861KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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