![]() |
Worked great and especially once I changed the background classes to alt1 & 2 except that I use the vB nav bar in my photopost gallery and it created all kinds of script errors. I had to uninstall but will be keeping this bookmarked for a stand alone board I'm working on next.
|
Quote:
|
//Installed
It's not working well with all skins :( |
Hi all,
I am getting this broken code on my PM box...how do I fix it? I am also getting an error on the page Line 434 Char 1 Error: 'pmBox' is undefined Code" 0 |
It's a broken conditional statement - probably you have an extra > inside your conditional?
Re-check your postbit / postbit_legacy modification. |
Here is what I did so this mod works on every browser.
First, as usual open up the navbar template and find this. PHP Code:
PHP Code:
I replaced pmBox.bgColor with document.getElementById('pmBox').bgColor. EDIT: Also this works with 3.0.3. |
Quote:
works perfect on vb 3.0.3 Regards |
Works like a dream
|
Works great in IE but not in Mozilla
|
Quote:
|
Quote:
|
Quote:
small errors in the code above.. works great BTW extra spaces have crept in at $styleva : PHP Code:
|
Fixed that, thanks
|
installed and work great thanks guys
|
HTML Code:
<if condition="$bbuserinfo['userid']"> |
Works for me. Thanks. :)
vb 3.0.3 in Netscape |
it's really a nice hack..Thx! for it :D
just now I noticed that after installing this hack...I am getting log in forum again in the middle even though after logging on..I have captured a screen shot here it is : http://img99.exs.cx/img99/5316/copy21.jpg waiting for ur help... Thanking u, Pavan Kumar |
Nevermind ... if I'd read the entire thread, I'd see what I was missing ...
LOL |
Quote:
|
Got it working and looks great...will be a big help. Anyway to have it work with vbportal installed? My start page is vbportal and it doesnt notify through there. Any mod to get it working?
|
I have modified it to be like in vbulletin.org, no javascript is needed.
post is here if anyone wants it: https://vborg.vbsupport.ru/showpost....28&postcount=6 |
Thanks muchly appreciated
|
Thanks GaryW I like this feature alot and so do all my forum members. Great work.
|
I am trying to remove this as I found one I would rather use and cant find the code in my navbar template.. Weird. Yet it still works
|
Nice one :D
|
I couldn't get it to flash. It only changed the bg colour, didn't flash it back and forth.
EDIT: Got it working, just had some extra spaces in the code. Thanks, looks tight. |
I had it installed once, then had to re import stuff so lost my mods. I just did it again (like 3 times) and I'm not sure what I did wrong however, if you look at the attached screenshot you will see the problem.
It flashes just fine, but there is a little area to the right that doesn't flash. I can't seem to get rid of that little blank space. Can anyone please help? Here is what my template looks like where I made the changes. Code:
</td> Code:
<if condition="$bbuserinfo['pmunread']"> Edit 2: In the third attachment you can see a couple extra frames that I don't think should be there. |
I read through the forum, but it didn't work.. I got this error:
line: 381 car: 1 error: 'pmBox' is undefined Code: 0 URL: ...forumdisplay.php?f=3 even if I undo all changes. I still got that error. What I did was, open dreamweaver, open file, "vbulletin-style.xml, I do a search replace & replace: search: <td class="alt2" valign="top" nowrap="nowrap"> replace with: <td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else /> class="alt2"</if>> <if condition="$bbuserinfo['pmunread']"> <script type="text/javascript"> <!-- <!-- blink navbar on new pms --> document.getElementById('pmBox').bgColor='$styleva r[thead_bgcolor]'; setInterval("Timer()", 500); x=1; function Timer() { set=1; if (x==0 && set==1) { document.getElementById('pmBox').bgColor='$styleva r[tcat_bgcolor]'; x=1; set=0; } if (x==1 && set==1) { document.getElementById('pmBox').bgColor='$styleva r[thead_bgcolor]'; x=0; set=0; } } --> </script></if> nothing else is done. Now, I hate the error java script message. By the way, does this work for vb3.0.7? |
I got it to flash, but if I want it to flash Red, and background color what do I change in the code? I did this:
<!-- <!-- blink navbar on new pms --> pmBox.bgColor='thead_bgcolor'; setInterval("Timer()", 500); x=1; function Timer() { set=1; if (x==0 && set==1) { pmBox.bgColor='$stylevar[red]'; x=1; set=0; } if (x==1 && set==1) { pmBox.bgColor='$stylevar[thead_bgcolor]'; x=0; set=0; } } but it still flashes dark grey and light grey. Quote:
|
i've just installed the mod and it works perfectly.
thanks a lot. |
Quote:
Have I done something really dumb? PHP Code:
|
What's the problem you're getting? It just doesn't appear?
|
Quote:
Thats rignt. There's no flashing? I wonder if I've put the code in incorectly? :confused: |
Tested and working on version 3.5.0 Beta 4. :)
|
Quote:
|
Quote:
I'm on 3.0.7 I'll revert back to the old code (before I modified it) and try it again. Glad I made backups :) |
I wouldn't advise ever installing a modification and not making backups. ;)
|
Quote:
|
Are you making sure that you have unread messages and that when testing this? Tried sending new, fresh PM's and testing it like that?
|
That's the way I tested it. I sent myself a new message. :/ I just cant see where the code is different to that give here. :(
|
All times are GMT. The time now is 03:06 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|