3 Themes - Black bg, white bg and greys [message #36821] |
Thu, 12 April 2007 15:06 |
magli
Messages: 15 Registered: February 2007 Location: Meran, Italy
Karma: 0
|
Junior Member |
|
|
Hello.
First of all, I edited the template on all three of these styles, so that when a user posts a message, his user-information (avator, online status, posts, etc) appears *to the left* of his post, instead of ontop of his post, as you can see here:
Other than that, I removed some of the information shown on the screen for some of the templates - like user location, message-title, etc.
My favorite one is the black one:
http://www.suedbalkon.eu/pics/black_screenshot.jpg
Zipped Template:
http://www.suedbalkon.eu/knaetsch/black_style.zip
You can see it live here:
www.suedbalkon.eu/knaetsch/
The buttons are not quite fitting - it needs some darker buttons.. anyone?
Here is the grey one:
http://www.suedbalkon.eu/pics/grey_screenshot.jpg
Zipped Template:
http://www.suedbalkon.eu/knaetsch/grey_style.zip
And here is the white one:
http://www.suedbalkon.eu/pics/white_screenshot.jpg
Zipped Template:
http://www.suedbalkon.eu/knaetsch/white_style.zip
I still need to fix the border on that logo in the top-right. (I just made this theme today).
Please let me know if you do any work on these templates, or have any suggestions -
Cheers.
|
|
|
|
|
|
|
|
Re: 3 Themes - Black bg, white bg and greys [message #41098 is a reply to message #41097] |
Wed, 21 May 2008 16:24 |
magli
Messages: 15 Registered: February 2007 Location: Meran, Italy
Karma: 0
|
Junior Member |
|
|
Hey Witch,
I have not worked on my forum in at least a year, so I cannot fully remember how things work. I had a quick look around, and I think what you are looking for is in the file:
FORUM_FILES/thm/THEME_NAME/tmpl/drawmsg.tmpl
The section which you are interested in is the MAIN_SECTION.
The contents will look something like this:
{MAIN_SECTION: message_entry Message Entry (a single message)}
<tr><td class="MsgSpacer"><table cellspacing=0 cellpadding=0 class="MsgTable">
<tr>
<td class="MsgR1 vt al MsgSubText"><a name="msg_num_{VAR: m_num}"></a><a name="msg_{VAR: obj->id}"></a>{IF: $obj->icon && !$hide_controls}<img src="images/message_icons/{VAR: obj->icon}" alt="{VAR: obj->icon}" /> {ENDIFI}{VAR: obj->subject}{TEMPLATE-DATA: rpl}</td>
<td class="MsgR1 vt ar"><span class="DateText">{TEMPLATE: dmsg_post_date}</span> {TEMPLATE-DATA: prev_message}{TEMPLATE-DATA: next_message}</td>
</tr>
<tr class="MsgR2"><td class="MsgR2" colspan=2><table cellspacing="0" cellpadding="0" class="ContentTable">
<tr class="MsgR2">
{TEMPLATE-DATA: avatar}
<td class="msgud">{TEMPLATE-DATA: online_indicator}{TEMPLATE-DATA: user_link}{IF: !$hide_controls}{IF: $obj->flag_cc && $GLOBALS['FUD_OPT_3'] & 524288} <img src="images/flags/{VAR: obj->flag_cc}.png" border="0" width="16" height="11" title="{VAR: obj->flag_country}" />{ENDIFI}{IF: $obj->user_id}<br /><b>{MSG: posts_c}</b> {VAR: obj->posted_msg_count}<br /><b>{MSG: registered}</b> {TEMPLATE: dmsg_join_date} {TEMPLATE-DATA: location}{ENDIFI}{ENDIFI}</td>
<td class="msgud">{TEMPLATE-DATA: dmsg_tags}</td>
<td class="msgot">{TEMPLATE-DATA: dmsg_bd_il}{TEMPLATE-DATA: dmsg_im_row}{IF: !$hide_controls}{IF: ($obj->host_name && $o1 & 268435456)}<b>{MSG: from}</b> {VAR: obj->host_name}<br />{ENDIFI}{IF: ($b & 1048576 || $usr->md || $o1 & 134217728)}<b>{MSG: dmsg_ip}</b> <a href="{TEMPLATE: dmsg_ip_address_url}" target="_blank">{VAR: obj->ip_addr}</a>{ENDIFI}{ENDIFI}</td>
</tr></table></td>
</tr>
<tr><td colspan="2" class="MsgR3">
{TEMPLATE-DATA: msg_body}{TEMPLATE-DATA: drawmsg_file_attachments}
{TEMPLATE-DATA: modified_message}{IF: !$hide_controls}{IF: ($obj->sig && $o1 & 32768 && $obj->msg_opt & 1 && $b & 4096 && !($a & 67108864))}<p /><hr class="sig" />{VAR: obj->sig}{ENDIFI}{TEMPLATE: dmsg_report_to_mod_link}{ENDIFI}
</td></tr>
{IF: !$hide_controls}{TEMPLATE: dmsg_message_toolbar}{ENDIFI}
</table></td></tr>
{MAIN_SECTION: END}
The things I deleted in my theme are stuff like {TEMPLATE-DATA: location}, you need to re-add them. You also need to rebuild the theme after making any changes.
Sorry I don't have time for a better explanation. Good luck.
Max
Note that you can also edit it through the administration section of the forum, by going to "edit template", selecting the them and language you want to edit, and then clicking on drawmsg.
|
|
|
|
|
|
Re: 3 Themes - Black bg, white bg and greys [message #158020 is a reply to message #158019] |
Mon, 19 January 2009 12:51 |
magli
Messages: 15 Registered: February 2007 Location: Meran, Italy
Karma: 0
|
Junior Member |
|
|
naudefj wrote on Mon, 19 January 2009 13:25 | As I understand, a new theme should only contain the files and section that are different from the default theme.
|
I had not realized this. It makes sense though. I had simply copied the entire default theme, and edited it to my liking.
I am glad to make my themes available for future releases. If I find the time, I will update them.
Regards.
|
|
|