PDA

View Full Version : "In reply to" Hack (threaded info for linear users)


WetWired
02-11-2004, 10:00 PM
vB3.0/hack version "frozen"; vB3.5/plugin version released
You can get the plugin for vb3.5 here (https://vborg.vbsupport.ru/showthread.php?t=93247). There will be no more releases for the vB3.0 version.

Description
This hack allows the display of the title and author of the post that each post is in response to. (See screenshot if clarification is needed)

The purpose of this hack is to provide missing information to linear view mode users. I got the idea from a board I visit that used to be UBB Threads, though my choice of presentation is a bit different.

See the attached screenshot for an example of how this can look. The hack itself only provides the additional items in $post, so it is up to the templates exactly how it looks. (The changes I used are included as an example in the hack instructions)

Complexity
This hack changes one file, requires no queries, and requires changes to one template.

Technical
This hack has been tested on vB3.0.3,vB3.0.0RC4 and vB3.0.0RC2.
It adds 1 query to showthread in linear mode, and adds 1 additional query in linear mode for each consecutive layer of deleted parents of posts displayed on a page. (If a displayed post is a reply to a deleted reply to an undeleted reply to a deleted reply to an undeleted post, 2 total queries are added to showthread, but if a displayed post is a reply to a deleted reply to a deleted reply to a deleted reply to an undeleted post, 4 total queries are added to showthread. If both examples are displayed in the same page, only 4 total queries are added to showthread.)

Update (v1.10 2004-03-01)
Version 1.10 released, which uses the beginning of a post as a title if the post does not have a title, and also trims long titles down to a decent size. Minor optimizations. regardinghackupdate.txt added for existing users, regardinghack.txt updated for new users.

Support
Please click the install button above if you install this hack.

The hack version of this modification will have no further updates, but I will still answer questions in this thread.

sabret00the
02-12-2004, 09:07 PM
not a bad hack at all :)

Koutaru
02-12-2004, 09:28 PM
:) I think it's very useful too .. nice work.

WetWired
02-12-2004, 11:06 PM
Changed to version 1.01 (updated the hack file in the original post). There was a missing field in two querys. Surprised it worked at all.

Acido
02-12-2004, 11:45 PM
This is what i wanted !
BIG THANX !

Acido clicks Install

LeeCHeSSS
02-13-2004, 06:18 AM
The purpose of this hack is to provide missing information to linear view mode users and to help your linear mode users and your threaded mode users to get allong better. What this hack does is display the title and author of the post that each post is in response to. I got the idea from a board I visit that used to be UBB Threads, though my choice of presentation is a bit different.

See the attached screenshot for an example of how this can look. The hack itself only provides the additional items in $post, so it is up to the templates exactly how it looks. (The changes I used are included as an example in the hack instructions)

This hack has been tested on vB3.0.0RC4 and vB3.0.0RC2.
It adds 1 query to showthread in linear mode, and adds 1 additional query in linear mode for each consecutive layer of deleted parents of posts displayed on a page. (If a displayed post is a reply to a deleted reply to an undeleted reply to a deleted reply to an undeleted post, 2 total queries are added to showthread, but if a displayed post is a reply to a deleted reply to a deleted reply to a deleted reply to an undeleted post, 4 total queries are added to showthread. If both examples are displayed in the same page, only 4 total queries are added to showthread.)

This hack changes one file, requires no queries, and requires changes to one template.

Please click the install button above if you install this hack.

Please leave any questions about the hack in this thread, I will answer them whenever I get the chance (probably about once a week after the first week).
Instead of referring to "Untitled post", try referring to post numbers?

WetWired
02-13-2004, 12:44 PM
Instead of referring to "Untitled post", try referring to post numbers?
Hmm, I guess I could do that... I'll look into it.
The main style on my forum doesn't have post numbers currently, (I don't like them 'cause they change whenever a post is deleted and so are pretty much useless) so I didn't think of that.

Okay, this is great: The post numbering behavior varies from display mode to display mode, too. Since the numbers used for the display by the hack would be regenerated every view, I guess it can work for that, but I seriously question why the post numbers were added in the first place.

gmarik
02-13-2004, 03:34 PM
Short description?!

WetWired
02-13-2004, 05:10 PM
Short description?!
What exactly are you asking? Are you saying my description is too short, or that you'd like it shorter?

