View Full Version : vbFavorites
akanevsky
05-21-2005, 10:00 PM
/*================================================= =====================*\
|| vbFavorites
|| Author : Psionic Vision
|| Works on : vBulletin 3.0.7
\*================================================ ======================*/
Did you ever find a useful thread on a bb? Did you want to save it for reading later? Did you have to choosing between subscribing to the thread and clogging your mailbox or adding it to your browser favorites and never finding it afterwards?
The problem has been solved!
With this hack, you can create your own personalized favorites menu within the bulletin board itself. You can add both posts and threads to the favorites. You can access the favorites from your usercp homepage. You can also specify a custom name for your favorites entry. It will also display latest 5 threads and posts in the nabar... See screenshots for more.
If you like it, do not forget to click INSTALL :)
The hack is free, however if you like that hack, feel free to DONATE (paypal it using my email which is written on top of this post) :)
RichieBoy67
05-22-2005, 08:14 PM
Nice!! Thanks :)
I guess I get to be first to install this!!!!!!! Honored to be the first..
2nd .. very useful hack and works well on 3.0.6.
Clicked install
nexialys
05-22-2005, 08:30 PM
question: in the custom name of the entry, is it working from a popup ?!... i don't like to overload my board with multiple pages for a single action... would be cool to have it in a popup forthe entire process, or even better, AJAX.. ;)
EDIT !:yes, the more i think of it, the more i think it can be easy to add a quick "add to favs" button working directly with AJAX, same way it "lock/unlock" threads... the complete "rename" page would be independant from the AJAX, but i think that the coming of AJAX is useful here... very useful!
ANOTHER EDIT: you forgot the " . TABLE_PREFIX . " in all the SQL queries... :)
EDIT 3: for the guys that built Links Systems, Articles or Albums systems, this Favorites can become your friend... check the code, it would be easy to add anyother kind of favorites to it...
T_Montana
05-22-2005, 08:38 PM
awsome hack.....i will wait to install make sure their aren't any bugs but i have a question......
to view you favorits are they in a pulldown menu from navbar or do you have to go into usercp?
akanevsky
05-22-2005, 08:50 PM
RichieBoy67, TTG
Thanks for positive feedback.
nexialys,
1. I am not sure whether anybody needs AJAX here.
2. Wrong. Check twice before claiming an error. Favorites table does not use prefix regardless of the presence or absence of the prefix in other tables.
3. It does not come in a popup, it comes on a small separate page as shown in the screenshot.
T_Montana,
1. You can be absolutely sure that there are no bugs.
2. You have to go to usercp. However, further modifications of this hack are not impossible (note that there can be a lot of favorites in one's list, so this is not likely to be of any use).
T_Montana
05-22-2005, 09:02 PM
RichieBoy67, TTG
Thanks for positive feedback.
nexialys,
1. I am not sure whether anybody needs AJAX here.
2. Wrong. Check twice before claiming an error. Favorites table does not use prefix regardless of the presence or absence of the prefix in other tables.
3. It does not come in a popup, it comes on a small separate page as shown in the screenshot.
T_Montana,
1. You can be absolutely sure that there are no bugs.
2. You have to go to usercp. However, further modifications of this hack are not impossible (note that there can be a lot of favorites in one's list, so this is not likely to be of any use).
yes i was thinking this too but you can have your top 10 favorites or you last 10 added favorites in dropdown menu from navbar....that would be pretty cool
T_Montana
05-22-2005, 09:04 PM
also how do i run a query?I have never had to this so have no idea what to do
akanevsky
05-22-2005, 09:04 PM
Aha! Last 10 is a great idea. I will add that.
You run a query using either PhpMyAdmin in your hosting's cpanel or AdminCP => Maintenance => Run SQL Query in your vBulletin.
sabret00the
05-22-2005, 09:10 PM
good idea :)
T_Montana
05-22-2005, 09:36 PM
Can't find this in my function-databuild file......---------------------------------------------------------------------------------------------------------------------------
FIND
---------------------------------------------------------------------------------------------------------------------------
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "deletionlog WHERE type = 'post' AND primaryid IN ($postids" . "0)");
this is the closest thing to it
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "deletionlog WHERE primaryid = $postid AND type = 'post'");
akanevsky
05-22-2005, 10:11 PM
What version do you have? of vB?
akanevsky
05-22-2005, 10:36 PM
UPDATE: v1.01
By T Montana's request, this hack now also includes last 5 threads and posts in the navbar. Screenshot includes. Upgrade instructions also includes.
T_Montana
05-22-2005, 11:10 PM
3.0.7
akanevsky
05-23-2005, 12:04 AM
In my 3.0.7, there is such a line. Try one of there (you can add the line after any of these):
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "editlog WHERE postid IN ($postids" . "0)");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "moderation WHERE postid IN ($postids" . "0)");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "reputation WHERE postid IN ($postids" . "0)");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "post_parsed WHERE postid IN ($postids" . "0)");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "post WHERE postid IN ($postids" . "0)");
Great hack...although there's a problem:
From 1.0.1 install text:CREATE TABLE `favorites` (
`entry_id` INT( 10 ) UNSIGNED NOT NULL ,
`entry_type` VARCHAR( 10 ) NOT NULL ,
`entry_title` VARCHAR( 255 ) NOT NULL ,
`userid` INT( 10 ) UNSIGNED NOT NULL
`dateline` int(100) unsigned NOT NULL default '0'
);
I'm receiving this error after running on mysql:
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'dateline` int(100) unsigned NOT NULL default '0'
)' at line 6
ehh a comma missing :nervous:
The right code:CREATE TABLE `favorites` (
`entry_id` INT( 10 ) UNSIGNED NOT NULL ,
`entry_type` VARCHAR( 10 ) NOT NULL ,
`entry_title` VARCHAR( 255 ) NOT NULL ,
`userid` INT( 10 ) UNSIGNED NOT NULL ,
`dateline` INT(100) unsigned NOT NULL default '0'
);
Cap'n Steve
05-23-2005, 05:55 AM
Cool idea, I'm surprised this hasn't been done before.
You should always use TABLE_PREFIX though. You never know how people's databases are set up and they might rely on the prefix.
Lionel
05-23-2005, 08:01 AM
Suggestions: When you click on "Complete List of Favorites" link in navbar, if there are none, can we say it, instead of looking at a page and wondering what that is supposed to be?
never mind, I forgot to put the conditionals
artonex
05-23-2005, 09:07 AM
overgrow.com is ran on vb2 and they have a hack like this.
akanevsky
05-23-2005, 09:29 AM
A comma missing - will be fixed ASAP.
TABLE_PREFIX - ok, I will add that...
overgrom.com - that is vb2. besides, I never heard of that board.
Thanks for positive comments :)
Lionel
05-23-2005, 03:36 PM
The favorites links in navbar do not display on vbadvanced pages. Can you tell us what the globals names are? We need to add them in vbadvanced settings.
Found them. Needed to add those in vbadvanced settings:ermm:
lastfavpostbit
lastfavthreadbit
and for those with vbaLinks, you need to add those in your construct navbar function in includes/functions_links.php
global $lastfavpostbit;
global $lastfavthreadbit;
and finally hardcode the showthread.php and showpost.php in the global.php
Princeton
05-23-2005, 03:41 PM
this looks great ... I'll click INSTALL :up:
akanevsky
05-23-2005, 06:24 PM
[B]Update to 1.02:
Fixed comma error in the table creation query The hack now uses TABLE_PREFIX
Update is fairly easy, for the update instructions are included.
gldtn
05-23-2005, 08:05 PM
[B]Update to 1.02:
Fixed comma error in the table creation query
The hack now uses TABLE_PREFIX
Update is fairly easy, for the update instructions are included.
I noticed the comma problem as soon as I ran the queries, but was able to fix the problem myself(yahoooooo :P).
Ahh sorry to jump in the conversation like this.. overgrow.com been around since the first days of vB and they had a very similar hack, just like they had the karma hack since the early days of vb2.. although shebang(the owner) did not want to share it for free :P
So, thanks a lot Dark Visor for sharing, great hack, great instructions..
Although I would prefere if the coders put comments before and after the code we have to change, add, or replace for easy detection if mistakes are made :) - Just a thought, don't take me serious :P
Wow, I'm typing too fast, I think I had way too much coffee!
Once again great hack, ahh! Dark do you think this would be possible to be intergrated using the AJAX system? this would get rid of the ADD ENTRY template and maybe others.
T_Montana
05-23-2005, 08:51 PM
when i edit global.php i get this.....
Database error in vBulletin 3.0.7:
Invalid SQL: SELECT * FROM favorites WHERE entry_type='thread' AND userid = '1' ORDER BY dateline DESC LIMIT 5
mysql error: Unknown column 'dateline' in 'order clause'
mysql error number: 1054
Date: Monday 23rd of May 2005 02:47:19 PM
Script: http://craxxxs.com/forums/
Referer:
Username: T_Montana
IP Address: **.***.***.**
Lionel
05-23-2005, 11:37 PM
Once again great hack, ahh! Dark do you think this would be possible to be intergrated using the AJAX system? this
Ajaxing this would be really cool ;)
akanevsky
05-24-2005, 01:18 AM
T_Montana,
Read the upgrade instructions carefully. It tells you to run another query.
About AJAX: Sorry, but I have no experience in making AJAX. I'll have to research the subject further before I can implement it in my hacks.
I like the idea of a favorites hack but the subscriptions page make it all a little redundant. Why not just pull the thread subscriptions data and display as a drop down?
akanevsky
05-24-2005, 05:56 PM
Because, M1th, as the hack description states, nobody wants to subscribe to a lot of topics and get flooded just because he wants to read it later. Besides, you cannot subscribe to posts.
artonex
05-24-2005, 08:05 PM
Dark Visor take alook at the Favorites overgrow.com/edge use its very good :D
akanevsky
05-25-2005, 09:27 AM
TheWebJunkie,
Screenshot please? :P
dsboyce8624
06-11-2005, 07:13 AM
The favorites links in navbar do not display on vbadvanced pages. Can you tell us what the globals names are? We need to add them in vbadvanced settings.
Found them. Needed to add those in vbadvanced settings:ermm:
lastfavpostbit
lastfavthreadbit
and for those with vbaLinks, you need to add those in your construct navbar function in includes/functions_links.php
global $lastfavpostbit;
global $lastfavthreadbit;
and finally hardcode the showthread.php and showpost.php in the global.php
I added the variables to vBa, but still no link in navbar, when I click add on either a thread or a post after submitting I get a blank screen, and nothing shows in usercp.
Can somebody help me out?
dsboyce8624
06-11-2005, 08:26 PM
The favorites links in navbar do not display on vbadvanced pages. Can you tell us what the globals names are? We need to add them in vbadvanced settings.
Found them. Needed to add those in vbadvanced settings:ermm:
lastfavpostbit
lastfavthreadbit
and for those with vbaLinks, you need to add those in your construct navbar function in includes/functions_links.php
global $lastfavpostbit;
global $lastfavthreadbit;
and finally hardcode the showthread.php and showpost.php in the global.php
What do you mean hardcode? More info please?
akanevsky
06-12-2005, 11:11 AM
You need the code from global.php + the an appropriate template change for vbportal/vbadvanced/w/e.
dsboyce8624
06-12-2005, 11:36 AM
You need the code from global.php + the an appropriate template change for vbportal/vbadvanced/w/e.
And you're assuming I know what code you mean. And what template change.
akanevsky
06-13-2005, 05:50 PM
Alright. IN the hack instructions, it tells you to add certain code to global.php. You would need to add the same code to vbadvanced's global.php. Then, make the template change that has to do with vbadvanced's navbar (the top one)...
yoyoyoyo
06-13-2005, 06:13 PM
excellent job, thanks!
dsboyce8624
06-13-2005, 06:47 PM
Alright. IN the hack instructions, it tells you to add certain code to global.php. You would need to add the same code to vbadvanced's global.php. Then, make the template change that has to do with vbadvanced's navbar (the top one)...
Okay, I must be really having a bad day.
Far as I can tell vBadvanced has no global.php of its own, nor does it have a special navbar.
If it does I cannot locate them, or perhaps they are named differently.
akanevsky
06-14-2005, 09:28 AM
I don't have vBAdvanced installed, so the only way I could help you is by taking a look at what you have there.. PM me.
lange
06-24-2005, 08:23 PM
I'll try it
akanevsky
06-24-2005, 08:44 PM
Really? How touching.
yoyoyoyo
07-07-2005, 11:55 PM
very cool hack, but I get an error if I try to delete a favorite without checking the box.
It says (at the top of the page it generates):
Warning: Invalid argument supplied for foreach() in /usercp.php on line 222
akanevsky
07-08-2005, 11:57 AM
Oh crap its cause there is no check on whether there is an array of those checkboxes passes :) I'll fix it. Thanks tho :)
yoyoyoyo
07-08-2005, 04:08 PM
Oh crap its cause there is no check on whether there is an array of those checkboxes passes :) I'll fix it. Thanks tho :)Cool thanks. Also, I noticed that the favorite post opens in the same window, and it has the "close this window" button by default, however I found that people were closing the main window, and had to reopen a new browser session to come back to my site. Not wanting to lose my audience I decided to have the favorite posts open in a new window instead, by changing the code in the navbar link to this:
<if condition="$show[lastfavthreads] OR $show[lastfavposts]"><td class="vbmenu_control" id="favorites"><a href="#" onclick="usercp.php?$session[sessionurl];focus=1','favorites','statusbar=yes,menubar=yes,t oolbar=yes,scrollbars=yes,resizable=yes'); return false;">vBFavorites</a> <script type="text/javascript"> vbmenu_register("favorites"); </script> </td></if>
edit: in looking at the above code it seems that vbulletin is breaking up some of the text such as resizable (above it is "resi zable") so I am upping it as a text file also.
akanevsky
07-08-2005, 04:11 PM
It is actually supposed to open as a popup menu...
yoyoyoyo
07-08-2005, 04:16 PM
It is actually supposed to open as a popup menu...It didn't open as a popup window for me on firefox with popup blocker enabled, but the code I added seems to work for me.
akanevsky
07-10-2005, 10:37 PM
It's supposed to open like this:
https://vborg.vbsupport.ru/attachment.php?attachmentid=26486
Or is that not what you are talking about?
csidlernet
07-20-2005, 08:40 AM
thankyou very much.
akanevsky
07-20-2005, 12:40 PM
You welcome ;)
Hey, heres an idea for you. Instead of putting the add to favorites on top of thread, you should put it in the thread control. Would look nicer.
Just a idea, A+ on the hack so far. :-). I installed
akanevsky
07-26-2005, 11:12 AM
Hey good idea bro!
I'll do that sometime :)
yahoooh
08-02-2005, 06:45 AM
how about the favorites more than 100 thread ,is it display in the same main page of cp for users or will be in multiple pages
i need it in multiple pages or i hope in categories and its page like supscription
sketch42
08-04-2005, 06:33 AM
ok maybe im just dense but there are 4 txt files in the download
is this one vbFavorites.by.Dark.Visor.txt the latest vers no upgrades?
sketch42
08-04-2005, 07:08 AM
ok i installed it and everything but i dont see this https://vborg.vbsupport.ru/attachment.php?attachmentid=26486
my navbar template is different as all my links are in my header template
here is my header
<!-- logo -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/ta/t_01.jpg" alt="" /></td>
<td style="background: url('/designs/ta/t_02.jpg');" width="100%" ></td>
<td><img src="/designs/ta/t_03.jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/ta/t_04.jpg" alt="" /></td><if condition="$bbuserinfo['userid']"><td id="usercptools"><a href="#usercptools" onmouseover="turnOn('quick');"
onmouseout="turnOff('quick');"><img name="quick" class="imgTrans" src="/designs/ta/t_05.jpg" alt="Quick Link's" border="0" /></a><script type="text/javascript">vbmenu_register("usercptools", true);</script></td></if>
<td style="background: url('/designs/ta/t_06.jpg');" width="100%" ></td>
<td><img src="/designs/ta/t_07.jpg" alt="" /></td>
<td><a href="/index.php" onmouseover="turnOn('home');"
onmouseout="turnOff('home');"><img name="home" class="imgTrans"
src="/designs/ta/t_08.jpg" border="0" alt="Home" /></a></td>
<td><a href="/showthread.php?goto=newpost&t=7" onmouseover="turnOn('galerie');"
onmouseout="turnOff('galerie');"><img name="galerie" class="imgTrans"
src="/designs/ta/t_09.jpg" border="0" alt="Rules" /></a></td>
<td><a href="/memberlist.php" onmouseover="turnOn('benutzer');"
onmouseout="turnOff('benutzer');"><img name="benutzer" class="imgTrans"
src="/designs/ta/t_10.jpg" border="0" alt="Memberlist" /></a></td>
<td><a href="/helpdesk.php" onmouseover="turnOn('chat');"
onmouseout="turnOff('chat');"><img name="chat" class="imgTrans"
src="/designs/ta/t_11.jpg" border="0" alt="Helpdesk" /></a></td>
<td><a href="/downloads.php" onmouseover="turnOn('forum');"
onmouseout="turnOff('forum');"><img name="forum" class="imgTrans"
src="/designs/ta/t_12.jpg" border="0" alt="Downloads" /></a></td>
<td id="navbar_search" > <script type="text/javascript"> vbmenu_register("navbar_search", true); </script> <a href="search.php?$session[sessionurl]" accesskey="4" onmouseover="turnOn('suche');"
onmouseout="turnOff('suche');"><img name="suchen" class="imgTrans" src="/designs/ta/t_13.jpg" alt="Search" border="0" /></a></td>
<td><a href="/sendmessage.php" onmouseover="turnOn('kontakt');"
onmouseout="turnOff('kontakt');"><img name="kontakt" class="imgTrans"
src="/designs/ta/t_14.jpg" border="0" alt="Contact" /></a></td>
<td><img src="/designs/ta/t_15.jpg" alt="" /></td>
</tr>
</table>
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
<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="text" class="bginput" name="query" size="20" />$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[advanced_search]</a></td>
</tr>
</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">$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&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
<tr><td class="thead"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_control_panel]</a></td></tr>
<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]">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$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>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</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">Last $lastfavthreadlimit Added Favorite Threads</td>
</tr>
$lastfavthreadbit
</if>
<if condition="$show[lastfavposts]">
<tr>
<td class="thead">Last $lastfavpostlimit Added Favorite Posts</td>
</tr>
$lastfavpostbit
</if>
<tr><td class="thead"><a href="usercp.php?$session[sessionurl]">Complete List of Favorites</a></td></tr>
</table>
</div>
<!-- / NAVBAR POPUP MENUS -->
</if>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/ta/t_16.jpg" alt="" /></td>
<td style="background: url('/designs/ta/t_17.jpg');" width="100%"></td>
<td><img src="/designs/ta/t_18.jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/ta/t_19.jpg" alt="" /></td>
<td style="background: url('/designs/ta/t_20.jpg');" width="100%">$sound<!-- nav buttons bar -->
<div align="right">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" align="right" >
<tr align="right">
<!--<td class="vbmenu_control_1"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a> </td> -->
<if condition="$show[lastfavthreads] OR $show[lastfavposts]"><td class="vbmenu_control" id="favorites"><a href="usercp.php?$session[sessionurl]">Favorites</a> <script type="text/javascript"> vbmenu_register("favorites"); </script> </td></if>
<if condition="$show['member']">
<td class="vbmenu_control_1"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control_1"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
</if>
<td class="vbmenu_control_1"><a href="faq.php?$session[sessionurl]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control_1"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
<script type="text/javascript">
<!--
function OpenRadio(){
Radio = window.open('vBRadio.php','vBRadio','directories=n o,height=320,width=650,location=no,menubar=no,resi zable=no,status=no,toolbar=no')
return false;
}
-->
</script>
<td class="vbmenu_control"><a href="#" onclick="return OpenRadio()">vBRadio</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control_1"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control_1"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control_1"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control_1"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control_1"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control_1"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
<if condition="$bbuserinfo['userid']">
<td class="vbmenu_control_1"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$bbuserinfo['userid']">
<td class="vbmenu_control_1"><a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
</tr>
</table></div>
<!-- / nav buttons bar --></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/ta/t_30 (1).jpg" alt="" /></td>
<td style="background: url('/designs/ta/t_30 (3).jpg');" width="100%" ></td>
<td><img src="/designs/ta/t_30 (7).jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="background: url('/designs/ta/t_23.jpg');" width="23" ></td>
<td>
<!--
NEW HEADER & NAVBAR
Now that the nav buttons are in the
navbar template, you can stick whatever
you like into this space.
This makes it much easier for novice
admins to customize their header
template without affecting important
navigation elements.
-->
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
and here is my navbar
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="/designs/ta/s_1.jpg" alt="" /></td>
<td class="alt5" style="background: url('/designs/ta/s_2.jpg');" width="100%"><strong>Navigation and Personal Info</strong> </td>
<td><img src="/designs/ta/s_3.jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><img src="/designs/ta/s_4.jpg" alt="" /></td>
<td style="background: url('/designs/ta/s_5.jpg ');" width="100%"></td>
<td><a href="#top"><img src="/designs/ta/s_6.jpg " border="0" alt="nach oben" /></a></td>
</tr>
</table>
<!-- breadcrumb, login, pm info -->
<!-- Welcome Panel Hack V1.1 [] Created By SmasherMaster -->
<if condition="THIS_SCRIPT == 'index'">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
<!-- Main Welcome Panel Block [] Begin -->
<td class="alt1" valign="middle" align="center">
<if condition="$bbuserinfo[userid]!=0">
<!-- Avatar Cell [] Begin -->
{$welcome_avatar}
<!-- Avatar Cell [] End -->
</td>
<td class="alt2" nowrap="nowrap" style="padding:3px">
<!-- Your Stats [] Begin -->
<div class="smallfont"><b>Your Info:</b><br />User: <a href="member.php?{$session['sessionurl']}u={$bbuserinfo['userid']}" title="Go To Your Profile">{$bbuserinfo['username']}</a><br />
<a href="search.php?{$session['sessionurl']}do=getnew">New Posts</a>: {$welcome_new_posts['new_posts']}<br />New Threads: {$welcome_new_topics['new_topics']}<br />
<if condition="$show[pmstats]"><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if></div>
<!-- Your Stats [] End -->
<else />
<!-- Guest [] Begin -->
<!-- Avatar -->
<td class="alt1" valign="middle" align="center">
<a href="register.php?ID=&"><img src="images/avatars/guestavatar.gif" border="0"></a>
</td>
<!-- / Avatar -->
<td class="alt2" nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td class="smallfont">User Name</td>
<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
</tr>
<tr>
<td class="smallfont">Password</td>
<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
</tr>
<tr>
<td class="smallfont" colspan="2" nowrap="nowrap">
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />Remember Me?</label>
<input type="submit" class="button" value="Log in" tabindex="4" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" />
</td>
</tr>
</table>
<input type="hidden" name="ID" value="" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
</form>
<!-- / login form -->
</td>
<!-- Guest [] End --></if>
</td>
<td class="alt1" valign="top" nowrap="nowrap">
<!-- Forum Stats [] Begin -->
<div class='smallfont'><b>Forum Stats:</b><br />Threads: $welcome_topics<br />Posts: $welcome_posts<br />Members: $welcome_members<br /><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
<!-- Forum Stats [] End -->
</td>
<!-- Main Welcome Panel Block [] End -->
</tr>
</table>
<else />
<!-- / Welcome Panel Hack V1.1 [] Created By SmasherMaster -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td> </td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<if condition="$bbuserinfo['userid']">
<td class="alt1" valign="top" nowrap="nowrap">
<div class="smallfont">
<!--<span style="float:$stylevar[right]">[<a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a>]</span>-->
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
</div>
</td>
<else />
<td class="alt2" nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
</if>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><img src="/designs/ta/s_7.jpg" alt="" /></td>
<td style="background: url('/designs/ta/s_8.jpg ');" width="100%"></td>
<td><a href="#top"><img src="/designs/ta/s_9.jpg " border="0" alt="nach oben" /></a></td>
</tr>
</table>
<br />
and this is what i see
see attachment
sketch42
08-04-2005, 08:04 PM
does anyone have any ideas?
akanevsky
08-04-2005, 08:16 PM
I don't offer support for custom skins.
sketch42
08-04-2005, 08:18 PM
I don't offer support for custom skins.
thats ok.. but all i realy want to know is if you have any ideas as to what it may be.. where should i look ? etc..
Gio~Logist
08-05-2005, 02:04 PM
Hey Dark,
Do you think it'd be possible for you to make it so that this hack is only for USER PROFILES? So that you can put user ptofiles in your favorites? I am really interested in this and would even pay.
akanevsky
08-05-2005, 10:45 PM
What's the point? Add them to your friends.
yahoooh
08-06-2005, 06:24 AM
how about the favorites more than 100 thread ,is it display in the same main page of cp for users or will be in multiple pages
i need it in multiple pages or i hope in categories and its page like supscription
any answer?
akanevsky
08-06-2005, 11:49 AM
Nope, I don't think I'm going to do it now that 3.5 is almost out.
yahoooh
08-06-2005, 12:05 PM
if u want i can pay for custom hach added for this
if u have pay gateway other than paypal tell me , or any westernunion branch near to u tell me i am serious to make custom changes to this hack even for money
thanks
sketch42
08-18-2005, 03:22 PM
how would i add the nav bar links to the quick links instead??
Gio~Logist
09-05-2005, 08:39 PM
Any way that you can get "Favorite Member Profiles"?
SnickersTK
11-08-2005, 06:34 PM
Does this work for Vbulletin V3.5?
akanevsky
11-08-2005, 07:43 PM
Does this work for Vbulletin V3.5?
this doesn't but this (https://vborg.vbsupport.ru/showthread.php?s=&threadid=98808&do=installhack) does ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.