Jump to content
vBWarez - Rest In Peace

VSa - Advanced New Posts


Recommended Posts

  • Admin
[COLOR=#ff0000][B]Info:[/B][/COLOR]

This hack will show how many new posts/threads have been posted in forums since your 'last visit'.
New posts are checked via AJAX, manually or in defined time interval.
Optionally you can enable and configure Smart Search Menu to give users ability to search individual forum sections.

View Screenshots.

[COLOR=#ff0000][B]Installation:[/B][/COLOR]

Import product XML: AdminCP > Plugin System > Manage Products > [Add/Import Product]

[B][COLOR=#ff0000]To Set Options:[/COLOR][/B]

Go to: AdminCP > vBulletin Options > VSa - Advanced 'New Posts'

[COLOR=#ff0000][B]Versions:[/B][/COLOR]

[COLOR=#008000]v1.0 - Apr 29. 2006.[/COLOR]
-First version

[COLOR=#008000]v2.4 - Jan 18. 2009.[/COLOR]
-Latest 3.x version

[COLOR=#008000]v3.0 - Jan 17. 2010.[/COLOR]
-Updated for vBulletin 4.x
-Mod prefix (Cyb) changed to 'VSa'

[COLOR=#008000]v3.0.3 - May 21. 2012.[/COLOR]
-Compatible with vBulletin 4.2.x

Edited by Zombie
  • Like 10
Link to post
Share on other sites
  • 8 months later...
  • 2 months later...
  • 2 years later...
How to paste in this navbar [CODE]<div id="navbar_container">
<div class="main_wrap">
<div id="navbar" class="navbar">
<ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
{vb:raw template_hook.navtab_start}
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
<li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a>
<ul class="floatcontainer">
{vb:raw template_hook.navbar_start}
<vb:if condition="$vboptions['bbmenu']">
<li><a href="{vb:link forumhome}">{vb:rawphrase forum}</a></li>
</vb:if>
<vb:if condition="$show['searchbuttons']">
<vb:if condition="$show['member']">
<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>
<vb:else />
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
</vb:if>
</vb:if>
{vb:raw template_hook.navbar_after_getnew}
<vb:if condition="$show['pmmainlink']">
<li><a href="private.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase private_messages}</a></li>
</vb:if>
{vb:raw template_hook.navbar_after_pm}
<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}" accesskey="5">{vb:rawphrase faq}</a></li>
{vb:raw template_hook.navbar_after_faq}
<vb:if condition="$show['canviewcalendar']">
<li><a href="calendar.php{vb:raw session.sessionurl_q}">{vb:rawphrase calendar}</a></li>
</vb:if>
{vb:raw template_hook.navbar_after_calendar}
<vb:if condition="$show['communitylink']">
<li class="popupmenu">
<a href="javascript://" class="popupctrl" accesskey="6">{vb:rawphrase community}</a>
<ul class="popupbody popuphover">
{vb:raw template_hook.navbar_community_menu_start}
<vb:if condition="$show['quick_links_groups']">
<li><a href="{vb:link grouphome}">{vb:rawphrase social_groups}</a></li>
</vb:if>
<vb:if condition="$show['quick_links_albums']">
<li><a href="album.php{vb:raw session.sessionurl_q}">{vb:rawphrase pictures_and_albums}</a></li>
</vb:if>
<vb:if condition="$bbuserinfo['userid']">
<li><a href="profile.php?{vb:raw session.sessionurl}do=buddylist"><vb:if condition="$show['friends_and_contacts']">{vb:rawphrase contacts_and_friends}<vb:else />{vb:rawphrase contacts}</vb:if></a></li>
</vb:if>
<vb:if condition="$show['memberslist']">
<li><a href="memberlist.php{vb:raw session.sessionurl_q}">{vb:rawphrase members_list}</a></li>
</vb:if>
{vb:raw template_hook.navbar_community_menu_end}
</ul>
</li>
</vb:if>
{vb:raw template_hook.navbar_after_community}
<vb:if condition="$show['canviewforums']">
<li class="popupmenu">
<a href="javascript://" class="popupctrl">{vb:rawphrase forum_actions}</a>
<ul class="popupbody popuphover">
{vb:raw template_hook.navbar_forum_menu_start}
<li>
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&markreadhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a>
</li>
<vb:if condition="$show['member']">
<li>
<a href="profile.php?{vb:raw session.sessionurl}do=editoptions">{vb:rawphrase edit_options}</a>
</li>
<li>
<a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a>
</li>
</vb:if>
{vb:raw template_hook.navbar_forum_menu_end}
</ul>
</li>
</vb:if>
<li class="popupmenu">
<a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
<ul class="popupbody popuphover">
{vb:raw template_hook.navbar_quick_links_menu_pos1}
<vb:if condition="$show['member']">
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
<li><a href="{vb:link subscription}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
<li><a href="javascript://" onclick="window.open(getBaseUrl() + 'misc.php?{vb:raw session.sessionurl}do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">{vb:rawphrase open_contacts}</a></li>
</vb:if>
{vb:raw template_hook.navbar_quick_links_menu_pos2}
<vb:if condition="$vboptions['forumleaders']">
<li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
<vb:if condition="$vb_suite_installed">
{vb:rawphrase view_site_leaders}
<vb:else />
{vb:rawphrase view_forum_leaders}
</vb:if>
</a></li>
</vb:if>
{vb:raw template_hook.navbar_quick_links_menu_pos3}
<vb:if condition="$show['wollink']">
<li><a href="online.php{vb:raw session.sessionurl_q}">{vb:rawphrase whos_online}</a></li>
</vb:if>
{vb:raw template_hook.navbar_quick_links_menu_pos4}
</ul>
</li>
{vb:raw template_hook.navbar_end}
</ul>
</li>
<vb:else />
<li><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a></li>
</vb:if>
{vb:raw template_hook.navtab_middle}

{vb:raw template_hook.navtab_end}
</ul>
</div>
</div>
</div>
<vb:if condition="$vboptions['enablesearches']">
<div id="globalsearch" class="globalsearch">
<form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
<vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="process" />
<span class="textboxcontainer"><span><input type="text" value="Поиск..." onfocus="if (this.value == 'Поиск...') this.value = '';" onblur="if (this.value == '') this.value = 'Поиск...';" name="query" class="textbox" tabindex="99"/></span></span>
<span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search1<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="is_browser('ie') AND !is_browser('ie', 7)">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
</form>
<ul class="navbar_advanced_search">
<div id="advsea">
<li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4"><font size="1" color="DarkBlue">{vb:rawphrase advanced_search}</font></a></li></div>
{vb:raw template_hook.navbar_advanced_search}
</ul>
</div>
</vb:if>
<div id="header" class="floatcontainer doc_header">
<div class="main_wrap">
<vb:if condition="$stylevar['titleimage']"><div style="float: left; width: 30%;"><a href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="iCoder.Uz - Форум для программистов" /></a></div></vb:if>

<div style="float: right; width: 70%;">
<vb:if condition="$show['member']">
<div id="toplinks" class="toplinks">
<ul class="isuser">
<li style="padding-right: 0px;"><a href="login.php?{vb:raw session.sessionurl}do=logout&logouthash={vb:raw bbuserinfo.logouthash}" onClick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
<vb:if condition="$show['registerbutton']">
<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
</vb:if>
<li><a href="misc.php?do=vsaareginv{vb:raw session.sessionurl_q}">{vb:rawphrase vsaareg_invitation_invite}</a></li>
<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li>
<li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
<vb:if condition="$notifications_total">
<li class="popupmenu notifications" id="notifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
<ul class="popupbody popuphover">
{vb:raw notifications_menubits}
</ul>
</li>
<vb:else />
<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
<ul class="popupbody popuphover">
<li style="color: #333333; padding: 3px;">{vb:rawphrase no_new_messages}</li>
<vb:if condition="$show['pmmainlink']"><li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li></vb:if>
</ul>
</li>
</vb:if>
<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
<vb:if condition="$vboptions['enablefacebookconnect']">
{vb:raw facebook_header}
</vb:if>
</ul>
{vb:raw template_hook.header_userinfo}
<vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>
</div>
<vb:else />
<div class="guestbuttons">
<a href="#login-box" class="login-window">{vb:rawphrase log_in}</a>
<vb:if condition="$show['registerbutton']"><a href="register.php" class="register">{vb:rawphrase register}</a></vb:if>
</div>
</vb:if>
<div class="clear"></div>
<div class="ad_global_header">
{vb:raw ad_location.global_header1}
{vb:raw ad_location.global_header2}
<br></br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
function showTime()
{
var dat=new Date();
var wd=new Array(7);
wd[0]= "Вс"; wd[1]="Пн"; wd[2]="Вт"; wd[3]="Ср"; wd[4]="Чт"; wd[5]="Пт"; wd[6]="Сб";
var dn=wd[dat.getDay()];
var mon=new Array();
mon[0]="Янв";mon[1]="Фев";mon[2]="Мар";mon[3]="Апр";mon[4]="Мая";mon[5]="Июн";
mon[6]="Июл";mon[7]="Авг";mon[8]="Сен";mon[9]="Окт";mon[10]="Ноя";mon[11]="Дек";
var moy=mon[dat.getMonth()];
var Y=dat.getFullYear();
var d=dat.getDate();
var H='' + dat.getHours();
H=H.length<2 ? '0' + H:H;
var M='' + dat.getMinutes();
M=M.length<2 ? '0' + M:M;
var S='' + dat.getSeconds();
S =S.length<2 ? '0' + S:S;
var clock='<b style="color:white;"> ' + H + ':' + M + ':' + S + ' </b>' + dn + ' ' + d + ' ' + moy + ' ' + Y + ' ';
document.getElementById('time_div').innerHTML=clock;
setTimeout(showTime,1000); // перерисовать 1 раз в сек.
}
</script>
<center>
<div id="main">
<div id="time_div" style="font-size:14pt;color:#DDD;font-weight:600;font-family:Verdana;">
</div>
<script type="text/javascript">
showTime();
</script>
</div></center>
</div>
<hr />
</div>
</div>
</div>

<vb:if condition="$show['guest']">
<div id="login-box" class="login-popup">
<a href="{vb:raw relpath}" class="close"><img src="{vb:stylevar imgdir_misc}/close_login.png" class="btn_close" title="Закрыть окно" alt="Close" /></a>
<ul class="nouser">
<li>
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
<div style="float: left;">
<form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onSubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})">
<fieldset id="logindetails" class="logindetails">
<div>
<div>
<div style="margin-bottom: 5px;">
<input type="text" class="textbox<vb:if condition="!$username"> default-value</vb:if>" name="vb_login_username" id="navbar_username" size="30" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" />
</div>
<div style="margin-bottom: 5px;">
<input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="30" />
</div>
<input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="30" value="{vb:rawphrase password}" style="display:none;" />
<div style="margin-top: 5px;">
<div style="float: left;">
<input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
</div>
<div id="remember" class="remember">
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label>
</div>
</div>
</div>
</div>
</fieldset>

<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<div class="password_remind"><a href="login.php?do=lostpw">Забыли пароль?</a></div>
</div>
<div style="float: left; margin-left: 10px; border-left: 1px solid #888888; min-height: 100px;">
<vb:if condition="$vboptions['enablefacebookconnect']">
<ul>
{vb:raw facebook_header}
</ul>
<div class="clear"></div>
</vb:if>
<vb:if condition="$show['registerbutton']">
<div class="register">
<a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a>
</div>
</vb:if>
</div>
<script type="text/javascript">
YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
vB_XHTML_Ready.subscribe(function()
{
//
YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus);
YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur);
YAHOO.util.Event.on('navbar_password_hint', "focus", navbar_password_hint);
YAHOO.util.Event.on('navbar_password', "blur", navbar_password);
});

function navbar_username_focus(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);
if (textbox.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>')
{
//
textbox.value='';
textbox.style.color='{vb:stylevar input_color}';
}
}

function navbar_username_blur(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);
if (textbox.value == '')
{
//
textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>';
textbox.style.color='{vb:stylevar shade_color}';
}
}

function navbar_password_hint(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);

YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "none");
YAHOO.util.Dom.setStyle('navbar_password', "display", "inline");
YAHOO.util.Dom.get('navbar_password').focus();
}