The simplest explanation is to simply look at the example screenshot.

Besides that, the second sentence in my post:
What this hack does is display the title and author of the post that each post is in response to.

If you want a longer description, I'm not sure what I left out.

Logikos
02-13-2004, 06:46 PM
Nice. "Waits for activity hack to be released" :p

* Logikos Clicks install.

WetWired
03-01-2004, 07:12 PM
Update (v1.10 2004-03-01)
Version 1.10 released, which uses the beginning of a post as a title if the post does not have a title, and also trims long titles down to a decent size. Minor optimizations. regardinghackupdate.txt added for existing users, regardinghack.txt updated for new users.

I decided that using the beginning of the post instead of "untitled post" was better than using the post number both from usability and overhead perspectives.

ChurchMedia
03-21-2004, 05:56 AM
Very cool! Installed w/o a hitch.

Thanks! :D

Martin CX
06-21-2004, 02:23 AM
It's a very nice hack, but you might want to consider renaming it since the search engine on this site won't search for "regarding".

Cheers

WetWired
06-23-2004, 12:05 AM
Hmm, I changed the thread name, but I really don't know anything more searchable that describes it.

Bison
08-01-2004, 08:49 PM
What happens if someone replies to another post inside the thread ... instead of the first post?

ethics
08-01-2004, 10:07 PM
What happens if someone replies to another post inside the thread ... instead of the first post?


It shows which post inside the thread that a person replied to.

MickDoneDee
10-01-2004, 07:55 AM
It shows which post inside the thread that a person replied to.
Thankyou for this useful hack. I've installed it on vB 3.0.3 without a problem. I clicked *install*.

In your txt document at the bottom you said: "The following is an example of the code that you might add to the postbit or postbit_legacy and (optionally) to postbit_deleted, postbit_ignore, and postbit_ignore_global templates, which demonstrates the use of all variables:"

I've only added the template change to postbit. How can I view these other templates you mention - postbit_deleted, postbit_ignore, and postbit_ignore_global templates - to decide whether to add the same changes to them. I don't know what these other templates do.

Logikos
10-01-2004, 08:02 AM
You need to expand the Postbit Templates:

Postbit Templates [» «]
* postbit [Customize]
* postbit_attachment [Customize]
* postbit_attachmentimage [Customize]
* postbit_attachmentmoderated [Customize]
* postbit_attachmentthumbnail [Customize]
* postbit_deleted [Customize]
* postbit_ignore [Customize]
* postbit_ignore_global [Customize]
* postbit_ip [Customize]
* postbit_legacy [Customize]
* postbit_onlinestatus [Customize]
* postbit_reputation

MickDoneDee
10-01-2004, 08:08 AM
Sorry Live Wire, my question was not clear. How can I view those templates in the forum to see the effect of the changes? I know where to see the effect of postbit changes in the showthread display. Where can those other templates be viewed within the forum?

postbit_deleted Is that the postbit left after a post has been soft-deleted?

postbit_ignore Is that the postbit left from a poster on someone's Ignore List?

postbit_ignore_global Is that the postbit left from a poster on the Global Ignore List?

Logikos
10-01-2004, 08:16 AM
Sorry Live Wire, my question was not clear. How can I view those templates in the forum to see the effect of the changes? I know where to see the effect of postbit changes in the showthread display. Where can those other templates be viewed within the forum?

postbit_deleted Is that the postbit left after a post has been soft-deleted?

postbit_ignore Is that the postbit left from a poster on someone's Ignore List?

postbit_ignore_global Is that the postbit left from a poster on the Global Ignore List?
You are correct MDD :) Sorry didn't understand the question.

coloradok5
12-10-2004, 10:23 PM
OK, I'm not sure I understand the template part, where exactly does this need to be added in the postbit template, and is that all that is needed there?

<if condition="isset($post['re_postid'])">
Posted in reply to <if condition="$post['re_userid']"><a href="member.php?userid=$post[re_userid]">$post[re_username]</a><else />$post[re_username]</if>'s <if condition="$post['re_tittype']!=0">post <if condition="$post['re_tittype']==2">starting</if></if> <a href="$post[re_url]" <if condition="!$post['re_isonpage']">target="_blank"</if>><if condition="$post['re_tittype']==0">untitled post<else />"$post[re_title]"</if></a>
</if>


