vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Lightweight Style Options for "Lightweight Style" (https://vborg.vbsupport.ru/showthread.php?t=249339)

dartho 06-12-2011 10:32 PM

Sad, people report errors but provide no further information which may help to resolve them.

Don't forget to click the "Mark as Uninstalled" link

Filgga 06-13-2011 08:01 PM

Quote:

Originally Posted by dartho (Post 2206841)
Sad, people report errors but provide no further information which may help to resolve them.

Don't forget to click the "Mark as Uninstalled" link

This made my day...

It's like this:

Users cannot swicth to the PC version of the site. Tried all efforts but in vain.

I did not UnInstall, simply disabled, waiting for ur input. I meant, disabled in my previous msg.

I sent you a PM, please see what you can do. I doubt it's only me.

dartho 06-13-2011 10:11 PM

Thanks for the PM, Filgga - but you still haven't told me anything! I need error messages at least to find out where you are having a problem. What is the full database error message?

Filgga 06-13-2011 10:22 PM

Quote:

Originally Posted by dartho (Post 2207328)
Thanks for the PM, Filgga - but you still haven't told me anything! I need error messages at least to find out where you are having a problem. What is the full database error message?

The database error was being caused by this:

Code:

Set 'Mobile' & UA Field
as the new vB 4.1.4 tells me do not recognize 'UA' field in MySQL (sorry I did not copy the error).

I enabled the mod, disabled only that, the errors are gone (i did an edit above).

Still, users cannot switch between themes (to default theme).

U can visit my site (on my signature) via mobile and then via PC and see the difference.

This' after upgrading to vB 4.1.4; everything was OK before upgrading.

Looks like you're now upgrading http://vbdev.org/forum.php please test this and you'll see what we're facing

dartho 06-14-2011 12:39 AM

I upgraded to 4.1.4 on my test site and I get no errors and also have no issues switching styles.

cnrr 07-01-2011 12:37 AM

1 Attachment(s)
how can i disable share browser details from guests? (via mobile text's descripton)

dartho 07-01-2011 12:58 AM

Edit the posted_by_mobile_device template and change the title in the anchor to something other than {vb:raw post_ua}

dartho 07-01-2011 01:01 AM

Sorry - saw you only want to do this for guests.

Change
{vb:raw post_ua}
to
<vb:if condition="$show['member']">{vb:raw post_ua}</vb:if>

in that same template and then there will be no tool tip for guests

thenashy 07-03-2011 06:56 AM

I have installed this, and have it all working. However, when viewing the mobile theme, when users click "Desktop" to go back to the default style, there is no style n umber displayed.

How does this noob fix that?

cnrr 07-11-2011 05:42 PM

Quote:

Originally Posted by dartho (Post 2215273)
Sorry - saw you only want to do this for guests.

Change
{vb:raw post_ua}
to
<vb:if condition="$show['member']">{vb:raw post_ua}</vb:if>

in that same template and then there will be no tool tip for guests

thank you dartho for code. i'm setting for only administrator.

<vb:if condition="$bbuserinfo[usergroupid] == 6">{vb:raw post_ua}</vb:if>

Shevko 07-13-2011 02:23 PM

Hi i use vb 4.1.4 and this theme.. there is a problem.. when opera mini users use your theme, theme auto change to default theme.. and this always to be.. what can i do?

Taurus1 07-16-2011 10:04 AM

When I choose not to show the "What's going on" section it still shows though. Any ideas on that? Thank you very much!

dartho 07-17-2011 02:48 AM

Quote:

Originally Posted by Taurus1 (Post 2221148)
When I choose not to show the "What's going on" section it still shows though. Any ideas on that? Thank you very much!

oops ...

edit the FORUMHOME template, search for
Code:

<!-- what's going on box -->
replace with
Code:

<vb:if condition="$vbulletin->options['ls_whats_on']">
<!-- what's going on box -->

then search for
Code:

</vb:if>
{vb:raw footer}

replace with
Code:

</vb:if>
</vb:if>
{vb:raw footer}


Taurus1 07-17-2011 06:16 AM

Thanks dartho, that did it.

Monster247 08-29-2011 11:02 PM

dartho do i need to install this if i have installed product-mobdetect40.1.0.1.xml ur newest version??

dartho 08-30-2011 12:38 AM

No you do not. Although, this does different things to the detect modification.

FCRhino 08-31-2011 07:33 PM

I have it installed on 4.1.5 and it doesn't say Posted via Mobile. The other options work, so I guess it's still an overall success, but I wish this one did as well.

blankpage 09-04-2011 04:58 AM

When I post a message with this mobile style, my signature doesn't appear to other users!
How can I solve?

dartho 09-04-2011 10:09 AM

Edit newreply template, search for
Code:

</div>
</form>
{vb:raw footer}

and add imemdiately before:
Code:

<vb:if condition="$bbuserinfo['signature'] != ''">
        <label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" {vb:raw checked.signature} /> {vb:rawphrase show_your_signature}</label>
</vb:if>

then edit SHOWTHREAD search for
Code:

<input type="submit" id="btn" value="{vb:rawphrase submit_reply}" />
add immediately before
Code:

<input type="hidden" name="signature" id="cb_signature" value="1" tabindex="1" />
You can use the code from SHOWTHREAD in NEWREPLY if you always want signature with no checkbox option.

blankpage 09-04-2011 06:32 PM

Wow! Perfect! :)
Thanks! :)

