vBulletin Modifications

PM button in postbit

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 07-25-2006, 09:49 PM   #1
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default PM button in postbit

How do i make a PM button show up in my postbit, but NOT in my pms.

Right now im using code that shows the "Send PM" button in the postbit, which displays the send pm button for every user, but doesnt show the button to that user in their own posts.

The problem is, this button also shows up in my PM's.

Whenever i (or anyone else) reads a PM, that same "Send PM" button shows up there as well.

Its sort of redundant there, so id like it NOT to show up in the PM's

anyone know how?

This is the code im using right now.

You must first be a registered member to view any code.
Is there some way to tell it to show the button if its in a post, and not to show the button if its in a PM?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 07-27-2006, 07:12 AM   #2
Coder
gio~logist's Avatar
Join Date: Jul 2005
Location: Miami, Florida
gio~logist is on a distinguished road

Default

Private messages use the postbit template, which is why it's like that. If you want something to only show up in a thread do this:
You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-27-2006, 01:30 PM   #3
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

so basically i add that little bit of code around the pm button statement?
do i need to modify that pm button code in anyway? or just insert it where it says "CODE HERE"




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-27-2006, 01:37 PM   #4
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

ok this works nice ... but for some reason i cant see, right beside the button is now a little _ but its highlighted like a hyperlink underline and not quite a _




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-27-2006, 05:24 PM   #5
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

ok here is my code now

You must first be a registered member to view any code.
And using it, it is causing this little _ to show up next to the pm, button like the screenshot

I honestly cant see why its doing this either.
It only started showing this line after i added the code you posted.... but the code works perfectly
Attached Images
File Type: jpg weird line.JPG (3.1 KB, 14 views)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-27-2006, 05:29 PM   #6
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

i can't see in the code any reason either. The only code in there with an underscore is the phrase the if and the target.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-27-2006, 06:01 PM   #7
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

here is the code, with the edit and forward button code after it

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-27-2006, 06:02 PM   #8
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

not seeing any _ in that either




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-27-2006, 08:39 PM   #9
Coder
BigJohnny's Avatar
Join Date: Jul 2006
BigJohnny is on a distinguished road

Default

well i dont know what was causing it, considering that i havent made any changes to the code used to display the button there, but i replaced that code with the code from the original hack (i swear to god nothing was different between the two versions) and now it works.

this is weird ****.

[-EDIT-]
The below is meant to be in a TOTALLY different thread altogether
This Thread
I've been into the mind altering substances again though, and totally mashed these two threads together in my brain

<!-- Begin post in wrong thread -->

However, I would like to know how to make 2 radio buttons, so that the user can choose between registered and unregistered login.
if they arent registered, it should simply grey out the lname box, and not use '?loginname=' + TSLogin.lname.value in the url.
<!-- End post in wrong thread -->

Last edited by BigJohnny; 07-27-2006 at 08:43 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-27-2006, 11:50 PM   #10
Colonel Ingus
Master Coder
Colonel Ingus's Avatar
Join Date: Jun 2006
Real Name: The Wizard of Oz
Location: ...in a van, down by the river.
Colonel Ingus is on a distinguished road

Talking

Quote:
Originally Posted by BigJohnny
well i dont know what was causing it
I remember when we did this last year we had the same problem. I don't recall what fixed it but I do remember that once we found it we went "Oh yeah, that makes sense"

Try this:

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IM Online Status Hack Acting Weird/PM Button in postbit AND PM BigJohnny General vBulletin Support 0 07-19-2006 06:34 PM
button redbullcola General vBulletin Support 1 03-12-2006 10:24 AM


All times are GMT -3. The time now is 10:02 PM.


SEO by vBSEO 3.2.0 RC8 ©2008, Crawlability, Inc. (Patent Pending)