I get a Parse error: parse error, unexpected T_LIST on line 862? I could have easy messed something up. :o

WetWired
12-10-2004, 11:50 PM
Well, that looks right; maybe you accidentally pasted it in the middle of something. The where depends on preference and what you've already done to your postbit. In the case of my example image, you would search for
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if>
in your postbit_legacy template and put it before it, except to left align it, I modified it slightly, so paste
<if condition="isset($post['re_postid'])">
<span class="smallfont" style="float:left;">
Posted in reply to <if condition="$post['re_userid']"><a href="member.php?userid=$post[re_userid]">$post[re_username]</a><else />$post[re_username]</if>'s <if condition="$post['re_tittype']!=0">post <if condition="$post['re_tittype']==2">starting</if></if> <a href="$post[re_url]" <if condition="!$post['re_isonpage']">target="_blank"</if>><if condition="$post['re_tittype']==0">untitled post<else />"$post[re_title]"</if></a>
</span>
</if>
&nbsp;

before that part I said to search for. If you don't use legacy postbits, then I would suggest just putting the original code from the hack txt above

<!-- message -->


If you wanted to copy UBB threads exactly, BTW, the code would be
&nbsp;<if condition="isset($post['re_postid'])">
[Re: <a href="$post[re_url]" target="_blank">$post[re_username]</a>]
</if>

And you would put it to the right of the post title. Much simpler, but not as useful ultimately.

If you still have trouble with this, you can ICQ me.

coloradok5
12-11-2004, 05:14 AM
OK, I am getting somewhere now, I re-edited the showthread.php and it works fine, here is what I have so far on my test site:
http://coloradok5.com/vbtestforums/showthread.php?t=123105

I want it to act just like the forum below:
http://www.world-a-team.com/showthread.php?t=1720

I can't quite get the code right to remove the old Re: title setup, I know it involves this code I think:
----------------------------------------------------------------

<!-- icon and title -->

<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->

----------------------------------------------------------------

Any ideas?
Also, what is the best way to handle the reply button on every post like http://www.world-a-team.com has?

Thanks for the help.

WetWired
12-11-2004, 04:31 PM
I can't access your test forum to tell you how to remove whatever, but I can tell you that to place the reply information like world-a-team.com, you should find

<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>

and replace it with

<div class="normal" style="float:$stylevar[left];width:14em">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
<if condition="isset($post['re_postid'])">
<div class="normal">
Posted in reply to <strong><if condition="$post['re_userid']"><a href="member.php?userid=$post[re_userid]">$post[re_username]</a><else />$post[re_username]</if></strong>'s <if condition="$post['re_tittype']!=0">post <if condition="$post['re_tittype']==2">starting</if></if> <a href="$post[re_url]" <if condition="!$post['re_isonpage']">target="_blank"</if>><if condition="$post['re_tittype']==0">untitled post<else />"$post[re_title]"</if></a>
</div>
</if>


Apparently, for the non-quoting reply button, just copy the link for the quoting button, but add "&noquote=1" to the end of the url. For example,
http://mydomain.com/forum/newreply.php?do=newreply&p=478835
becomes
http://mydomain.com/forum/newreply.php?do=newreply&p=478835&noquote=1

MickDoneDee
12-11-2004, 07:03 PM
Any ideas?
Also, what is the best way to handle the reply button on every post like http://www.world-a-team.com has?

Thanks for the help.I'm the admin for www.world-a-team.com and I've added a few hacks including a quick edit, reply without quote and multiquote. So now the controls section looks like:
<!-- controls -->
<if condition="THIS_SCRIPT=='showthread' and !is_browser('opera') and $post['editlink'] and $bbuserinfo[userid]>0">
$quickedit
</if>
<if condition="$post['editlink']">
<a href="$post[editlink]"><img border='0' src='$stylevar[imgdir_button]/edit.gif' alt='$vbphrase[edit_delete_message]' /></a></if>
<if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img border='0' src='$stylevar[imgdir_button]/quickreply.gif' alt='$vbphrase[quick_reply_to_this_message]' /></a></if>

<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img border='0' src='$stylevar[imgdir_button]/forward.gif' alt='$vbphrase[forward_message]' /></a></if>

