OCgfx
« Click-It! PM Bar V2 »

Welcome Guest. Please Login or Register.
Nov 27, 2009, 12:54pm



Welcome To Ocgfx
Recent Posts | Bookmarks | Gfx Tutorials | Code index | Pbv4 Templates | Pbv4 Skins/Forum Colors


OCgfx :: Graphic Design :: Code :: Click-It! PM Bar V2
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: Click-It! PM Bar V2 (Read 1,905 times)
Smangii
Legend
*****
member is offline

[avatar]

[msn]
[homepage]

Joined: Feb 2006
Gender: Male
Posts: 847
Karma: 12
 Click-It! PM Bar V2
« Thread Started on Jun 26, 2006, 11:24am »

--- Old Version Deleted ---

Since a couple of problems arose, I've just made it overall neater and much more understanding to all. Here's the "beta" version of v2.

Crossbrowser: YES
Location: Main Headers/Footers

Main Header:
Code:
<!-- Click-It PM Bar v2 (Beta) by Smangii
[url]http://smangii.proboards78.com[/url]
Main Header Part //-->

<table align="center" class="bordercolor" width="92%" cellpadding="4" cellspacing="1">
<tr>
<td align="center" class="titlebg"><a href="javascript:hideshow('myPM')">+/- Messages »</a>
</td>
<td id="myPM" align="center" class="windowbg" height="10px" style="display: none;">Please <a href="/index.cgi?action=login">Login</a> or
<a href="/index.cgi?action=register">Register</a> to use this feature.
</td>
</tr>
</table>


Main Footer:
Code:
<script type="text/javascript">
<!--
/* Click-It PM Bar v2 (Beta) by Smangii
[url]http://smangii.proboards78.com[/url]
Main Footer Part */

function hideshow(id) {
if(document.getElementById(id).style.display==""){
document.getElementById(id).style.display="none";
} else { document.getElementById(id).style.display=""; }}

var TD = document.getElementsByTagName("td");
var myPM = document.getElementById("myPM");

if(TD[2].innerHTML.match(/you have <.+?>(.+?) (message|messages)<.+?>/i)){
myPM.innerHTML = '<div style="float:left">Hi, ' + pb_displayname + '! Your Inbox: <a href="/index.cgi?action=pm">' + RegExp.$3 +' New</a> | ' + RegExp.$1 + ' Old.</div> <div style="float:right">[ <a href="/index.cgi?action=pmsend">Compose</a> ] [ <a href="/index.cgi?action=pmmarkasread">Mark All Read</a> ] [ <a href="/index.cgi?action=pmprefs">Prefs</a> ]</div>';
}
// -->
</script>
« Last Edit: Nov 25, 2006, 12:00am by Smangii »Link to Post - Back to Top  IP: Logged

[image]
aith
Guest
 Re: Click-It! PM Bar V2
« Reply #1 on Oct 9, 2006, 7:53pm »

Cool! But, how/can you move the pm thing by the logo? I just want that single PM bar by itself instead of two. :/
Link to Post - Back to Top  IP: Logged
Andrew
Administrator
*****
member is offline

[avatar]

[msn]

Joined: Nov 2005
Gender: Male
Posts: 1,141
Location: England
Karma: 20
 Re: Click-It! PM Bar V2
« Reply #2 on Oct 29, 2006, 4:47pm »

Insert this into the top of your global footers

Code:
<script language=javascript>
<!--
var PMLogoCell = document.getElementsByTagName("TD")[1]; PMLogoCell.removeChild(PMLogoCell.lastChild)
document.getElementsByTagName('tr')[1].deleteCell(1);
-->
</script>


That will remove your the PM area from your logo.

~Andrew
Link to Post - Back to Top  IP: Logged

ElseAndrew.com - Free online games!
iisme
Guest
 Re: Click-It! PM Bar V2
« Reply #3 on Nov 23, 2006, 11:11pm »

This is doing it 'login or register' thing again. I sign in over and over but it doesn't tell me if i have any new PMs. Im using V2 too. What's up?
Link to Post - Back to Top  IP: Logged
Smangii
Legend
*****
member is offline

[avatar]

[msn]
[homepage]

Joined: Feb 2006
Gender: Male
Posts: 847
Karma: 12
 Re: Click-It! PM Bar V2
« Reply #4 on Nov 25, 2006, 12:00am »

I've enhanced the version, see if it works now =)
Link to Post - Back to Top  IP: Logged

[image]
iisme
Guest
 Re: Click-It! PM Bar V2
« Reply #5 on Nov 25, 2006, 12:31pm »

Nope
Link to Post - Back to Top  IP: Logged
Smangii
Legend
*****
member is offline

[avatar]

