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?


All times are GMT. The time now is 08:05 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.01794 seconds
  • Memory Usage 1,749KB
  • 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_php_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