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-29-2006 10:54 PM

How would I go about adding a link in favorites? I have some forums that are just links, and would be great to be able to add them too.

PoetJA-1975 10-29-2006 11:26 PM

Quote:

Originally Posted by Psionic Vision
I am subscribed to all my threads, lol.

:ermm: So did you purposely ignore my question?
That's a bit disconcerting = excellent modification anyway

Jacquii.

akanevsky 10-30-2006 12:46 AM

Quote:

Originally Posted by PoetJA-1975
:ermm: So did you purposely ignore my question?
That's a bit disconcerting = excellent modification anyway

Jacquii.

No, you just write whole large posts and I have not realized that there is a questions there. Could you please state your question more briefly?

PoetJA-1975 10-30-2006 01:11 AM

btw - vB.org IS a message posting board
You're acting like an itty bitty B-I-T-C-H
==========

so how's this for succinct? = thanx for nothing :)

Jacquii.

Paul M 10-30-2006 01:41 AM

No need to be like that, play nicely please. :)

JohnBee 10-30-2006 12:24 PM

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 



JohnBee 10-30-2006 02:12 PM

Couple of suggestions for this great hack.

a) When users reply(quick) the posts don't have titles, therefor the vBfavs won't save a reference title for that particular post. Perhaps an alternate route would be to offer title as... "reply to post "blablabla" and the user name associated with it.

b) perhaps a back button instead of close would be more appropriate from the view vB favorite thread. Otherwise the browser wants to close the tab or browser thus closing the session.

These are about it for now, I will continue to try a few other things out in the meantime. I really like this mode btw. totally useful for site designers who want to mark posts/ reminders where members ask for help or support on.

akanevsky 10-30-2006 09:36 PM

Quote:

perhaps a back button instead of close would be more appropriate from the view vB favorite thread. Otherwise the browser wants to close the tab or browser thus closing the session.
Huh?

PoetJA-1975 10-30-2006 10:24 PM

Quote:

Originally Posted by JohnBee
Without looking I will say this is a browser issue.

I was thinking as much myself... At anyrate - Thanx for responding...
ALSO - I do try to make JPiC user friendly for all browsers = I think it's the Virgo perfectionism in me ;)

Jacquii.

Aunt Clara 11-08-2006 09:22 PM

Quote:

Originally Posted by Lionel
This has always been one my favorites hacks. It works fine with 3.60, but would be really nice if it could display a Remove thread/post/user in post/thread/memberinfo when already in favorites instead of add again

I second that (or fourth it).

Anyone can come up with a way to do this?

Thanks.


All times are GMT. The time now is 12:42 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.01774 seconds
  • Memory Usage 2,056KB
  • 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
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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