PDA

View Full Version : Mini Mods - vBAnnounce Beta


Pyrobyte
01-20-2009, 10:00 PM
vBAnnounce Beta

Just a little template edit I came up with to make an important announcement stand out...

Ad Location Templates > ad_header_end | Add this code to the template.

<if condition="$show['member']">

<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">
YOUR TEXT AND HTML TAGS HERE
</td>
</tr>
</table>

</if>

Replace the bold red text saying "YOUR TEXT AND HTML TAGS HERE" with exactly what it says. Your text and HTML tags. You can also change who this is viewable to by changing $show['member'] to $show['guest'], ect. You can change the text align by either putting <P align="left">, <P align="right">, or <P align="center">. The default is center. To change the align of the text you could also change the text saying "center" in the following code to "left" or "right". <td class="alt1" align="center">


Enjoy! :)

Magnumutz
01-21-2009, 08:51 PM
Screenshot or demo?

Pyrobyte
01-21-2009, 11:55 PM
Screenshot or demo?

I'll upload a screenshot...

lazydesis
01-22-2009, 02:15 AM
does it need to be beta? :confused: isnt this type of code already well established :D i am hoping its to add more new code to this later on?!?

thanks anyways nice hack :)

SEOvB
01-22-2009, 06:35 AM
You could save yourself the edit, and use the built in notices system if you wanted.

Good work though if your just learning, everyone has to start some where ;)

cheat-master30
01-22-2009, 02:27 PM
Nice first modification Pyrobyte, and thanks for bringing it to my attention. Not sure about adding it though, because I don't think I have a need for such an addition right now.

Forum Lover
01-23-2009, 11:44 AM
You could save yourself the edit, and use the built in notices system if you wanted.

Good work though if your just learning, everyone has to start some where ;)

Agreed, Notices system is doing the same.