<if condition="$post['replylink']">
<a href="$post[replylink]&amp;noquote=1"><img border='0' src='$stylevar[imgdir_button]/reply_small.gif' alt='$vbphrase[reply]' /></a></if>


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


<img src="$stylevar[imgdir_button]/mq_img_off.gif" alt="$vbphrase[multi_quote]" border="0" width="13" height="13" name="mq_post_$post[postid]" id="mq_post_$post[postid]" onclick="multiquote($post[postid], this)" style="cursor: hand" />
<!-- / controls -->
In original postbit template the code for the forward, reply, quote and edit buttons is:
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<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>
<if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
<a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<!-- / controls -->

MickDoneDee
12-11-2004, 07:16 PM
I want it to act just like the forum below:
http://www.world-a-team.com/showthread.php?t=1720The code I use after <!-- / status icon and date --> in the postbit template is:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<if condition="isset($post['re_postid'])">
Posted in reply to <if condition="$post['re_userid']"><strong>$post[re_username]</strong><else />$post[re_username]</if>'s <if condition="$post['re_tittype']!=0">post <if condition="$post['re_tittype']==2">starting</if></if> <a href="$post[re_url]" <if condition="!$post['re_isonpage']">target="_blank"</if>><if condition="$post['re_tittype']==0">untitled post<else />"$post[re_title]"</if></a>
</if>

coloradok5
12-11-2004, 08:03 PM
The code I use after <!-- / status icon and date --> in the postbit template is:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<if condition="isset($post['re_postid'])">
Posted in reply to <if condition="$post['re_userid']"><strong>$post[re_username]</strong><else />$post[re_username]</if>'s <if condition="$post['re_tittype']!=0">post <if condition="$post['re_tittype']==2">starting</if></if> <a href="$post[re_url]" <if condition="!$post['re_isonpage']">target="_blank"</if>><if condition="$post['re_tittype']==0">untitled post<else />"$post[re_title]"</if></a>
</if>

Man, you guys are great, I will play with this some more tonight, I think I will skip the multi-edit for now and keep it as simple as I can and just have the reply with no quote. This is how VB should come out of the box. :surprised:
My server is up now, I didn't want to power up, always something.

coloradok5
12-12-2004, 12:29 AM
The code I use after <!-- / status icon and date --> in the postbit template is:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<if condition="isset($post['re_postid'])">
Posted in reply to <if condition="$post['re_userid']"><strong>$post[re_username]</strong><else />$post[re_username]</if>'s <if condition="$post['re_tittype']!=0">post <if condition="$post['re_tittype']==2">starting</if></if> <a href="$post[re_url]" <if condition="!$post['re_isonpage']">target="_blank"</if>><if condition="$post['re_tittype']==0">untitled post<else />"$post[re_title]"</if></a>
</if>

Mick
Thanks, I think I have it. Looking at your site, it looks like if someone replies to a post and does not change the title the original title does not get outputed, how ddi you do that?

WetWired
12-12-2004, 02:13 AM
Do you mean the option
Automatically Quote Post / Thread Title
in
Message posting and eding options?

coloradok5
12-12-2004, 02:23 AM
No, just like how he got rid of the default "re title name" if it didn't change:

Example
http://www.world-a-team.com/showthread.php?t=1720

Notice how on the first post the default title is displayed: "Current ICC OneDay Championship Table - 5th December 2004"
Then on the following posts they are not, yet on post #6 the user changed the title to: "Zimbabwe / Zimbabyou" and it now displays without the icon.

That is what I would like to do if I could. :up:

WetWired
12-12-2004, 10:26 PM
That's what the option I pointed out controls, if I understand correctly. Realize, however that this takes effect at post time, and will not be retroactively applied.

coloradok5
12-12-2004, 11:23 PM
That's what the option I pointed out controls, if I understand correctly. Realize, however that this takes effect at post time, and will not be retroactively applied.
The only thing I didn't include was the var part:
The following additional variables will be defined for posts that don't begin a thread:
$post[re_postid] --The ID of the parent post.
$post[re_title] --The title of the parent post.
$post[re_tittype] --Type of title: 1-actual title, 2-start of post, 0-no suitable content found
$post[re_userid] --ID of the user who posted the parent post, or 0 if a quest posted it.
$post[re_username] --Username of the user who posted the parent post
$post[re_url] --URL to parent post. If the post is on the same page, this will just move
the position on the page. If the post is not on the same page, this will