function navbar_password(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);

if (textbox.value == '')
{
YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
}
}
</script>
</li>
</ul>
</div>
</vb:if>

<div id="breadcrumb" class="breadcrumb">
<div class="main_wrap">
<ul class="floatcontainer">
<li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
{vb:raw navbits.breadcrumb}
{vb:raw navbits.lastelement}
</ul>
</div>
</div>

<div id="body_bg">
<div class="main_wrap">

<div id="page_title_container">
<div id="page_title_container_inner">
<vb:if condition="THIS_SCRIPT == 'index'">
<h1 style="padding: 28px 20px 0px 0px;">{vb:raw vboptions.bbtitle}</h1>
<p class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
<vb:elseif condition="THIS_SCRIPT == 'forumdisplay'"/>
<h1 style="padding: 28px 20px 0px 0px;"><span class="forumtitle">{vb:raw foruminfo.title}</span></h1>
<vb:if condition="$foruminfo['description']"><p class="description">{vb:raw foruminfo.description}</p></vb:if>
<vb:else />
<h1 style="padding: 28px 20px 0px 0px;">
{vb:raw navbits.lastelement}
</h1>
</vb:if>
</div>
</div>

<div class="body_wrapper">

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}

<vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
<form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
<input type="hidden" name="do" value="dismissnotice" />
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<input type="hidden" name="url" value="{vb:raw return_link}" />
<ol>
{vb:raw notices}
</ol>
</form>
</vb:if>[/CODE]

[COLOR="silver"][SIZE=1]- - - Updated - - -[/SIZE][/COLOR]

I don't use {vb:raw navigation}, please help me with integration of thi product
Link to post
Share on other sites
×
×
  • Create New...