MyBB Hacks

Full Version: Computer Specs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(01-06-2014 03:00 AM)Altered Wrote: [ -> ]I being a rookie was not sure if it could somehow take the original post top display portion to tie in to the creator of that posters profile.
It's technically possible, yes, I just wouldn't recommend it.
As for how to do it, it's not particularly easy anyway, assuming that you want it displayed in the postbit.
As I have already said I am a rookie but was trying to add a SSD section to the specs that was to include the size in GB and the Read and Write speeds of the drive. I have looked at this so long I think I am staring at the problem but don't see it. Can someone show me what I am doing wrong?
This is what it looks like. Here is a link to the forum it is used in.
I wanted it to say SSD under Hard Drives and out beside each of the two blank fields is suppose to say Read and Write
[Image: 5041b2c3-a623-4898-ba51-fdd22923ba85_zpsad289d82.png]

Thank you for your time.
Umm, create thread fields for those and put HTML in for the template?
I created thread fields
[attachment=985]
Here are the edits I did
compspecs_editpost_first

Code:
<tr>
			<td class="trow2" width="20%">
				<strong>{$lang->compspecs_hd}</strong>
			</td>
			<td class="trow2">
				{$tfinput['compspecs_hd']} {$lang->compspecs_gb} <em class="smalltext">{$lang->compspecs_tbgb}</em> {$tfinput['compspecs_hdrpm']} {$lang->compspecs_rpm}
			</td>
		</tr>
                <tr>
			<td class="trow2" width="20%">
				<strong>{$lang->compspecs_ssd}</strong>
			</td>
			<td class="trow2">
				{$tfinput['compspecs_ssd']} {$lang->compspecs_gb} <em class="smalltext">{$lang->compspecs_tbgb}</em> {$tfinput['compspecs_ssdmbsr']} {$lang->compspecs_ssdmbsr}{$tfinput['compspecs_ssdmbsw']} {$lang->compspecs_ssdmbsw}
			</td>
		</tr>


compspecs_forumdisplay_thread

Code:
<div>
				{$lang->compspecs_proc} {$GLOBALS['threadfields']['compspecs_proc']} {$GLOBALS['threadfields']['compspecs_procseries']} {$GLOBALS['threadfields']['compspecs_procfreq']} {$lang->compspecs_procfreqghz}<br />
				{$lang->compspecs_memory} {$GLOBALS['threadfields']['compspecs_memsize']} {$lang->compspecs_gb}<br />
				{$lang->compspecs_hd} {$GLOBALS['threadfields']['compspecs_hd']}<br />
				{$lang->compspecs_ssd} {$GLOBALS['threadfields']['compspecs_ssd']}
			</div>


compspecs_newthread

Code:
<tr>
			<td class="trow2" width="20%">
				<strong>{$lang->compspecs_hd}</strong>
			</td>
			<td class="trow2">
				{$tfinput['compspecs_hd']} {$lang->compspecs_gb} <em class="smalltext">{$lang->compspecs_tbgb}</em> {$tfinput['compspecs_hdrpm']} {$lang->compspecs_rpm}
			</td>
		</tr>
                <tr>
			<td class="trow2" width="20%">
				<strong>{$lang->compspecs_ssd}</strong>
			</td>
			<td class="trow2">
				{$tfinput['compspecs_ssd']} {$lang->compspecs_gb} <em class="smalltext">{$lang->compspecs_tbgb}</em> {$tfinput['compspecs_ssdmbsr']} {$lang->compspecs_ssdmbsr}{$tfinput['compspecs_ssdmbsw']} {$lang->compspecs_ssdmbsw}
			</td>
		</tr>


compspecs_postbit_first

Code:
<tr>
							<td class="trow2">{$lang->compspecs_hd}</td>
							<td class="trow2">{$GLOBALS['threadfields']['compspecs_hd']} {$GLOBALS['threadfields']['compspecs_hdrpm']} {$lang->compspecs_rpm}</td>
						</tr>
                                                <tr>
							<td class="trow1">{$lang->compspecs_ssd}</td>
							<td class="trow1">{$GLOBALS['threadfields']['compspecs_ssd']} {$GLOBALS['threadfields']['compspecs_ssdmbsr']} {$lang->compspecs_ssdmbsr}{$GLOBALS['threadfields']['compspecs_ssdmbsw']} {$lang->compspecs_ssdmbsw}</td>
						</tr>


compspecs_postbit_first_classic

Code:
<tr>
						<td class="trow2">{$lang->compspecs_hd}</td>
						<td class="trow2">{$GLOBALS['threadfields']['compspecs_hd']} {$GLOBALS['threadfields']['compspecs_hdrpm']} {$lang->compspecs_rpm} </td>
					</tr>
                                        <tr>
						<td class="trow1">{$lang->compspecs_ssd}</td>
						<td class="trow1">{$GLOBALS['threadfields']['compspecs_ssd']} {$GLOBALS['threadfields']['compspecs_ssdmbsr']} {$lang->compspecs_ssdmbsr} </td>
					</tr>


Any ideas what I screwed up?

Well have you defined {$lang->compspecs_ssdmbsr} anywhere?  My guess is not, so you shouldn't be trying to use a language variable that doesn't exist.  Either define it or just get rid of it and put your text into the template there.
Okay on the standard theme of mybb things are working but I have a custom theme now for my business company and guess what, it is showing the post with the image, but when you click the page there is no info, how can I solve this? The Warhood Official Forums
Pages: 1 2
Reference URL's