Do I need to put them somewhere in postbit?

WetWired
12-12-2004, 11:55 PM
They were already part of the example code to add to the postbit. I explained them all fully so that admins could set it up in their postbit however they liked (for instance exactly copying UBB threads).

coloradok5
12-13-2004, 12:06 AM
They were already part of the example code to add to the postbit. I explained them all fully so that admins could set it up in their postbit however they liked (for instance exactly copying UBB threads).
Thats what I thought, I will recheck everything.

coloradok5
12-13-2004, 01:21 AM
Hmmm, I redid everything and still the default title gets displayed even though it shouldn't, any ideas?

http://coloradok5.com/forums/showthread.php?t=123231

WetWired
12-13-2004, 03:07 AM
Hmmm, I redid everything and still the default title gets displayed even though it shouldn't, any ideas?

http://coloradok5.com/forums/showthread.php?t=123231
Again, that is because the "Automatically Quote Post" option is set to yes. After you turn it off, this will no longer happen on new posts. Since the Re: last title actually is a title for the post, the in reply to hack uses it, since its preference is to display the post title, then the start of the post if the post has no title. If you delete the title from one of these posts, you will see that replies to it appear with the beginning of the post. The problem is the enabled feature. If you want to try to retroactively remove the old re: titles, you can try backing up your DB then running the query
UPDATE post SET title="" WHERE title LIKE "Re: %"
This will remove all titles starting with Re: and allow the in reply hack to use the starting lines.

MickDoneDee
12-13-2004, 03:25 AM
Mick
Thanks, I think I have it. Looking at your site, it looks like if someone replies to a post and does not change the title the original title does not get outputed, how did you do that?It is an option in vB3:

Admin CP -> vBulletin Options -> Automatically Quote Post / Thread Title

If you enable this setting, the title field of new posts will be filled with the thread or parent post's title, prefixed by 'Re: '. The user can still edit it if they wish. If you disable this setting, the title box will be blank by default.

coloradok5
12-13-2004, 01:46 PM
Ahhh, OK cool. :cool: Is there anyway to also not have the icon and hor. rule display?

http://coloradok5.com/forums/showthread.php?p=1089917&posted=1#post1089917

WetWired
12-13-2004, 05:32 PM
Ahhh, OK cool. :cool: Is there anyway to also not have the icon and hor. rule display?

http://coloradok5.com/forums/showthread.php?p=1089917&posted=1#post1089917
They should not display without a title, unless you have a default icon set up.

coloradok5
12-13-2004, 07:18 PM
Kick ass, it works perfect now, I didn't know those settings were there. :rolleyes:
Thanks for all the help.

kall
01-20-2005, 08:58 AM
Excellent.

One bug tho: http://forums.nzboards.com/showpost.php?p=17250&postcount=3

Posted in reply to *ZenithalRavage*'s post starting "Oopsie :rolleyes:"

How do we go about stripping the bbcode?

mholtum
01-20-2005, 09:11 AM
This is exactly what I was looking for~!

zurih
01-20-2005, 09:42 AM
how can I do this for threaded/hybrid mode?

WetWired
01-20-2005, 11:54 AM
About the bbcode, I'll look into that, and also into adding this to showpost.php (oops :p). As far as threaded and hybrid mode, they already have this information (in the thread tree), so I didn't see the need for the hack to apply there, but I will look into the possibility of adding it there, too.

zurih
01-20-2005, 04:59 PM
It would be great to show this info in threaded/hybrid mode too :)
waiting for this :)
thanks!

4number8
01-22-2005, 04:53 PM
Thank you, Thank you, Thank you, been wanting this for awhile now, it's working great and no trouble to install at all

Clicking Installed now :)

Excellent work once again.

4number8
01-25-2005, 11:56 AM
I was wondering how to make it look like kall's on his site at nzboards.com, does anyone know who to make it look like that, with the bold and colors in it. I think it looks so cool that way, thanks alot to anyone that can help me apply that to my board.

