Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
vB Pager 2.0.4 Details »»
vB Pager 2.0.4
Version: 2.0.4, by uae uae is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 12-12-2004 Last Update: 01-29-2005 Installs: 21
DB Changes
Is in Beta Stage  
No support by the author.

vB Pager
Version: 2.0.4
vB-version: 3.0.6
Developer: WwW.UAEWEB.CoM
Install-difficulty: Easy


This Hack has been moved to Full Releases Forums.

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 if you install this hack, thanks.

vB Pager is free, and will remain free.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #112  
Old 01-26-2005, 03:33 PM
AlexanderH AlexanderH is offline
 
Join Date: Jan 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am confused.

I did all the steps, yet no changes to the forum !

Also, my ACP was mucked up (See the quote)

Quote:
Parse error: parse error, unexpected T_STRING in /home/element/public_html/admincp/index.php on line 547

Any ideas ?
  #113  
Old 01-26-2005, 09:56 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #114  
Old 01-27-2005, 07:15 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #115  
Old 01-27-2005, 09:54 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #116  
Old 01-27-2005, 10:56 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #117  
Old 01-28-2005, 01:16 AM
laborer75 laborer75 is offline
 
Join Date: Dec 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #118  
Old 01-28-2005, 01:22 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

m8 here what you do

in includes/functinons.php


find

PHP Code:

/*======================================================================*\
|| ####################################################################
|| # 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

PHP Code:

// [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
  #119  
Old 01-28-2005, 01:24 AM
Sooner95 Sooner95 is offline
 
Join Date: Apr 2003
Location: I don't know
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how close is this to being final? really like to throw this on my site. Thx
  #120  
Old 01-28-2005, 01:26 AM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fixed a few bugs in this file overwrite your old one with it.
  #121  
Old 01-28-2005, 01:32 AM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you show us what your global php hacked area looks like, around line 300??
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05191 seconds
  • Memory Usage 2,376KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete