View Full Version : vB Assistant
Sebastian
03-29-2003, 10:00 PM
Name: vB Assistant
Version: 1.1
templates to edit: 1 - 2
Description: vB Assistant is like a mini cpanel for your members, it small yet contains lots of information.
It will help you get to things much faster in a organized fashion. It will tell you all you need to know about your private messages, How many you have, how many in total, and show you the newest one in detail. It will show you the name of the person that sent it, the link directly to the PM (no hassle with going to inBox first), When you get a new PM within 24 hours It'll let you know with a flashing image and a "Received Today!" caption.
After the message ages (24 hours has past) it'll show the date instead. vB Assistant uses all your current forum settings, from date format, to forum title name.
vB Assistant will also let you know when a thread you started has a new reply which you haven't read. You will see a "View Replies" when someone posts in your thread. It will also tell you who the poster is, without even visiting the thread! ;) It checks when was your last visit and determines if you read it or not. It wasn't easy since there isn't a "message unread" column in the database, so i managed to use the last login time.
vB Assistant has a mini quick search box, just type and hit enter.
When a user is not registered and he/she views vB Assistant, it will let them know what feature they have access to, and also tell them to register to get access to those features. (PM, cpanel links, etc...).
The buddie list is also available, clicking the username takes you to the PM window, clicking the red X will remove the buddie.
Each section in vB Assistant has a expandable/collapsible switch, If you do not want to see a part of it just click and it folds away with cool javascript affect ;)
By having expandable/collapsible sections vB Assistant becomes even more compact and organized.
vB Assistant will also refresh every two minutes by default, it can be changed if wanted.
I see vB Assistant as a mini messenger that you can keep open (since it's small) while you browse the 'net :)
There is also a mini statistics section that will show you some information about how many registered members, users online, total post, etc...
Plus it will keep track of how many posts were made in the last 24 hrs.
Anyway, you get the idea.
Installation:
Very easy: Instructions are attached.
couple variables to edit, couple templates and your done.
Other information:
I wasn't going to release this yet, because i wanted to add more features, and remove anything that i later find unnecessary, But I am releasing in hope that i can get some ideas from you people on improving it.
If you find any bugs let me know and i will fix them. I have tested it many times. And have been using it for a couple days.
It should work with vbulletin version 2.x.x. I've tested it on 2.2.9 and 2.3.0
Please lick install if you find this useful :p
Updates:
March 30th: New version 1.1 Released.
Changes:
- Added: a PM Meter, shows percentage of how full inBox is
- Added: a preview of the private message, will show 75 characters of the message.,
- Added: 5 new images, for Meter.
- Fixed: PM Meter disappears when you have 1 new message to make space for the PM preview, Meter returns once the PM is read.
April 1st:
- Fixed bug: PM would show 1% full inBox when you had no PM's, now shows 0% when you have no messages in inBox
----------------------------------------------------------------
To upgrade simply re-upload assistant.php and overwrite. Edit new configuration settings.
Clear browser cache first to download the update.
Sebastian
03-30-2003, 08:07 AM
screenshot:
Sebastian
03-30-2003, 08:07 AM
Screenshot of lower part:
Sebastian
03-30-2003, 08:08 AM
When you have no new PM's.
Sebastian
03-30-2003, 08:09 AM
When a un registered member views vB Assistant:
Intex
03-30-2003, 09:08 AM
Looks good Sebastian - Can you show a screenshot of how this fits into the overall vB page.
nice work :).. install...
The General
03-30-2003, 09:24 AM
Cool stuff! Works great...
chris2707
03-30-2003, 09:53 AM
It looks to me like a separate popup window that you can leave at the side of the screen whilst browsing elsewhere. May be wrong though.
Great looking hack ... will give it a go.
Thanks!
Today at 11:08 AM Intex said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=375432#post375432)
Looks good Sebastian - Can you show a screenshot of how this fits into the overall vB page.
Zelda-King
03-30-2003, 10:16 AM
One little thing with the instructions file, I believe the 'head insert' template should read 'headinclude'.
Davey
03-30-2003, 10:23 AM
Cool thanks Sebastian.
* Davey 'licks' install :p
Dave.
PS: Actually this doesn't support multiple styles.
So...
* Davey wipes install and unlicks it.
Zelda-King
03-30-2003, 10:56 AM
I have the hack in four styles.
PurpleCow
03-30-2003, 11:17 AM
Looks like its really a very Interesting hack.
I am sure, it is ! :)
I'll install it after a couple of days, ... just waiting to upgrade my vB to stable release of vB2.3.0
Thanks for the hack.
Cheers
Nice hack, quite useful, thanks :).
ricoche
03-30-2003, 12:50 PM
Very nice Sebastian! It was a very smooth install. Thanks.
Ricoche :bunny:
Zelda-King
03-30-2003, 12:55 PM
Today at 11:08 AM Intex said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=375432#post375432)
Can you show a screenshot of how this fits into the overall vB page. You can put the link anywhere but I have it under 'View New Posts' (previous attachment edited. I forgot to erase my session number).
DPoole
03-30-2003, 01:03 PM
anyway to get this on rightmouse click ?
so its always available wherever you go.Then it can be used for more features then.
LangTuDaTinh
03-30-2003, 02:49 PM
geat hack....installed
i think it would be better i u put a link that link to forum index
msimplay
03-30-2003, 02:53 PM
fantastic hack :D
PiotrasG
03-30-2003, 03:17 PM
great hack got it installed works on 2.29
partang2
03-30-2003, 03:55 PM
Hm... can't get it working.... When I click any of the menu items in the popup box, it goes to forum/assistant.php?s= and nothing happends...? What can it be?
Installed and works beautifully! I have two questions:
is there a specific reason to use javacript:redirect_to instead of a plain href in the assistant? (i changed mine to vanilla href's because otherwise nothing would happen if you've got just the assistent open)
is there a way to keep the different menu items collapsed after a refresh?
Otherwise, very great hack, with many possibilities!
empreur76
03-30-2003, 04:55 PM
very nice! thx
dirtymerc
03-30-2003, 05:40 PM
Having a right click feature would be excellent, If users could just click their right mouse button and that opens, I would be exstatic.!
looks really nice may install it later :)
Tim Wheatley
03-30-2003, 06:33 PM
This does indeed look very nice, boomarking this for an install when I have more time to look at it more... :)
Good job and a superb idea.
I have modified this hack to work as a docked frame instead of a popup, you can see it in action by clicking here (http://www.trollkingdom.com) (click Enable TK Assistant at the top left once you're there). If people like this for some reason, I can post the modifications here at vB.org.
pugmy
03-30-2003, 08:21 PM
A great hack. works perfectly.
How can you make the assistant always stay on top of other windows? (Just like MS Messenger)
I know this tag, <body onBlur="window.focus()"> but
this is pretty annoying since you can't virtually do anything with other windows
because it not only stays on top but forces window focus to it.
Any alternative ways to make it stay on top like MS Messenger?
Today at 06:23 PM djr said this in Post #24 (https://vborg.vbsupport.ru/showthread.php?postid=375549#post375549)
is there a way to keep the different menu items collapsed after a refresh?I'd like to learn this as well.
again, wonderful job. :cool:
Sebastian
03-30-2003, 09:12 PM
Today at 01:23 PM djr said this in Post #24 (https://vborg.vbsupport.ru/showthread.php?postid=375549#post375549)
Installed and works beautifully! I have two questions:
is there a specific reason to use javacript:redirect_to instead of a plain href in the assistant? (i changed mine to vanilla href's because otherwise nothing would happen if you've got just the assistent open)
is there a way to keep the different menu items collapsed after a refresh?
The reason i used javascript:redirect is so it doesn't go to that page from the vb Assistant, it will use another broswer window to go to that page, if you remove it it will use the same window as vB Assistant.
As for keeping the menu's closed after a refresh, it's possible, but it would require a cookie possibly.
@pugmy: Keeping vB Assistant on top of all windows can be annoying for some users, as you already mentioned.
I will try to make it easier for people with more than one style.
Today at 02:21 PM pugmy said this in Post #30 (https://vborg.vbsupport.ru/showthread.php?postid=375656#post375656)
A great hack. works perfectly.
How can you make the assistant always stay on top of other windows? (Just like MS Messenger)
I know this tag, <body onBlur="window.focus()"> but
this is pretty annoying since you can't virtually do anything with other windows
because it not only stays on top but forces window focus to it.
Any alternative ways to make it stay on top like MS Messenger?
I'd like to learn this as well.
again, wonderful job. :cool:
This is actually the reason I made the changes that I did, I prefer docking to having a window on top. In fact I wish MSN Messenger could dock to the side as well.
Sebastian
03-30-2003, 09:15 PM
Today at 06:13 PM Yo. said this in Post #32 (https://vborg.vbsupport.ru/showthread.php?postid=375676#post375676)
This is actually the reason I made the changes that I did, I prefer docking to having a window on top. In fact I wish MSN Messenger could dock to the side as well.
Looks good the way you have done it. Some people don't like frames though :p
Today at 12:12 AM Sebastian said this in Post #31 (https://vborg.vbsupport.ru/showthread.php?postid=375674#post375674)
The reason i used javascript:redirect is so it doesn't go to that page from the vb Assistant, it will use another broswer window to go to that page, if you remove it it will use the same window as vB Assistant.
I have the vBAssisant as a side toolbar in Windows now (with auto-hide), but with every link I click, I get a Javascript error with 'opener is null or not a object', obviously because it can't find the original window. What needs to be changed to allow it to open urls (e.g. 'new posts' link) from the assisant window?
As for keeping the menu's closed after a refresh, it's possible, but it would require a cookie possibly.
I for one wouldn't mind that :D
Yesterday at 11:11 PM Yo. said this in Post #29 (https://vborg.vbsupport.ru/showthread.php?postid=375650#post375650)
I have modified this hack to work as a docked frame instead of a popup. If people like this for some reason, I can post the modifications here at vB.org.
I'd like that. Users will have an option if they want it floating or with the docked frame as you did. If you want to post the instructions, please do!
- djr
I have the vBAssisant as a side toolbar in Windows now (with auto-hide), but with every link I click, I get a Javascript error with 'opener is null or not a object', obviously because it can't find the original window. What needs to be changed to allow it to open urls (e.g. 'new posts' link) from the assisant window?
I'm not certain, but I think to use cross-window JavaScript both windows need to be part of the same process, which I don't think happens when you add a toolbar to Windows.
I'd like that. Users will have an option if they want it floating or with the docked frame as you did. If you want to post the instructions, please do!
You're right, it would actually be very easy to let users choose whether to open it in a frame or as a popup, I'll add that, then write and post the instructions soon.
msimplay
03-30-2003, 09:35 PM
Vbassistant should become default in vb3
Today at 12:29 AM Yo. said this in Post #36 (https://vborg.vbsupport.ru/showthread.php?postid=375682#post375682)
I'm not certain, but I think to use cross-window JavaScript both windows need to be part of the same process, which I don't think happens when you add a toolbar to Windows.
I understand about that, but I need to know what parts need to be rewritten to make it compliant with a Windows toolbar. What Javascript parts need to be replaced with 'normal' urls? I was in the process of doing this, as I typed before, but couldn't get it to work properly.
pugmy
03-30-2003, 09:49 PM
Today at 11:12 PM Sebastian said this in Post #31 (https://vborg.vbsupport.ru/showthread.php?postid=375674#post375674)
@pugmy: Keeping vB Assistant on top of all windows can be annoying for some users, as you already mentioned.
hmm... not really.
For example, Messenger can be on the top without getting focus
(which allows you to do whatever with other windows even Messenger is on top)
The body tag always gets its focus (which is not good).
Right now, the Assistant keeps getting behind your browser everytime you click a link on Assistant.
(especially when your browser window is maximized)
If you want to use assistant, you have to change window focus to Assistant manually.
This is rather clumsy. An option to keep Assitant on top should be useful.
Using FRAME like Yo is one way to get around.
But just wondering if there's other ways to do so.
I understand about that, but I need to know what parts need to be rewritten to make it compliant with a Windows toolbar. What Javascript parts need to be replaced with 'normal' urls? I was in the process of doing this, as I typed before, but couldn't get it to work properly.
I'm not sure exactly what you're trying to do, where do you want the pages to show up when you click the links in the Windows toolbar?
Sebastian
03-30-2003, 10:07 PM
do you guys/gals want a template system? I could put all the code into templates but it would require you to make about 10 templates since there are quite a few conditionals.
plus its really not much things to change, since its really only three tiny table colors that have to be changed.
Template or no template?
i just find it less trouble then having to make 10 templates :|
and also the idea is to keep vB Assistant easy to read and easy on the eyes, so even if you have 3 different styles just give vB Assistant generic colors (blueish for example), instead of having all these crazy forum colors :p
I could put all the code into templates but it would require you to make about 10 templates since there are quite a few conditionals.
Personally I don't really mind not having templates, but I can see why they'd be useful with multiple styles. If people install Logician's Conditional Templates hack, there wouldn't be a need for so many templates.
dirtymerc
03-30-2003, 10:12 PM
Sebastian any ideas on the right click feature?
I don't think this will work on all browsers, dirtymerc, but try adding this to your headinclude after installing:
<script language=JavaScript>
<!--
function clickIE4(){
if (event.button==2){
assistant();
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
assistant();
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("assistant();return false")
// -->
</script>
amykhar
03-30-2003, 10:43 PM
Today at 06:36 PM djr said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=375686#post375686)
I understand about that, but I need to know what parts need to be rewritten to make it compliant with a Windows toolbar. What Javascript parts need to be replaced with 'normal' urls? I was in the process of doing this, as I typed before, but couldn't get it to work properly.
I have it working as an Explorer Bar. I simply got rid of all the javascript redirect calls and made them regular links. It works quite nicely.
Amy
Sebastian
03-31-2003, 12:04 AM
<font size="5">Updates:</font>
March 30th: New version 1.1 Released.
Changes:
- Added: a PM Meter, shows percentage of how full inBox is
- Added: a preview of the private message, will show 75 characters of the message.,
- Added: 5 new images, for Meter.
- Fixed: PM Meter disappears when you have 1 new message to make space for the PM preview, Meter returns once the PM is read.
To upgrade simply re-upload assistant.php and overwrite. Edit new configuration settings.
Screenshot of PM meter:
Sebastian
03-31-2003, 12:05 AM
Preview of private message, shows 75 characters of it:
msimplay
03-31-2003, 01:26 AM
Today at 12:07 AM Sebastian said this in Post #42 (https://vborg.vbsupport.ru/showthread.php?postid=375696#post375696)
do you guys/gals want a template system? I could put all the code into templates but it would require you to make about 10 templates since there are quite a few conditionals.
plus its really not much things to change, since its really only three tiny table colors that have to be changed.
Template or no template?
i just find it less trouble then having to make 10 templates :|
and also the idea is to keep vB Assistant easy to read and easy on the eyes, so even if you have 3 different styles just give vB Assistant generic colors (blueish for example), instead of having all these crazy forum colors :p
Me too i prefer it this way
amykhar
03-31-2003, 01:27 AM
I prefer it without the templates as well.
Amy
dirtymerc
03-31-2003, 02:46 AM
Today at 12:19 AM Yo. said this in Post #44 (https://vborg.vbsupport.ru/showthread.php?postid=375702#post375702)
I don't think this will work on all browsers, dirtymerc, but try adding this to your headinclude after installing:
<script language=JavaScript>
<!--
function clickIE4(){
if (event.button==2){
assistant();
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
assistant();
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("assistant();return false")
// -->
</script>
thank you so much, it worked flawless!
dirtymerc
03-31-2003, 02:54 AM
I believe the new zip file is still the previous one. No 5 new images or updated assistant file.
Sebastian
03-31-2003, 02:59 AM
Today at 11:54 PM dirtymerc said this in Post #51 (https://vborg.vbsupport.ru/showthread.php?postid=375785#post375785)
I believe the new zip file is still the previous one. No 5 new images or updated assistant file.
its browser cache, clear your cache and try again.
Zelda-King
03-31-2003, 05:48 AM
I got red 'X's when I used "forums/images" as the $images directory path. The path came out as domainname.net/forums/forums/images. It was OK when I changed it to just "images".
VeoMorphine
03-31-2003, 02:18 PM
Wow, i really like this.
If you have actrive desktop turned on, you can actauly have this window always open on your desk top. I find it really useful.
Bison
03-31-2003, 02:19 PM
Getting a "divide by zero" error in line 49 in assistant.php when there's nothing in the inbox.
Let me start by saying the following observation is not Sebastian's fault, but part of the deal: when you have the vbAssistant as a Windows toolbar or as an Active Desktop element... you (or your users) always show up as online!
Is there's a fix for this? Probably a automatic logout after xx seconds (to be defined by the admin)?
- djr
Pollo
03-31-2003, 08:04 PM
If you have the forum installed in the root directory of the site (ie: not in a directory called 'forums'), what exactly should this line be in assistant.php:
$forumdir = "???"; // name of your forum directory
When I put nothing or a / only, the links inside the popup would go to the file, as in http://search.php (without the URL) and would obviously be blank and not resolve.
Edit: (Version 2.2.9)
Sebastian
03-31-2003, 08:29 PM
Today at 11:19 AM Rolodex said this in Post #55 (https://vborg.vbsupport.ru/showthread.php?postid=375944#post375944)
Getting a "divide by zero" error in line 49 in assistant.php when there's nothing in the inbox.
I cannot seem to produce this error, I emptied my inBox and i don't see this.
@Pollo: you still have to put the name of the forum directory in $forumdir. If your forums directory is called "forums" then leave it as default, cause it's for linking to private messages, cpanel, etc..
I do suggest you use vB Assistant in you forum directory though.
Pollo
03-31-2003, 09:00 PM
Sebastian, well my question was that my forum isn't in a directory (per se, of course it is in a directory, just the web site's home one). In other words, my forum is the site, the site the forum ie: http://domain.com
I solved it by removing:
$forumdir = "???"; // name of your forum directory
-and removing any mention of $forumdir anywhere.
Everything works now, and I'm sure members will really groove on it, DANKE! :D
+Fares+
03-31-2003, 10:16 PM
Thanks for the great hack ..
i have a Question Please...
after everything i click on the link ...
and i go this ( check the pic )
so me why do u think i get an error .. where the problem do u think is ?
Sebastian
03-31-2003, 11:37 PM
@+Fares+ : the path for $forumdir isn't correct, if your forum directory is called "forums" then change it to $forumdir = "forums";
Otherwise change that setting to the name of your forum directory.
Bison
04-01-2003, 01:00 AM
Today at 05:29 PM Sebastian said this in Post #58 (https://vborg.vbsupport.ru/showthread.php?postid=376093#post376093)
I cannot seem to produce this error, I emptied my inBox and i don't see this.
@Pollo: you still have to put the name of the forum directory in $forumdir. If your forums directory is called "forums" then leave it as default, cause it's for linking to private messages, cpanel, etc..
I do suggest you use vB Assistant in you forum directory though.
This byte of code is causint the error:
if ($allpm[messages] <= 1) {
$amount = "1";
} else {
$amount = round(($allpm[messages]/$pmquota) * 100,2);
}
amykhar
04-01-2003, 01:11 AM
Not everybody has a PM quota set. You should check to make sure it's not zero before you enter that code block.
Amy
Sebastian
04-01-2003, 01:22 AM
@ Rolodex: what is your PM quota set at in the admin cpanel?
Bison
04-01-2003, 02:29 AM
My quota is set to 100 ... my mods are 50, and members are 40.
Edit: My BAD ... I had this set to Zero (Unlimited) ... after placing the members amount into the box, the error went away.
Thanks for the heads up guys! :)
D|ver
04-01-2003, 08:31 AM
hey really cool hack :)
but is it possible to show about 10 latest posts on the very top of the window?
that would be very cool :D
Lethal
04-01-2003, 10:40 AM
I would like to have a template version.
also, its says my pm box is 1% full but yet I have no messages either in my inbox or sent box. ?? shouldn't it say 0% full?
also, how would I get this to work with multiple styles? I tried to use { imagesfolder } and { firstaltcolor } and { secondaltcolor } but it didn't work. Any suggestions?
bandersen
04-01-2003, 10:54 AM
Thank you for a nice hack!
I am sorry, but I am fiddling with the $forumdir too! can you plz help... My forumdir is /forums/upload
Here is the line in assistant.php:
$forumdir = "forums/upload"; // name of your forum directory
If I type ../forums/upload/assistant.php in the browser, I get the vb assistant up on that page.
EDIT: OK... I found it... also changed the path in the code to insert in headinclude so that the line with the path looks like:
window.open('/forums/upload /assistant.php?s=$session[sessionhash]','vbassistant','width=235,height=500,resizable=ye s,scrollbars=yes');
SgtSling
04-01-2003, 11:15 AM
Question.. and yes I am using version 1.1 of the zip
In my vbassistant it has under private messages
You have 2 new messages.
9 are old messages.
There isn't a meter or a preview of the message>
I did not upgrade from the old zip this is a new install
What do I have to do to make the pm images and preview show?
(YES I UPLOADED THE IMAGES)
It isn't a broken image problem.. the code just simply isn't there..
bandersen
04-01-2003, 01:36 PM
I am not able to get the search function to work when I hit "submit".
Also, the image problem like SgtSling describes.
EDIT: :nervous: I know..... search worked ok after restart.
Sebastian
04-01-2003, 06:47 PM
Today at 08:15 AM SgtSling said this in Post #69 (https://vborg.vbsupport.ru/showthread.php?postid=376303#post376303)
Question.. and yes I am using version 1.1 of the zip
In my vbassistant it has under private messages
You have 2 new messages.
9 are old messages.
There isn't a meter or a preview of the message>
I did not upgrade from the old zip this is a new install
What do I have to do to make the pm images and preview show?
(YES I UPLOADED THE IMAGES)
It isn't a broken image problem.. the code just simply isn't there..
It will only show the newest PM that you haven't read, it disappears once you read it. Did you already read them?
See image, it shows preview, Does everyone else get a preview of the IM?
Sebastian
04-01-2003, 07:09 PM
@Lethal :
- Fixed bug: PM would show 1% full inBox when you had no PM's, now shows 0% when you have no messages in inBox
FFArmageddon
04-01-2003, 07:47 PM
I am curious, will this work for 2.2.x?
Sebastian
04-01-2003, 07:49 PM
Today at 04:47 PM FFArmageddon said this in Post #73 (https://vborg.vbsupport.ru/showthread.php?postid=376508#post376508)
I am curious, will this work for 2.2.x?
yes it should.
bandersen
04-01-2003, 07:50 PM
Just some of the gifs show (expand gif is OK, but not collaps, level1, new_msg etc). I have them all in the same place.
Sebastian
04-01-2003, 10:39 PM
@bandersen, check you set the right path to the images, seems the path isn't right, if one image shows then all the rest have to if you put them all in the same directory.
D|ver
04-02-2003, 01:45 PM
i have a small question:
is it possible to "remeber" the minimize settings?
when i minimize the "Go To ... " Panel for example, after the refresh it is maximised again
i hope you know what i wanted to say ;)
sry for my bad english ;(
Sebastian
04-02-2003, 07:59 PM
Today at 10:45 AM D|ver said this in Post #77 (https://vborg.vbsupport.ru/showthread.php?postid=376730#post376730)
i have a small question:
is it possible to "remeber" the minimize settings?
when i minimize the "Go To ... " Panel for example, after the refresh it is maximised again
i hope you know what i wanted to say ;)
sry for my bad english ;(
yes, i know what you mean, It has been mentioned before in this thread. It can be done, but it would require me to add a cookie for each section, which would be a total of 5 cookies. It will require a lot of extra code so i have to look into it a bit more.
Lethal
04-02-2003, 11:35 PM
is it hard to make this template based?
Sebastian
04-03-2003, 03:32 AM
next version will be template based, I'll just make it so people can choose template or no template.
One way around adding cookies is to hard code variables in at least for yourself personally dictating what sections are open and which ones are closed
My question is what is it going through that takes twenty seconds to load for me
I mean I got 3.0 megabits down and a dedicated server, so its going through something like crazy in the database. I have a few thousand pms, but no reason it should be going through all of them?
ok still have not even delved into tracking down what is hitting the db so bad, but I really liked this idea so I am running with it
http://sportsforum.ws/assistant.php
Is what I got so far
I have all sections closed to start
Fixed the arrows so they are pointing the right direction (they point down when its open, should be up - if you are going to follow the existing model this is taken from, that being windows)
Made it so it can have only one open section at a time.
Before I saw this I was working on a taskbar thingy and this just fit in perfect, so I will post that in a bit, its not in the task bar, like the others mentioned (to do that like they described you just create a side task bar, then create a new task bar in that and use the url to your script, ie http://sportsforum.ws/assistant.php and then set on auto hide, on top, etc however you want it)
Also took out the javascript links, got to go back and read the reason on why that was done again before I fix it or just leave it.
Nice job and nice idea.
Talisman
04-03-2003, 10:14 PM
Hey guys.... I love the "right-click" activation for this, but we use that too much for copying and pasting stuff in the forums.
How could I change the command sequence to something else that isn't being used already? Maybe... shift key-right mouse click? Or Ctrl-A for "assistant" .... or some other combination??
Otherwise, could we add the vB Assistant to the Windows submenu that appears when one right-clicks the mouse? Instead of that working to launch the little window in it's place.
Thanks a bunch! :banana:
Sebastian
04-04-2003, 09:38 PM
Yesterday at 12:37 AM Zach said this in Post #82 (https://vborg.vbsupport.ru/showthread.php?postid=376944#post376944)
My question is what is it going through that takes twenty seconds to load for me
I mean I got 3.0 megabits down and a dedicated server, so its going through something like crazy in the database. I have a few thousand pms, but no reason it should be going through all of them?
it shouldn't take that long to load. Mines load as fast as a regular page.
it does about the same amount of queries that forum home does when fetching PM count, unread, etc.... shouldn't be no more than 7 - 8 queries, i didn't count them all though so i am guessing.
Koopa
04-06-2003, 11:06 AM
Very nice :)
AnaFreak
04-06-2003, 10:53 PM
can't understand the directions.......of course I am not that great at this stuff, my problem is on step3.
"Notes: Make sure you edit the "forums" name to the name of your directory!
Some where at the top of your template head insert above $headnewpm"
Where is this???
Classy
04-07-2003, 12:06 AM
03-30-03 at 06:11 PM Yo. said this in Post #28 (https://vborg.vbsupport.ru/showthread.php?postid=375650#post375650)
I have modified this hack to work as a docked frame instead of a popup, you can see it in action by clicking here (http://www.trollkingdom.com) (click Enable TK Assistant at the top left once you're there). If people like this for some reason, I can post the modifications here at vB.org.
I would like this very much. Have looked at your's and its just
what i'm lookin for. Thank you very much.
Shimmy
04-09-2003, 03:24 PM
I would also like to see this as a dockable frame, as well as having the choice for popup.
Classy
04-12-2003, 12:31 AM
--- bump
Pollo
04-12-2003, 04:21 PM
04-07-03 at 12:47 AM AnaFreak said this in Post #87 (https://vborg.vbsupport.ru/showthread.php?postid=378486#post378486)
can't understand the directions.......of course I am not that great at this stuff, my problem is on step3.
"Notes: Make sure you edit the "forums" name to the name of your directory!
Some where at the top of your template head insert above $headnewpm"
Where is this???
It is a typo, it should read:
In the template headinclude add the following ABOVE $headnewpm
<snip code: (see install directions)>
Notes: Make sure you edit the "forums" name to the name of your directory!
indiamike
04-14-2003, 09:10 PM
I had looked at this hack when it was first released and I didn't think it was something I could use.....boy was I wrong. After some members suggested an easier way to browse my site I installed this. After only a few days it has become a huge hit on my site and I find myself using it all the time to.
Installation was so simple and this hack is such a great addition to any forum so I just want to say thanks Sebastian for releasing this.
This is a most excellent hack. Great Work :D
Cheers
Mike
Kurayami
04-14-2003, 10:16 PM
I have a bit of an issue--I run my forum directly off of a domain, and not under a subdirectory. So how do I go about using this, as entering the forum directory as "/" doesn't work.
Thanks! :)
Pollo
04-15-2003, 12:33 AM
03-31-03 at 11:54 PM Pollo said this in Post #59 (https://vborg.vbsupport.ru/showthread.php?postid=376115#post376115)
Sebastian, well my question was that my forum isn't in a directory (per se, of course it is in a directory, just the web site's home one). In other words, my forum is the site, the site the forum ie: http://domain.com
I solved it by removing:
$forumdir = "???"; // name of your forum directory
-and removing any mention of $forumdir anywhere.
Everything works now, and I'm sure members will really groove on it, DANKE! :D
I had same question (page 4 of this thread), and solved it via the method I posted above. Works fine now.
alwaysweb
04-15-2003, 05:25 AM
04-01-03 at 05:23 AM Rolodex said this in Post #65 (https://vborg.vbsupport.ru/showthread.php?postid=376204#post376204)
My quota is set to 100 ... my mods are 50, and members are 40.
Edit: My BAD ... I had this set to Zero (Unlimited) ... after placing the members amount into the box, the error went away.
Thanks for the heads up guys! :) Setting Maximum saved messages in Vbulletin admin area to zero *IS* a valid option (0 means unlimited, it says in the configuration option's description!)
Yes, the code needs a few small bugfixes (marked by the // ADDED comments below) so as not not div by zero if in fact limit is zero :) If max pm limit is 0 (unlimited), just hide the PM quota stuff.
Around line 46, add a simple IF statement. Change this:
$amount = round(($allpm[messages]/$pmquota) * 100,2);
if ( $amount <= 15 )
{
$meter = "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\">¬¬¬¬</small>";
}
elseif ( $amount <= 30 )
{
$meter = "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\">¬¬¬</small>";
}
elseif ( $amount <= 45 )
{
$meter = "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\">¬¬</small>";
}
elseif ( $amount <= 60 )
{
$meter = "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\"><img src=\"$images/level4.gif\">¬</small>";
}
elseif ( $amount <= 90 )
{
$meter = "<br/><br/><small>($amount% full)</small> <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\"><img src=\"$images/level4.gif\"><img src=\"$images/level5.gif\">";
}
else
{
$meter = "<br/><br/><font color='red'><b>FULL</b></font>";
}
to be like:
if ($pmquota != 0) { // ADDED
$amount = round(($allpm[messages]/$pmquota) * 100,2);
if ( $amount <= 15 )
{
$meter = "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\">¬¬¬¬</small>";
}
elseif ( $amount <= 30 )
{
$meter = "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\">¬¬¬</small>";
}
elseif ( $amount <= 45 )
{
$meter = "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\">¬¬</small>";
}
elseif ( $amount <= 60 )
{
$meter = "<br/><br/><small>($amount% full) <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\"><img src=\"$images/level4.gif\">¬</small>";
}
elseif ( $amount <= 90 )
{
$meter = "<br/><br/><small>($amount% full)</small> <img src=\"$images/level1.gif\"><img src=\"$images/level1.gif\"><img src=\"$images/level2.gif\"><img src=\"$images/level3.gif\"><img src=\"$images/level4.gif\"><img src=\"$images/level5.gif\">";
}
else
{
$meter = "<br/><br/><font color='red'><b>FULL</b></font>";
}
} // ADDED
Around line 383 where it prints this messages section:
if ( $bbuserinfo[userid] != 0 ) {
echo "<center>You have $unreadpm[messages] new messages. <br/> $allpm[messages] are old messages. $meter $lastpm</center>";
} else {
echo $guestmsg;
}
change it to be:
if ($pmquota == 0) $meter = ""; // ADDED
if ( $bbuserinfo[userid] != 0 ) {
echo "<center>You have $unreadpm[messages] new messages. <br/> $allpm[messages] are old messages. $meter $lastpm</center>";
} else {
echo $guestmsg;
}
wolfgang2
04-21-2003, 03:13 PM
Hello Sebastian( or anyone else) !
great hack idea unfortunately it is not working on my forum.
i use 2.3.0
Could u take a look at the source code of the header area please
and tell me what is wrong there?
Lethal
04-21-2003, 08:54 PM
Today at 11:13 AM wolfgang2 said this in Post #96 (https://vborg.vbsupport.ru/showthread.php?postid=385165#post385165)
Hello Sebastian( or anyone else) !
great hack idea unfortunately it is not working on my forum.
i use 2.3.0
Could u take a look at the source code of the header area please
and tell me what is wrong there?
the assiatant oopens but only blank...
http://deutsches-architektur-forum.de/forum
thx:)
seems like it is working to me. Opens up fine for me.
Pollo
04-22-2003, 04:34 AM
Yep, no problems here, it works fine wolfgang2 (unless you eventually got it working, and thus duh, heh).
Kars10
04-22-2003, 09:16 AM
First of all, very nice Hack.
What about a Option in the users Profile, wher Users can select to Popup the Assistant Window automaticly when visit the forums?
Thanks
Kars
/me licks install!
wolfe
04-27-2003, 08:08 PM
d00d can't you make it template based please it would be easier to edit the tables how people want them.
Lethal
04-27-2003, 08:21 PM
next version is going to be template based I think.
solent
04-28-2003, 11:05 PM
great hack really helpfull and easy to install
thanks man.
works great on vb2.3.0
wolfe
05-07-2003, 09:13 PM
somthing wierd happening on my site it does not seem to support java no more i added the links etc and nothing loads
Mike11212
05-27-2003, 11:58 PM
is there anyway to get the last 10 post to appear in it?
Dribbles
06-02-2003, 10:30 AM
I'm using v1.1 ... but my private messages section doesn't seem to have the features listed (ie- who sent the pm, read first 75 character, etc). Here is a screanie of my PM section. Did I do something wrong?
03-30-03 at 11:11 PM Yo. said this in Post #28 (https://vborg.vbsupport.ru/showthread.php?postid=375650#post375650)
I have modified this hack to work as a docked frame instead of a popup, you can see it in action by clicking here (http://www.trollkingdom.com) (click Enable TK Assistant at the top left once you're there). If people like this for some reason, I can post the modifications here at vB.org.
I would really like to know how you did this. Let me know when you can, I know others are very intrested as well.
proxyMX
07-10-2003, 10:32 AM
theres something wrong with the javascript, my window simply pops up but is blank
proxyMX
07-10-2003, 10:34 AM
hold on, fixed, sorry :P
Frozen Dreams
07-23-2003, 06:14 PM
Would there be a way to make this work with different styles? So that it grabs the proper colors set for the current scheme?
Without this I cant use it since I can already see users bugging me about the colors :(
Blizzb
07-23-2003, 06:23 PM
Um... the ZIP file is corrupted.
ahbao
09-21-2003, 03:59 PM
is the templete style out yet?
Dark Shogun
10-13-2003, 06:14 AM
Sorry to bring back a pretty dead thread but does ANYONE know how I can make the vB Assistant to automatically popup when someone goes to the homepage instead of having to click on it? Also is there a way to make it refresh automatically?
Dark Shogun
Kaelon
01-23-2004, 04:25 PM
So, my vB Assistant seems to take around 20-30 seconds to load up, as well. I have a very active forum, around a million posts and some 12,000 users; we're on a top of the line dedicated system with 2 gigs of RAM. I hardly think that this is a hardware issue. I've reviewed the code though, and aside from heavy querying, I don't see why it should take so long to load. Any ideas on why it's taking long?
Kaelon
01-26-2004, 03:54 AM
Bug (confirmed), in that vB Assistant cannot handle usernames with apostrophes or special characters, and uses malformed queries:
Invalid SQL: SELECT COUNT(*) AS threads FROM thread WHERE postuserid = '12392' AND visible = '1' AND lastpost > '1074904556' AND lastposter != 'Euclides Ti'ran' ORDER BY dateline DESC LIMIT 0,1
mysql error: You have an error in your SQL syntax near 'ran' ORDER BY dateline DESC LIMIT 0,1' at line 1
ricker
01-26-2004, 09:29 PM
this works great, except for that fact that the message preview doens't show up. it just says:
You have 1 new messages.
12 are old messages.
And there is no link to go to your PMs.
I also can't get any of the sections to collapse, could this be due to the fact that I'm on a mac?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.