HeLLCiTo 09-07-2011 06:44 PM

how is the code to disable the portal?

imported_Vishalsachar 11-06-2011 12:59 AM

Thanks, excellent work!

S@NL - BlackBik 12-11-2011 04:33 PM

Can anybody tell me how I can disable the v3Arcade product in this style?
I found the "Enter code here to disable add ons" in the Lightweight options, but I don't have a clue about what to put in this.
The v3Arcade has an option to disable the add-on in it's admin settings.

dartho 12-12-2011 12:55 AM

It doesn't look like v3arcade has a general enabled/disabled option. How is it interfering with the Lightweight style?

S@NL - BlackBik 12-12-2011 04:38 PM

Hi Dartho, thanks for your quick response. We're in completely different timezones, so answering can take a while ;)

My users get the following error:
Quote:

Fatal error: Cannot redeclare get_games() (previously declared in / home/websites/forumsetinl/htdocs/ includes/block/html.php(95) : eval()'d code:7) in /home/websites/ forumsetinl/htdocs/includes/block/ html.php(95) : eval()'d code on line 68
v3Arcade does have a general enable/disable setting in the admin control panel. It is stored in the database field "arcadeopen" that is located in the the vBulletin "setting" table. Value 1 is on. Value 0 is off.

S@NL - BlackBik 12-15-2011 06:34 PM

Dartho, you can discard my question.
I've been digging a little deeper and found out that it was the side-block module for v3Arcade that conflicted with this style. That was designed for the CMS, but I found out it also worked on the forum. Guess there was a problem with this misuse.
I've disabled this block and the errors no longer present themselves.

SemperFideles 01-21-2012 08:46 PM

Product does not work with vBulletin 4.1.10

tekmaster 02-15-2012 09:26 AM

Is there a way to insert a language chooser?

dartho 02-15-2012 12:11 PM

maybe - you basically have to add the following code into the footer template

Code:

<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
<div>
        <form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select">
                <vb:if condition="$show['languagechooser']">
                        <select name="langid" onchange="switch_id(this, 'lang')">
                                <optgroup label="{vb:rawphrase quick_language_chooser}">
                                        {vb:raw languagechooserbits}
                                </optgroup>
                        </select>
                </vb:if>
        </form>
</div>
</vb:if>

but some of that code would usually be shared with the quick style chooser.

If you do not use the style chooser, search for the following and replace it with the above code

Code:

<vb:if condition="$vbulletin->options['ls_default_style_link']==3">
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
<div>
        <form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select">
                <vb:if condition="$show['quickchooser']">
                        <select name="styleid" onchange="switch_id(this, 'style')">
                                <optgroup label="{vb:rawphrase quick_style_chooser}">
                                        {vb:raw quickchooserbits}
                                </optgroup>
                        </select>       
                </vb:if>
        </form>
</div>
</vb:if>

If you want both choosers, replace with this

Code:

<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-core.js?v={vb:raw vboptions.simpleversion}"></script>
<div>
        <form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select">
                <vb:if condition="$show['languagechooser']">
                        <select name="langid" onchange="switch_id(this, 'lang')">
                                <optgroup label="{vb:rawphrase quick_language_chooser}">
                                        {vb:raw languagechooserbits}
                                </optgroup>
                        </select>
                </vb:if>
                <vb:if condition="$show['quickchooser']">
                        <select name="styleid" onchange="switch_id(this, 'style')">
                                <optgroup label="{vb:rawphrase quick_style_chooser}">
                                        {vb:raw quickchooserbits}
                                </optgroup>
                        </select>       
                </vb:if>
        </form>
</div>


tekmaster 02-18-2012 10:11 AM

Thanks for the help on this, I know that if I want to insert the language chooser elsewhere, it requires me to create a product in the admincp so that it calls it out. I'm not sure if you're familiar with it as well because I had to do this when I wanted to create the language chooser to be on the top of my default skin.

Here's the link to what I did, I'm just not sure how I can apply it for the mobile skin:
Code:

http://ipankaj.net/how-to-move-vbulletin-language-chooser-from-footer-to-navbar/

dartho 02-18-2012 11:42 PM

It would work exactly the same for the mobile skin as for your default style.

What that plugin does is register variables used by the languagechooser - this is only needed if you move the language chooser out of the footer temaplte as the variables are already registered there.

Is that plugin already active on your forum? If so, you can move the languagechooser to your navbar template in the lightweight style and you will not need to add a new plugin. If you move it to one of the other templates, just add a new plugin and change 'navbar' in the code to the name of the template you moved it to.

tekmaster 02-27-2012 10:02 PM

so I tried inserting them on the footer, however the footer did not display the style chooser/language chooser. I'm actually trying to have the language chooser only on the top where the navibar is located.

dartho 02-29-2012 03:59 AM

Quote:

Originally Posted by tekmaster (Post 2304023)
so I tried inserting them on the footer, however the footer did not display the style chooser/language chooser. I'm actually trying to have the language chooser only on the top where the navibar is located.

Quote:

Originally Posted by dartho (Post 2301002)
Is that plugin already active on your forum? If so, you can move the languagechooser to your navbar template in the lightweight style and you will not need to add a new plugin.


...

autoescala 03-13-2012 10:49 AM

Works perfect on 4.1.11 except the option of "Mobile post text" this don't do nothing when I post some from this style.
regards

S_E_A 05-18-2012 11:59 AM

Receive an Array error message when checking users online on 4.1.12. Anyone else had this problem?

Cheers

Shaybloom 03-29-2013 10:29 AM

How do i change the blue colour thats all over including the footer to black??
I tried changing footer colour and border almost everything in footer IN Style Variable Editor
to black and saved it it even shows red colour indicating it is edited but strangely enough NOTHING has changed on the theme on the forum,its still BLUE
please help!

romaxe 05-31-2013 02:34 AM

It works with 4.1.8?

dartho 05-31-2013 11:48 PM

Quote:

Originally Posted by Shaybloom (Post 2412904)
How do i change the blue colour thats all over including the footer to black??
I tried changing footer colour and border almost everything in footer IN Style Variable Editor
to black and saved it it even shows red colour indicating it is edited but strangely enough NOTHING has changed on the theme on the forum,its still BLUE
please help!

You need to edit the lightweight.css.php file to make changes - this doenlt use the StyleVar system

madness85 07-22-2013 07:11 PM

Quote:

Originally Posted by dartho (Post 2425158)
You need to edit the lightweight.css.php file to make changes - this doenlt use the StyleVar system


hi @dartho i have no styles to pick from in style chooser any ideas y apart from that its great :)

https://vborg.vbsupport.ru/external/2013/07/12.jpg

gnrx 02-18-2020 10:19 PM

Edit: Error of post.


All times are GMT. The time now is 04:49 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.01402 seconds
  • Memory Usage 1,838KB
  • 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
  • (13)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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