View Full Version : Template Edit-Adding "misc.php?do=whoposted" to the replies bar
MTGDarkness
03-20-2009, 10:01 PM
See: http://forums.mtgsalvation.com/forumdisplay.php?f=32
If you click on a number on replies, you get the users who posted in that thread. I get the feeling it isn't that hard to do, and I noticed elsewhere something like this:
<a href="#" onclick="return who($thread[threadid])"></a>
But I'm not quite sure if that's what I'm looking for or how to implement it.
Lynne
03-20-2009, 10:21 PM
Getting a list of the users who posted in the thread is also on the forumdisplay page when you click on the number of replies to the thread. Steal the code from that threadbit template (although you probably have to use $thread instead of $forum).
MTGDarkness
03-20-2009, 10:26 PM
I don't see it anywhere on the forumdisplay template. Where would I need to insert it?
Lynne
03-20-2009, 10:53 PM
Oh wait, I reread your post.... that is default vbulletin. Take a look at a default threadbit template - it's right in there where the replies go.
MTGDarkness
03-20-2009, 11:34 PM
Yeah, and what doesn't make sense is that the link isn't showing up, even though the part of my threadbit template that cares looks like this:
<if condition="$show['notificationtype']">
<td class="alt1"><div class="smallfont">
<label for="sub$subscribethread[$threadid]">$thread[notification]</label>
</div></td>
<td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>
<else />
<td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="misc.php?do=whoposted&t=$thread[threadid]" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>
<td class="alt2" align="center">$thread[views]</td>
Lynne
03-21-2009, 04:11 PM
You said the link isn't showing up. So, what is showing up instead?
MTGDarkness
03-21-2009, 04:43 PM
Just the number of posts in the thread. See for yourself; http://forums.mtgdarkness.com/test-area-f65/
Lynne
03-21-2009, 04:57 PM
Are you sure you are looking at the correct template for that style? Looking at the code you posted above, it is clear that you either get a "-" or a linked number of posts.
MTGDarkness
03-21-2009, 05:54 PM
:(
It's supposed to be in threadbit, correct?
Lynne
03-21-2009, 06:08 PM
Well, usually, yes. Do this to find out what template is being used - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Also, make sure you are looking at the correct Style.
MTGDarkness
03-21-2009, 06:23 PM
I checked it in the vBulletin default... Fail. I honestly don't know why it isn't working. :(
Lynne
03-22-2009, 12:21 AM
Try disabling your mods and see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php
define('DISABLE_HOOKS', true);
MTGDarkness
03-22-2009, 12:49 AM
I hate it when people tell me to do this. Turning off the plugins temporarily is a huge hassle. On the other hand, that does, in fact, fix the problem. How can I figure out which plugin it is without trying each one?
RLShare
03-22-2009, 01:27 AM
You have to try them one by one, thats the only process to figure out which one is causing the problem
MTGDarkness
03-22-2009, 01:33 AM
^that should be changed in vB4.
Lynne
03-22-2009, 03:17 AM
How should it be changed? I mean, how is vb supposed to know which of your modifications is causing a problem on your board? There isn't any other way to do it except by a human going in and manually debugging it.
RLShare
03-22-2009, 04:32 AM
Yeah thats completely unrealistic. There is no way VB could do that unless Jelsoft decides to build one of the most complex AI systems ever created into VB so that VB can understand exactly what YOU the admin do not want to be altered by the modifications(which are meant to alter VB) that YOU installed and then search through and figure out what is causing that exact change.
Its not Magic... There will be a need for human debugging long into the future, saying otherwise is illogical.
Dismounted
03-22-2009, 05:20 AM
We need mind-reading scripts... :D
MTGDarkness
03-22-2009, 08:47 AM
Point taken....
* MTGDarkness gets to work.
--------------- Added 1237715649 at 1237715649 ---------------
Or wait, idea. Debug mode shows you where in a page hooks are used. Is that feasible?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.