this is subsilver2 based. all the stylesheet info is in stylesheet.css. and yes, you can add an image to the headerMr_makaveli wrote:Is this prosilver based? where is the colour.css file - can i add a big overall header image like phpbb?
therp wrote:Yes. I have the following Mods:
Accept terms
Advanced Meta Tags MOD
Birthday on registration
NV advanced last topic titles
Topic in "Who is Online"
You should alter top_header.png in stylesheet.css with the dynamically generated image.Crocodile442 wrote:I am using a different background image in the header but would like to alternate the images. I have read the instructions in the knowledge base but that refers to a header image, not a background image.
Is it possible, and if so how, to alternate the images.
Code: Select all
#top_logo{
border-width: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
background: url('./images/top_header.png') repeat;
height: 150px;
}
Code: Select all
<?php
$img_array = array('bkg_01.jpg', 'bkg_02.jpg', 'bkg_03.jpg', 'bkg_04.jpg', 'bkg_05.jpg', 'bkg_06.jpg', 'bkg_07.jpg', 'bkg_08.jpg', 'bkg_09.jpg', 'bkg_10.jpg', 'bkg_11.jpg', 'bkg_12.jpg', 'bkg_13.jpg', 'bkg_14.jpg', 'bkg_15.jpg');
$img_rnd = rand(0, sizeof($img_array) - 1);
header('Content-type: image/jpg');
header('Content-Disposition: filename=' . $img_array[$img_rnd]);
readfile($img_array[$img_rnd]);
?>
this style is subsilver2 based.MegaMav wrote:Awesome job on this theme Mighty Gorgon.
I have a question, is it possible to add "post numbers" on your theme?
I found other threads about prosilver mods, but dont know how to do it with yours.
Thanks in advance,
-Eric
Code: Select all
In-line Find
Tip: This is a partial match of a line for in-line operations.
<a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->
In-line Add before
<!-- IF S_ENABLE_POST_NUM -->{L_POST_NUM}<a href="{postrow.U_MINI_POST}"<!-- IF S_ENABLE_POST_NUM_JS --> onclick="prompt('{L_POST_DIRECT_LINK}',this.href); return false;"<!-- ENDIF -->><strong>{L_POST_NUM_SYMBOL}{postrow.POST_NUM}</strong></a> {postrow.MINI_POST_IMG}<!-- ELSE -->
In-line Add after
<!-- ENDIF -->
<< Hide
Code: Select all
<td class="gensmall" width="100%"><div style="float:{S_CONTENT_FLOW_BEGIN};"> <b>{L_POST_SUBJECT}:</b> {postrow.POST_SUBJECT}</div><div style="float:{S_CONTENT_FLOW_END};"><!-- IF S_IS_BOT --> {postrow.MINI_POST_IMG} <!-- ELSE --> <a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a> <!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE} </div></td>
Code: Select all
<!-- IF S_ENABLE_POST_NUM -->{L_POST_NUM}<a href="{postrow.U_MINI_POST}"<!-- IF S_ENABLE_POST_NUM_JS --> onclick="prompt('{L_POST_DIRECT_LINK}',this.href); return false;"<!-- ENDIF -->><strong>{L_POST_NUM_SYMBOL}{postrow.POST_NUM}</strong></a> {postrow.MINI_POST_IMG}<!-- ELSE -->
<td class="gensmall" width="100%"><div style="float:{S_CONTENT_FLOW_BEGIN};"> <b>{L_POST_SUBJECT}:</b> {postrow.POST_SUBJECT}</div><div style="float:{S_CONTENT_FLOW_END};"><!-- IF S_IS_BOT --> {postrow.MINI_POST_IMG} <!-- ELSE --> <a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a> <!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE} </div></td>
<!-- ENDIF -->
your finished line should end up looking like thisMegaMav wrote:Great, I think I may have found the line I need to modify in viewtopic_body.html
The mod states:
In the template I found:Code: Select all
In-line Find Tip: This is a partial match of a line for in-line operations. <a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF --> In-line Add before <!-- IF S_ENABLE_POST_NUM -->{L_POST_NUM}<a href="{postrow.U_MINI_POST}"<!-- IF S_ENABLE_POST_NUM_JS --> onclick="prompt('{L_POST_DIRECT_LINK}',this.href); return false;"<!-- ENDIF -->><strong>{L_POST_NUM_SYMBOL}{postrow.POST_NUM}</strong></a> {postrow.MINI_POST_IMG}<!-- ELSE --> In-line Add after <!-- ENDIF --> << Hide
So.. it should end up like this...Code: Select all
<td class="gensmall" width="100%"><div style="float:{S_CONTENT_FLOW_BEGIN};"> <b>{L_POST_SUBJECT}:</b> {postrow.POST_SUBJECT}</div><div style="float:{S_CONTENT_FLOW_END};"><!-- IF S_IS_BOT --> {postrow.MINI_POST_IMG} <!-- ELSE --> <a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a> <!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE} </div></td>
Does this look right to you for the viewtopic_body.html template change?Code: Select all
<!-- IF S_ENABLE_POST_NUM -->{L_POST_NUM}<a href="{postrow.U_MINI_POST}"<!-- IF S_ENABLE_POST_NUM_JS --> onclick="prompt('{L_POST_DIRECT_LINK}',this.href); return false;"<!-- ENDIF -->><strong>{L_POST_NUM_SYMBOL}{postrow.POST_NUM}</strong></a> {postrow.MINI_POST_IMG}<!-- ELSE --> <td class="gensmall" width="100%"><div style="float:{S_CONTENT_FLOW_BEGIN};"> <b>{L_POST_SUBJECT}:</b> {postrow.POST_SUBJECT}</div><div style="float:{S_CONTENT_FLOW_END};"><!-- IF S_IS_BOT --> {postrow.MINI_POST_IMG} <!-- ELSE --> <a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a> <!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE} </div></td> <!-- ENDIF -->
I'll take a backup of the file anyway, but wanted to confirm, in case anyone else is looking to do this mod:
http://www.phpbb.com/community/viewtopi ... &t=1131355
Thanks.
Code: Select all
<td class="gensmall" width="100%"><div style="float:{S_CONTENT_FLOW_BEGIN};"> <b>{L_POST_SUBJECT}:</b> {postrow.POST_SUBJECT}</div><div style="float:{S_CONTENT_FLOW_END};"><!-- IF S_IS_BOT --> {postrow.MINI_POST_IMG} <!-- ELSE --> <!-- IF S_ENABLE_POST_NUM -->{L_POST_NUM}<a href="{postrow.U_MINI_POST}"<!-- IF S_ENABLE_POST_NUM_JS --> onclick="prompt('{L_POST_DIRECT_LINK}',this.href); return false;"<!-- ENDIF -->><strong>{L_POST_NUM_SYMBOL}{postrow.POST_NUM}</strong></a> {postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a> <!-- ENDIF --><!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE} </div></td>