vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBFavorites (https://vborg.vbsupport.ru/showthread.php?t=98808)

Lionel 10-08-2006 08:17 AM

Quote:

Originally Posted by Snake
Awesome! I have been waiting for this. Thank you very much, but have you ever thought adding a new feature a favorites for forums, too? That would be great ya! :D

There is such a hack: favorite boards (on a vb advanced full page)

DPSR 10-08-2006 09:52 AM

Quote:

Originally Posted by EvilHawk
its working fine .. ;)

Thanks buddy ;)

Shazz 10-08-2006 02:50 PM

Quote:

Originally Posted by Lionel
There is such a hack: favorite boards (on a vb advanced full page)

You mean like in a footer..

Lionel 10-08-2006 03:01 PM

no I meant a full page.
You subscribe to a forum or to a thread and it displays your subscriptions on a full page. Do you use vbadvanced?

PoetJA-1975 10-12-2006 08:05 AM

Hey PSIONIC - great hack... I think someone's already asked this question but it went unanswered. Thus I ask again :)

Concerning custom headers - I have followed the instructions and have ran into bit of an issue... Instead of making the navbar template edits - I applied those to the header template. For some reason there is an extra line AND an image (/misc/menu_open.gif) that shows under the Favorites button/image

Attached pics:
1. regular header with the Favorites button not shown
2. header with the Favorites button shown

You'll notice the line and menu_open.gif image in the pic...

I've played around with the code a little. This is the code I'm currently using

PHP Code:

<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="favs" /></a><script type="text/javascript"vbmenu_register("favorites" ,1); </script></td>
            </if> 

So I'm stuck! I'm not quite sure what the appropriate code is to remove that line and extra image.

I'll appreciate your help - Thanx very much!

Jacquii.

btw - AWESOME addition, as is the rest of your work! I know my Members will really enjoy this addition - but the perfectionist in me just says "Make it look right!" LOL so anyway.... Help!

PoetJA-1975 10-22-2006 12:11 PM

hello - anyone know the answer???

Jacquii.

FireFish 10-25-2006 03:14 AM

I normally don't post to give Kudos on a hack (not that there's something wrong with that) but this one deserves an exception...

KUDOS.

This is a hot hack; works nicely with 3.6.2; I've been looking for this for a while.

Thanks, man!

JohnBee 10-29-2006 03:58 PM

Quote:

Originally Posted by PoetJA-1975
Hey PSIONIC - great hack... I think someone's already asked this question but it went unanswered. Thus I ask again :)

Concerning custom headers - I have followed the instructions and have ran into bit of an issue... Instead of making the navbar template edits - I applied those to the header template. For some reason there is an extra line AND an image (/misc/menu_open.gif) that shows under the Favorites button/image

Attached pics:
1. regular header with the Favorites button not shown
2. header with the Favorites button shown

You'll notice the line and menu_open.gif image in the pic...

I've played around with the code a little. This is the code I'm currently using

PHP Code:

<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="favs" /></a><script type="text/javascript"vbmenu_register("favorites" ,1); </script></td>
            </if> 

So I'm stuck! I'm not quite sure what the appropriate code is to remove that line and extra image.

I'll appreciate your help - Thanx very much!

Jacquii.

btw - AWESOME addition, as is the rest of your work! I know my Members will really enjoy this addition - but the perfectionist in me just says "Make it look right!" LOL so anyway.... Help!

Any chance you could post the entire template? doesn't look like a complicated problem though.

PoetJA-1975 10-29-2006 10:22 PM

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 


akanevsky 10-29-2006 10:29 PM

I am subscribed to all my threads, lol.


All times are GMT. The time now is 12:37 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.01989 seconds
  • Memory Usage 2,089KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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