vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - Quote Post in PM (https://vborg.vbsupport.ru/showthread.php?t=169308)

Boofo 01-31-2008 10:00 PM

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

Freesteyelz 02-01-2008 02:43 AM

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']">

Freesteyelz 02-01-2008 03:02 AM

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.


:)

Boofo 02-01-2008 03:12 AM

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. ;)

Freesteyelz 02-01-2008 03:32 AM

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. :)

Freesteyelz 02-01-2008 03:36 AM

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


Updating edits...

Boofo 02-01-2008 03:55 AM

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>

Freesteyelz 02-01-2008 04:13 AM

Looks right to me. You da man, Boofo! :up:

Boofo 02-01-2008 04:14 AM

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. ;)

Freesteyelz 02-01-2008 04:22 AM

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. :)


All times are GMT. The time now is 07:51 AM.

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.01144 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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