vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   PM button in postbit (https://vborg.vbsupport.ru/showthread.php?t=117971)

peterska2 06-07-2006 10:00 PM

PM button in postbit
 
This is the new and improved version of the PM button in postbit modification found here.

What does it do?
Adds the PM button to the postbit of each user next to the edit button.
It does not show in your own postbit, as you don't really want to send yourself a PM - do you? :p

So what's new and improved about it?
It no longer shows in the private messages or to guests.

How to install
Download the text file and perform the enclosed template edit.

For those who want to know what it looks like, a screen shot is attached.

friendly 06-09-2006 02:31 AM

installed! seems to work, but 3.6 was just installed and i'll verify when a new user is added. It looks good in the preview. :)

Thanks!

thc 06-10-2006 05:05 PM

thanks !

Terminatoronly 07-24-2006 04:35 PM

installed thanks

yesfans 08-06-2006 04:21 AM

This is not working for me on 3.6.0, should it,. can it??

yesfans 08-06-2006 05:43 PM

anyone?

peterska2 08-06-2006 08:34 PM

There is no reason why it wouldn't work.

When you say it isn't working, in what respect do you mean?

Brandon Sheley 08-06-2006 11:25 PM

nice, now to find someone to make a matching icon for the style :)

yesfans 08-09-2006 12:17 AM

I have it coded into POSTBIT as you state for 3.6 but it does nothing, shows nothing. I was able to get it to work in 3.6rc1 but not this new 3.6. I do not see the code you say to look for in the postbit legacy.

peterska2 08-10-2006 03:49 PM

It doesn't show in your own posts, so you need to look at someone elses posts to see it.

Also if you cannot find the entire code to find, just search for
Code:

<!-- controls -->

yesfans 08-12-2006 03:57 PM

I got it!

ctsolutions 08-18-2006 11:19 PM

with the first line code:

Code:

<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'">
didnt run by me, on vbulletin 3.6.

without the first line runs, like a charm.

thanks,
mike

Snake 08-20-2006 11:19 AM

Thanks for the 3.6 version! :)

davelacey 08-25-2006 03:15 PM

Works like a charm.
Many thanks. :)

Gnappy 08-28-2006 10:46 PM

thanks

Ascor 08-29-2006 01:57 AM

Installed works fine, thank you :)

Acido 09-01-2006 08:08 AM

Any chance to quote the post message into the PM?

Edit: Nevermind. I found this hack: https://vborg.vbsupport.ru/showthread.php?t=115315

Kihon Kata 09-04-2006 06:38 PM

Installed. is good!

IAWBody 09-13-2006 09:25 PM

Installed, Great install thanks!!!

EMBX 10-23-2006 06:28 AM

Nice Hack, Thank you

* clicks install *

dnclub.org 10-26-2006 01:51 AM

doesn't work for me on 3.6.2 :surprised:

can somebody help ?

i entered this code

<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'"><if condition="$show['pmlink'] AND $show[member]"><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>

Thanks
Dave

McMendo 11-05-2006 09:00 PM

Quote:

Originally Posted by Peterska2
Also if you cannot find the entire code to find, just search for
Code:

<!-- controls -->

*click* installed. Thank you.

But now I'm left to wonder what this line of code that I don't have in my postbit_legacy or postbit templates is. I'm missing bits and pieces since I upgraded from 3.5.4 to 3.6.
Code:

<if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'">

phovanxua 11-07-2006 05:28 AM

Installed ...work on 3.6.2 and 3.5.4 .

Thanks .

oberheimhaven 11-08-2006 11:34 PM

Very nice hack thank you!!!
Installed 3.6.0 zero issues!!
Musiciansquarters.com

yoyoyoyo 12-09-2006 03:23 AM

the code seems to have changed for 3.6.4

KURTZ 12-11-2006 01:19 PM

3.6.4 works correctly :P

Veer 12-12-2006 03:37 PM

Installed.

Is there any way to add another button (E-mail this page) on thread's 1st post in postbit template?

Thanks.

ND4SPD 12-22-2006 12:09 AM

Great tweak. Thanks!

peterska2 12-22-2006 12:01 PM

Quote:

Originally Posted by Pehchaan (Post 1137162)
Installed.

Is there any way to add another button (E-mail this page) on thread's 1st post in postbit template?

Thanks.

I'll see about that next time I'm in the style manager.

smoknz28 12-23-2006 01:15 PM

Quote:

Originally Posted by yoyoyoyo (Post 1134958)
the code seems to have changed for 3.6.4

Yea it did to:

Code:

<div style="margin-top: 10px" align="$stylevar[right]">
                        <!-- controls -->

Regardless...there's only one <!-- controls --> piece in that particular template.

Added the code in the instructions under it.

Working with no issues. ;)

Thanks for sharing this code with us. :up:

SkippySkippy 12-23-2006 06:17 PM

Nice and simple, installed. :)

-Skip

cbiweb 12-24-2006 02:28 AM

I'm wondering why this is needed when there's a link to PM the person in their username drop-down?

bplinson 01-01-2007 06:19 PM

Very Nice

encryption 01-09-2007 10:57 AM

It didnt work for me either. 3.6.4

Installed it in the postbit template and it doesnt appear in the post

I even deleted <if condition="$post[userid] != $bbuserinfo[userid] AND THIS_SCRIPT!='private'"></if> and still no go

peterska2 01-09-2007 01:05 PM

I've only just upgraded to 3.6.4 last night, so any problems are going to be revisited over the coming days/weeks and updates issued where required.

In saying that though, there isn't any reason why this wouldn't work that I am aware of.

encryption 01-09-2007 02:30 PM

Thanks for the update, I had only updated the postbit section, added it to posbit legacy and sure enough it pops right up

KURTZ 01-09-2007 08:40 PM

K-Anne what are the code changes in your latest update?

i've installed this mod w/out any issues ... so what i do now?

peterska2 01-09-2007 10:22 PM

Quote:

Originally Posted by KURTZ (Post 1154920)
K-Anne what are the code changes in your latest update?

i've installed this mod w/out any issues ... so what i do now?


Absolutely nothing. ;)

If there is to be an update it unknown yet, and if there is then I have no idea what it will be.

(Can you guess I haven't even thought about it yet?)

Funboy 01-11-2007 10:36 PM

Hi Kerry-Anne,

I like the look of this hack however I seem to has missed the point I think re the template edit?

Quote:

Version 1.0.2

Changes in v 1.0.2

Does not show PM button in private messages
Does not show PM button to guests


TEMPLATES TO EDIT = 1

Template postbit (or postbit legacy)

FIND

<div align="$stylevar[right]">
I have version 3.6.4 and the only place I can find <div align="$stylevar[right]"> is in postbit_quickedit which can not be right surely?

I have done a full search in templates as I could not find the code in postbit when looking direct.

Any light you could shine why I am not seeing this in the postbit or postbit legacy would be wonderful.

Regards
Funboy


Update and the word TYPICAL come to mind!!!!

Just made this post then found what I was looking for!

For anyone else trying to add this look for this
Quote:

<div style="margin-top: 10px" align="$stylevar[right]"><!-- controls -->
if you have any form of styling running on your forum as the style="margin-top: 10px" cought me right out on this one.

O'well all sorted at last so I can now say thank for a nice hack and worked first time once I found the above problem. One for my book that one!!!

Thanks again,

Regards
Funboy

grecostimpy 01-12-2007 11:32 AM

Works fine for me in 3.6.4.


All times are GMT. The time now is 01:12 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
  • Page Generation 0.01268 seconds
  • Memory Usage 1,791KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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