Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2011, 08:33 PM
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How I can add a new column

Well, I explain me better.

In the forum, I want to delete the column "Threads & Posts" and I want to change it for a new column, I want to add it the moderators.
Until there all fine, I did add in this place the moderators, but, up from this, I want to add the word "Moderators" like "Main Category" and "Las Post"

In this pictures I explain me better.

This is default form


And this is the form like I want to have it


I do not know if someone could help me or tell me what I have to do .... please, I've been playing a lot of fun with codes and do not get it yet.
Attached Images
File Type: jpg lol1.jpg (16.7 KB, 0 views)
File Type: jpg lol2.jpg (16.9 KB, 0 views)
Reply With Quote
  #2  
Old 04-26-2011, 06:18 PM
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's really, nobody know how to do this???
Really, I need it, I want to know how I can put the word Moderators between "Main Category" and "Last Post"

Please, someone help me
Reply With Quote
  #3  
Old 04-27-2011, 02:09 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A template edit conditional with can_moderate() would be the simplest
Reply With Quote
  #4  
Old 04-27-2011, 02:38 AM
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks men, but, exactly which is it the code that I have to paste and where??
Excuse me, but I really don't have idea like I have to do :S XD I'm noob in this things a template modifications :P

I have a idea like this code be in forumhome_forumbit_level2_post but I don't know which is the code like I have to put there :S XD

thanks for all men
Reply With Quote
  #5  
Old 04-27-2011, 05:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you look in the template "forumhome_forumbit_level2_post", these are the lines you will be interested in.
Moderators code:
HTML Code:
<vb:if condition="$vboptions['showmoderatorcolumn'] AND $forum['moderators']">
                        <div class="moderators">
                            <h4>{vb:rawphrase moderators}:</h4>
                            <ol class="commalist">
                                {vb:raw forum.moderators}
                            </ol>
                        </div>
Threads/Posts:
HTML Code:
        <h4 class="nocss_label">{vb:rawphrase forum_statistics}:</h4>
        <ul class="forumstats td">
            <li>{vb:rawphrase threads}: {vb:raw forum.threadcount}</li>
            <li>{vb:rawphrase posts}: {vb:raw forum.replycount}</li>
        </ul>
You'll have to modify a couple of templates. To find the templates to modify, 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. (Sometimes the template is the one mentioned at the very top of the page source.)
Reply With Quote
  #6  
Old 04-27-2011, 07:25 PM
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where exactly I have to do the new template??
In Admicp > Styles & Templates > << >> > Add new template??

Or, Where exactly I have to do this and what I have to put in this new template??

excuse me, but I really don't understand so well the english :P XD but I try all I can XD

Thanks for all men
Reply With Quote
  #7  
Old 04-28-2011, 03:32 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't say anything about creating a new template. I told you what lines you would be interested in in the template you mentioned. I first pointed about the code you would need for the moderators. Then I pointed out the code you wanted to remove of the threads/posts. So, most likely you want to replace one with the other. I don't know what the CSS will do to it after you do that though, so you will have to adjust it as needed - probably just use the same class.
Reply With Quote
  #8  
Old 04-28-2011, 03:50 AM
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uhmm... I misunderstood XD excuse me jejejeje well... I going to continue do this... because I already changed the moderators column but, I can't already add in the tab the word "Moderators" XD I'll continue trying

thank you very much to both
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 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.04238 seconds
  • Memory Usage 2,250KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete