Thread: vBFavorites
View Single Post
  #167  
Old 10-30-2006, 12:24 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Without looking I will say this is a browser issue.

Opera has it's share of troubles when parsing code. I would have a double take with Netscape and if all is well, you should try and isolate the piece of code that Opera is not parsing properly and submit it to the powers at will.

I like to use FF and IE7 for code check.
If it passes those two, I usually blame it on the browsers from that point on.

PS. If you are planning on modding your forum with all browsers in view, you had better turn your hat around because you certainly have your work cut out for you.

Quote:
Originally Posted by PoetJA-1975
Hey JOHN - thanx for taking a look at the below code... It's strange really, as there is no issue in Firefox & IE ----> But the pics above show what it looks like in Opera... Anyway - any help will be appreciate

Thanx again! Was hoping Psionic would be able to help, but apparently he's not subscribed to the thread anymore lol...

Jacquii.

PHP Code:
<!-- Improve registration Rates -->
<
style type="text/css">

#topbar{
position:absolute;
border1px solid black;
padding5px;
background-colorwhite;
width560px;
visibilityhidden;
z-index400;
}

</
style>

<
script type="text/javascript">
var 
persistclose=//set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX 30 //set x offset of bar in pixels
var startY //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

function iecompattest(){
return (
document.compatMode && document.compatMode!="BackCompat")? document.documentElement document.body
}

