Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2005, 07:49 PM
Renada's Avatar
Renada Renada is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Quote link to parent message

Hi,

Firstly apologies if this is not the right place to ask this - I wasn't sure which forum it should go in.

I've just changed from IPB to vB3 and there are a couple of thingsImiss (although the these are outweighed by the features we've gained).

1) When you quote part of a message in a reply the originalmessagecould be pages back in the thread. IPB puts a little "arrow"within thequote box which when clicked opens the original message thatthe quotecame from. Very useful if someone quotes from multiplemessages.

2) "Back to top" buttons either on each message or at least at the bottom of the thread.

Can anyone tell me if/how these features could be added.

Thanks for your help,
Renada
Reply With Quote
  #2  
Old 03-05-2005, 08:32 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Renada
Hi,

Firstly apologies if this is not the right place to ask this - I wasn't sure which forum it should go in.

I've just changed from IPB to vB3 and there are a couple of thingsImiss (although the these are outweighed by the features we've gained).

1) When you quote part of a message in a reply the originalmessagecould be pages back in the thread. IPB puts a little "arrow"within thequote box which when clicked opens the original message thatthe quotecame from. Very useful if someone quotes from multiplemessages.

2) "Back to top" buttons either on each message or at least at the bottom of the thread.

Can anyone tell me if/how these features could be added.

Thanks for your help,
Renada
Here's how I did mine:
First, create a custom BBCode called snapback, as follows:
Title: Snapback
Tag: s
Replacement:
Code:
<a href="http://www.yourforums.com/forum/showpost.php?p={param}" target="_blank"><img class="inlineimg" src="http://www.yourforums.com/forum/images/snap.gif" border="0" alt="View Quoted Post"></a>
Obviously, change the two file paths to match your own site.
Upload snap.gif to the correct path on the server. I've attached the one IPB use, but use any you like.


Next, open the template newpost_quote, and add this code where you want the arrow to appear:
Code:
[s]$postinfo[postid][/s]
I have mine at the beginning of the code.

This will give you the basics of the same thing IPB have for viewing quoted posts in full.
Reply With Quote
  #3  
Old 03-05-2005, 09:45 PM
Renada's Avatar
Renada Renada is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B
Here's how I did mine:
First, create a custom BBCode called snapback, as follows:
Title: Snapback
Tag: s
Replacement:
Code:
<ahref="http://www.yourforums.com/forum/showpost.php?p={param}"target="_blank"><imgclass="inlineimg"src="http://www.yourforums.com/forum/images/snap.gif"border="0"alt="ViewQuotedPost"></a>
Obviously, change the two file paths to match your own site.
Upload snap.gif to the correct path on the server. I've attached the one IPB use, but use any you like.


Next, open the template newpost_quote, and add this code where you want the arrow to appear:
Code:
[s]$postinfo[postid][/s]
I have mine at the beginning of the code.

This will give you the basics of the same thing IPB have for viewing quoted posts in full.
Mark,

Thank you so much for your help, I've got it working of sorts.

This is what my newpost_quote template says now:

Code:
 QUOTE=$originalposter]{$pagetext}[s]$postinfo[postid][/s][/QUOTE]
(I had to remove the first [ from the code because it kept posting it as a quote)

Have I got something wrong because the messagenumberdoesn'tshowupandtheposter's name isn't a link. Alsotheimageappearsdirectlyafter thelastcharacter of the quote, I can'tseemtoinsertany spacesafter thetextbefore the image appears.

I'm very happy to have my quote links back though, thanks again
Renada
Reply With Quote
  #4  
Old 03-05-2005, 11:14 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Renada

Have I got something wrong because the messagenumberdoesn'tshowupandtheposter's name isn't a link. Alsotheimageappearsdirectlyafter thelastcharacter of the quote, I can'tseemtoinsertany spacesafter thetextbefore the image appears.

I'm very happy to have my quote links back though, thanks again
Renada
This is how you should do yours:
Code:
QUOTE=$originalposter] [s]$postinfo[postid][/s]{$pagetext}[QUOTE
That should give you 'Originally Posted by username' and then the arrow on the right of it.

If you're after one like my site has, that quotes post numbers and all sorts, then you need a whole replacement for the newreply_quote template and two more pieces of BBCode.

Create this BBcode:
Title: Postlink
Tag: p
Replacement:
Code:
post <a href="http://www.yourforum.com/forum/showpost.php?p={param}" target="_blank">{param}</a>
Then create this BBcode (this one covers PMs):
Title: SnapbackPM
Tag: x
Replacement:
Code:
<a href="http://www.yourforum.com/forum/private.php?do=showpm&pmid={param}" target="_blank"><img class="inlineimg" src="http://www.yourforum.com/forum/snap.gif" border="0" alt="View Quoted Message"></a>
Then finally, to make the text read right in PMs:
Title: PMlink
Tag: m
Replacement:
Code:
message {param}
I have made the above display PM ID numbers without a link, as you obviously cannot view other people's PMs!

Then change your new reply template to this:
Code:
quote][s]$postinfo[postid][/s] In [p]$postinfo[postid][/p][m]$pm[pmid][/m] $originalposter said:
{$pagetext}
[/quote
I think I've covered everything here.

As you can see, it starts to get a bit messy to cover all eventualities, and you end up with rather a lot of BBCode in your new message window when quoting. However, as you can see on my site, the end result is good.

I am sure some expert coder could come up with a cleaner way of achieving this though.

Obviously in the above examples you'll need to put the "[" bracket and the "]" bracket back on the tags.
Reply With Quote
  #5  
Old 03-06-2005, 12:06 AM
Renada's Avatar
Renada Renada is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mark,

Wonderful stuff, thank you so much

Renada
Reply With Quote
  #6  
Old 03-21-2006, 12:10 AM
Insert Username Insert Username is offline
 
Join Date: Feb 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thought I'd resurrect this. I'm trying to get it to work on my site, but it's not happening. (Keep in mind I'm a bit of a novice.)

This is what I have in my newpost_quote template:

Quote:
Originally Posted by $originalposter
$postinfo[postid]{$pagetext}
Not sure how that will bring up the BBCode I created, though. What am I missing? Probably something obvious, I'm sure...
Reply With Quote
  #7  
Old 03-27-2006, 08:47 PM
Renada's Avatar
Renada Renada is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Insert Username
Thought I'd resurrect this. I'm trying to get it to work on my site, but it's not happening. (Keep in mind I'm a bit of a novice.)

This is what I have in my newpost_quote template:



Not sure how that will bring up the BBCode I created, though. What am I missing? Probably something obvious, I'm sure...
Hi,

This is what Mark told me to put in my newpost_quote template:

Code:
[ s ]$postinfo[postid] [/s] In [p]$postinfo[postid][/p][m]$pm[pmid][/m] $originalposter said:
{$pagetext}
You will need to add quote around the code - I had to leave it off because it won't let me add it here. I've also had to add spaces each side of the "s" at the beginning of the code or the software turns it into a strikethrough.

Try that and see if that helps and if it doesn't make sense I'll try to find another way to help

Regards,
Renada
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: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.04527 seconds
  • Memory Usage 2,254KB
  • Queries Executed 14 (?)
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
  • (11)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete