Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 6 of 6

Thread: Mobile Device Style Assignment, and different style used by different user

  1. #1

    Default Mobile Device Style Assignment, and different style used by different user

    It is actually about different style that used by different user, so if a style stored in vbet Full File Cache For Guests (for example green style), and other user open the forum with different style as default (for example blue style), the second user will still getting the first person style stored in the style (the green style, not the blue style)






    There is one of most popular mod in vb.org Mobile Device Style Assignment

    its autodetect if user using mobile phone (not pc) for using Mobile super light skin/style, not using default


    its not working since using vbet Full File Cache For Guests, because the style that stored in the files are using default style, so user using Mobile phone opening the style stored in the files too, it is usually the default style (for pc style)



    that mod working again when i disable vbet Full File Cache For Guests, delete the chace, and chmod 755 again the vbet_guestcache folder



    i am still trying can that mod (or different style used by different user) working, but full chace working too, so maybe make stored files chace by style too, only used by user with same style




    if still not hard to understand please let me know, i will try make it more clearly

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Please note that in last release vBET appropriatelly works with diffetenr styles aind Guest Cache. Guest Cache adds style id to file name ant that is how we allow guests to change styles even when Guest Cache is turned on.

    So first please check do you have last vBET release installed.

    If yes then please make sure that your plugin will work before vBET determines which Guest Cache file should be used. This is all what is needed - your mod changes style id and thich change must be done before vBET checks it. vBET is using styleid to determine Guest Cache file in hook global_start

  3. #3

    Default

    hi Michał

    - i checked in admincp --> Product --> it is vbet 3.3.6 so its the latest



    - here is some example in the vbetchace, is this already contained style id?
    _showthread_php_t_8458210.html
    _showthread_php_t_8808510.html
    _showthread_php_t_8811110.zip
    _showthread_php_t_1989110.zip



    - Michał can you tell me which plugin exactly that create and read the full chace file, i will write conditional code for this mod in plugin to exclude some style from using full chace file. For example if the user using style id no.1 he/she using the full chace, but if using style id no.2 he/she not using the full chace

  4. #4
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Guest cache code is included in file /includes/vbenterprisetranslator_finctions_guestcache.php and function vbet_getGuestCacheFile determines cache file name. As you can see - style id is used at the end of file name and it is read from
    Code:
    $vbulletin->userinfo['styleid']
    Full file cache is read by vBET in hook global_start and written in hook global_complete or global_shutdown.

  5. #5

    Default

    Ok i already made this mod working or for other styles that you want exclude vbet, dont know if other people get this problem, but if yes you can using this solution too



    Go to admincp --> Plugins & Products --> Plugin Manager

    search this 3 plugins
    vB Enterprise Translator
    Write guest cache
    vB Enterprise Translator - Flags




    open and wrap they code content with this if conditional

    if(STYLEID != 10)
    {
    //the code content
    }


    change 10 with your own style id number that want to exclude from using vbet and not using full chace, for example this style : Mobile super light skin/style that using Mobile Device Style Assignment like i use now


    Nb. To know what is your style id number, go to phpmyadmin --> go to Table : Style --> you can see the number in styleid column
    Last edited by basketmen; 14-09-10 at 13:51.

  6. #6
    Senior Member
    Join Date
    Oct 2009
    Posts
    142

    Default

    I just unistalled the mobile device style, i lost about ** a day revenue but I don't have the time to play around and I'm not going to pay a guy 10**** per hour in doing so.

    Thats why I buy "finished" products, I don't want to be a beta tester for anyone.

    Your doing a good job in sharing and I highly appreciate it.

    Cheers mate...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •