Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2004, 11:57 AM
Galadrium Galadrium is offline
 
Join Date: Apr 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 11-11-2004, 03:07 PM
zurih zurih is offline
 
Join Date: Nov 2004
Location: Israel
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
Reply With Quote
  #3  
Old 11-12-2004, 05:42 PM
Galadrium Galadrium is offline
 
Join Date: Apr 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a bunch... i'll give this a try.
Reply With Quote
  #4  
Old 11-12-2004, 06:11 PM
Galadrium Galadrium is offline
 
Join Date: Apr 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 11-12-2004, 06:58 PM
zurih zurih is offline
 
Join Date: Nov 2004
Location: Israel
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?!
Reply With Quote
  #6  
Old 11-13-2004, 11:31 AM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
Reply With Quote
  #7  
Old 11-13-2004, 03:37 PM
zurih zurih is offline
 
Join Date: Nov 2004
Location: Israel
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice!!
works great!

thanks Ianomed :glasses:
Reply With Quote
  #8  
Old 11-13-2004, 03:45 PM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
Reply With Quote
  #9  
Old 11-13-2004, 04:04 PM
zurih zurih is offline
 
Join Date: Nov 2004
Location: Israel
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

Reply With Quote
  #10  
Old 11-13-2004, 04:19 PM
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Location: The Netherlands
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]"
should do the trick.
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 12:43 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.06352 seconds
  • Memory Usage 2,276KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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