View Full Version : vB Pager 2.0.4
vB Pager
Version: 2.0.4
vB-version: 3.0.6
Developer: WwW.UAEWEB.CoM (http://www.uaeweb.com/)
Install-difficulty: Easy
This Hack has been moved to Full Releases Forums.
https://vborg.vbsupport.ru/showthread.php?t=66744 (https://vborg.vbsupport.ru/showthread.php?t=66744)
Updates in Version 2.0.4
DHTML popup for Sending New Pager and Replying.
Upgrade from version 2.0.0 and 2.0.2 to 2.0.4 inlcuded.
New option in ADMINCP for Hard deleting messages.
Introduction:
vB pager is a new refined & light paging system that enables authorized users to exchange short & quick messages amongst each other. Unlike the regular private messaging system, the paged user is guaranteed to read your message & reply to it (if you choose this option) instantly & easily.
Features:
You won't need to log on your CP to send a message, just click on the pager icon next to the name of the user you'd like to page! (See Screenshots)
Switch the paging system on or off anytime you wish!
Specify who gets to use the paging system by Usergroup, or even User IDs to send messages to your forum members.
vB Pager users can send pager messages to members of the forum and/or non-registered guests from the WhoisOnline's page.
Optional Anonymity: you can choose to hide your username when paging another user on the forum, & define which Usergroup or User IDs can utilize this option.
Restrict the number of characters in each message: you can restrict the use of this paging system to short messages only by simply typing in the maximum number of characters that can be used. The window comes in with a built-in character counter to enable the user to keep track of the characters typed.
Logs of all incoming and outgoing pager messages member has, can be viewed and deleted.
Logs of all incoming and outgoing pager messages (Deleted and Unread messages) for all members can be viewed and deleted through the Admin CP.
HACK INSTALLATION DETAILS:
File-edits: 8
Template-edits: 9
New files for this Hack: 3
admincp/pageradmin.php
images/buttons/vbpager.gif
pager.php
Files modified for this Hack: 5
admincp/index.php
include/functions.php
includes/functinons_online.php
global.php
online.php
New templates for this Hack: 4
vbpager
vbpager_listbit
vbpager_popup (v 2.0.2)
vbpager_new (v 2.0.4)
Templates modified for this Hack: 7
footer
MEMBERINFO (Optional)
navbar
forumhome_loggedinuser
postbit_legacy (Optional)
postbit (Optional)
whosonlinebit
New DB tables for this Hack: 1
pager
DB Tables modified for this Hack: 1
user
PLEASE CLICK INSTALL
Please click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=66744) if you install this hack, thanks.
vB Pager is free, and will remain free.
NuclioN
12-13-2004, 07:09 AM
so far no errors :) Is it correct by upgrading you don't have to overwrite/replace the pageradmin.php?
nope, you don't need to replace it :)
what you will need to replace is pager.php only and the installer for upgrading.
Cool :cool: thank you for sharing with the community uae ;)
TwinsX2Dad
12-13-2004, 03:51 PM
ERROR TIME!
Fixable, I am sure. :nervous:
I uploaded all of the files, checking them twice.
When I run the vbpager_install.php file (from admincp folder), I get the following database error:
Database error in vBulletin 3.0.3:
Invalid SQL: ALTER TABLE vb3_language ADD `phrasegroup_vbpager` MEDIUMTEXT NOT NULL
mysql error: Duplicate column name 'phrasegroup_vbpager'
mysql error number: 1060
Date: Monday 13th of December 2004 10:46:56 AM
Script: http://www.mydomain.net/forums/admincp/vbpager_install.php?step=dophrases
Referer: http://www.mydomain.net/forums/admincp/vbpager_install.php
Username: XXXXXXX
IP Address: XX.X.XX.XXX
Do you have any ideas as to what went wrong?
Thanks in advance!
C.Birch
12-13-2004, 04:13 PM
Duplicate column name 'phrasegroup_vbpager'
you already have a column by that name in your database, so the edit that the upgrade code is trying to do can ot work due to it.
TwinsX2Dad
12-13-2004, 04:48 PM
I figured that, so I went into phpMyAdmin and searched for all examples of it. I found one, then deleted the table.
Then I went back in and tried the install again - same result. So, I used the install file to uninstall whatever it had done, then checked the database again and deleted the table (again), then retried the install.
Same result.
This is driving me nuts! :)
dr-jamal
12-13-2004, 07:09 PM
well .. I did everything ..
but nothing showed up .. I mean .. I can't activate it .. see the picture I attached ..
BarHopper
12-13-2004, 08:06 PM
I tried the last veersion and it messed up my vB. Although nice, idea, i will not be implementing it.
TwinsX2Dad
12-14-2004, 01:22 AM
So, no solutions for Dr-Jamal & me?
docvader
12-14-2004, 01:39 AM
So, no solutions for Dr-Jamal & me?
I'm really looking forward to seeing a good working copy of this. Truly a great idea.
rich
russbo.com
TwinsX2Dad, I have no idea about what causing that problem with your setup!
sorry guys, but I have installed this thing in like five different sites, and never faced any problem!!
can anyone look into the installer please??
sometime and for some reason, users gets blank messages from guest!
to fix this problem
Open file includes/functions.php and FIND
return $pagerinfo;
ABOVE ADD
if (!$pagerinfo[pagerid])
if ($bbuserinfo[pager] > 0)
{
$result = $DB_site->query("UPDATE ". TABLE_PREFIX . "user set pager=pager - 1 where
userid = " . $bbuserinfo[userid] . "");
return false;
}
Open file yourforums/global.php and FIND
eval('$pagermessage = "' . fetch_template('vbpager_popup') . '";');
ABOVE ADD
if ($pagerinfo)
Installer has been updated.
well .. I did everything ..
but nothing showed up .. I mean .. I can't activate it .. see the picture I attached ..
can you try editing any phrase, then save it!
let's see if this will help, cos I have faced the same problem only with vB 3.0.0 and below, but never with 3.0.1 or above.
Great hack.
Unfortunately, I must advise all with my unfortunate experience after installing this hack.
I have the latest version of IE, and this hack will cause my IE to crash by loading into my forum. Also, the template additions for the MemberInfo did not plant the Message link.
If there is a fix to these issues I'd appriciate the help.
Until then, I have uninstalled this hack.
Great hack.
Unfortunately, I must advise all with my unfortunate experience after installing this hack.
I have the latest version of IE, and this hack will cause my IE to crash by loading into my forum. Also, the template additions for the MemberInfo did not plant the Message link.
If there is a fix to these issues I'd appriciate the help.
Until then, I have uninstalled this hack.
Thanks kamu, and sorry for that, but causing your IE to crash is something I have never experienced, strange!
Regarding the MemberInfo template, is it only with this template where you can't see the links to send a pager to others??
can you see the little button for sending a pager from whoisonline page?
have you set the right permission to use pager with your userid or usergroup?
Thanks kamu, and sorry for that, but causing your IE to crash is something I have never experienced, strange!
It may possibly be my computer, maybe Adware is causing some kind of conflict. I had some of my members play with it just before I uninstalled and they advised me that there were no problems. Unfortunately, until I can find a solution I will not be able to install :(
Regarding the MemberInfo template, is it only with this template where you can't see the links to send a pager to others??
can you see the little button for sending a pager from whoisonline page?
have you set the right permission to use pager with your userid or usergroup?
Yes, only with the MEMBERINFO template. The images within my onlinebits worked fine. The link within my vbmenu also worked flawlessly. I didn't review the template coding within the MEMBERINFO template extensively, but I did triple check my modification according to your instructions and it appeared non-existent on my Info page, in other words it looked exactly the same as before I added the modified code.
Hope that helps :)
Yes, only with the MEMBERINFO template. The images within my onlinebits worked fine. The link within my vbmenu also worked flawlessly. I didn't review the template coding within the MEMBERINFO template extensively, but I did triple check my modification according to your instructions and it appeared non-existent on my Info page, in other words it looked exactly the same as before I added the modified code.
Hope that helps :)Let's try this again
in MEMBERINFO template find
$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>
Below it ADD
<!-- [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.0' CHANGEID= 3 ] -->
<if condition="$bbuserinfo[canpager]">
<if condition="$bbuserinfo[userid]!=$userinfo[userid]">
<tr>
<td>
$vbphrase[vbpager_message]:<br />
<a href="#" onClick='window.open("pager.php?action=pager&do=newpager&touserid=$userinfo[userid]","pager","width=330,height=177");return false;'><phrase 1="$userinfo[username]">$vbphrase[vbpager_send_pager_to] $userinfo[username]</phrase> </a>
</td>
</tr>
</if>
</if>
<!-- [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.0' CHANGEID= 3 ] -->
This exactly what I got right now in the that template!
dr-jamal
12-14-2004, 07:30 AM
can you try editing any phrase, then save it!
let's see if this will help, cos I have faced the same problem only with vB 3.0.0 and below, but never with 3.0.1 or above.
well .. I did that but it has no effect .. still I can't see the options ..
TwinsX2Dad
12-14-2004, 12:06 PM
TwinsX2Dad, I have no idea about what causing that problem with your setup!
sorry guys, but I have installed this thing in like five different sites, and never faced any problem!!
can anyone look into the installer please??
Interesting. Anyone else had any difficulty in installing (initial installer) and gotten around it?
Amiga75
12-14-2004, 04:10 PM
No Problems. Works Perfect. :squareeyed:
TwinsX2Dad
12-14-2004, 05:00 PM
No Problems. Works Perfect. :squareeyed:
Sure - make me feel stupid here! ;)
dr-jamal
12-15-2004, 06:11 AM
Sure - make me feel stupid here! ;)
Me too :squareeyed: .. that's why I decided to forget all about it .. Uninstall everything..
TwinsX2Dad
12-15-2004, 01:51 PM
Me too :squareeyed: .. that's why I decided to forget all about it .. Uninstall everything..Ditto here.
There is something wrong in the install file, as I triple checked my DB, then ran the installer - it crashes, telling me there is a duplicate. I check the DB and, lo & behold, there is a dupe - JUST CREATED BY THE INSTALLER! So, I delete the referenced bits, check again and yes, the offending bits are indeed gone. So I run the installer again with the same results.
The error is happening before the file is even done building the phrases.
Maybe this thing works on a plain vanilla, unmodified copy of vB. With minor hacks installed, the thing just doesn't work.
docvader
12-15-2004, 11:49 PM
I feel kind of stupid too. I've installed this, (it was easy, with no errors), but I can't see any pager image anywhere. I assume it's supposed to be next to the reputation scale in the upper right corner of the postbit template version of the post. There is also supposed to be a link in the navbar, under "Quick Links". Apparently, there needs to be certain permissions for people to use this, and view this, which is why maybe I can't "see" it. But, in the Usergroup Manager (admincp), there is no option for granting this permission.
Any suggestions?
rich
http://x.russbo.com/vb/index.php
docvader
12-16-2004, 12:54 AM
Oh, in my Admin Control Panel, in the vBPager Options, I don't get anything to choose in that page. So, I must be missing something... What file edit controls that? Same as Dr Jamal's problem above. I've "saved" the phrases, etc.
docvader
12-16-2004, 02:39 AM
Interesting, the phrases for the Pager Options in the Admin CP are present in the forum database. I've tried saving a few of them to see if they'd "appear", to no avail. I guess I don't see the Pager stuff in the forum because I have not turned it on. And I can't turn it on, because the admin cp/pager options shows what Dr Jamal's post above shows: nothing.
So, what do we do to get the pager options to "appear"? The admin cp/ pager messages panel seems to work fine.
TwinsX2Dad
12-16-2004, 12:35 PM
I guess some things, some promises, are meaningless.
docvader
12-16-2004, 12:49 PM
This lack of vbpager options in the admin cp is not uncommon apparently. It was noticed in the previous thread for this hack, before it was supposedly upgraded to vb 3.03.
In the admin cp, the vbpager options calls to ./admincp/options.php..., but, we didn't alter anything in that during the install. Something simple is missing here. Either I missed it, or it's not in the installer.
Would love to get this working. Looks like it could be a great addition. I've been looking for something like this for a while.
Insalled succesfully with tons of hacks installed in my site... seems to work ok... but i'm also having the problem other member had of not viewing the pager in the memberinfo template....
Insalled succesfully with tons of hacks installed in my site... seems to work ok... but i'm also having the problem other member had of not viewing the pager in the memberinfo template....
Ok, never mind.. the image and info is there in the template is just that if you look at your own profile you wont see it... so far this is the best pager around congratulations uae
One last thing... how can I make the little "Allow Reply" box to be checked by default... I know this must be exremely easy right... thanks in advance...
Ok, this pager works great, however, i'm having some displaying errors... i have attached an image of what seems to be errors... can someone direct me in the right direction of where I can fix those displaying errors?
Please view attachment...
docvader
12-17-2004, 12:21 AM
How did you get it to work, and we didn't? LOL. Can you see the VbPager options in the admincp??? I'm not sure why that is not showing, what file makes that appear?
How did you get it to work, and we didn't? LOL. Can you see the VbPager options in the admincp??? I'm not sure why that is not showing, what file makes that appear?
in the installation you need to make the changes to the admincp/index.php files... unless you edit that file, you wont see the menu in your admincp
docvader
12-17-2004, 12:56 AM
I see the menu in the admin cp; that's not the problem. Two items are there in that litle menu section, one is vbpager options, the other is the messages list. The vbpager options section does not show (it calls to ./options.php, which we don't edit in this install), the messages list section does (it does not call to ./options.php). So, I'm a bit bewildered at this. I have all the phrases in my phrase manager, the three templates were transcribed, the file edits have all been done (for the fifth or so time), but I can't seem to get the vbpager options showing in the admin cp. Which is what the other guys (twindad and drjamal) seem to be having problems with.
Any ideas Polo?? You've got an elaborate forum man, I have no doubt that you can figure this out. What did you do differently than the rest of us?
Thanks!
rich
russbo.com
TwinsX2Dad
12-17-2004, 04:22 AM
It seems to be one of a couple of possible issues, Rich - and I am not certain which one it is.
My assumption is that it is either table prefixes or a conflict with another mod. I use prefixes and have a heavily modified board. I tried it on a plain vanilla test board and got it to work, but with the same issues Polo is now bringing up.
Once I started adding mods, the board locked up. The odd thing is that I added a mod at a time until I had DB issues, then removed the last mod. I still got the DB issues. I double and triple checked the coding, even restoring the files I just modified and still I had the problems. This leads me to believe that the root issue is in DB changes. But, as we all know, a vB database is a rather large creature and I don't have all the time in the world to figure out where things are breaking.
docvader
12-17-2004, 04:34 AM
I'm not sure it would be a conflict with another mod, I"ve got a bunch of hacks on my board, and they all peacefully coexist with each other. Why this one shouldn't, with relatively minor file edits, is beyond me. I think that your idea of the table prefixes is a good one; but, I agree, I wouldn't be delving into that monster either.
Sure hope Uae figures this out. It looks like it could be an awesome hack to have. I'll leave it "installed" for now....
(The installer that was provided with this hack was by far, very pretty, and well thought out, but, most definitely hard to work with when going back to reinstall and evaluate. In my opinion, simple text files are much easier to deal with when doing template and file edits).
boo.3
12-19-2004, 01:46 AM
Can't wait for full version for this! :)
One last thing... how can I make the little "Allow Reply" box to be checked by default... I know this must be exremely easy right... thanks in advance...
in the TEMPLATE vbpager FIND
<input class="button" type="checkbox" id="pager_reply" name="usercanreply" value="1">$vbphrase[vbpager_allow_reply]</label>
Replace it with
<input class="button" type="checkbox" id="pager_reply" name="usercanreply" value="1" checked>$vbphrase[vbpager_allow_reply]</label>
Ok, this pager works great, however, i'm having some displaying errors... i have attached an image of what seems to be errors... can someone direct me in the right direction of where I can fix those displaying errors?
Please view attachment...
Polo, is that your footer attached to the vbpager_popup??
I didn't get what exactly wrong with the image!
I have updated the installer, and hope that will fix vbpager options not showing in the admin cp!
Guys, please do clear your browser cache and download the latest release.
I guess some things, some promises, are meaningless.
I'm trying my best, and there seem no one wants to help with this hack, I just can't see the problems you're getting installing this hack, where all of my friends are using it in their boards!
I can try looking into your board and install this myself if you want!
Other than that sorry, but I can't do much where I'm still trying my best!
boo.3
12-20-2004, 04:30 PM
i would be glad to help i just can't code lol
its a awsome hack but have u fixed the IE problem? i get a error in IE but not in Firefox
i would be glad to help i just can't code lol
its a awsome hack but have u fixed the IE problem? i get a error in IE but not in Firefox
Sorry, but what IE problem??
docvader
12-22-2004, 01:53 AM
Interesting, the phrases for the Pager Options in the Admin CP are present in the forum database. I've tried saving a few of them to see if they'd "appear", to no avail. I guess I don't see the Pager stuff in the forum because I have not turned it on. And I can't turn it on, because the admin cp/pager options shows what Dr Jamal's post above shows: nothing.
So, what do we do to get the pager options to "appear"? The admin cp/ pager messages panel seems to work fine.
The new installer does nothing to change this Uae. I've uninstalled and reinstalled the entire thing, again.
Why is it that the link in the ADMIN CP/VBPager/vbpager options calls to /forums/admincp/options.php..., and we have NOT altered anything in that options.php file?? Is that why nothing shows up in the ADMIN CP?
Still "installed". Would love to see this working.
rich
http://x.russbo.com/vb/index.php
Why is it that the link in the ADMIN CP/VBPager/vbpager options calls to /forums/admincp/options.php..., and we have NOT altered anything in that options.php file?? Is that why nothing shows up in the ADMIN CP?
rich, we don't need to modify that file to call vB Pager's options, that link is correct and should call the setting from database.
admincp/options.php?dogroup=vbpager&do=options
it's just strange that some of you can see the options!
anyone please?? or I'll need to look into your forums!
docvader
12-22-2004, 03:46 AM
OK, understand. I think, LOL. I'm really not sure why I don't see that one panel, that turns it on. (Which, I'm sure, is the reason why it doesn't show at all in the postbits). So, the issue now is, how to get that visible. I'll try any suggestions that you might have. I did install this, now, many a time. And I must have at least twenty or more other hacks on my forum, all of which are co-existing together just fine.
Maybe twinsdad is right, it's a database issue. What are the attributes of user / pager in phpMyAdmin that we should see? Where else is there database changes?
rich
OK, understand. I think, LOL. I'm really not sure why I don't see that one panel, that turns it on. (Which, I'm sure, is the reason why it doesn't show at all in the postbits). So, the issue now is, how to get that visible. I'll try any suggestions that you might have. I did install this, now, many a time. And I must have at least twenty or more other hacks on my forum, all of which are co-existing together just fine.
Maybe twinsdad is right, it's a database issue. What are the attributes of user / pager in phpMyAdmin that we should see? Where else is there database changes?
rich
Ok, installer has been updated!
rich, can you please try uninstalling the hack, and reinstall it, no need to go with all steps, just do the database altering step, then reinstall it.
docvader
12-23-2004, 12:15 AM
That did it man. It works. We're testing it now.
Only thing I've found so far, is that the pager pop box is too small. And, in Netscape, for some strange reason, when you respond to a page (within the page itself), it shrinks the entire browser down. In IE, it seems to be working perfectly.
Thanks. We'll play with it and look for bugs. This should most definitely be a regular option in vbulletin. It's awesome.
boo.3
12-23-2004, 12:41 AM
awsome
docvader
12-23-2004, 12:48 AM
OK, we found two issues.
ONE: If you send a pager message to someone, and you leave the "send reply" box unchecked, the pager message that the recipient gets cannot be closed.
If you send a pager message to someone, with the pager message box checked, the recipient has the option to respond, but, he cannot close the pager box unless he either types in the box, or space bars three times in the box.
This inability to get rid of the pager box under these circumstances is an annoyance to some, not to others.
Also, it would be nice to have scroll bars in the pager box (easy to add some sort of autoscroll feature), as some of my members cannot see the bottom of the pager message within the pop up box, and prefer to have scroll bars so that they can see you can scroll down to "more stuff".
TWO: We can no longer see member profiles. Clicking on "View Public Profile" in the drop box under the member's name (in postbit) leads to a blank white page. Not sure what happened there! LOL. You cannot access member info from the postbit or from the member list.
rich, can you please try uninstalling the hack, and reinstall it, no need to go with all steps, just do the database altering step, then reinstall it.
Now, I did not do the file or template edits, as you suggested, assuming nothing had been changed within those. Not sure if you changed anything in there to fix these problems in the past day or two.
Otherwise, I agree. This is awesome. HOTM material. Let's help Uae get it buffed up.
rich
http://x.russbo.com
TwinsX2Dad
12-23-2004, 02:55 AM
Okay gang - now the installer works for me. Thank you for the fix!
Going through the file edits now.
Thanks rich, I'm glad that you've got it to work....
OK, we found two issues.
ONE: If you send a pager message to someone, and you leave the "send reply" box unchecked, the pager message that the recipient gets cannot be closed.
Do you mean that they can not see the close button? or they see it but when clicking on it nothing happes?
If you send a pager message to someone, with the pager message box checked, the recipient has the option to respond, but, he cannot close the pager box unless he either types in the box, or space bars three times in the box.
Same thing, can they see the close button?
Also, it would be nice to have scroll bars in the pager box (easy to add some sort of autoscroll feature), as some of my members cannot see the bottom of the pager message within the pop up box, and prefer to have scroll bars so that they can see you can scroll down to "more stuff".
I'm working on this part.
TWO: We can no longer see member profiles. Clicking on "View Public Profile" in the drop box under the member's name (in postbit) leads to a blank white page. Not sure what happened there! LOL. You cannot access member info from the postbit or from the member list.
There shouldn't be any problem with this, cos we haven't touched either files.
can you REcheck the template edit made to MEMBERINFO Template?
Where you find:
<if condition="$userinfo['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>
Add BELOW that ADD:
<!-- [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.2' CHANGEID= 3 ] -->
<if condition="$bbuserinfo[canpager]">
<if condition="$bbuserinfo[userid]!=$userinfo[userid]">
<tr>
<td>
$vbphrase[vbpager_message]:<br />
<a href="#" onClick='window.open("$vboptions[bburl]/pager.php?action=pager&do=newpager&touserid=$userinfo[userid]","pager","width=330,height=177");return false;'><phrase 1="$userinfo[username]">$vbphrase[vbpager_send_pager_to] $userinfo[username]</phrase> </a>
</td>
</tr>
</if>
</if>
<!-- [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.2' CHANGEID= 3 ] -->
Now, I did not do the file or template edits, as you suggested, assuming nothing had been changed within those. Not sure if you changed anything in there to fix these problems in the past day or two.
Exactly, there were no changes made to the file nor the template edits.
Otherwise, I agree. This is awesome. HOTM material. Let's help Uae get it buffed up.
True :)
docvader
12-23-2004, 04:36 AM
It seems to occur, if A sends a pager message to B, without checking the "reply" box, that is, B gets a pop up window, WITHOUT the usual Internet Explorer frame (latest version) around it (so you can't click on the red X box and close the window); this window has a "close" button in it which does not work.
IF you sent B a message without the reply box option, B gets this pop up window that remains in the center of his screen. If B clears his temporary internet files, closes IE, shuts down his computer, and restarts it, once B returns to my website, that pop up box (without IE frame, with "close" button) pops up again. As if the server is sending it yet again, because it did not get a response, in my opinion.
Again, if A sends B a pager message, with the reply option checked, B has to respond within the pop up box, to be able to send, and close that box. Or, B has to put cursor in respond area of pager pop up box, hit space bar a few times, and then either send or close pager box. B should have option to close box without responding.
Autoscroll in pager box should be easy; however, I personally have not had problems with pop up box appearance (I did with Netscape Navigator, latest version).
As for my member profiles, I'm lost, LOL. I did the file edits exactly. I reverted memberinfo back to original, without getting it to work. I reverted member.php back to original, without getting it to work. Could this be a database error? Did the new install do something to warp the database in some way that member profile stuff no longer works? (It worked yesterday, so I don't think it's my file edits.
Thanks
rich
ethank
12-23-2004, 05:45 AM
I installed but had to turn it off.
Pages kept popping up even after a user already read them and clicked "close"
After a user responded and sent the response, a new window would pop up with the site in it.
Any idea what would cause these problems?
TwinsX2Dad
12-23-2004, 01:13 PM
Okay - got all installed & checked the edits twice. But when I try to page someone, I get no options, buttons, nothing to send the page. I get the text entry box and hitting Enter/Return simply calls up a new line.
Pager popup box attached.
docvader
12-23-2004, 02:46 PM
dad, did you make sure that your new vbpager templates have been copied to all of the styles that you are using? The new templates, more specifically, vbpager_popup, I think, has the buttons. There are three new templates, each having a "vbpager" moniker attached within them.
TwinsX2Dad
12-23-2004, 05:05 PM
On this particular board, I am running only one style - no different ones, so I have but one set of templates.
The original file came with just a single image - I placed it in /images/buttons/ - but nothing shows up.
Here is my vbpager_popup template:
<style type="text/css">
#PLAYER { position:absolute; height:1; width:1px; top:0; left:0; }
</style>
<script type="text/javascript">
chanceAd=1; // The chance in X times that this signup reminder will be shown
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var calunit=ns? "" : "px"
function initAd(){
if(!ns && !ie && !w3) return;
if(ie) adDiv=eval('document.all.PLAYER.style');
else if(ns) adDiv=eval('document.layers["PLAYER"]');
else if(w3) adDiv=eval('document.getElementById("PLAYER").style');
randAd=Math.ceil(Math.random()*chanceAd);
if (ie||w3)
adDiv.visibility="visible";
else
adDiv.visibility ="show";
if(randAd==1) showAd();
}
function showAd(){
if (ie)
{
documentWidth =truebody().offsetWidth/2+truebody().scrollLeft-20;
documentHeight =truebody().offsetHeight/2+truebody().scrollTop-20;
}
else if (ns)
{
documentWidth=window.innerWidth/2+window.pageXOffset-20;
documentHeight=window.innerHeight/2+window.pageYOffset-20;
}
else if (w3)
{
documentWidth=self.innerWidth/2+window.pageXOffset-20;
documentHeight=self.innerHeight/2+window.pageYOffset-20;
}
adDiv.left=documentWidth-200+calunit;
adDiv.top =documentHeight-200+calunit;
setTimeout("showAd()",100);
}
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
onload=initAd;
</script>
<DIV ID="PLAYER" style="visibility:hidden">
<div class="normalfont">
<!-- Pager Message -->
<iframe name="ipager" width="0" height="0"></iframe>
<table class="tborder" align="$stylevar[center]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="400">
<tr>
<td class="tcat" height="13">$vbphrase[vbpager_message_from] <i>$pagerinfo[username]</i><font class="smallfont">
@ $pagerinfo[timesent]</font>
</td>
</tr>
<tr>
<td class="panelsurround" align="center" valign="top">
<fieldset class="fieldset">
<legend>$vbphrase[vbpager]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
<tr>
<table border="0" cellpadding="2" cellspacing="0" width="100%" align="center">
<tr>
<table id="frm" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td width="100%">
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="panelsurround" align="$stylevar[left]">
<div class="panel"><div align="$stylevar[left]">
$pagerinfo[message]
</div></div>
</td>
</tr>
</table>
</td></tr>
<form method="POST" action="$vboptions[bburl]/pager.php" name="frmpager" target="ipager" onsubmit="return SubmitForm(this);">
<tr><td align="center" width="100%">
<if condition="$pagerinfo[canreply]">
<input type="hidden" name="action" value="pager">
<input type="hidden" name="do" value="pagerreply">
<input type="hidden" name="pid" value="$pagerinfo[pagerid]">
<input type="hidden" name="touid" value="$pagerinfo[fromuserid]">
<textarea class="button" rows="3" name="message" cols="40" onKeyDown="textCounter(this);" onKeyUp="textCounter(this);"></textarea><br>
<input type=box class="button" readonly name=charNum size=2 value="$vboptions[vbpager_message_maxchar]">
<input type="submit" name="submit" class="button" value="$vbphrase[vbpager_reply_to] $pagerinfo[username]">
<else />
</if>
<input type="button" class="button" onClick="javascript:window.parent.ipager.location.href='$vb options[bburl]/pager.php?action=pager&do=pagerreply&pid=$pagerinfo[pagerid]&touid=$pagerinfo[fromuserid]';closepager('PLAYER');" value="$vbphrase[vbpager_close]">
<if condition="$pagerinfo[parentpid]<>'0' and $pagerinfo[fromuserid]>0">
<input type="button" class="button" onClick='javascript:window.parent.ipager.location. href="$vboptions[bburl]/pager.php?action=pager&do=pagerreply&pid=$pagerinfo[pagerid]&touid=$pagerinfo[fromuserid]";closepager("PLAYER");window.open("$vboptions[bburl]/pager.php?action=pager&do=newpager&pid=$pagerinfo[pagerid]&touserid=$pagerinfo[fromuserid]","pager","width=330,height=170");' value="$vbphrase[vbpager_reply]">
</if>
</form>
<br>
<if condition="$canreply">
<a href="#" onClick="javascript:location.href='$vboptions[bburl]/pager.php?touserid=$pagerinfo[fromuserid]';">$vbphrase[vbpager_reply_to]: $pagerinfo[username]</a>
</td></tr>
</table>
</fieldset></td></tr>
</table>
</td></tr>
</table>
</center>
</div>
</table>
</if>
<!-- Pager Message -->
</div>
</DIV>
<script type="text/javascript">
function closepager(id){
if (ie||w3)
adDiv.display="none";
else
adDiv.visibility ="hide";
}
function SubmitForm(obj)
{
minchar = 3;
if (obj.message.value.length < minchar)
{
alert("$vbphrase[vbpager_max_per_message] " + minchar + "");
return false;
}
else
closepager('PLAYER');
return true;
}
function textCounter(field) {
maxlimit=$vboptions[vbpager_message_maxchar]
if (field.value.length > maxlimit)
{field.value = field.value.substring(0, maxlimit);}
else
{frmpager.charNum.value = maxlimit - field.value.length;}
}
</script>
I don't know where to look. I've been pulling my hair out looking.
TwinsX2Dad
12-23-2004, 05:25 PM
Now I am wondering if the popup window might be too small. How would I increase the height?
TwinsX2Dad
12-23-2004, 05:35 PM
Well, here might be an issue - a DB error:
Database error in vBulletin 3.0.3:
Invalid SQL: UPDATE user set vb3_pager = pager + 1 where userid = 2
mysql error: Table 'mydatabase_forums.user' doesn't exist
mysql error number: 1146
Date: Thursday 23rd of December 2004 12:12:20 PM
Script: http://www.mydomain.net/forums/pager.php
Referer: http://www.mydomain.net/forums/pager.php?action=pager&do=newpager&touserid=2
Username: Member
IP Address: 00.000.00.00
Could this be something?
Please see two previous posts, as well
docvader
12-23-2004, 07:45 PM
Your user table doesn't exist in your vbulletin SQL? Are you sure? Have you looked in phpMyAdmin to see if it's there? I never got this error with this hack.
docvader
12-24-2004, 02:45 AM
Uae, one other thing. Not sure if it's just sloppy editing on my part, but, I figured out, with the help of some of the digital masters on this board, where my member profile issue is.
Altering the /includes/functions_online.php file caused my member profile link to crash, ie, one could not view individual member profiles. Not sure if anyone else has noticed or experienced this, but, it's something to keep an eye out for.
I tried editing that file again, with no success. What's your take on this? Any ideas where it might be triggering problems?
rich
Sorry. My mistake. I added the bottom edit of /includes/functions.php to /includes/functions_online.php. These html install things are sometimes tricky to see (a plain text file with all the template and file edits, though not as professional looking, or nice, seem to be more effective and easier to work with, in my opinion, especially if you have to go back and dig around in them.)
Board's working fine. Waiting for a work around with the persistent pager pop up. Wish I new more about this stuff to help.
rich
TwinsX2Dad
12-24-2004, 05:06 AM
Your user table doesn't exist in your vbulletin SQL? Are you sure? Have you looked in phpMyAdmin to see if it's there? I never got this error with this hack.'mydatabase_forums.user' doesn't exist.
'mydatabase_forums.vb3_user' does.
I have table prefixes.
docvader
12-24-2004, 06:04 AM
Understand. Just curious, could you solve the problem by adding "TABLE_PREFIX" labels to his pager.php code, in the relevant places? Doesn't look like they're all there, from my quick perusal. I'm far from a whiz when it comes to databases, but you seem to be pretty savvy about it. Just curious about this.
TwinsX2Dad
12-24-2004, 03:04 PM
Databases, I am not too bad on. It is php calls to a database where I have troubles. Yet I am not certain my problem lies within pager.php - here is my file:
<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # ---------------------------------------------------------------- # ||
|| # vB Pager Version 2.0.2 for vBulletin 3.0.1 or Above # ||
|| # by [WwW.UAEWEB.COM] # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000?2004 WwW.UAEWEB.COM All Rights Reserved. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| ################################################## ################## ||
\*================================================ ======================*/
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
$templatesused='vbpager';
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('vbpager');
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
global $vboptions;
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
// Start of Pager LOG
if ($do=='log')
{
// Pager inbox
if ($folder=='inbox')
{
$show[inbox] = 1;
// Delete Pager
globalize($_POST, array('dowhat', 'pagerno'));
if ($dowhat=="del")
{
if (!is_array($pagerno))
{
$idname = "Pager ID";
eval(print_standard_error('invalidid'));
}
$messageids = array();
foreach (array_keys($pagerno) AS $pmid)
{
$pmid = intval($pmid);
$messageids["$pmid"] = $pmid;
}
$pagerids = implode(', ', $messageids);
$DB_site->query("update " . TABLE_PREFIX . "pager set delread=1 where pagerid in ($pagerids)");
}
// Delete Pager
// Pager NavPage
$tmpsql = $DB_site->query_first("select count(*) as totpager from " . TABLE_PREFIX . "pager as p left join " . TABLE_PREFIX . "user as u on (p.fromuserid=u.userid) where touserid=" . $bbuserinfo[userid] . " and delread=0 and active=0");
$totalpager = $tmpsql[totpager];
if (!isset($perpage))
$perpage=$vboptions[vbpager_message_perpage];
$pagenumber=$page;
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage")
$pagenumber=1;
$limitlower=($pagenumber-1)*$perpage+1;
$limitupper=($pagenumber)*$perpage;
// Pager NavPage
$sql = "select pagerid, fromuserid, username, message, msgdate, deliverdate, hidden, delread, active from " . TABLE_PREFIX . "pager as p left join " . TABLE_PREFIX . "user as u on (p.fromuserid=u.userid) where touserid=" . $bbuserinfo[userid] . " and delread=0 and active=0 order by deliverdate desc LIMIT " . ($limitlower-1) . ", $perpage";
if ($limitupper>$totalpager)
{
$limitupper=$totalpager;
if ($limitlower>$totalpager)
$limitlower=$totalpager-$perpage;
}
$pagenav = construct_page_nav($totalpager,"pager.php?action=pager&do=log&folder=inbox&perpage=$perpage");
$result = $DB_site->query($sql);
$i = 0;
while ($pagerinfo=$DB_site->fetch_array($result))
{
$i++;
if (!($pagerinfo[username]))
$pagerinfo[username] = $vbphrase['guest'];
if ($pagerinfo[hidden])
$pagerinfo[username] = $vbphrase['vbpager_nat'];
$pagerinfo[deliverdate] = vbdate($vboptions['dateformat'], $pagerinfo[deliverdate], true) . " " . vbdate($vboptions['timeformat'], $pagerinfo[deliverdate]);
$pagerinfo[msgdate] = vbdate($vboptions['dateformat'], $pagerinfo[msgdate], true) . " " . vbdate($vboptions['timeformat'], $pagerinfo[msgdate]);
eval('$pagerinbox .= "' . fetch_template('vbpager_listbit') . '";');
}
}
// Pager outbox
elseif ($folder=='outbox')
{
$show[outbox] = 1;
// Delete Pager
globalize($_POST, array('dowhat', 'pagerno'));
if ($dowhat=="del")
{
if (!is_array($pagerno))
{
$idname = "Pager ID";
eval(print_standard_error('invalidid'));
}
$messageids = array();
foreach (array_keys($pagerno) AS $pmid)
{
$pmid = intval($pmid);
$messageids["$pmid"] = $pmid;
}
$pagerids = implode(', ', $messageids);
$DB_site->query("update " . TABLE_PREFIX . "pager set delsent=1 where pagerid in ($pagerids)");
$result = $DB_site->query("select touserid, count(*) as totpager from " . TABLE_PREFIX . "pager where active=1 and touserid is not NULL and pagerid in ($pagerids) group by touserid");
while ($sql = $DB_site->fetch_array($result))
if ($sql[totpager])
$DB_site->query("UPDATE " . TABLE_PREFIX . "user set pager = pager - " . $sql[totpager] . " where userid = " . $sql[touserid] );
}
// Delete Pager
// Pager NavPage
$tmpsql = $DB_site->query_first("select count(*) totpager from " . TABLE_PREFIX . "pager as p left join " . TABLE_PREFIX . "user as u on (p.touserid=u.userid) where fromuserid=" . $bbuserinfo[userid] . " and delsent=0");
$totalpager = $tmpsql[totpager];
if (!isset($perpage))
$perpage=$vboptions[vbpager_message_perpage];
$pagenumber=$page;
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage")
$pagenumber=1;
$limitlower=($pagenumber-1)*$perpage+1;
$limitupper=($pagenumber)*$perpage;
// Pager NavPage
$sql = "select pagerid, parentpid, fromuserid, username, message, msgdate, deliverdate, hidden, delread, active from " . TABLE_PREFIX . "pager as p left join " . TABLE_PREFIX . "user as u on (p.touserid=u.userid) where fromuserid=" . $bbuserinfo[userid] . " and delsent=0 order by msgdate desc LIMIT " . ($limitlower-1) . ", $perpage";
if ($limitupper>$totalpager)
{
$limitupper=$totalpager;
if ($limitlower>$totalpager)
$limitlower=$totalpager-$perpage;
}
$pagenav = construct_page_nav($totalpager,"pager.php?action=pager&do=log&folder=outbox&perpage=$perpage");
$result = $DB_site->query($sql);
$i = 0;
while ($pagerinfo=$DB_site->fetch_array($result))
{
$i++;
if (!($pagerinfo[username]))
$pagerinfo[username] = $vbphrase['guest'];
if ($pagerinfo[parentpid])
if ($DB_site->query_first("select * from " . TABLE_PREFIX . "pager where pagerid=". $pagerinfo[parentpid] ." and hidden=1"))
$pagerinfo[username] = $vbphrase['vbpager_nat'];
if ($pagerinfo[deliverdate])
$pagerinfo[deliverdate] = vbdate($vboptions['dateformat'], $pagerinfo[deliverdate], true) . " " . vbdate($vboptions['timeformat'], $pagerinfo[deliverdate]);
else
$pagerinfo[deliverdate] = $vbphrase['vbpager_not_read'];
$pagerinfo[msgdate] = vbdate($vboptions['dateformat'], $pagerinfo[msgdate], true) . " " . vbdate($vboptions['timeformat'], $pagerinfo[msgdate]);
eval('$pageroutbox .= "' . fetch_template('vbpager_listbit') . '";');
}
}
else
$show[pagererror] = 1;
}
// Start of Pager LOG
// Start of Pager reply
if ($do=='pagerreply')
{
$show[pagerreply] = 1;
// Reply message
$touserid = $touid;
$message = addslashes(htmlspecialchars(trim($message)));
$sqltemp = $DB_site->query_first("select active from " . TABLE_PREFIX . "pager where pagerid=$pid");
$addpager = intval($sqltemp[active]);
$DB_site->query("UPDATE " . TABLE_PREFIX . "user set pager = pager - $addpager where userid = " . $bbuserinfo[userid] . "");
$DB_site->query("UPDATE " . TABLE_PREFIX . "pager set deliverdate = " . TIMENOW . " , active = 0 where pagerid = $pid");
if ($message)
{
$DB_site->query("INSERT into " . TABLE_PREFIX . "pager(touserid, parentpid, fromuserid, message, msgdate) values ($touserid, $pid, " . $bbuserinfo[userid] . ", '$message', " . TIMENOW . ")");
$DB_site->query("UPDATE user set " . TABLE_PREFIX . "pager = pager + 1 where userid = $touserid");
$replysent = 1;
}
// Update delivered messages
}
// End of Pager reply
// Start of Pager Deliver Report
if ($do=='pagerreport')
{
$show[pagerreport] = 1;
}
// End of Pager Deliver Report
// Start of Pager Logs
if ($do=='pagerlogs')
{
$show[pagerlogs] = 1;
}
// End of Pager Logs
// Start New Pager to User
if ($do=='newpager')
{
$show[newpager] = 1;
if (trim($guestid))
$done = can_pager(1);
else
$done = can_pager();
if ($pid)
{
$sqltemp = $DB_site->query_first("select active, deliverdate from " . TABLE_PREFIX . "pager where pagerid=$pid");
$addpager = intval($sqltemp[active]);
if ($sqltemp[deliverdate])
{
$DB_site->query("UPDATE " . TABLE_PREFIX . "user set pager = pager - $addpager where userid = " . $bbuserinfo[userid] . "");
$DB_site->query("UPDATE " . TABLE_PREFIX . "pager set active = 0 where pagerid =$pid");
}
$DB_site->query("UPDATE " . TABLE_PREFIX . "pager set deliverdate = " . TIMENOW . " where pagerid =$pid");
}
$uids = explode(',', str_replace(' ', '', $vboptions[vbpager_canhidename]));
foreach($uids AS $ids)
if ($bbuserinfo[userid]==$ids)
$canhide = 1;
if ($done==1)
{
if ($touserid > 0)
{
if ($touserid==$bbuserinfo[userid])
{
$show[newpager] = "";
$show[pagererror] = 1;
$selfpager = 1;
}
else
$pagerinfo = $DB_site->query_first("SELECT userid, username from " . TABLE_PREFIX . "user WHERE userid=$touserid");
}
elseif ($guestid)
{
$pagerinfo = $DB_site->query_first("SELECT * from " . TABLE_PREFIX . "session where sessionhash='$guestid'");
$pagerinfo[username] = $vbphrase['guest'];
$pagerinfo[guestid] = $guestid;
}
if (!($pagerinfo))
{
$show[newpager] = "";
$show[pagererror] = 1;
$nouser = 1;
}
}
else
print_no_permission();
}
// End New Pager to User
// Start New Pager to User
if ($do=='sendpager')
{
$show[sendpager] = 1;
$canreply = intval($usercanreply);
$message = addslashes(htmlspecialchars($message));
$hidden = intval($hideuser);
if ($touserid==0)
$DB_site->query("INSERT into " . TABLE_PREFIX . "pager(tosessionid, fromuserid, message, msgdate, canreply, hidden) values ('$toguestid', " . $bbuserinfo[userid] . ", '$message', " . TIMENOW . ",$canreply, $hidden)");
else
{
$DB_site->query("INSERT into " . TABLE_PREFIX . "pager(touserid, fromuserid, message, msgdate, canreply, hidden) values ($touserid, " . $bbuserinfo[userid] . ", '$message', " . TIMENOW . ",$canreply, $hidden)");
$DB_site->query("UPDATE user set " . TABLE_PREFIX . "pager = pager + 1 where userid = $touserid");
}
}
// End New Pager to User
eval('print_output("' . fetch_template('vbpager') . '");');
?>
I can't recall the last time I've had this much difficulty with a modification.
Mitsuaki
12-24-2004, 06:00 PM
Fatal error: Call to undefined function: can_pager() in /customers/myhost.com/myhost.com/httpd.www/forums/global.php on line 302
That cant be good... i get that when i try to load.... anything.... index, admin cp, everything????
bahawolf
12-25-2004, 11:10 PM
I have the popup problem that Dad has only with Firefox.
ethank
12-28-2004, 09:49 PM
Any fix for the messages keeping appearing on every page even after you have read them?
D|ver
12-31-2004, 09:03 AM
thank you i will test this one out :)
so there will be no more errors with popup killers now?
does every browser support dhtml?
zell_11
12-31-2004, 08:50 PM
On firefox the box isn't big enough and you have to highlight to click reply. How can i sort this?
boo.3
12-31-2004, 10:18 PM
can't wait for full version :)
D|ver
01-01-2005, 07:58 PM
On firefox the box isn't big enough and you have to highlight to click reply. How can i sort this?
hmm i have the same problem but only on firefox
is there a fix for this?
Back on track...
Sorry guys, but I'll be done with vB Pager 2.2.3 with all bugs fix.
TwinsX2Dad
01-02-2005, 05:30 AM
Back on track...
Sorry guys, but I'll be done with vB Pager 2.2.3 with all bugs fix.
So we skipped from 2.0.3 to 2.2.3, without a 2.1.3, or did I miss something?
Will 2.2.3 have a beta tag?
When will this be out?
:banana:
TwinsX2Dad
01-02-2005, 03:53 PM
I figured that ....... :D
But you didn't answer the 'when' question!
Deaths
01-08-2005, 01:36 PM
I installed it and it worked OK.
Now, I've upgraded to 3.0.5, and it only opens a pop-up, with no content.
As far as I know, I made all file edits.
Could you please tell me where the pop-ups content is handeled (which template(s) and/or file(s))?
Thanks
docvader
01-11-2005, 04:54 AM
Back on track...
Sorry guys, but I'll be done with vB Pager 2.2.3 with all bugs fix.
Any luck Uae? We're all waiting patiently, and anxiously, for your revisions.
Would offer to help if I knew what I was doing with this stuff.
rich
Sorry guys, but I am on a vacation, I'll be back on track next week.
Should be ready by the end of next week.
I hope.
cool.. will wait for it ;)
yoyoyoyo
01-13-2005, 09:13 PM
Sorry guys, but I am on a vacation, I'll be back on track next week.
Should be ready by the end of next week.
I hope.
enjoy your vacation. I am looking forward to seeing the new release, also!
vB Pager 2.0.4 has been released :)
Please Backup your database and files befor upgrading or installing a fresh copy.
Installing this version will require the uninstall of any previous versions.
Uninstalling of previous versions are included in the zip file.
First Post has been updated.
The Realist
01-24-2005, 09:50 AM
Installed on VB 3.0.5, I see the options in admin panel and I have edited a phase but I see no links or gifs next to a username to use the pager?
If I run the pager.php file it brings me back to my forums front page?
Installed on VB 3.0.5, I see the options in admin panel and I have edited a phase but I see no links or gifs next to a username to use the pager?
If I run the pager.php file it brings me back to my forums front page?
Have you done the file and template changes in
vbpager2_04_file_edit.txt
and
vbpager2_04_template_edit.txt
??
The Realist
01-24-2005, 10:15 AM
:) must be blind, missed that.
Working fine, but I will test it shortly.
Thanks.
The Realist
01-24-2005, 10:19 AM
One problem I see is I have to refresh the page to see any vbpager messages and its the same for replies?
How can I get it to automatically refresh?
One problem I see is I have to refresh the page to see any vbpager messages and its the same for replies?
How can I get it to automatically refresh?
I didn't get it, but you have to click the close button and refresh the page to get a new one.
Pager messages boxes does not refresh automatically, it's the page you're viewing which should get refreshed, and alwayes click the close button to get the next one, if you got any awaiting!
what where the updates to this new version? can we know? oh and I will try it as soon as possible... I liked the previous version but I was getting some erros on IE, hopefully in this new version they have been fixed now :)
thanks alot uae :)
what where the updates to this new version? can we know? oh and I will try it as soon as possible... I liked the previous version but I was getting some erros on IE, hopefully in this new version they have been fixed now :)
thanks alot uae :)
Polo,
vB Pager 2.0.4 does not use any pop up windows anymore, which means that you don't need to worry about pop up killers nor the size of the new pager window.
All Pager messages windows are DHTML, and should work with All browsers.
Should be faster when clicking to send a new pager message.
Other thing is that I have added an option in the ADMINCP under vB Pager Options, where you can select to have the messages hard deleted whenever someone delete them from his/her Inbox or Outbox.
So, no need for an Admin to log into ADMINCP and hard delete hundreds of messages anymore, unless you want to keep a record for all messages and hard delete them yourself "as an ADMIN" whenever you wanthttps://vborg.vbsupport.ru/external/2011/07/3.gif.
docvader
01-24-2005, 05:37 PM
Uae, thanks for getting this out. But you mention that we should uninstall the old version first. Will this upgrade, or, should we completely take out everything from the old version, before installing this?
Just trying to diminish the amount of work I have to do. My gf is annoyed at me, LOL.
Edit: Sorry, just read the new zip file, that answered my questions.
GF's gonna be pissed.... LOL
docvader
01-25-2005, 06:35 AM
OK.
Truly impressed. Damn. Really impressed.
It works. And it works great. Not a hitch so far. Installation instructions and edits are exact, a true example of how hacks should be put together. And what an addition to a forum. Move it out of the beta section boys, this thing is ready.
ONE ISSUE. The smart guys here will figure this out:
I'm using vba cmps; and I've noticed when people get a message while they are in the adv_index page (the vba cmps page, when you are using the navbar on that page as I do), a pager message will pop up, and "stall", ie, get stuck. (You can't close it). I'm wondering if the footer pager hack part, not being there, is causing this.
So, can we put a conditional in the navbar hack section, along this idea (I use this to change the links in the navbar depending on where you are in the site):
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a
href="$vboptions[bburl]?$session[sessionurl]"> Forum/Library <else /> <a
href="http://x.russbo.com/index.php"> Forum News </if></a></td> that shuts off the pager mechanism if one is viewing the vba cmps index page???
Great job Uae. Truly awesome. Most definitely should be a part of the next vbulletin.
Oops. Gotta run. GF is really pissed....
rich
http://x.russbo.com/index.php
For those who installed vB Pager 2.0.4 befor this post.
Please FIND in TEMPLATE "vbpager_new"
<form method="POST" action="pager.php" name="frmnewpager" target="ipager1" onSubmit="return SubmitPager(this);">
REPLACE it WITH
<form method="POST" action="$vboptions[bburl]/pager.php" name="frmnewpager" target="ipager1" onSubmit="return SubmitPager(this);">
Hack file has been updated.
OK.
Truly impressed. Damn. Really impressed.
It works. And it works great. Not a hitch so far. Installation instructions and edits are exact, a true example of how hacks should be put together. And what an addition to a forum. Move it out of the beta section boys, this thing is ready.
ONE ISSUE. The smart guys here will figure this out:
I'm using vba cmps; and I've noticed when people get a message while they are in the adv_index page (the vba cmps page, when you are using the navbar on that page as I do), a pager message will pop up, and "stall", ie, get stuck. (You can't close it). I'm wondering if the footer pager hack part, not being there, is causing this.
So, can we put a conditional in the navbar hack section, along this idea (I use this to change the links in the navbar depending on where you are in the site):
that shuts off the pager mechanism if one is viewing the vba cmps index page???
Great job Uae. Truly awesome. Most definitely should be a part of the next vbulletin.
Oops. Gotta run. GF is really pissed....
rich
http://x.russbo.com/index.php
Thank you Sir, your words means alot to me :)
But will you guys click on Install this hack please :ermm:
I am using vba cmps and never had that problem with all browsers I've been testing the hack with!!
hmmmmmmmmmmm
I'll look into it.
Thanks again
OrangeFlea
01-25-2005, 01:52 PM
Hi, I'm still using 3.0.3. Will this hack work for that version still or do I have to make some slight adjustments? Thanks!
Hi, I'm still using 3.0.3. Will this hack work for that version still or do I have to make some slight adjustments? Thanks!
It should work fine with 3.0.1 and UP.
So, no problem with 3.0.3
Sooner95
01-25-2005, 03:58 PM
looks lile even in beta, it works well.. defintly gonna add this to my site, might wait till final rls tho.. thx!
OrangeFlea
01-25-2005, 06:19 PM
How long before the final version is released and do you plan on adding anything else of significance? I'm very eager to put this up.
OrangeFlea
01-25-2005, 06:21 PM
Also, I have the "Who's online" disabled on my forum. Is it possible for members to simply click on an icon in the postbit area to page another member? And does the pager icon appear only when the user has a message (page) or is it always visible?
docvader
01-25-2005, 10:44 PM
Uae, getting a mysql error when trying to access the Who's Online section of my site:
Database error in vBulletin 3.0.6:
Invalid SQL:
SELECT user.username, session.useragent, session.sessionhash, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo,
// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM session AS session
LEFT JOIN user AS user USING (userid)
WHERE session.lastactivity > 1106699443
ORDER BY user.username asc
mysql error: You have an error in your SQL syntax near '// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
' at line 3
mysql error number: 1064
Date: Tuesday 25th of January 2005 04:45:44 PM
Script: http://x.russbo.com/vb/online.php?
Referer:
Username: xxxxx
IP Address: xxxx
My online.php relevant section looks like this:
$sorturl = "online.php?$session[sessionurl]";
eval("\$sortarrow[$sortfield] = \"" . fetch_template('forumdisplay_sortarrow') . '";');
// [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
$allusers = $DB_site->query("
SELECT user.username, session.useragent, session.sessionhash, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo,
// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
Any ideas? It was working before the hack.
rich
ethank
01-26-2005, 12:42 AM
I still have a problem with messages keeping popping up even after they're read. Every page load makes this happen. How do I fix this?
A note that this happens even after I delete the message from my box. THis only happens in Safari, not FireFox
ethank
01-26-2005, 12:42 AM
Also, still, upon reply it causes a new window to pop up.
How long before the final version is released and do you plan on adding anything else of significance? I'm very eager to put this up.
I am just making sure that there are no bugs with this hack, and I'll move it to the full release forum.
Basically, I have written this hack for my "Lazy" S-Moderators and Moderators only, so no other usergroup is using it.
However I am thinking to give the permission to my members to use, but I don't want to go beyond the logic of this hack and change it to a chatting tool!
There are many out there.
I would think that I will add :
1- Number of pager messages can be sent per day, hours... per usergroup.
2- Require X posts befor getting the permission to send pager messages... per usergroup.
Also, I have the "Who's online" disabled on my forum. Is it possible for members to simply click on an icon in the postbit area to page another member? And does the pager icon appear only when the user has a message (page) or is it always visible?
If you have allowed that usergoup to use vB Pager, then yes, they can send messages to another member from postbit, Member info page and forumhome_loggedinuser anytime and the icon is always visible.
A member can NOT send a pager message to him/her self.
Uae, getting a mysql error when trying to access the Who's Online section of my site:
My online.php relevant section looks like this:
Any ideas? It was working before the hack.
rich
You have missed something there, let's do it again.
In ONLINE.PHP FIND
SELECT user.username, session.useragent,
Replace it WITH
SELECT user.username, session.useragent, session.sessionhash,
AGAIN in ONLINE.PHP FIND
$guests["$count"]['username'] = $vbphrase['guest'];
Add Below
// [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
$guests["$count"]['sessionid']= $users[sessionhash];
// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
I still have a problem with messages keeping popping up even after they're read. Every page load makes this happen. How do I fix this?
A note that this happens even after I delete the message from my box. THis only happens in Safari, not FireFox
mmmm, Guys, can anyone test this with Safari please? cos I don't have it installed.
docvader
01-26-2005, 03:17 AM
Uae, I have online.php as you dictated. Again, here's my relevant sections of online.php:
// [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
$allusers = $DB_site->query("
SELECT user.username, session.useragent, session.sessionhash, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo,
// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
and, the second change:
$guests["$count"]['username'] = $vbphrase['guest'];
// [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
$guests["$count"]['sessionid']= $users[sessionhash];
// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
$guests["$count"]['invisible'] = 0;
$guests["$count"]['displaygroupid'] = 1;
$guests["$count"]['musername'] = fetch_musername($guests["$count"]);
It's this file edit, that's causing the member profile from working properly. When I revert to my older online.php, member profile works, AND, the pager system seems to work too.
Also, I've noticed that the pager box stays open when you have asked for a reply. The message gets sent, and if the other person does NOT reply, they cannot get rid of the pager box. Therefore, maybe having the "add reply" box checked, unchecked as default, would solve this annoyance for some.
Hope you can figure this out. Otherwise, it seems to be working very well.
rich
http://x.russbo.com/vb/index.php
docvader
01-26-2005, 03:29 AM
OK, I fixed it. Self inflicted error, nothing to do with Uae's work. My apologies if people think that your excellent work caused this.
My attempt at "organizing" in preparation for the inevitable 3.07 upgrade (tomorrow, lol) causes this error. Adding // [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 3 ]
where I did, is triggering the mysql error.
I took it out.
Oops...
OK, I fixed it. Self inflicted error, nothing to do with Uae's work. My apologies if people think that your excellent work caused this.
My attempt at "organizing" in preparation for the inevitable 3.07 upgrade (tomorrow, lol) causes this error. Adding where I did, is triggering the mysql error.
I took it out.
Oops...
Maaan, never use // [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION....
Insied Queries :)
docvader
01-26-2005, 05:54 AM
Yes, yet another brilliant move on my part, LOL.
It's working fine, but I've got some people complaining about the message box not closing. I think it has to do with the "reply box" being checked, but I need more time to figure this out.
Great hack. Very useful for my community.
AlexanderH
01-26-2005, 03:33 PM
I am confused.
I did all the steps, yet no changes to the forum !
Also, my ACP was mucked up (See the quote)
Parse error: parse error, unexpected T_STRING in /home/element/public_html/admincp/index.php on line 547
Any ideas ?
docvader
01-26-2005, 09:56 PM
Uae, we seem to be having a small problem with the pager. It might be the way you designed it, as opposed to it being a bug.
If someone gets a page, with the respond box attached, they cannot get rid of the page unless they respond.
So, either we fix that, so that people can ignore the page, or, make the check box "unselected" by default. I prefer to do that now, but I don't know where in the code that is.
Where do I change that?
Otherwise, it seems to be working well.
docvader
01-27-2005, 07:15 PM
We've been using the pager now since the new version came out. Working great, but, some people, not all, are having problems with the pager box not disappearing, despite trying to close it. Not sure why, not always related to the checked "allow reply" box.
Is there any way of putting some sort of time limit on this pager box, so that it "self destructs" and disappears, on its own, within a minute or two???? That might be the easiest way to solve this issue.
Otherwise. it's impressive. The pager icon shows up in the vba cmpls "who's online" box, which I found surprising. Also, having it in the "Who's Online" section was pure genius.
Let's get this thing to go away, and move the hack out of beta. AS I see it, it's the only issue.
wolfe
01-27-2005, 09:54 PM
m8 i also got this working with the Who Was Online Hack :)
also m8 i have fixed up the vbpager template replace the whole template with the attached file
also m8 i might add a title to the pager messages because if itsshowing the message it will take up alot of space could be title Oi
lol
docvader
01-27-2005, 10:56 PM
Hey, m8. Did you attach your new file? Not sure if it changed anything for me.
Also, I noticed that if you don't check the allow reply box, you can't close the pager. You can if you check the allow reply box.
laborer75
01-28-2005, 01:16 AM
I installed this hack to a tee and get this error when trying to get in my forums. Won't even let me log into admincp unless i overwrite my global.php file back to original. I see the options in admincp. The button to click and page is all there too.
Fatal error: Call to undefined function: can_pager() in /home2/laborer7/public_html/forums/global.php on line 300
Ive checked everything and can't figure this one out. i have uninstalled and reinstalled 3 times. Any suggestions? Kinda new to this all but I have installed other hacks no problemo........Thanx in advance :)
wolfe
01-28-2005, 01:22 AM
m8 here what you do
in includes/functinons.php
find
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 17:25, Wed Jan 26th 2005
|| # CVS: $RCSfile: functions.php,v $ - $Revision: 1.984.2.13 $
|| ################################################## ##################
\*================================================ ======================*/
?>
its at the end of the file
then above it add
// [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 7 ]
function can_pager($type=0, $usrid=0)
{
global $vboptions, $bbuserinfo;
if ($usrid==0)
$usrid = $bbuserinfo[userid];
if ($usrid==0)
return false;
if ($vboptions[vbpager_on_off]=="0")
return false;
$gid_m = $vboptions[vbpager_usergroup_member];
$gid_g = $vboptions[vbpager_usergroup_guest];
$uid_m = $vboptions[vbpager_userid_member];
$uid_g = $vboptions[vbpager_userid_guest];
if (!($gid_m))
$gid_m = "-1";
if (!($gid_g))
$gid_g = "-1";
if (!($uid_m))
$uid_m = "-1";
if (!($uid_g))
$uid_g = "-1";
$uids = explode(',', str_replace(' ', '', $uid_g));
foreach($uids AS $ids)
if ($usrid==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
if ($type==0)
{
$uids = explode(',', str_replace(' ', '', $uid_m));
foreach($uids AS $ids)
if ($usrid==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
$uids = explode(',', str_replace(' ', '', $gid_g));
foreach($uids AS $ids)
if ($bbuserinfo[usergroupid]==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
$mids = explode(',', str_replace(' ', '', $bbuserinfo[membergroupids]));
foreach($uids AS $id)
{
foreach($mids AS $ids)
if ($id==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
if ($type==0)
{
$uids = explode(',', str_replace(' ', '', $gid_m));
foreach($uids AS $ids)
if ($bbuserinfo[usergroupid]==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
$mids = explode(',', str_replace(' ', '', $bbuserinfo[membergroupids]));
foreach($uids AS $id)
{
foreach($mids AS $ids)
if ($id==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
}
$vboptions[vbpager_canpager] = 0;
return false;
}
function show_pager()
{
global $vboptions, $vbphrase, $bbuserinfo, $DB_site;
if ($bbuserinfo[userid]!=0)
{
$pagerinfo = $DB_site->query_first("SELECTp.pagerid, p.parentpid, p.fromuserid, p.touserid, u.username,p.message, p.msgdate, p.canreply, p.hidden FROM " . TABLE_PREFIX. "pager as p left join " . TABLE_PREFIX . "user as u on(u.userid=p.fromuserid) WHERE p.delsent=0 and p.active=1 andp.touserid=". $bbuserinfo['userid'] ." order by msgdate");
$pagerinfo[timesent] = vbdate($vboptions['dateformat'],$pagerinfo[msgdate], true) . " " . vbdate($vboptions['timeformat'],$pagerinfo[msgdate]);
if (!($pagerinfo))
{
$show[pager] = "";
$show[pagererror] = 1;
$nopager = 1;
}
else
{
if ($pagerinfo[hidden])
$pagerinfo[username] = $vbphrase['vbpager_na'];
elseif($pagerinfo[username]=="")
$pagerinfo[username] = $vbphrase['guest'];
}
}
elseif ( ($bbuserinfo[userid]==0) and ($vboptions[sessionid]!="") )
{
$userexist =$DB_site->query_first("SELECT sessionhash from " . TABLE_PREFIX . "session where sessionhash='" . $vboptions[sessionid] ."'");
if ($userexist)
$pagerinfo =$DB_site->query_first("SELECT p.pagerid, p.parentpid, p.fromuserid,p.touserid, u.username, p.message, p.msgdate, p.hidden, p.canreply FROM" . TABLE_PREFIX . "pager as p left join " . TABLE_PREFIX ."user as u on (u.userid=p.fromuserid) WHERE p.active=1 and delsent=0and p.tosessionid='". $vboptions[sessionid] ."' order by msgdate");
if(!($pagerinfo))
{
$show[pager] = "";
$show[pagererror] = 1;
$nopager = 1;
}
else
{
$pagerinfo[timesent]= vbdate($vboptions['dateformat'], $pagerinfo[msgdate], true) . " " .vbdate($vboptions['timeformat'], $pagerinfo[msgdate]);
if ($pagerinfo[hidden])
$pagerinfo[username] = $vbphrase['vbpager_na'];
elseif($pagerinfo[username]=="")
$pagerinfo[username] = $vbphrase['guest'];
}
}
if (!$pagerinfo[pagerid])
if ($bbuserinfo[pager] > 0)
{
$result = $DB_site->query("UPDATE ". TABLE_PREFIX . "user set pager=pager - 1 where
userid = " . $bbuserinfo[userid] . "");
return false;
}
return $pagerinfo;
}
// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 7 ]
this should fix it
Sooner95
01-28-2005, 01:24 AM
how close is this to being final? really like to throw this on my site. Thx
wolfe
01-28-2005, 01:26 AM
fixed a few bugs in this file overwrite your old one with it.
docvader
01-28-2005, 01:32 AM
Can you show us what your global php hacked area looks like, around line 300??
mello_mike
01-28-2005, 01:42 AM
For some strange reason.. all my members can send messages .. but we cannot GET any. I made sure permissions were correct.. still no luck
All message are marked unread.. members aren't getting their messages.
docvader
01-28-2005, 01:48 AM
Wolfe, what are you fixing? The persistent pager box problem?
wolfe
01-28-2005, 02:01 AM
Wolfe, what are you fixing? The persistent pager box problem?
the guest popup one i fixed i have also fixed some bugsin the pager file where there was no " . TABLE_PREFIX . " where it was needed ;)
my guest box don't pop up no more
docvader
01-28-2005, 02:05 AM
Wolfe, nice, but, I instituted your changes, and it wiped out the user's ability to see anything in the board, once I sent him a message.
I sent myself a message, from one of my test accounts, and bamm. I got mysql errors for every damn page of my site. Other users had no problem. Just the guy that got a message.
I reverted to the originals, and my board works for me again.
I don't use table prefixes. Might that be the cause??? There's also a line where you changed the UPDATE pager table. Wonder if that screwed me up. I can see why you added quotes to everything. But the UPDATE command change, was that necessary?
Scared the living s... out of me man.
docvader
01-28-2005, 02:32 AM
I've also noticed, that if you have a pager box that you cannot close, and, you just leave it be, it will cause your forum page to refresh, every minute or so. Yet, it won't go away.
mello_mike
01-28-2005, 02:34 AM
I'm getting this SQL error when I got to view messages in the AdminCP
Database error in vBulletin 3.0.3:
Invalid SQL: select pagerid, parentpid, tosessionid, fromsessionid, touserid, fromuserid, message, msgdate, deliverdate, canreply, hidden, delread, delsent, active, username from pager as p left join user as u on (p.touserid=u.userid) where active=0 order by msgdate desc LIMIT -15, 15
mysql error: 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 '-15, 15' at line 1
mysql error number: 1064
laborer75
01-28-2005, 03:37 AM
K-I got it installed. When I click to send a message in IE, it errors and I have to shut IE down. It does not do this in firefox though. My members are all having the same problem. Any ideas why this is happening? I read a couple others are having the same problem in this thread. Wondering if anybodys figured out why yet? Thanx in advance.......
I've also noticed, that if you have a pager box that you cannot close, and, you just leave it be, it will cause your forum page to refresh, every minute or so. Yet, it won't go away.
Hey, I just registered @ your forum http://x.russbo.com/vb/
I logged in as a registered user "uae", then I went to WOL page using Internet Explorer, and I opened FireFox and logged in as a guest!
I was able to send a pager message from uae to that guest, and both buttons were working fine, Reply and Close button!
I haven't noticed that if you got a pager message popup opened, the page will keep refreshing!
Close or Reply button, both should update DB and set that message as READ.
So, that message should never popUP again!
I just can't see your problem!
wolfe
01-28-2005, 02:08 PM
m8 the table prefix will only come into action if you have got a prefix if not it will not do anything also that file stopped all the mysql errors on my site
docvader
01-28-2005, 02:17 PM
Understand, m8. You've got a New Yorker talking like a Brit now. Anyway, I noticed basically two portions of code that you put into pager.php, that changes it. One had an "else" statement, the other changed the way the table updated. The rest, were quotation mark additions.
I'm not sure which one caused my mysql errors throughout the board. Got any idea???
Uae, keep checking into http://x.russbo.com/vb/index.php. You'll see the error. Use IE.
I did not see no errors!!!
I used IE!
laborer75
01-28-2005, 06:07 PM
m8 here what you do
in includes/functinons.php
find
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 17:25, Wed Jan 26th 2005
|| # CVS: $RCSfile: functions.php,v $ - $Revision: 1.984.2.13 $
|| ################################################## ##################
\*================================================ ======================*/
?>
its at the end of the file
then above it add
// [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 7 ]
function can_pager($type=0, $usrid=0)
{
global $vboptions, $bbuserinfo;
if ($usrid==0)
$usrid = $bbuserinfo[userid];
if ($usrid==0)
return false;
if ($vboptions[vbpager_on_off]=="0")
return false;
$gid_m = $vboptions[vbpager_usergroup_member];
$gid_g = $vboptions[vbpager_usergroup_guest];
$uid_m = $vboptions[vbpager_userid_member];
$uid_g = $vboptions[vbpager_userid_guest];
if (!($gid_m))
$gid_m = "-1";
if (!($gid_g))
$gid_g = "-1";
if (!($uid_m))
$uid_m = "-1";
if (!($uid_g))
$uid_g = "-1";
$uids = explode(',', str_replace(' ', '', $uid_g));
foreach($uids AS $ids)
if ($usrid==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
if ($type==0)
{
$uids = explode(',', str_replace(' ', '', $uid_m));
foreach($uids AS $ids)
if ($usrid==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
$uids = explode(',', str_replace(' ', '', $gid_g));
foreach($uids AS $ids)
if ($bbuserinfo[usergroupid]==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
$mids = explode(',', str_replace(' ', '', $bbuserinfo[membergroupids]));
foreach($uids AS $id)
{
foreach($mids AS $ids)
if ($id==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
if ($type==0)
{
$uids = explode(',', str_replace(' ', '', $gid_m));
foreach($uids AS $ids)
if ($bbuserinfo[usergroupid]==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
$mids = explode(',', str_replace(' ', '', $bbuserinfo[membergroupids]));
foreach($uids AS $id)
{
foreach($mids AS $ids)
if ($id==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
}
$vboptions[vbpager_canpager] = 0;
return false;
}
function show_pager()
{
global $vboptions, $vbphrase, $bbuserinfo, $DB_site;
if ($bbuserinfo[userid]!=0)
{
$pagerinfo = $DB_site->query_first("SELECTp.pagerid, p.parentpid, p.fromuserid, p.touserid, u.username,p.message, p.msgdate, p.canreply, p.hidden FROM " . TABLE_PREFIX. "pager as p left join " . TABLE_PREFIX . "user as u on(u.userid=p.fromuserid) WHERE p.delsent=0 and p.active=1 andp.touserid=". $bbuserinfo['userid'] ." order by msgdate");
$pagerinfo[timesent] = vbdate($vboptions['dateformat'],$pagerinfo[msgdate], true) . " " . vbdate($vboptions['timeformat'],$pagerinfo[msgdate]);
if (!($pagerinfo))
{
$show[pager] = "";
$show[pagererror] = 1;
$nopager = 1;
}
else
{
if ($pagerinfo[hidden])
$pagerinfo[username] = $vbphrase['vbpager_na'];
elseif($pagerinfo[username]=="")
$pagerinfo[username] = $vbphrase['guest'];
}
}
elseif ( ($bbuserinfo[userid]==0) and ($vboptions[sessionid]!="") )
{
$userexist =$DB_site->query_first("SELECT sessionhash from " . TABLE_PREFIX . "session where sessionhash='" . $vboptions[sessionid] ."'");
if ($userexist)
$pagerinfo =$DB_site->query_first("SELECT p.pagerid, p.parentpid, p.fromuserid,p.touserid, u.username, p.message, p.msgdate, p.hidden, p.canreply FROM" . TABLE_PREFIX . "pager as p left join " . TABLE_PREFIX ."user as u on (u.userid=p.fromuserid) WHERE p.active=1 and delsent=0and p.tosessionid='". $vboptions[sessionid] ."' order by msgdate");
if(!($pagerinfo))
{
$show[pager] = "";
$show[pagererror] = 1;
$nopager = 1;
}
else
{
$pagerinfo[timesent]= vbdate($vboptions['dateformat'], $pagerinfo[msgdate], true) . " " .vbdate($vboptions['timeformat'], $pagerinfo[msgdate]);
if ($pagerinfo[hidden])
$pagerinfo[username] = $vbphrase['vbpager_na'];
elseif($pagerinfo[username]=="")
$pagerinfo[username] = $vbphrase['guest'];
}
}
if (!$pagerinfo[pagerid])
if ($bbuserinfo[pager] > 0)
{
$result = $DB_site->query("UPDATE ". TABLE_PREFIX . "user set pager=pager - 1 where
userid = " . $bbuserinfo[userid] . "");
return false;
}
return $pagerinfo;
}
// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 7 ]
this should fix it
I double checked it and the edit is perfect. Internet explorer still shuts down on me and my members when trying to send a page. Had it working in firefox but both parties have to be using firefox. I made a guest account on my site if anybody wants to look at what I'm saying. Any help on this is appreciated. This hack looks like it will be a big hit on my forums........Thanx
http://www.xxx-forums.net/forums/index.php?
username: guest1
password: guest1
laborer, Working just fine with me!
laborer75
01-28-2005, 06:22 PM
Odd.......wont work for me and now I get this error when trying to goto my forums.....
Database error in vBulletin 3.0.3:
Invalid SQL: SELECTp.pagerid, p.parentpid, p.fromuserid, p.touserid, u.username,p.message, p.msgdate, p.canreply, p.hidden FROM pager as p left join user as u on(u.userid=p.fromuserid) WHERE p.delsent=0 and p.active=1 andp.touserid=1 order by msgdate
mysql error: 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 'SELECTp.pagerid, p.parentpid, p.fromuserid, p.touserid, u.usern
mysql error number: 1064
Date: Friday 28th of January 2005 03:22:27 PM
Script: http://www.xxx-forums.net/forums/
Referer:
Username: BuckSteel
Man, this has got me pulling my hair out. LOL. All I wanna do is page people. LMAO.... Why am I getting that error now? Thanx in advance.....:D
Weird thing is, it wont let me in, my mods can get in. LOL
Odd.......wont work for me and now I get this error when trying to goto my forums.....
Database error in vBulletin 3.0.3:
Invalid SQL: SELECTp.pagerid, p.parentpid, p.fromuserid, p.touserid, u.username,p.message, p.msgdate, p.canreply, p.hidden FROM pager as p left join user as u on(u.userid=p.fromuserid) WHERE p.delsent=0 and p.active=1 andp.touserid=1 order by msgdate
mysql error: 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 'SELECTp.pagerid, p.parentpid, p.fromuserid, p.touserid, u.usern
Hey, there should be one space in that query, after SELECT!
DO the changes again for functions.php
Here it is again,
FIND AT THE END:
?>
ABOVE ADD:
ABOVE that ADD:
// [START HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 7 ]
function can_pager($type=0, $usrid=0)
{
global $vboptions, $bbuserinfo;
if ($usrid==0)
$usrid = $bbuserinfo[userid];
if ($usrid==0)
return false;
if ($vboptions[vbpager_on_off]=="0")
return false;
$gid_m = $vboptions[vbpager_usergroup_member];
$gid_g = $vboptions[vbpager_usergroup_guest];
$uid_m = $vboptions[vbpager_userid_member];
$uid_g = $vboptions[vbpager_userid_guest];
if (!($gid_m))
$gid_m = "-1";
if (!($gid_g))
$gid_g = "-1";
if (!($uid_m))
$uid_m = "-1";
if (!($uid_g))
$uid_g = "-1";
$uids = explode(',', str_replace(' ', '', $uid_g));
foreach($uids AS $ids)
if ($usrid==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
if ($type==0)
{
$uids = explode(',', str_replace(' ', '', $uid_m));
foreach($uids AS $ids)
if ($usrid==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
$uids = explode(',', str_replace(' ', '', $gid_g));
foreach($uids AS $ids)
if ($bbuserinfo[usergroupid]==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
$mids = explode(',', str_replace(' ', '', $bbuserinfo[membergroupids]));
foreach($uids AS $id)
{
foreach($mids AS $ids)
if ($id==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
if ($type==0)
{
$uids = explode(',', str_replace(' ', '', $gid_m));
foreach($uids AS $ids)
if ($bbuserinfo[usergroupid]==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
$mids = explode(',', str_replace(' ', '', $bbuserinfo[membergroupids]));
foreach($uids AS $id)
{
foreach($mids AS $ids)
if ($id==$ids)
{
$vboptions[vbpager_canpager] = 1;
return true;
}
}
}
$vboptions[vbpager_canpager] = 0;
return false;
}
function show_pager()
{
global $vboptions, $vbphrase, $bbuserinfo, $DB_site;
if ($bbuserinfo[userid]!=0)
{
$pagerinfo = $DB_site->query_first("SELECT p.pagerid, p.parentpid, p.fromuserid, p.touserid, u.username, p.message, p.msgdate, p.canreply, p.hidden FROM " . TABLE_PREFIX . "pager as p left join " . TABLE_PREFIX . "user as u on (u.userid=p.fromuserid) WHERE p.delsent=0 and p.active=1 and p.touserid=". $bbuserinfo['userid'] ." order by msgdate");
$pagerinfo[timesent] = vbdate($vboptions['dateformat'], $pagerinfo[msgdate], true) . " " . vbdate($vboptions['timeformat'], $pagerinfo[msgdate]);
if (!($pagerinfo))
{
$show[pager] = "";
$show[pagererror] = 1;
$nopager = 1;
}
else
{
if ($pagerinfo[hidden])
$pagerinfo[username] = $vbphrase['vbpager_na'];
elseif($pagerinfo[username]=="")
$pagerinfo[username] = $vbphrase['guest'];
}
}
elseif ( ($bbuserinfo[userid]==0) and ($vboptions[sessionid]!="") )
{
$userexist = $DB_site->query_first("SELECT sessionhash from " . TABLE_PREFIX . "session where sessionhash='" . $vboptions[sessionid] . "'");
if ($userexist)
$pagerinfo = $DB_site->query_first("SELECT p.pagerid, p.parentpid, p.fromuserid, p.touserid, u.username, p.message, p.msgdate, p.hidden, p.canreply FROM " . TABLE_PREFIX . "pager as p left join " . TABLE_PREFIX . "user as u on (u.userid=p.fromuserid) WHERE p.active=1 and delsent=0 and p.tosessionid='". $vboptions[sessionid] ."' order by msgdate");
if(!($pagerinfo))
{
$show[pager] = "";
$show[pagererror] = 1;
$nopager = 1;
}
else
{
$pagerinfo[timesent] = vbdate($vboptions['dateformat'], $pagerinfo[msgdate], true) . " " . vbdate($vboptions['timeformat'], $pagerinfo[msgdate]);
if ($pagerinfo[hidden])
$pagerinfo[username] = $vbphrase['vbpager_na'];
elseif($pagerinfo[username]=="")
$pagerinfo[username] = $vbphrase['guest'];
}
}
if (!$pagerinfo[pagerid])
if ($bbuserinfo[pager] > 0)
{
$result = $DB_site->query("UPDATE ". TABLE_PREFIX . "user set pager=pager - 1 where
userid = " . $bbuserinfo[userid] . "");
return false;
}
return $pagerinfo;
}
// [END HACK='vB Pager' AUTHOR='WwW.UAEWEB.COM' VERSION='2.0.4' CHANGEID= 7 ]
laborer75
01-28-2005, 06:36 PM
Seems to be working now. You are the man. I looked over that code so many times and you caught it right away. Thanx a million bro. I really appreciate it!!!
docvader
01-28-2005, 06:58 PM
No, still get problems with people not being able to close the box, even with this new functions.php. For some strange reason, now, it's just intermittent. Again, it ONLY occurs when you send someone a message WITHOUT the reply option checked. Let me play with this for a day or so, and get back to you. It seems better, but, still the occasional problem. Maybe some things have to "clear" out of the database?
I've got it running on http://x.russbo.com/vb/index.php I invite you to come play with it.
mello_mike
01-28-2005, 09:46 PM
I'm guessing no one knows the solution to my issue.. .because no one has helped me..
docvader
01-28-2005, 10:41 PM
For some strange reason.. all my members can send messages .. but we cannot GET any. I made sure permissions were correct.. still no luck
All message are marked unread.. members aren't getting their messages.
Are you sure that you did all of the file edits??? Because, we've had problems with this hack, but this was not one of them. The issues that we've had, revolved around the pager box being stubborn. But, it did work.
wolfe
01-29-2005, 12:07 AM
K-I got it installed. When I click to send a messagein IE, it errors and I have to shut IE down. It does not do this infirefox though. My members are all having the same problem. Any ideaswhy this is happening? I read a couple others are having the sameproblem in this thread. Wondering if anybodys figured out why yet?Thanx in advance.......
m8 mines the same now i got it working perfectly with Firefox but it crashes IE 6 out when it tries to receive a page.
i have added the function code and its still crashign out.
docvader
01-29-2005, 01:24 AM
I'm not having any problems with IE6. Got the new function.php code, which seems to keep the persistent pager box problem away. I didn't do all of your changes though wolfe, all I changed was the function.php the way uae put it in his last post.
Hope this helps.
yoyoyoyo
01-29-2005, 06:05 AM
I installed this hack, and did the most recent file edits and this is what I am getting:
Fatal error: Cannot redeclare can_pager() (previously declared in /home/mysite/public_html/forum/includes/functions.php:3916) in /home/mysite/public_html/forum/includes/functions_online.php on line 1571
can someone post an update with all of the necessary file edits, etc. in one post to make it easier to figure out?
mello_mike
01-29-2005, 07:24 AM
Are you sure that you did all of the file edits??? Because, we've had problems with this hack, but this was not one of them. The issues that we've had, revolved around the pager box being stubborn. But, it did work.
I'll do a re-edit to my files and see if that works... hopefully it does.
docvader
01-29-2005, 09:10 AM
Yoyo,
Install the vbpager zip as Uae has it, make sure that you uninstall previous versions as he explains in the zip, and use this functions.php file: https://vborg.vbsupport.ru/showpost.php?p=604013&postcount=135
That's all I did, and it works fine for me.
yoyoyoyo
01-29-2005, 12:02 PM
Yoyo,
Install the vbpager zip as Uae has it, make sure that you uninstall previous versions as he explains in the zip, and use this functions.php file: https://vborg.vbsupport.ru/showpost.php?p=604013&postcount=135
That's all I did, and it works fine for me.cool- thanks - I will give it a shot.
yoyoyoyo
01-29-2005, 12:36 PM
I just checked my file edits, and I had put some stuff in the functions_online.php file that should have gone in the functions.php, and it is working PERFECTLY now! excellent hack!
*******clicks install*******
Sooner95
01-30-2005, 01:00 AM
i really woul dlike to instal this.. is the file(s) for this up to date?
docvader
01-30-2005, 01:13 AM
Read post 144 on this page. It works great. Follow the instructions carefully. They are easy to follow and well written.
yoyoyoyo
01-30-2005, 02:33 AM
It has been working without a hitch!
fixed a few bugs in this file overwrite your old one with it.
Thanks Wolfe,
I have updated the zip file with your changes to pager.php
wolfe
01-30-2005, 07:15 PM
Thanks Wolfe,
I have updated the zip file with your changes to pager.php
nps
ok m8 i uninstalled and reinstalled it and it works gr8 on ie firefoxand opera ;) i now see no need for the pm system lol vbulletin shouldput this on vb.3.0.7 as default ;) better and quicker that pms ;)
docvader
01-30-2005, 10:58 PM
The PM system still has its uses. but, this, is great for directing people into a chat room, or, Hubz, or whatever, as you can easily catch them onlline. I love it.
Still have some people complaining about persistent pager boxes. Now, it's not IE or Netscape specific; on one of my computers, it's persistent (in IE); in my other, it isn't. I think it might have to do with some of the preferences settings in the browser. I just haven't figured out what it is yet though.
This Hack has been moved to Full Releases Forum.
https://vborg.vbsupport.ru/showthread.php?t=66744
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.