vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Hybrid Mode Reply (https://vborg.vbsupport.ru/showthread.php?t=71609)

Galadrium 11-11-2004 11:57 AM

Hybrid Mode Reply
 
I am using hybrid mode. On the bottom right-hand corner of each post is an icon that says, "quote" and when you put the mouse over it it says "reply with quote."

What I want to do is to keep the quote icon, and add another icon next to it that posts a reply, to that particular thread, so that it is shown as responding to that thread, without automatically inserting the previous post wrapped in quote tags.

This does not sound like it would be that hard to do, but I have no skills with this type of thing. Thanks.

zurih 11-11-2004 03:07 PM

open template postbit_legacy (if it doesnt work try postbit template)

Find:

PHP Code:

<if condition="$post['replylink']">
            <
a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]border="0" /></a>
        </if> 

After, add:
PHP Code:

        <if condition="$post['replylink']">
            <
a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="Reply" border="0" /></a>
        </if> 

:)

Galadrium 11-12-2004 05:42 PM

Thanks a bunch... i'll give this a try.

Galadrium 11-12-2004 06:11 PM

I tried editing the template postbit_legacy. And It added the extra reply button, just like I wanted. However, when I use private messages there is an extra button that becomes a broken link. Any suggestions about what I should do here?
I also tried editing the template postbit, but that didn't do anything.

Thanks. I really appreciate your help. :)

zurih 11-12-2004 06:58 PM

Quote:

Originally Posted by Galadrium
I tried editing the template postbit_legacy. And It added the extra reply button, just like I wanted. However, when I use private messages there is an extra button that becomes a broken link. Any suggestions about what I should do here?

I really appreciate your help. :)

hmmm.... the PM is using the same postbit_legacy as threads... I dont really know how to make the new button "invisible" you are in PM.

maybe someone else can help?! :)

Ianomed 11-13-2004 11:31 AM

yup, try this conditional

PHP Code:

<if condition="THIS_SCRIPT != 'private'">

// template code that should only appear on posts and not in PM

</if> 

alternatively:

PHP Code:

<if condition="THIS_SCRIPT == 'private'">

// template code that should only appear on PMs and not on posts.

</if> 

So I'm guessing that the new hybrid reply button should be encapsulated in the != private bit as follows.

PHP Code:

<if condition="THIS_SCRIPT != 'private'"><if condition="$post['replylink']">
            <
a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="Reply" border="0" /></a>
        </if></if> 


zurih 11-13-2004 03:37 PM

very nice!! :)
works great!

thanks Ianomed :glasses:

Ianomed 11-13-2004 03:45 PM

My pleasure :)

You can also combine the conditions, I tried it.
PHP Code:

<if condition="((THIS_SCRIPT != 'private') && $post['replylink'])">
<
a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="Reply" border="0" /></a
</if> 


zurih 11-13-2004 04:04 PM

useful stuff... :)

one thing I need to ask u. I want to add next to the reply button and new button that the user returns to forum inwitch the thread exists. do u know the href for that?

:)

Ianomed 11-13-2004 04:19 PM

PHP Code:

<a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]"

should do the trick.


All times are GMT. The time now is 01:41 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.00997 seconds
  • Memory Usage 1,754KB
  • 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
  • (7)bbcode_php_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