function 
get_cookie(Name) {
var 
search Name "="
var returnvalue "";
if (
document.cookie.length 0) {
offset document.cookie.indexOf(search)
if (
offset != -1) {
offset += search.length
end 
document.cookie.indexOf(";"offset);
if (
end == -1end document.cookie.length;
returnvalue=unescape(document.cookie.substring(offsetend))
}
}
return 
returnvalue;
}

function 
closebar(){
if (
persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}

function 
staticbar(){
    
barheight=document.getElementById("topbar").offsetHeight
    
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
    var 
document;
    function 
ml(id){
        var 
el=d.getElementById(id);
        if (!
persistclose || persistclose && get_cookie("remainclosed")=="")
        
el.style.visibility="visible"
        
if(d.layers)el.style=el;
        
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
        
el.startX;
        if (
verticalpos=="fromtop")
        
el.startY;
        else{
        
el.ns pageYOffset innerHeight iecompattest().scrollTop iecompattest().clientHeight;
        
el.-= startY;
        }
        return 
el;
    }
    
window.stayTopLeft=function(){
        if (
verticalpos=="fromtop"){
        var 
pY ns pageYOffset iecompattest().scrollTop;
        
ftlObj.+= (pY startY ftlObj.y)/8;
        }
        else{
        var 
pY ns pageYOffset innerHeight barheightiecompattest().scrollTop iecompattest().clientHeight barheight;
        
ftlObj.+= (pY startY ftlObj.y)/8;
        }
        
ftlObj.sP(ftlObj.xftlObj.y);
        
setTimeout("stayTopLeft()"10);
    }
    
ftlObj ml("topbar");
    
stayTopLeft();
}

if (
window.addEventListener)
window.addEventListener("load"staticbarfalse)
else if (
window.attachEvent)
window.attachEvent("onload"staticbar)
else if (
document.getElementById)
window.onload=staticbar
</script>


<if 
condition="$bbuserinfo['usergroupid'] == '1'">

<
div id="topbar">
<
a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a>
<
font face="arial" color="#000000">You are showing up as unregistered. <strong><a href="register.php">CLICK HERE</a></strongto register with our Community.</font></td></if>
</
div>

<!-- 
End Improve Registration -->

<!-- 
logo -->
<
link rel="SHORTCUT ICON" href="http://jpicforum.info/favicon.ico">


<
a name="top"></a>
<
table border="0" width="90%" cellpadding="5" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/head_back.gif">
<
tr>

        <
td align="left" valign="top"><a href="http://JPiCForum.info"><img src="$stylevar[imgdir_misc]/head_left.gif" alt="" border="0" /></a></td>
        <
td align="right" valign="middle"><img src="$stylevar[imgdir_misc]/banner.gif" alt="" /></td>

    <
td align="$stylevar[center]">
                  &
nbsp
    </
td>
</
tr>
</
table>
<!-- /
logo -->
<!-- 
Navigation bar -->
    <
table width="90%" style="background-image:url($stylevar[imgdir_misc]/nav.gif)" align="center" border="0" cellpadding="0" cellspacing="0">
    <
tr>
    <
td align="left" valign="top" height="24">
        
<
table width="50%"  align="center" border="0" cellspacing="0" cellpadding="0">
  <
tr>
           <
td align="left" valign="top" width="80" height="24"><a href="$vboptions[forumhome].php$session[sessionurl_q]accesskey="1"><img src="$stylevar[imgdir_misc]/nav_home.gif" width="80" height="24" border="0" alt="" /></a></td>
                <if 
condition="$show['registerbutton']">
        <
td width="80" height="24"><a href="register.php$session[sessionurl_q]rel="nofollow"><img src="$stylevar[imgdir_misc]/nav_reg.gif" width="80" height="24" border="0" alt="" /></a></td>
        <else />
        <
td align="left" valign="top" width="80" height="24"  id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/nav_link.gif" width="80" height="24" border="0" alt="" /></a><script type="text/javascript"vbmenu_register("usercptools" ,1); </script></td>
        </if>
        <
td align="left" valign="top" width="80" height="24"><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_member.gif" width="80" height="24" border="0" alt="" /></a></td>

<
td align="left" valign="top" width="80" height="24"><a href="http://jpicforum.info/vbgooglemapme.php" accesskey="5"><img src="$stylevar[imgdir_misc]/nav_faq.gif" width="80" height="24" border="0" alt="" /></a></td>
        <
td align="left" valign="top" width="80" height="24"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_usercp.gif" width="80" height="24" border="0" alt="" /></a></td>
        
        <
td align="left" valign="top" width="80" height="24" id="navbar_search"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/nav_search.gif" width="80" height="24" border="0" alt="" /></a><script type="text/javascript"vbmenu_register("navbar_search" ,1); </script></td>
        
<if 
condition="$show['lastfavthreads'] OR $show['lastfavposts'] OR $show['lastfavusers']">
                <
td width="80" height="24" id="favorites"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/nav_favorites.gif" width="80" height="24" border="0" alt="" /></a><script type="text/javascript"vbmenu_register("favorites" ,1); </script></td>
            </if>

           <
td align="left" valign="top" width="80" height="24"><a href="http://jpicforum.info/billspaypal.php?"><img src="$stylevar[imgdir_misc]/nav_donate.gif" width="80" height="24" border="0" alt="" /></a></td>         
  </
tr>
</
table>
        </
td>
    </
tr>
</
table>

<if 
condition="$show['popups']">
<!-- 
NAVBAR POPUP MENUS -->

<!-- / new 
link menu --> 

<
div class="vbmenu_popup" id="newlink_menu" style="display:none"
<
table cellpadding="4" cellspacing="1" border="0"

<
tr><td class="thead"><a href="usercp.php?">$vbphrase[user_cp]</a></td></tr

<
tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr
<
tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editlist">$vbphrase[buddy_ignore_lists]</a></td></tr
<
tr><td class="vbmenu_option"><a href="profile.php?do=editsignature">$vbphrase[edit_signature]</a></td></tr

<
tr><td class="vbmenu_option"><a href="profile.php?do=editpassword"$vbphrase[edit_email_and_password]</a></td></tr

<
tr><td class="vbmenu_option"><a href="profile.php?do=editprofile"$vbphrase[edit_profile]</a></td></tr

<
tr><td class="vbmenu_option"><a href="profile.php?do=editoptions">$vbphrase[edit_options]</a></td></tr

<
tr><td class="vbmenu_option"><a href="profile.php?do=editavatar">$vbphrase[edit_avatar]</a></td></tr

<
tr><td class="vbmenu_option"><a href="profile.php?do=editprofilepic"$vbphrase[edit_profile_picture]</a></td></tr

</
table
</
div
<!-- / new 
link menu --> 

    
    <if 
condition="$show['searchbuttons']">
    <!-- 
header quick search form -->
    <
div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
td class="thead">$vbphrase[search_forums]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
            <
form action="search.php" method="post">
                <
input type="hidden" name="do" value="process" />
                <
input type="hidden" name="showposts" value="0" />
                <
input type="hidden" name="quicksearch" value="1" />
                <
input type="hidden" name="s" value="$session[sessionhash]/>
                <
input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
            </
form>
            </
td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option"><a href="search.php$session[sessionurl_q]accesskey="4" rel="nofollow">$vbphrase[advanced_search]:</a></td>
        </
tr>



    <if 
condition="$show['member']">    
        <
tr>
<
td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]:</a></td>
</
tr>    
    <else />    
        <
tr>
                <
td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]:</a></td>
        </
tr>
        </if>    

<
tr>
            <
td class="thead">Search With Google</td>
        </
tr>
<!-- 
SiteSearch Google -->
<
form method="get" action="http://www.google.com/custom" target="google_window">
<
table border="0" bgcolor="#DDD7BD">
<
tr><td nowrap="nowrap" valign="top" align="left" height="32">

