vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   "Fix" your board for Opera (https://vborg.vbsupport.ru/showthread.php?t=33641)

James Cridland 12-30-2001 02:09 PM

Background
This is a rather contentious issue.
It could be said that Opera v6 (the newest one) is broken, since it doesn't display certain bits of vBulletin correctly when vBulletin uses correct HTML code.
It could also be said that these mods are 'illegal', since they use HTML that you're not supposed to use anymore.

However, if all you care about is making your board look perfect, then you can make two amendments to your code to ensure that Opera users get exactly the same user experience as Internet Explorer or Netscape users.

Please note: I do not wish to get into an argument about whether this is good practice or not. I am merely giving these two code amendments to share my discoveries with the rest of the vBulletin community. There are two discussions, one at vBulletin and one at Opera about this point if you wish to debate it. Please don't debate it here.

Having said that, here are the two areas I've found so far, and the simple fixes to make them work.

Redirects are not centered
The 'Thank you for posting' message appears on the left-hand side of the screen, not in the centre.
Edit: "standard_redirect" template
Place <center> tags before the first <TABLE>, and place </center> before the last </TABLE>.

The bottom of the thread view
The "post a reply" and "post new thread" buttons appear in the middle, and are not aligned to the right.
Edit: "showthread" template
find
<td width="100%"><smallfont color="#EEEEFF"><b>$timezone</b></smallfont></td>
<td>

replace with
<td width="100%"><smallfont color="#EEEEFF"><b>$timezone</b></smallfont></td>
<td align="right">



I hope that users find this useful; I'd repeat that I'd really like not to be drawn into an argument whether this is right or wrong: this isn't the place for it.

jbell 01-14-2002 01:39 AM

I only use opera 6 becuase my IE6 is a nightmare .. what problems are people stating? I have had flawless performance with my opera from day one....

I would be glad to help out where I can in testing or whatever.

samtha25 01-15-2002 03:23 AM

On the redirect, an alternative is to move the align="center" from the TR to the inner TABLE.

My biggest problem with Opera and vB has been that the author column of showthread does not line up nicely. Two solutions:

The tables in which a post is wrapped have a TD width=10, TD width="100% - the spacer - then the inner table has two sets of TD width=175 and TD width="100%".

If people seldom or never use PRE text in their posts (vbcodes, code, php), replace the "100%" with a "*". Do the same with the Author, Thread heading.

However, this will not keep posts with PRE text aligned - in any browser that I've tried. With posts with PRE text, the only way I've found to keep the author column aligned is to put a spacer gif in the author column set to the desired minimum width.

The same also applies to threadreviewbit, which displays the thread at the bottom of a posting page.

Other than those few things, vB works fine for me with both O5 and O6 and O6 really rox. ;)

James Cridland 02-09-2002 03:35 PM

Absolutely, it's a real benefit to have software which works flawlessly in Opera. Congrats to Jelsoft.

nuno 02-10-2002 06:21 AM

hmmm
concerning redirects, you'r right, same things happens with Konqueror, they are all align left.
Yet, you can achieve better results with:
edit standardredirect template and after

Code:

<tr align="center" valign="middle">
        <td>

paste

Code:


<div align="center" valign="left">

edit showthread template and replace

Code:

<table border="0" cellspacing="0" cellpadding="0" bgcolor="#8080A6">
with

Code:

<table width="100%" border="0" cellpadding="0" cellspacing="0">
this way will work with all browsers i think :rolleyes:
you see, Konqueror ignores <tr align="blah blah">


All times are GMT. The time now is 01:51 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.01101 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete