Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quote Post in PM Details »»
Quote Post in PM
Version: 1.0.1, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 01-31-2008 Last Update: 01-31-2008 Installs: 18
Uses Plugins Template Edits
 
No support by the author.

Hack remove due to code being stolen and used in another Quote Post in PM mod.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-01-2008, 02:43 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Boofo...I've been waiting for this mod.

BTW...In your instructions you may want to add the ending </phrase>.

I'm also curious about the "forward" conditional. Is that supposed to appear in PM or in a regular postbit? If PM, "quote" button link already quotes the PM so it wouldn't be there. If postbit then would the conditional be?:

Code:
  <if condition="$post['replylink'] AND $show['pmlink']">
Reply With Quote
  #3  
Old 02-01-2008, 03:02 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Changes in red here:

Code:
Find:
---------------------
   $post[iplogged]
---------------------
BELOW it add:
---------------------
 
 
                        <if condition="$show['pmlink'] AND $post['replylink']">&nbsp;&nbsp;<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_misc]/pmquote.gif" alt="Quote this post in a PM" border="0" /></a>&nbsp;&nbsp;</if>

(Above) The original instructions URL doesn't quote the post...It leaves it blank with no username to PM to.


And


For Username drop down menu:

Code:
<if condition="$show['pmlink']">
  <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]" rel="nofollow"><phrase 1="$post[username]">Quote this post in a PM to $post[username]</a></td></tr>
  </if>

(Above) Only if PM's are allowed by user.


Reply With Quote
  #4  
Old 02-01-2008, 03:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Send me the updates in a pm so I can look at them and see what is going on, would you please, sir?

I did the icon one without the username on purpose as the drop does it with the username. That way you could add any username to the icon one. It gets too easy to click send if you don't pay attention to the name and you might want to send it to someone other than the original poster.

And the plug-in part of the product sets the permissions.
Reply With Quote
  #5  
Old 02-01-2008, 03:32 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The icon is only for postbit but not for the drop down (second edit); first change is the one with the icon.

I have different conditionals for those buttons. See, for logged in users it'll show but for guests no button will show up (e.g,. new reply, reply, edit...).

I didn't document my changes since my edits are custom...But I'll add the changes to match your instructions. Give me a few.
Reply With Quote
  #6  
Old 02-01-2008, 03:36 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NM...I noticed you had a "!" in your conditional. Hehe...Bad, Freesteyelz.


Updating edits...
Reply With Quote
  #7  
Old 02-01-2008, 03:55 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now you have me confused.

here is what I came up with. Let me know if this is right:

Quote:
3. In your postbit template
Find:
---------------------
$post[iplogged]
---------------------
BELOW it add:
---------------------
<if condition="!$post['forwardlink']">&nbsp;&nbsp;<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_misc]/pmquote.gif" alt="<phrase 1="$post[username]">Quote this post in a PM to $post[username]</phrase>" border="0" /></a>&nbsp;&nbsp;</if>
---------------------
Find:
---------------------
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
---------------------
BELOW it add:
---------------------
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]&amp;postid=$post[postid]" rel="nofollow"><phrase 1="$post[username]">Quote this post in a PM to $post[username]</phrase></a></td></tr>
Reply With Quote
  #8  
Old 02-01-2008, 04:13 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks right to me. You da man, Boofo! :up:
Reply With Quote
  #9  
Old 02-01-2008, 04:14 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, like, I passed the Freesteyelz test then?

I will update the zip file and re-upload it and credit you in case it is wrong.
Reply With Quote
  #10  
Old 02-01-2008, 04:22 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh...Just looking out for Boofo.

Don't worry about credit...I just wanted to help whenever I can...And I don't want to be blamed. Hahaa.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04739 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete