PDA

View Full Version : How I can add a new column


nacaruncr
04-25-2011, 08:33 PM
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
https://vborg.vbsupport.ru/attachment.php?attachmentid=128545&stc=1&d=1303766934

And this is the form like I want to have it
https://vborg.vbsupport.ru/attachment.php?attachmentid=128546&stc=1&d=1303766934

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.

nacaruncr
04-26-2011, 06:18 PM
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 :(

AusPhotography
04-27-2011, 02:09 AM
A template edit conditional with can_moderate() would be the simplest

nacaruncr
04-27-2011, 02:38 AM
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 :)

Lynne
04-27-2011, 05:03 PM
If you look in the template "forumhome_forumbit_level2_post", these are the lines you will be interested in.
Moderators 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:
<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.)

nacaruncr
04-27-2011, 07:25 PM
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 ;)

Lynne
04-28-2011, 03:32 AM
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.

nacaruncr
04-28-2011, 03:50 AM
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 :D

thank you very much to both :D ;)