vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Template Edit-Adding "misc.php?do=whoposted" to the replies bar (https://vborg.vbsupport.ru/showthread.php?t=208950)

MTGDarkness 03-20-2009 10:01 PM

Template Edit-Adding "misc.php?do=whoposted" to the replies bar
 
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:
HTML Code:

<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:
PHP Code:

    <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&amp;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.


All times are GMT. The time now is 02:27 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.01105 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_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