The forum of the forums
Welcome on the Forumotion Support Forum.

To take full advantage of everything offered by our forum, please log in if you are already a member or join our community if you're not yet....



Create a free forum like this one.

Adding A "Window" For Your Widget!

View previous topic View next topic Go down

Adding A "Window" For Your Widget!

Post by Cman on July 25th 2009, 4:03 pm

Adding A "Window" For Your Widget!

You can add what I call a "Window" for something on a HTML page, or in your templates. This is basically what the form is made of. If you are going to add things to your templates, you need to make it fit in, and this is how.


The First Step & Only Step
Put this code where you want the widget window to display.

Code:
<table width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
</tr>
</table>
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<th class="thHead" valign="middle" height="25">{MESSAGE_TITLE}</th>
</tr>
<tr>
<td class="row1" align="center">
<form action="" method="post"><span class="gen"><br />
{MESSAGE_TEXT}<br />
<br />
</td>
</tr>
</table>
<br clear="all" />

Replace the text {MESSAGE_TITLE} with the title of the window. Then replace {MESSAGE_TEXT} with the text or HTML code of the widget.


There you go. Finished! You now have your widget!
Spoiler:


This code came right out of the templates. I would save this code or add this page to your bookmarks.


Written by Cman

Cman
Forumotion Member

Male
Posts: 584
Age: 15
Language: English
Points: 2265
Join date: 2009-05-29

Back to top Go down

View previous topic View next topic Back to top


Permissions in this forum:
You cannot reply to topics in this forum