[msn]
[homepage]

Joined: Feb 2006
Gender: Male
Posts: 847
Karma: 12
 Re: Click-It! PM Bar V2
« Reply #6 on Nov 28, 2006, 7:35pm »

A board url would be nice =)

Are you placing it in main headers/footers?
Link to Post - Back to Top  IP: Logged

[image]
iisme
Guest
 Re: Click-It! PM Bar V2
« Reply #7 on Dec 4, 2006, 1:53am »

http://fearthewolves.proboards54.com/index.cgi

And yes, I am.
« Last Edit: Dec 4, 2006, 1:53am by iisme »Link to Post - Back to Top  IP: Logged
fernstar
Student
*
member is offline





Joined: Feb 2007
Posts: 4
Karma: 0
 Re: Click-It! PM Bar V2
« Reply #8 on Dec 4, 2006, 6:00pm »

is this the same one on the warrior cats v4 site?
Link to Post - Back to Top  IP: Logged
iisme
Guest
 Re: Click-It! PM Bar V2
« Reply #9 on Dec 6, 2006, 5:17am »

Not sure what the warrior cats site is.
Link to Post - Back to Top  IP: Logged
Smangii
Legend
*****
member is offline

[avatar]

[msn]
[homepage]

Joined: Feb 2006
Gender: Male
Posts: 847
Karma: 12
 Re: Click-It! PM Bar V2
« Reply #10 on Dec 9, 2006, 1:26am »

I see it working >_>
Link to Post - Back to Top  IP: Logged

[image]
leopardz
Student
*
member is offline




[homepage]

Joined: Mar 2007
Gender: Female
Posts: 12
Karma: 0
 Re: Click-It! PM Bar V2
« Reply #11 on Mar 20, 2007, 12:17pm »

I don't think mine works...

http://imbenglishsats.proboards79.com/index.cgi?
Link to Post - Back to Top  IP: Logged
Michael
Administrator
*****
member is offline

[avatar]

[aim]

Joined: Jan 2005
Gender: Male
Posts: 4,496
Location: Callahan
Karma: 32
 Re: Click-It! PM Bar V2
« Reply #12 on Mar 21, 2007, 11:11am »

Okay, I think I see the problem. Did you copy and paste Smangii's code into your Main Headers and Footers?

If so, you need to delete Scorpions Ultimate PM Menu code. This code is interferring with Smangii's making it mess up on your board. So delete Scorpions code and if it's still not working... come back and I guess Smangii can help you. ;]
Link to Post - Back to Top  IP: Logged

[image]
[image]
leopardz
Student
*
member is offline




[homepage]

Joined: Mar 2007
Gender: Female
Posts: 12
Karma: 0
 Re: Click-It! PM Bar V2
« Reply #13 on Mar 21, 2007, 11:23am »

Okay then...

Oh, gah! It keeps on saying login or register....

Link to Post - Back to Top  IP: Logged
Michael
Administrator
*****
member is offline

[avatar]

[aim]

Joined: Jan 2005
Gender: Male
Posts: 4,496
Location: Callahan
Karma: 32
 Re: Click-It! PM Bar V2
« Reply #14 on Mar 21, 2007, 11:24am »

Yes, I noticed. I put this code in and it did the same for me... and I was logged in! ??? I'll PM Smangii on SIgfx
Link to Post - Back to Top  IP: Logged

[image]
[image]
leopardz
Student
*
member is offline




[homepage]

Joined: Mar 2007
Gender: Female
Posts: 12
Karma: 0
 Re: Click-It! PM Bar V2
« Reply #15 on Mar 21, 2007, 12:08pm »

Thank you! ;D

I was given the challenge of making the school forum, and that website was the result :P
Link to Post - Back to Top  IP: Logged
Michael
Administrator
*****
member is offline

[avatar]

[aim]

Joined: Jan 2005
Gender: Male
Posts: 4,496
Location: Callahan
Karma: 32
 Re: Click-It! PM Bar V2
« Reply #16 on Mar 22, 2007, 12:20am »

Smangii PMed me earlier. He said try putting them in the Global Header and Footers; however, I tried that on my test board and it's doing the same. I let him know and I'm now waiting for his reply on it... But I'll let you know when I find out. ;]
Link to Post - Back to Top  IP: Logged

[image]
[image]
nO.one
Student
*
member is offline





Joined: Jul 2009
Gender: Female
Posts: 2
Karma: 0
 Re: Click-It! PM Bar V2
« Reply #17 on Jul 2, 2009, 5:49pm »

Smangii your a genius! You made this so much easier for me. Thanks a ton!
Link to Post - Back to Top  IP: Logged
   [Search This Thread][Send Topic To Friend] [Print]



Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!