PDA

View Full Version : [Release] Forumhome Announcement Box


Tony G
10-15-2002, 10:00 PM
Description: Will add a box to the forumhome template where you can add/edit news via that template.

Warning: You will need some quite basic html skills to get the full force out of this hack once installed.

Attacked below, screenshot in next post.

Tony G
10-16-2002, 11:43 AM
Screenshot: (Small)

1x1
10-16-2002, 11:51 AM
really great post.

Tony G
10-16-2002, 11:55 AM
Thanks, it's simple stuff. And if any errors please report because I rushed that code a bit. Sorry. ^^;

Brad
10-16-2002, 01:38 PM
You can make it so you can edit it to the cp. this is how i would install it if i where ganna use it.

Under Replacements in the admin cp click modify. the click [add custom replacement]

name the new replacement {news} and in the input put <b>Date Goes Here</b> - Place news for this date here

then change this:

<!-- announcements -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td bgcolor="{categorybackcolor}"><normalfont color="{categoryfontcolor}"><b>Announcements</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><smallfont>
<b>Date Goes Here</b> - Place news for this date here</smallfont></td>
</tr>
</table>
</td></tr></table>
<! -- announcements -->

<br />

to this:

<!-- announcements -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td bgcolor="{categorybackcolor}"><normalfont color="{categoryfontcolor}"><b>Announcements</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}"><smallfont>{news}</smallfont></td>
</tr>
</table>
</td></tr></table>
<! -- announcements -->

<br />

This way you dont have to worry about messing up the template when you edit.

N9ne
10-16-2002, 03:40 PM
Thanks AL, I never actually thought about doing that kinda thing, it helps for other things too :)

Brad
10-16-2002, 03:58 PM
I use Replacements whenever possible and ive been doing so for a year now. ive always wondered why more people do not, it makes customizing text tons easyer then searching in the templates.

Xbox
10-16-2002, 04:38 PM
cool mod, Tony
*installs*

Mark
10-16-2002, 05:27 PM
I made the News ticker (Which you can get at vB.Org) and it is very similar to this. You cane dit in admin CP. But I like this tony and Anime, nice.

assassingod
10-16-2002, 07:11 PM
Great mod Tony! I like this alot - if I didnt already have Dynamic Annoucments hack installed, I woulda used this!

Brilliant work though

Tony G
10-17-2002, 05:21 AM
Updated with replacement code, thanks AL. ^^

HellSpawn
10-17-2002, 09:24 PM
Originally posted by Anime-loo
I use Replacements whenever possible and ive been doing so for a year now. ive always wondered why more people do not, it makes customizing text tons easyer then searching in the templates.

Yeah, but you can get the same effect with XHTML, or XML.

I dont like replacements, totally useless.

but a good 'mod' there tony, dont need it though

Tony G
10-18-2002, 08:44 AM
Well I find it easier via the replacements then it would be via the templates. Thanks for the comments though. :)

Vladdy
02-26-2003, 01:59 AM
**** you Tony! I was working on this and was going to get something together to release. I figured I should search the forums first and found this! :(

I hate you :p

Tony G
02-26-2003, 03:16 AM
Something else similar was released too, so not my fault. :p

drownedspirit
03-04-2003, 02:59 AM
Dya think we can show there like 2 or 3 latest threads on a specific forum (eg. announcements forum)?

Tony G
03-04-2003, 03:27 AM
If you edit them manually, yes. Just use HTML and link your announcement threads into the box.