4number8
01-26-2005, 02:13 AM
Anyone at all? Please I need this very badly and have fooled with it most of the night.I was wondering how to make it look like kall's on his site at nzboards.com, does anyone know who to make it look like that, with the bold and colors in it. I think it looks so cool that way, thanks alot to anyone that can help me apply that to my board.

kall
01-26-2005, 02:36 AM
Anyone at all? Please I need this very badly and have fooled with it most of the night.
Here's the relevant piece of code...


<if condition="isset($post['re_postid'])">
<div align="top"><em><strong>Posted in reply to <if condition="$post['re_userid']"><a href="member.php?userid=$post[re_userid]">$post[re_username]</a><else />$post[re_username]</if>'s <if condition="$post['re_tittype']!=0">post <if condition="$post['re_tittype']==2">starting</if></if> <a href="$post[re_url]" <if condition="!$post['re_isonpage']">target="_blank"</if>><if condition="$post['re_tittype']==0">untitled post<else />"$post[re_title]"</if></a></div>
</strong></em><br /></if>

4number8
01-26-2005, 02:38 AM
Posted in reply to nih (its a blue looking color)'s post starting from nin on this way is all bold)and this part "Interesting. We had no end of users..."is back to the same color as nih, its a blue color, and anyone create this for me please, I tried to pm him but with no reponce

Man you guys are great, for a better understanding, take a look at http://forums.nzboards.com/showthread.php?t=2369 for a better unerstanding of what i'm referring too....many thanks for the one who can come thru fo rme, always in you debt !

WetWired
01-26-2005, 04:26 PM
Um, blue is just his link color. Since those parts are links, they are blue.

zurih
02-10-2005, 08:35 AM
It would be great to show this info in threaded/hybrid mode too :)
waiting for this :)
thanks!


is there any change of implementing this?

thanks

kall
02-17-2005, 10:36 PM
Um, blue is just his link color. Since those parts are links, they are blue.
Still waiting on the stripping bbcode bit. :)

yoyoyoyo
02-18-2005, 08:10 PM
Well, that looks right; maybe you accidentally pasted it in the middle of something. The where depends on preference and what you've already done to your postbit. In the case of my example image, you would search for
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if>
in your postbit_legacy template and put it before it, except to left align it, I modified it slightly, so paste
<if condition="isset($post['re_postid'])">
<span class="smallfont" style="float:left;">
Posted in reply to <if condition="$post['re_userid']"><a href="member.php?userid=$post[re_userid]">$post[re_username]</a><else />$post[re_username]</if>'s <if condition="$post['re_tittype']!=0">post <if condition="$post['re_tittype']==2">starting</if></if> <a href="$post[re_url]" <if condition="!$post['re_isonpage']">target="_blank"</if>><if condition="$post['re_tittype']==0">untitled post<else />"$post[re_title]"</if></a>
</span>
</if>
&nbsp;

before that part I said to search for.
when using the above code the "IN REPLY TO" is on the right hand side, directly below the "report message" button, etc.. Can anyone help? I want the "in reply to" to appear on the left hand side, below the day/date.

WetWired
02-20-2005, 04:24 PM
when using the above code the "IN REPLY TO" is on the right hand side, directly below the "report message" button, etc.. Can anyone help? I want the "in reply to" to appear on the left hand side, below the day/date.
If that code doesn't work right, you must have a modified postbit. Post your postbit template (or postbit_legacy, whichever is enabled) and I will try to help you.

zurih
03-03-2005, 07:08 AM
WetWired, is it possible to implement this in hybrid\threaded mode?

thanks

Greebo
03-10-2005, 02:12 PM
WetWired, is it possible to implement this in hybrid\threaded mode?

thanks
Why would you need to? Especially in threaded mode where you can see the thread reply chain right there...

Greebo
03-10-2005, 02:39 PM
Great hack! Thanks!

Renada
06-30-2005, 02:16 AM
Hi,

Does anyone have a fix for Firefox? I have this working in IE but it doesn't show up in Firefox unless the user is logged out.

Thanks,
Renada

Logikos
06-30-2005, 02:46 AM
This should be working in firefox also. Works for me

Renada
06-30-2005, 09:05 PM
This should be working in firefox also. Works for me