<
br/>
<
input type="hidden" name="domains" value="YOUR DOMAIN NAME"></input>
<
input type="text" name="q" size="30" maxlength="255" value=""></input>
</
td></tr>
<
tr>
<
td nowrap="nowrap">
<
table>
<
tr>
<
td>
<
input type="radio" name="sitesearch" value="" checked="checked"></input>
<
font size="-1" color="#000000">Web</font>
</
td>
<
td>
<
input type="radio" name="sitesearch" value="JPiCForum.info"></input>
<
font size="-1" color="#000000">JPiC Forum</font>
</
td>
</
tr>
</
table>
<
input type="submit" name="sa" value="Google Search"></input>
<
input type="hidden" name="client" value="pub-6622330007501456"></input>
<
input type="hidden" name="forid" value="1"></input>
<
input type="hidden" name="ie" value="ISO-8859-1"></input>
<
input type="hidden" name="oe" value="ISO-8859-1"></input>
<
input type="hidden" name="safe" value="active"></input>
<
input type="hidden" name="cof" value="GALT:#800000;GL:1;DIV:#584F41;VLC:663399;AH:center;BGC:DDD7BD;LBGC:93856D;ALC:800000;LC:800000;T:584F41;GFNT:0000FF;GIMP:0000FF;LH:50;LW:276;L:http://jpicforum.info/images/smilies/Extra/jpicrocks.gif;S:http://JPiCForum.info;FORID:1"></input>
<
input type="hidden" name="hl" value="en"></input>
</
td></tr></table>
</
form>
<!-- 
SiteSearch Google -->
        </
table>
    </
div>
    <!-- / 
header quick search form -->
    </if>

    <if 
condition="$show['member']">
    <!-- 
user cp tools menu -->
    <
div class="vbmenu_popup" id="usercptools_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        
        <
tr><td class="thead">$vbphrase[quick_links]</td></tr>        
        <if 
condition="$vboptions['enablesearches']">
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td></tr></if>

        <
tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>

        <
tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
                
        <
tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if 
condition="$show['lastfavthreads'] OR $show['lastfavposts'] OR $show['lastfavusers']">
                <
td class="vbmenu_option" id="favorites"><a href="usercp.php?$session[sessionurl]">$vbphrase[vbfavorites_favorites]</a> <script type="text/javascript"vbmenu_register("favorites"); </script> </td>
            </if>
        <if 
condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
        <!--<if 
condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
        <
tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
        
        <
tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
        <if 
condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
        <
tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<
tr><td class="vbmenu_option"><a href="psistats.php$session[sessionurl_q]">$vbphrase[psistats_link]</a></td></tr>
        <if 
condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
        <if 
condition="$bbuserinfo[userid]"><tr><td class="vbmenu_option"><a href="$vboptions[bburl]/modapp.php?$session[sessionurl]">Apply To Be A Mod</a></td></tr></if>
        </
table>
    </
div>
    <!-- / 
user cp tools menu -->
    </if>
    <
div class="vbmenu_popup" id="favorites_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">

        <if 
condition="$show['lastfavthreads']">
        <
tr>
        <
td class="thead"><phrase 1="$vboptions[lastfavthreadlimit]">$vbphrase[last_x_added_favorite_threads]</phrase></td>
        </
tr>
        
$lastfavthreadbit
        
</if>

        <if 
condition="$show['lastfavposts']">
        <
tr>
        <
td class="thead"><phrase 1="$vboptions[lastfavpostlimit]">$vbphrase[last_x_added_favorite_posts]</phrase></td>
        </
tr>
        
$lastfavpostbit
        
</if>

        <if 
condition="$show['lastfavusers']">
        <
tr>
        <
td class="thead"><phrase 1="$vboptions[lastfavuserlimit]">$vbphrase[last_x_added_favorite_users]</phrase></td>
        </
tr>
        
$lastfavuserbit
        
</if>

        <
tr><td class="thead"><a href="usercp.php?$session[sessionurl]">$vbphrase[vbfavorites_complete_list]</a></td></tr>
        </
table>
    </
div>
<!-- / 
NAVBAR POPUP MENUS -->

<!-- 
PAGENAV POPUP -->

    <
div class="vbmenu_popup" id="pagenav_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
        <
tr>
            <
td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
        </
tr>
        <
tr>
            <
td class="vbmenu_option" title="nohilite">
            <
form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                <
input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                <
input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]/>
            </
form>
            </
td>
        </
tr>
        </
table>
    </
div>

<!-- / 
PAGENAV POPUP -->

<!-- 
QAS POPUP -->
<if 
condition="$show['switch']">

    <
div class="vbmenu_popup" id="switchacc_menu" style="display:none">
        <
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0">
            <
tr><td class="thead">$vbphrase[qas_qas]</td></tr>
            
$switchbit
        
</table>
    </
div>

</if>    
<!-- / 
QAS POPUP -->
</if>
<!-- / 
Navagation bar -->
$marquee
<!-- content table -->
$spacer_open

$_phpinclude_output
$welcomeheaders 
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01718 seconds
  • Memory Usage 2,321KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete