vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - [AJAX] vB Pager 3.0.4 (https://vborg.vbsupport.ru/showthread.php?t=104609)

dwbro1 06-02-2006 03:11 AM

It works but i'm having some problems. It causes my IE browser to freeze up and also I will sometimes only get about half the popup window display.

HansMuenchen 06-02-2006 09:45 AM

Quote:

Originally Posted by HansMuenchen
Read (hope) everything here but don't find the error.

Everything works fine nearly only if I page a user the Message window open an if I try (Firefox 1.5.0.3 or IE) to type a Text it's impossible. Every sign will be deleted automaticly after I type it.

What can be wrong?

Thnx for your help.

Greetings
Hans

I found the mistake!

The mistake was that into the group settings ist standing by default:

Maximum Characters Per Pager Message = 0

It must be set to >0 and then it works.

So maybe the install instruction has to be updated (would be helpfull for many users!)

Because I also read into a german VB forum that also other users have the same problem.

Greetings
Hans

DaPro 06-02-2006 11:48 AM

Want to fix those "no reply button" issues when you get a pager pop-up?

I was confused for a while why I could not reply but only close a pop-up well here is a quick fix.

Step 1. In Styles & Templates > Style Manager > Edit Templates > vBPager Templates > pager_newpager

Find This Code:
HTML Code:

<if condition="!$pagerinfo[canreply]">
        <form method="GET">
                        <center>
        <input type="button" class="button" onclick="Close_Pager('action=pager&amp;do=pagerreply&amp;rid=$pagerinfo[receiptid]&amp;touid=$pagerinfo[fromuserid]');closepager('PLAYER');" value="$vbphrase[pager_close]">
                        </center>
        </form>
</if>
<if condition="$pagerinfo[canreply]">
        <form method="GET" action="$vboptions[vbpager_forum_dir_name]pager.php" name="frmpager" onsubmit="return SubmitForm(this, this.rid.value);">
        <input type="hidden" name="rid" value="$pagerinfo[receiptid]">
        <input type="hidden" name="touid" value="$pagerinfo[fromuserid]">
                        <fieldset class="fieldset">
                <legend>$vbphrase[pager_reply_message]</legend>
        <if condition="$pagererror">
                <div class="page" style="border:thin inset; padding:$stylevar[cellpadding]px;<if condition="!is_browser('konqueror')"> height:50px; overflow:auto</if>">
                        <if condition="$pagererror[pagercanuse]"><font class="highlight">$vbphrase[pager_error] </font>$vbphrase[pager_no_usergroup_permissions]<br /></if>
                        <if condition="$pagererror[banuser]"><font class="highlight">$vbphrase[pager_error] </font>$vbphrase[pager_no_usergroup_permissions]<br /></if>
                        <if condition="$pagererror[pagermaxperday]"><font class="highlight">$vbphrase[pager_error] </font><phrase 1="$pagerinfo[pagermaxperday]" 2="0">$vbphrase[pager_sent_x_left_y]</phrase><br /></if>
                        <if condition="$pagererror[pagerquota]"><font class="highlight">$vbphrase[pager_error] </font>
<phrase 1="$vboptions[bburl]">$vbphrase[pager_message_qouta_reached]</phrase><br /></if>

Replace With:

HTML Code:

<if condition="$pagerinfo[canreply]">
        <form method="GET">
                        <center>
        <input type="button" class="button" onclick="Close_Pager('action=pager&amp;do=pagerreply&amp;rid=$pagerinfo[receiptid]&amp;touid=$pagerinfo[fromuserid]');closepager('PLAYER');" value="$vbphrase[pager_close]">
                        </center>
        </form>
</if>
<if condition="!$pagerinfo[canreply]">
        <form method="GET" action="$vboptions[vbpager_forum_dir_name]pager.php" name="frmpager" onsubmit="return SubmitForm(this, this.rid.value);">
        <input type="hidden" name="rid" value="$pagerinfo[receiptid]">
        <input type="hidden" name="touid" value="$pagerinfo[fromuserid]">
                        <fieldset class="fieldset">
                <legend>$vbphrase[pager_reply_message]</legend>
        <if condition="$pagererror">
                <div class="page" style="border:thin inset; padding:$stylevar[cellpadding]px;<if condition="!is_browser('konqueror')"> height:50px; overflow:auto</if>">
                        <if condition="$pagererror[pagercanuse]"><font class="highlight">$vbphrase[pager_error] </font>$vbphrase[pager_no_usergroup_permissions]<br /></if>
                        <if condition="$pagererror[banuser]"><font class="highlight">$vbphrase[pager_error] </font>$vbphrase[pager_no_usergroup_permissions]<br /></if>
                        <if condition="$pagererror[pagermaxperday]"><font class="highlight">$vbphrase[pager_error] </font><phrase 1="$pagerinfo[pagermaxperday]" 2="0">$vbphrase[pager_sent_x_left_y]</phrase><br /></if>
                        <if condition="$pagererror[pagerquota]"><font class="highlight">$vbphrase[pager_error] </font>
<phrase 1="$vboptions[bburl]">$vbphrase[pager_message_qouta_reached]</phrase><br /></if>

That fixed my issues, if it doesn't fix yours let me know and maybe I can help but remember I am no PHP coder, just another newbie like the rest. :banana:

bada_bing 06-03-2006 02:26 AM

I had this hack installed but had to remove it like most of everyone else had to due to high CPU spikes. Is this issue ever going to get resolved? Such a nice hack but the attention to fix the most criticle problem is being overlooked

DaPro 06-03-2006 03:08 AM

Quote:

Originally Posted by bada_bing
I had this hack installed but had to remove it like most of everyone else had to due to high CPU spikes. Is this issue ever going to get resolved? Such a nice hack but the attention to fix the most criticle problem is being overlooked

I get no extra server loads from this script, I suppose depending on the server company and how much they overcrowd their servers it could have issues, but that is not the plugins fault. At least IMO.

bada_bing 06-03-2006 08:56 PM

Quote:

Originally Posted by DaPro
I get no extra server loads from this script, I suppose depending on the server company and how much they overcrowd their servers it could have issues, but that is not the plugins fault. At least IMO.

I dont agree with your comment. There are many many people here that installed this hack that have had this happen. There is something withing this script that hammers at the CPU and no one know what yet, I have two vb sites on two different servers and different ISP and both sites running this hack caused the same issue. THe script workd nice but had to disable it until the CPU issues get resolved.

MissKalunji 06-03-2006 11:24 PM

Quote:

Originally Posted by bada_bing
I dont agree with your comment. There are many many people here that installed this hack that have had this happen. There is something withing this script that hammers at the CPU and no one know what yet, I have two vb sites on two different servers and different ISP and both sites running this hack caused the same issue. THe script workd nice but had to disable it until the CPU issues get resolved.

I think he could be right....

All depends if your server can handle it

I have it and no server issue

gotta keep in mind the amount of memory WHAT kind of server if in a shared hosting etc...

cyberbeggar 06-04-2006 01:59 PM

I have installed but I get this message

Quote:

Sorry, you are not allowed to use vB Pager!
vB Pager 3.0.4 By uaeweb.com
Any reason why I get this?

vb rules 06-04-2006 02:23 PM

need help install this hack in vb 3.5.4 and when i click on a user to pager the pop up come up but nothing happens please tell me how to fix thanks

cyberbeggar 06-04-2006 02:26 PM

I am actually getting this error message when updating user permissions


Quote:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635
Can someone please offer me advice on what the problem is?

cyberbeggar 06-05-2006 12:31 AM

Anyone?

jadkar 06-05-2006 01:59 AM

Hey I was hoping someone may have the answer to this one.

I loaded this hack and it's working great. I replicated all my template changes accross to all the different themes I have. However, people are complaing that they can only recieve pages when they have the default theme loaded.

Anyone have any ideas, or can point me in the right direction to start looking???

SnapOff Racing 06-06-2006 07:58 AM

I need help please...on my site I dont get a pop-up saying I have a new pm...but when I manually check it, the message shows up there...how do I get it to automatically pop-up in my face whe someone sends me a pager message?!

SnapOff Racing 06-06-2006 03:10 PM

no one?

SnapOff Racing 06-07-2006 08:48 PM

please? i really need help with this hack!

hotwheels 06-07-2006 10:41 PM

SnapOff Racing......there are issue's with this software right now, mainly do to the new microsoft rules for activeX. I and my user's loved this hack, but i had to shut it off for the time being. I have been working with trying to add a .js file for this hack, but i am not sure where to exactly find the flash part of this program.
I believe once the ActiveX problem has been resolved, this program will work perfectly again.........

hotwheels

geevest.com 06-08-2006 04:38 AM

This work In IE OR MOZZILA ?

SnapOff Racing 06-08-2006 08:36 AM

Quote:

Originally Posted by hotwheels
SnapOff Racing......there are issue's with this software right now, mainly do to the new microsoft rules for activeX. I and my user's loved this hack, but i had to shut it off for the time being. I have been working with trying to add a .js file for this hack, but i am not sure where to exactly find the flash part of this program.
I believe once the ActiveX problem has been resolved, this program will work perfectly again.........


hotwheels

but it works fine on my buddy's forum in ie and firefox...it doesnt pop up a window in either on my forum :(

helppp!

SnapOff Racing 06-08-2006 10:05 AM

*UPDATE*

I got them to pop-up, but ONLY when I open the pager message window...then they automatically pop-up...I don't like that, I want it to pop-up when browsing the forums...that's how my buddy brandon did his on www.nastyss.com/forums

can anyone help?

I love this hack I just want it to work pop-up pages while browsing the regular site.

geevest.com 06-08-2006 10:12 AM

please This work In IE OR MOZZILA ?

redlabour 06-08-2006 04:04 PM

Will it work in the Future with vBulletin 3.6 ?

SnapOff Racing 06-08-2006 08:43 PM

anyone know what happened to uae? he hasn't been on since may 29th :(

sandman1970 06-09-2006 05:53 PM

hi,
i am doing the second step for install
"Step 2. Import product-pager.xml as a new product."

I do it via AdminCP, Style & Templates -> Download and Upload Style

but I got this error:

Invalid File Specified

I am running vb 3.5.3

Does anyone has a hint? many thx.

nymyth 06-09-2006 06:49 PM

Hey, its working on my forum, however....my IE keeps crashing everytime i recieve a new message.....any one know why?

Peace

ps..I am using a skin on my forum

bada_bing 06-09-2006 06:58 PM

Quote:

Originally Posted by sandman1970
hi,
i am doing the second step for install
"Step 2. Import product-pager.xml as a new product."

I do it via AdminCP, Style & Templates -> Download and Upload Style

but I got this error:

Invalid File Specified

I am running vb 3.5.3

Does anyone has a hint? many thx.

No No you have to upload it as a product not import it as a template

sandman1970 06-09-2006 07:52 PM

thx,
i works now ....

but the main problem: i can send a vbPager msg to a friend, he sees it in a popup window but he can not reply instally from that window for me.

ie: we have not such vbPager window:

https://vborg.vbsupport.ru/attachmen...9&d=1136550049

any hint? thx

nymyth 06-09-2006 08:25 PM

^^Sandman - follow these instructions, youll get what you need:

https://vborg.vbsupport.ru/showthrea...ply#post996006

sandman1970 06-09-2006 08:36 PM

nymyth, i tried but still see only "close" button

and no "Send Reply" button :(

sandman1970 06-09-2006 08:49 PM

hi again,

i just do brutal steps:

in that templates i put both conditions to REM:

HTML Code:

<if condition="!$pagerinfo[canreply]">
...
</if>

to

<!--if condition="!$pagerinfo[canreply]" -->
...
<!-- /if -->
same with the sencond <if condition="$pagerinfo[canreply]"> ....

and it works!!!

please my last question:

after I write a msg and press "Send Reply" ... the vbPager chat window DISAPPERs? I mean I must wait for next msg from friend in order I can reply again?

Thx

nymyth 06-09-2006 09:55 PM

^^yes, thats the way it works....this isnt an IM client whereby it stays open with history...i'm not sure if they are going to work that out....but right now its just paging one comment at a time...

Peace

SnapOff Racing 06-10-2006 10:07 AM

nevermind uae...i found out the problem...i did a view page source and saw that for some reason the code in the stuff i have didn't have this hack to this extent in it.

Code:

<!-- [START HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.3' CHANGEID= 5 ] -->
                <style type="text/css">
        #PLAYER { position:absolute; height:1; width:1px; top:10; left:0; }
</style>
<script type="text/javascript">
var qstring = '';

function check_pager(qstring)
{
        vbPage = new vB_AJAX_Handler(true);
        vbPage.onreadystatechange(ShowPager);
        if (qstring=='' || qstring==null)
          {
        vbPage.send('/forums/pager.php?action=pager&do=readpager&', 'nocache=' + (5 * Math.random() * 1.33) );
          }
        else
          {
        vbPage.send('/forums/pager.php', qstring);
          }
}

function Close_Pager(qstring)
{
        check_pager(qstring);
}

function ShowPager()
{
        var refreshtime = 60;
                if (refreshtime > 0)
                refreshtime = refreshtime * 1000;

        if (vbPage.handler.readyState == 4 && vbPage.handler.status == 200)
        {

// Ignore result if its "Fatal Error"
                resultText = vbPage.handler.responseText;
                isError = resultText.indexOf("Fatal error");
                        if (isError >= 0 && isError < 25)
                                vbPage.handler.responseText = '';

                if (vbPage.handler.responseText)
                {                       
                document.body.style.cursor = 'default';
                pagerbox = fetch_object('PLAYER');                               
                pagerbox.innerHTML = vbPage.handler.responseText;
                displayPager();
                        if (vbPage.handler.responseText == '' || vbPage.handler.responseText == null)
                        {
                                pagerbox.innerHTML = '';
                                setTimeout('check_pager()', refreshtime);
                        }
                }
                else
                {                if (refreshtime > 0)
                        setTimeout('check_pager()', refreshtime);
                }
        }
}
check_pager();
</script>
<script type="text/javascript">
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var calunit=ns? "" : "px"


function displayPager()
{
        if(!ns && !ie && !w3) return;
        if(ie)                objPager=eval('document.all.PLAYER.style');
        else if(ns)        objPager=eval('document.layers["PLAYER"]');
        else if(w3)        objPager=eval('document.getElementById("PLAYER").style');
        if (ie||w3)
        objPager.visibility="visible";
        else
        objPager.visibility ="show";

        if (ie)
        {
                documentWidth  =truebody().offsetWidth/2+truebody().scrollLeft-20;
                documentHeight =truebody().offsetHeight/2+truebody().scrollTop-50;
        }       
        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;
        }
        objPager.left=documentWidth-200+calunit;
        objPager.top =documentHeight-100+calunit;
}


function truebody()
{
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

// Drag box Code

function Browser()
{
  var ua, s, i;
  this.isIE    = false;
  this.isNS    = false;
  this.version = null;
  ua = navigator.userAgent;
  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
// Treat any other "Gecko" browser as NS 6.1.
  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }
}

var browser = new Browser();

// Global object to hold drag information

var dragObj = new Object();
dragObj.zIndex = 0;

function dragStart(event, id) {

  var el;
  var x, y;

// If an element id was given, find it. Otherwise use the element being
// clicked on.

  if (id)
    dragObj.elNode = document.getElementById(id);
  else {
    if (browser.isIE)
      dragObj.elNode = window.event.srcElement;
    if (browser.isNS)
      dragObj.elNode = event.target;

// If this is a text node, use its parent element.

    if (dragObj.elNode.nodeType == 3)
      dragObj.elNode = dragObj.elNode.parentNode;
  }

// Get cursor position with respect to the page.

  if (browser.isIE) {
    x = window.event.clientX + document.documentElement.scrollLeft
      + document.body.scrollLeft;
    y = window.event.clientY + document.documentElement.scrollTop
      + document.body.scrollTop;
  }
  if (browser.isNS) {
    x = event.clientX + window.scrollX;
    y = event.clientY + window.scrollY;
  }

// Save starting positions of cursor and element.

  dragObj.cursorStartX = x;
  dragObj.cursorStartY = y;
  dragObj.elStartLeft  = parseInt(dragObj.elNode.style.left, 10);
  dragObj.elStartTop  = parseInt(dragObj.elNode.style.top,  10);

  if (isNaN(dragObj.elStartLeft)) dragObj.elStartLeft = 0;
  if (isNaN(dragObj.elStartTop))  dragObj.elStartTop  = 0;

// Update element's z-index.

  dragObj.elNode.style.zIndex = ++dragObj.zIndex;

// Capture mousemove and mouseup events on the page.

  if (browser.isIE) {
    document.attachEvent("onmousemove", dragGo);
    document.attachEvent("onmouseup",  dragStop);
    window.event.cancelBubble = true;
    window.event.returnValue = false;
  }
  if (browser.isNS) {
    document.addEventListener("mousemove", dragGo,  true);
    document.addEventListener("mouseup",  dragStop, true);
    event.preventDefault();
  }
}

function dragGo(event)
{
  var x, y;
// Get cursor position with respect to the page.

  if (browser.isIE) {
    x = window.event.clientX + document.documentElement.scrollLeft
      + document.body.scrollLeft;
    y = window.event.clientY + document.documentElement.scrollTop
      + document.body.scrollTop;
  }
  if (browser.isNS) {
    x = event.clientX + window.scrollX;
    y = event.clientY + window.scrollY;
  }

// Move drag element by the same amount the cursor has moved.

  dragObj.elNode.style.left = (dragObj.elStartLeft + x - dragObj.cursorStartX) + "px";
  dragObj.elNode.style.top  = (dragObj.elStartTop  + y - dragObj.cursorStartY) + "px";

  if (browser.isIE) {
    window.event.cancelBubble = true;
    window.event.returnValue = false;
  }
  if (browser.isNS)
    event.preventDefault();
}

function dragStop(event)
{
  // Stop capturing mousemove and mouseup events.

  if (browser.isIE) {
    document.detachEvent("onmousemove", dragGo);
    document.detachEvent("onmouseup",  dragStop);
  }
  if (browser.isNS) {
    document.removeEventListener("mousemove", dragGo,  true);
    document.removeEventListener("mouseup",  dragStop, true);
  }
}

// End Drag box Code

function closepager(id)
{
 objplayer = fetch_object('PLAYER');
        objplayer.innerHTML = ' ';
        if (ie||w3)
        objplayer.display="none";
        else
        objplayer.visibility ="hide";
}

function SubmitForm(frmobj, rid)
 {
        minchar = 3;
        maxchar = "500";
  if (frmobj.message.value.length > maxchar)
  {
          alert("The text that you have entered is too long. Maximum characters per message is " + maxchar + "");
          return false;
  }

  if (frmobj.message.value.length < minchar)
  {
        alert("Message is too short. Please lengthen your message to at least 3 characters.");
    return false;
  }
  else
  {
                                canreply = 0;
                if (typeof frmobj.canreply != 'undefined')
                        if (frmobj.canreply.checked==true)
                                  canreply = 1;
                         
            check_pager('action=pager&do=pagerreply&message=' + PHP.urlencode(frmobj.message.value) + '&rid=' + rid + '&canreply=' + canreply);
    closepager('PLAYER');
    return false;
  }
    return false;
 }

function textCounter(field) {
maxlimit = 500;
  if (field.value.length > maxlimit)
      {field.value = field.value.substring(0, maxlimit);}
      else
      {document.frmpager.charNum.value = maxlimit - field.value.length;}
  }
   
</script>
                <DIV ID="PLAYER" style="position:auto;overflow:auto;width:500px;">
                </DIV>

<!-- [END HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.3' CHANGEID= 5 ] -->


nymyth 06-12-2006 06:14 PM

any news on why IE crashes when a new message comes in???

Peace

hotwheels 06-13-2006 01:25 PM

nymyth........this is the current issue with this hack:
Quote:

Originally Posted by johon
It's truly bad, taht there seems to be no support any longer on this great hack, my users love it.

Normally, the mentioned problem should be fixed quite easily if the Pop is registered for the IE (http://support.microsoft.com/kb/912945/EN-US/) buit I don't know how.

Too bad....

Johon

Gizmo5h1t3 06-13-2006 02:37 PM

weird that, ive never had an issue with it, its worked fine since the day i installed it

dwbro1 06-13-2006 09:55 PM

it crashes my IE also i had to finally diable it.. :(

AMFMaree 06-14-2006 10:09 PM

Im installing this on another forum, I already have it in use on my own with NO problems.But for some reason I can not get the pop up reply box to work..everything seems to be uploaded and changed correctly..but its still not working..anyone have any ideas?

morrow 06-15-2006 10:22 PM

Quote:

Originally Posted by cyberbeggar
I have installed but I get this message



Any reason why I get this?

any answers to this issue: "Sorry, you are not allowed to use vB Pager!"

jadkar 06-19-2006 01:17 AM

Does anyone have an answer yet as to why the pager doesn't work accross styles?? If you send a page to someone who is on a different style then you they will not get it. Huge shortcoming to the hack :(

GrCh_Jeff 06-19-2006 03:47 AM

Quote:

Originally Posted by morrow
any answers to this issue: "Sorry, you are not allowed to use vB Pager!"

You must go to your admincp>> usergroups>> can use pager etc.

Danmaxito 06-19-2006 05:22 AM

Anyone have any idea as to why vbpager does not work on my site:
www.Mac-headz.com
It also deactivates a lot of features on the board too.


All times are GMT. The time now is 03:41 AM.

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.02481 seconds
  • Memory Usage 1,890KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete