Log in

View Full Version : project tools variable


FreshFroot
08-18-2007, 06:57 PM
where would I be able to edit the type_counts variable? I looked in the phrase system, but didn't see it anywhere.

basically I'm customizing and used the $type_counts variable, however, I'm trying to center the whole thing eg. task,bug,features but it seems only those words are centered and the actual number's aren't.

example:



Task 0
Bug 0
Features 0
doesn't exactly look like it, but basically the letters are centred, however the numbers are ALL the way on the right. It seems like I can't center the numbers via template edit.

tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]">
<div>
<if condition="$project['forumtitle']">
<a href="project.php?$session[sessionurl]projectid=$project[projectid]"><strong>$project[forumtitle]</strong></a>
<else />
<span class="shade">$vbphrase[project]</span> <a href="project.php?$session[sessionurl]projectid=$project[projectid]"><strong>$project[title]</strong></a>
</if>
</div>
<if condition="$project['summary']"><div class="smallfont">&nbsp; $project[summary]</div></if>
</td>
<td class="alt2 smallfont" align="$stylevar[center]" nowrap="nowrap">
<div align="$stylevar[center]">$type_counts
</strong></a></div>
<if condition="$project['lastactivitydate']">
<div>$project[lastactivitydate] <span class="time">$project[lastactivitytime]</span></div>
<else />
<div align="center">$vbphrase[n_a]</div>
</if>
</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">&nbsp;</div></td>
</if>
</tr>

FreshFroot
08-20-2007, 08:21 PM
anyone use this yet?

Opserty
08-20-2007, 08:42 PM
Look at the source code :p


eval('$type_counts .= "' . fetch_template('pt_projectbit_typecount') . '";');
Look for the pt_projectbit_typecount template and try editing that.

It was a pain in the neck trying to fix it up for our custom forums its not as easy as for standard vBulletin so you have to try maybe more often then you are used to, to find something that works.

FreshFroot
08-24-2007, 03:30 AM
Look at the source code :p


eval('$type_counts .= "' . fetch_template('pt_projectbit_typecount') . '";');
Look for the pt_projectbit_typecount template and try editing that.

It was a pain in the neck trying to fix it up for our custom forums its not as easy as for standard vBulletin so you have to try maybe more often then you are used to, to find something that works.
hey thanks a lot!

yeah I didn't know if it would be in the file at all. I'll look into it and see what I do.

Thanks again Opserty, appreciate it :)