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)

dartho 05-22-2008 10:04 AM

It shouldn't put the code at the top - it should put it in place of $ad_location['ad_showthread_beforeqr'] which appears in the showthread template. "Show Thread Start" is just a suitable hook location to run the google script to obtain the ad code for showing ads in SHOWTHREAD...

Wanna PM me your site URL so I can have a squizz?

dartho 05-22-2008 10:07 AM

@hornstar - there is no style chooser with this style. You willneed to add a "&styleid=xx" (where xx is your default styleid nnumber) to the URL to get back to your default...

Jase2 05-22-2008 01:28 PM

Thanks for the update, Dartho! :)

Mr.samy 05-22-2008 06:31 PM

thanks for supported ...

i install it ...
and i set up Mobile Phone / iPhone / PDA Detection and Style Assignment

if i make google bot redirct to this style is good for seo or bad ?

dartho 05-22-2008 08:55 PM

@Mr.samy - not sure if this would improve SEO or not. There is one question in my mind however - I *believe* that you must present search engines with teh same content as you do visitors otherwise you risk being dropped from search engine data bases for trying to deceive them. If someone in the know could share, that'd be great.

swissbob 05-22-2008 10:47 PM

Quote:

Originally Posted by dartho (Post 1528332)
@Mr.samy - not sure if this would improve SEO or not. There is one question in my mind however - I *believe* that you must present search engines with teh same content as you do visitors otherwise you risk being dropped from search engine data bases for trying to deceive them. If someone in the know could share, that'd be great.

Yup, that sounds like 'bait and switch', which is highly frowned upon, although in this case he is, in theory, showing the same content, just not the same layout. No one seems to have a problem using the archive for search engine promotion, so I guess he will be OK.

The problem is that if the risk doesn't pay off and the site gets banned it is a nightmare trying to get back in.

Hornstar 05-23-2008 10:02 PM

Quote:

Originally Posted by dartho (Post 1527742)
@hornstar - there is no style chooser with this style. You willneed to add a "&styleid=xx" (where xx is your default styleid nnumber) to the URL to get back to your default...

Is there a way to have the style chooser at the bottom?

dartho 05-23-2008 11:39 PM

You could edit your footer template and add the following at the very top of the template:
Code:

<if condition="$show['quickchooser']">
<div>
        <select name="styleid" onchange="switch_id(this, 'style')">
                <optgroup label="$vbphrase[quick_style_chooser]">
                        $quickchooserbits
                </optgroup>
        </select>
</div>
</if>

This code won;t have any effect if you are using the mobile autodetect add-on or the different domain, different style addon as these addons *force* the style...

HFB 05-24-2008 01:05 AM

Quote:

Originally Posted by dartho (Post 1529534)
You could edit your footer template and add the following at the very top of the template:
Code:

<if condition="$show['quickchooser']">
<div>
        <select name="styleid" onchange="switch_id(this, 'style')">
                <optgroup label="$vbphrase[quick_style_chooser]">
                        $quickchooserbits
                </optgroup>
        </select>
</div>
</if>

This code won;t have any effect if you are using the mobile autodetect add-on or the different domain, different style addon as these addons *force* the style...

That shows the dropdown menu but it doesn't load another style when it's selected. There probably needs to be other stuff added to support it. The simplest way is to hardcode in a link to your default style there. Nice job on the design! :)
eg:
Code:

<td><a href="http:/index.php?styleid=xx">Switch to Default Style</a></td>

dartho 05-24-2008 01:24 AM

You're right - need to include some javascript as well .... oops..


All times are GMT. The time now is 08:18 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.01382 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (3)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