Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
vbPager log - simulate MSN,ICQ... Details »»
vbPager log - simulate MSN,ICQ...
Version: 1.2, by Renmiri Renmiri is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-19-2006 Last Update: Never Installs: 12
Uses Plugins Template Edits
 
No support by the author.

I won't be upgrading this to 3.6 anytime soon, but I'll try to give as much support as I can to 3.5.4 users

~~~Note!!!! Recently (July 07) the vbPagerHack has been declared vulnerable to some kind of attack. I therefore am closing this mod too. As far as I know, my hack is harmless and has no vulnerability but it is pretty useless without the rest of vbPager so I'm closing it. It will no longer be supported, although if you need some help uninstalling my mod I will be glad to help

This plugin works in conjunction with the vbPager Hack. Which does add to your database. So, as with all hacks, be sure TO BACK UR DATABASES UP before installing vbPager!!!! And backup them again before adding this hack just to keep this healthy habit going

My forums have Role Play areas and RPG Inferno, and during battles and RPG posting we like to talk to each other when we are online. My problem is that I have some forum users that connect from school, college or work and aren't allowed to use MSN. I had installed Shoutbox to allow those members to talk to others. But a shoutbox full of "bwahaha, I pwned you!" or "f**! you killed my player!" and other friendly banter exchanged during battles was getting.. tacky.

vbPager was a godsend because now members can chat in private. To make it even better I tried to make it more like the MSN (or other IM) we all are used to.

To make it resemble MSN, I added a continuous "Pager Log" to the "Pager Buddies" and the "newpager" screens, which lists your and your friends page to you in like an inbox or in MSN like order respectively.

Known bugs:
1) The log does not mark messages as read, i.e. you will get the popup page even if you read it before on the log.
2) The log mixes ALL your conversations so if you are chatting with 2 people both chats will be in the log (But version 1 lets you see which message # the sender was replying to)

I'm Working on:
[s] Customizable pager avatars[/s] Meh, too hard
Fixing bug 2
You guys are welcome to add on to it or develop it further.

Fixed Bugs:
Improved performance
Previous version showed deleted posts :ermm:
Used to display name of hidden users on page history
Added a useless new user profile field, which made install difficult

================================================== ======
To get this pager log all you need is 2 plugins (conveniently packed in the XML file attached), 2 template changes and 1 new template. No need for step 5 anymore!!!

Steps:
1) Download and install the pagerlogv12.xml plugin


2) Modify the pager_newpager template:

Replace the entire template with the code on the pager_newpager11.txt file


3) Add a new template pagerlogbit with the code below as content:

Code:
<if condition="$vboptions['vbpager_active'] AND $bbuserinfo['userid']">
$pagerinfo[receiptid] <if condition="$pagerinfo['readtime']==0">*<else /> </if>   <a href="#" onclick="window.open('pager.php?do=buddylist&amp;puserid=$pagerinfo[fromuserid]','pagerbuddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;"><if condition="$pagerinfo['username']<>$vbphrase['n_a']">$pagerinfo[fromusername]<else />***</if></a> - $pagerinfo[msgdate]: $pagerinfo[message]<br />
</if>
4) Modify the PAGERBUDDY template:

Find
Quote:
</if>
</if>
</if>
<!-- Do not remove this vB Pager copyright notice -->
<div align="center">
<div class="smallfont" align="center">
$vbphrase[pager_copyright_text]
</div>
<!-- Do not remove this vB Pager copyright notice -->
</body>
</html>
REPLACE IT with

Code:
</if>
</if>
<h2>Pager log</h2>
(* = Unread, *** = hidden user)
<div class="alt1">$pagerlogD</div>
</if>
<!-- Do not remove this vB Pager copyright notice -->
	<div align="center">
	<div class="smallfont" align="center">
	$vbphrase[pager_copyright_text]
	</div>
<!-- Do not remove this vB Pager copyright notice -->
</body>
</html>

================================================== ======
Upgrading from 1.1 to 1.2
Steps
1) Modify the pagerlog plugin:

Find the plugin under "parse_templates". Replace the entire plugin code with the code on the pagerlog12.txt file

After that you should be all set. No need to change templates. Pager queries will only be run if there's unread pages.

================================================== ======
Upgrading from 1.0 to 1.2
Steps
1) Modify the pager_newpager template:

Replace the entire template with the code on the pager_newpager11.txt file

2) Modify the pagerlog plugin:

Find the plugin under "parse_templates". Replace the entire plugin code with the code on the pagerlog12.txt file

After that you should be all set. You won't need that new field you added before so you can either leave it, delete it or change it to be invisible to the user

================================================== ======
Version 1.2
Improved perfrmance by only running queries when the user has unread pager messages.

