vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can anyone help me with this? Moving 'thread starter' (https://vborg.vbsupport.ru/showthread.php?t=272797)

shibby2 10-25-2011 05:24 PM

Can anyone help me with this? Moving 'thread starter'
 
Hey guys, I was wondering how hard it would be to move where the thread creator is listed on view_forum. Right now, obviously, the authors name is lsited under the topic title.

Would it be possible to move it to it's own column (before last post, views, etc)?

I never liked it being under the thread title.

Can anyone help me with this?

Thanks soooo much in advance if you can! :)

Emeralda 10-25-2011 11:07 PM

Possible, but feasible. You'd need to first find the table header entries with "thread_starter" in them, remove that phrase and add it to a new <td> that you created where you'd want it. Eg. remove the starter phrase and paste it into a new column you created

Code:

        <td class="thead" width="100%">
                <if condition="$show['threadratings']"><span style="float:$stylevar[right]">$vbphrase[rating]</span></if>
                $vbphrase[thread] / $vbphrase[thread_starter]
        </td>

Code:

        <td class="thead" width="100%">
                <if condition="$show['threadratings']"><span style="float:$stylevar[right]">$vbphrase[rating]</span></if>
                $vbphrase[thread]
        </td>
        <td class="thead" width="120">
                $vbphrase[thread_starter]
        </td>

It would be necessary to make those changes in at least FORUMDISPLAY and search_results templates so they'd make sense. Here's a full list of templates that use it in case you'd like to avoid glitches: http://prntscr.com/3oj6t. After that go to threadbit template and find:

Code:

                        <if condition="$show['guestuser']">
                                $thread[postusername]
                        <else />
                                <span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
                        </if>

And remove the whole code. Now create a new <td> that would match the ones you created before and paste the code into your new table column. Remember it should be similarly done to adjacent columns, include width, etc.


All times are GMT. The time now is 05:06 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.02463 seconds
  • Memory Usage 1,715KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete