Follow vBSEO on Twitter
vBulletin Modifications
  • Forums
  • Add-Ons
  • Template Modifications
  • Styles
  • Graphics
  • Tutorials
  • Support Center
  • Register
  • vBulletin SEO

Member Log In

Site Navigation

  • Register
  • Members List
  • Social Groups
  • Search
  • Today's Posts
  • Mark Forums Read

Latest Modifications

  • [vB 3.8.4] THX - Hack for VB. 3.8.4
    By: bluedog
  • [vB 3.8.4] Cyb - Chatbox V.2.3
    By: bluedog
  • [vB 4.0.x] PHPKD - Advanced Quick...
    By: PHPKD
  • [vB 3.6.x] StopSpam
    By: flappi282
  • [vB 3.8.x] vBulletin Chat Addon for...
    By: 123flashchat

Latest Template Mods

  • [vB 4.0.x] Remove My Profile Link...
    By: Ak Worm
  • [vB 3.8.x] Images DownloadBox...
    By: cRs!MP
  • [vB 3.8.x] Adviertise Mod On Forum...
    By: MG4
  • [vB 3.8.4] Images PassWordBox...
    By: cRs!MP
  • [vB 3.8.4] Footer Follow Ups
    By: Ak Worm

Latest Styles

  • [vB 4.0.x] 4.0.3 - VB4STYLE-TWEETA...
    By: Belon
  • [vB 4.0.x] [4.0.3] vbdesigns.de...
    By: Belon
  • [vB 3.8.4] CompletevB - Skylight
    By: DreadKnight
  • [vB 3.8.3] [vB 3.8.4] Barcelona...
    By: hoiquantinhoc.com
  • [vB 3.8.3] Natures Walk by vBSkin...
    By: Chri5

Latest Graphics

  • [vB ] [anim.]Team Ranks
    By: cRs!MP
  • [vB ] Abstract Circles (3...
    By: cRs!MP
  • [vB ] PlayStation Rank Images
    By: cRs!MP
  • [vB 3.6.12] Heavy Stroked Button...
    By: Shelley
  • [vB ] Minature Ranks.
    By: Shelley
vBulletin Modifications » Support Center » vBulletin Support » PM button in postbit
Reply
Page 1 of 2 1 2 >

 

  • Thread Tools
Old 07-26-2006, 12:49 AM   #1
BigJohnny
Coder

BigJohnny's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss386
Age: 28
BigJohnny is on a distinguished road
Send a message via MSN to BigJohnny
Status: Offline 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.

PHP Code:
                <if condition="$post[userid] != $bbuserinfo[userid]">
                        <if 
condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" />
                                        </
a>
                        </if>
                </if> 
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?
Reply With Quote
Old 07-27-2006, 10:12 AM   #2
gio~logist
Coder

gio~logist's Avatar

Activity Longevity
0/20 16/20
Today Posts
0/3 ssssss253
Location: Miami, Florida
gio~logist is on a distinguished road
Send a message via AIM to gio~logist
Status: Offline 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:
Code:
<if condition="THIS_SCRIPT == 'showthread' ">
CODE HERE
</if>
Reply With Quote
Old 07-27-2006, 04:30 PM   #3
BigJohnny
Coder

BigJohnny's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss386
Age: 28
BigJohnny is on a distinguished road
Send a message via MSN to BigJohnny
Status: Offline 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"
Reply With Quote
Old 07-27-2006, 04:37 PM   #4
BigJohnny
Coder

BigJohnny's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss386
Age: 28
BigJohnny is on a distinguished road
Send a message via MSN to BigJohnny
Status: Offline 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 _
Reply With Quote
Old 07-27-2006, 08:24 PM   #5
BigJohnny
Coder

BigJohnny's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss386
Age: 28
BigJohnny is on a distinguished road
Send a message via MSN to BigJohnny
Status: Offline Default
ok here is my code now

PHP Code:
                <if condition="THIS_SCRIPT == 'showthread'">
                                <if 
condition="$post[userid] != $bbuserinfo[userid]">
                                        <if 
condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank"  rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" />
                                        </
a>
                                        </if>
                                 </if>

                </if> 
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, 18 views)
Reply With Quote
Old 07-27-2006, 08:29 PM   #6
Nick R
vBulletin Guru

Nick R's Avatar

Activity Longevity
0/20 14/20
Today Posts
0/3 sssss4450
Location: Cyberspace, UK
Age: 30
Nick R is on a distinguished road
Send a message via MSN to Nick R Send a message via Yahoo to Nick R
Status: Offline 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.
Reply With Quote
Old 07-27-2006, 09:01 PM   #7
BigJohnny
Coder

BigJohnny's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss386
Age: 28
BigJohnny is on a distinguished road
Send a message via MSN to BigJohnny
Status: Offline Default
here is the code, with the edit and forward button code after it

PHP Code:
               <if condition="THIS_SCRIPT == 'showthread'">
                                <if 
condition="$post[userid] != $bbuserinfo[userid]">
                                        <if 
condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank"  rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" />
                                        </
a>
                                        </if>
                                 </if>

                </if>
               <if 
condition="$post['editlink']">
            <
a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
        </if>
        <if 
condition="$post['forwardlink']">
            <
a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a> 
Reply With Quote
Old 07-27-2006, 09:02 PM   #8
Nick R
vBulletin Guru

Nick R's Avatar

Activity Longevity
0/20 14/20
Today Posts
0/3 sssss4450
Location: Cyberspace, UK
Age: 30
Nick R is on a distinguished road
Send a message via MSN to Nick R Send a message via Yahoo to Nick R
Status: Offline Default
not seeing any _ in that either :(
Reply With Quote
Old 07-27-2006, 11:39 PM   #9
BigJohnny
Coder

BigJohnny's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 ssssss386
Age: 28
BigJohnny is on a distinguished road
Send a message via MSN to BigJohnny
Status: Offline 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 11:43 PM.
Reply With Quote
Old 07-28-2006, 02:50 AM   #10
Colonel Ingus
vBulletin Guru

Colonel Ingus's Avatar

Activity Longevity
0/20 13/20
Today Posts
0/3 sssss1664
Location: ...in a van, down by the river.
Colonel Ingus is on a distinguished road
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:

Code:
<if condition="THIS_SCRIPT == 'showthread'">
<if condition="$post[userid] != $bbuserinfo[userid]">
<if condition="$show['pmlink']">
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank"  rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a>
</if></if></if>
Reply With Quote

Reply
Page 1 of 2 1 2 >

« Please Help. My forum is hacked. | Do I need to re-hack after every style? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

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 Rules



All times are GMT. The time now is 05:30 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Transverse Styles
  • Top
  • Archive
  • vBSEO
  • Contact Us
LinkBack
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks
Bookmark & Share
Digg this Thread! Digg this Thread!
Add Thread to del.icio.us Add Thread to del.icio.us
Bookmark in Technorati Bookmark in Technorati
Furl this Thread! Furl this Thread!