Version 1.1
Took off the custom avatar thingie. No need to add fields to the database anymore

Version 1.0
Almost identical to MSN except avatars are on the left side (alterable on template pager_newpager if you like tables I hate them so I didn't bother)

Fixed a lot of problems with "hidden user" page. Now they don't show in history.

Added a "Replying to message#" to the pager reply window to alleviate the problem with bug #2

Version 0.9
Much simpler, faster performance. But... barely usable, keep the window open and just keep clicking "Reload" to get the new stuff. Replying is still done at the popup windows, but you can also click on the user name linky on the log.

To get v 0.9 dowload and install pagelog.xml and only alter the template PAGERBUDDY and use this simpler pagerlogbit

Code:
<if condition="$vboptions['vbpager_active'] AND $bbuserinfo['userid']">
<div class="smallfont"> $pagerinfo[receiptid] - <a href="#" onclick="window.open('pager.php?do=buddylist&amp;puserid=$pagerinfo[fromuserid]','pagerbuddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;">$pagerinfo[fromusername]</a> - $pagerinfo[msgdate]: $pagerinfo[message]</div>	
</if>

Show Your Support

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

Comments
  #32  
Old 11-05-2006, 10:38 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excuse me, but this seems to add 31 queries on every page

my homepage shootup to 90 queries. I disabled this plugin, went down to 59
i renabled, back to 90
Reply With Quote
  #33  
Old 11-07-2006, 05:27 AM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really ? My forum is so tiny it never was an issue Was that in addition to the queries added by vBpager ?

I will look into making it less resource intensive. Meanwhile there are a couple of things you can do:
- Set the pager refresh limit to a higher amount. Mine refreshes every 300 seconds or 5 minutes.
- Take the vbPager code out of the navbar and footer templates and put it on FORUMHOME instead (but that takes away the assurance that users will now they were paged within minutes of the page).
Reply With Quote
  #34  
Old 11-07-2006, 11:54 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
excuse me, but this seems to add 31 queries on every page

my homepage shootup to 90 queries. I disabled this plugin, went down to 59
i renabled, back to 90
Thats a vbpager problem not this hack....

Probably the refresh time that u put up i basically put it to 0 only when u load a new page that it loads up because refreshing all the time kills a server....

BUT i just wanted the look....caz the original pager looked dry

but 59 queries? thats a lot!
Reply With Quote
  #35  
Old 11-07-2006, 12:48 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
Thats a vbpager problem not this hack....

I doubt it. This hack is uninstalled and vbpager is still there. My queries have not moved. Once I enable this hack, up to 90, so why would it be the pager?
Reply With Quote
  #36  
Old 11-07-2006, 01:16 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
I doubt it. This hack is uninstalled and vbpager is still there. My queries have not moved. Once I enable this hack, up to 90, so why would it be the pager?
because i had this problem...you can even check in the vbpager thread...

That hack only changes the LOOK and feel nothing else....It shouldnt be adding queries perhaps only on the vbpager buddy list since it shows the logs there instead of in the history....

he perhaps added 2 plugins if im not mistaken


p.s where do u get 90 queries? when you open the pager buddy list and see the logs?
Reply With Quote
  #37  
Old 11-07-2006, 01:18 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Once this hack is enabled, the microstats at the bottom of page displays 90 queries. I had just tested the hack, which was great, pity, and there were about that amount in the log. So every time you open a page, the log appears to perform a query foreach entry.
Reply With Quote
  #38  
Old 11-07-2006, 01:20 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
Once this hack is enabled, the microstats at the bottom of page displays 90 queries. I had just tested the hack, which was great, pity, and there were about that amount in the log. So every time you open a page, the log appears to perform a query foreach entry.

Thats what im asking....

When u open the Buddy List where the history shows

or on ANY page of the board?
Reply With Quote
  #39  
Old 11-07-2006, 07:56 PM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
Thats what im asking....

When u open the Buddy List where the history shows

or on ANY page of the board?
I can set the plugin to just query the paging history if pager is called (it isn't right now). This should drastically decrease the number of queries.

I just need to test it a bit

Ok, Lionel, can you test this version ? I works fine here but I have a tiny forum

Just replace the entire pagerlog plugin that is on the parse_templates hook with the text on the file below. It should drastically reduce queries.
Reply With Quote
  #40  
Old 11-07-2006, 07:57 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you figure out Why all the history showing in the Conversation screen?
Reply With Quote
  #41  
Old 11-07-2006, 08:17 PM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
Did you figure out Why all the history showing in the Conversation screen?
It should show just the last 5
Reply With Quote
Reply

Thread Tools

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 06:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07422 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (7)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
  • (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_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