Doesn't seem to matter what I do I can't get it to show up in Firefox. :(

WetWired
07-02-2005, 12:50 AM
Hi,

Does anyone have a fix for Firefox? I have this working in IE but it doesn't show up in Firefox unless the user is logged out.

Thanks,
Renada
You're saying that the reply info only shows up for guests in certain browsers? Are you using linear mode consistantly? In this version, the info only shows on linear mode, and not hybrid or threaded mode (though this will not be the case when I release the plugin version for 3.5)

Renada
07-02-2005, 05:07 PM
You're saying that the reply info only shows up for guests in certain browsers? Are you using linear mode consistantly? In this version, the info only shows on linear mode, and not hybrid or threaded mode (though this will not be the case when I release the plugin version for 3.5)
WetWired,

Thanks for your reply. The problem I was having was it would show up to guests but not to logged in users. I totally removed all the changes and redid it and it's working perfectly. :)

Thanks for doing this, its really really useful - clicks install.

Regards,
Renada

BBH
10-29-2006, 08:32 PM
Hi,

I'm new to these boards and I've been running a small private board that was formerly on CompuServe. My users are screeming for this information.

I'm not really sure about the term "hack." Sounds like I'd be required to open up a PHP file and insert code. I'll have a look at the files, but my real question is two fold:

1) Has this been tested in 3.6.2?

2) Does a hack need to be "re-hacked" every time vBull updates the application?

I'm very new to this, so please be easy on my. I'm reading "PHP for Dummies;" but at the moment I'm dummer than Bush :paranoid:.

WetWired
10-29-2006, 10:12 PM
As indicated in the opening post, there is a newer version at
https://vborg.vbsupport.ru/showthread.php?t=93247
which is designed for 3.5 . That version does not require code insertion.

Noone has verified that that version works with 3.6, though it may; as simple as it is to add and remove the plugin version, it can't hurt to try (please post your results in that thread, either way).

BBH
10-30-2006, 01:48 AM
As indicated in the opening post, there is a newer version at
https://vborg.vbsupport.ru/showthread.php?t=93247
which is designed for 3.5 . That version does not require code insertion.

Noone has verified that that version works with 3.6, though it may; as simple as it is to add and remove the plugin version, it can't hurt to try (please post your results in that thread, either way).

Hi,

I installed (I think) the modification is discribed in the 3.5 version. There was no change to the display at all. I am new, and I'm not sure at all what "style" (postbit-legacy or just postbit). This change would be fantastic; but I'm not getting it to work.

Bern

WetWired
10-30-2006, 04:00 AM
While there are no manual code changes, you have to change the templates for the changes to become apparent.

You can edit the templates in "Styles & Templates"|"Style Manager". Click the <<>> button to open the list of templates. Double click "Postbit templates >>" from the list to see the postbit templates. The changes are pretty simple. You just need to search for the code snippets in the style and place the stuff above and below. The only complicated thing is that if you have horizontal postbits (the default), you need to edit the "POSTBIT" template using the stuff in the first section, while if you have vertical postbits (like here), you need to edit the "postbit_legacy" template using the stuff in the second section.

BBH
10-30-2006, 11:32 AM
I pasted into Postbit the code for "horizontal" though just putting "Posted" above the if clause seemed a bit odd. I tried it with and without the word "Posted". With no joy. Today, I'll try it with BOTH styles changed, and get back to you with the result. I'd love to confirm your hack works in 3.6 and my users are going to kill me if I don't get something done soon. There is talk of going back to CompuServe.

If my next try fails, I will copy what I pasted into the styles to you and we'll see what I'm doing wrong.

Thanks for your help.

While there are no manual code changes, you have to change the templates for the changes to become apparent.

You can edit the templates in "Styles & Templates"|"Style Manager". Click the <<>> button to open the list of templates. Double click "Postbit templates >>" from the list to see the postbit templates. The changes are pretty simple. You just need to search for the code snippets in the style and place the stuff above and below. The only complicated thing is that if you have horizontal postbits (the default), you need to edit the "POSTBIT" template using the stuff in the first section, while if you have vertical postbits (like here), you need to edit the "postbit_legacy" template using the stuff in the second section.

BBH
10-30-2006, 12:01 PM
I'll be damned. We're on legacy and that code works okay.

I'll let the members +++++ about how this is not good enough, and I'll get back to ya with any 3.6 hicups I might find.

Thank you VERY much for writing this hack.

Bern