vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to split Views & replies on VB4 Gold PL1 (https://vborg.vbsupport.ru/showthread.php?t=232769)

Nobi 01-11-2010 04:51 AM

How to split Views & replies on VB4 Gold PL1
 
before it was two columns on VB3
and now it's one column only,
me and my forum users doesn't like it ,
so where to change it !
which template to edit !
any one can design hack or mod to do it !

Spiritvn 01-11-2010 07:53 AM

Can u give link or screenshot?

Nobi 01-11-2010 11:57 AM

On the below pic you will find two columns
http://sudanesehost.com/pic/uploads/VB3.JPG

on the below one is the new VB4 and it's one only
http://sudanesehost.com/pic/uploads/VB4.JPG

_
Thanks Man.

Lynne 01-11-2010 02:12 PM

To find the template to edit, do this - 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.

However, you are going to have to have a little bit of css knowledge to modify it as it is no longer just a table.

Spiritvn 01-12-2010 02:38 AM

Ok here you go:

Edit the templates Threadbit, find: <!-- threadstats -->

The code below control the replies, views

Code:

<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">
                        <li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;" class="understate">{vb:raw thread.replycount}</a></li>
                        <li>{vb:rawphrase views}: {vb:raw thread.views}</li>

                        <li class="hidden">{vb:rawphrase rating}{vb:raw thread.rating} / 5</li>
                </ul>

If you want to seperate it into 2 columns, do it by html & CSS. Try ur own way.

Have fun

Nobi 01-14-2010 09:21 AM

Dear Lynne,
Thanks for the explanation, it's a great new information for me.

Dear Spiritvn,
i tried ti make it bu i fall, if you get time please change the code and keep it i will try and let you know as well.


All times are GMT. The time now is 02:36 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.01038 seconds
  • Memory Usage 1,719KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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