 | Re: [Solved] Happy Anniversary MOD |  |
Posted: 09/15/2007 10:43 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 3:22 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
I did it, YAY. Now... how can I change the grey borders to green? And how can I make the text larger? And and... how can I add an anniversary icon next to...? One more and... I want to change the word "user/users" to "Family Member", so which file has that in it?
Wait... one more and... I want the Anniversary table info to match the B-day info. Looks nicer. So, 'Today's Birthdays...' but in Anniversary to read 'Today's Anniversaries'. Is this possible?? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Happy Anniversary MOD |  |
Posted: 09/16/2007 1:08 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:22 AM
Location: St Pete, FL
|

|
|
|
|
 |
| 2LadyDi wrote:
|
|
how can I change the grey borders to green?
|
There are two problems here. First, you have the border width set to 3. You would want to set it to 0. Then to add a green border around the table, you would want to make use of the forumline class. So you would add class="forumline" to your table definition. You can also change the cellspacing assignment to 1 too...
| 2LadyDi wrote:
|
|
And how can I make the text larger?
|
Right now, the span class is set to gensmall. If you want to use a larger text, you can use any of the other classes that are defined in your overall_header.tpl file, such as gen or genmed or you can create your own class and assign it any font size that you want...
| 2LadyDi wrote:
|
|
how can I add an anniversary icon next to...?
|
If you have an anniversary icon stored in your template image folder, you can use the same code used for the Birthday MOD for the Anniversary MOD, replacing the cloned Birthday variables with the Anniversary variables. IOW, you could do this:
OPEN
index_body.tpl
CLONE
| Code:
|
<tr>
<td class="catHead" height="28"><span class="cattitle">{L_TODAYS_BIRTHDAYS}</span></td>
</tr>
<tr>
<td class="row1"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" style="padding-right: 3px"><img src="templates/subSilver/images/icon_birthday.gif" alt="{L_VIEW_BIRTHDAYS}" /></td>
<td align="left" width="100%">
<span class="gensmall">{BIRTHDAYS}
<!-- BEGIN upcoming -->
<br />{UPCOMING}
<!-- END upcoming -->
</span>
</td>
</tr>
</table></td>
</tr>
|
REPLACE USING ANNIVERSARY VARIABLES AND FILENAME
| Code:
|
<tr>
<td class="catHead" height="28"><span class="cattitle">{L_TODAYS_ANNIVERSARIES}</span></td>
</tr>
<tr>
<td class="row1"><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="middle" style="padding-right: 3px"><img src="templates/subSilver/images/icon_anniversary.gif" alt="{L_VIEW_ANNIVERSARIES}" /></td>
<td align="left" width="100%">
<span class="gen">
{L_HAPPY_ANNIVERSARY}
<!-- BEGIN joined_date -->
{joined_date.USERNAME}
<!-- END joined_date -->
</span>
</td>
</tr>
</table></td>
</tr>
|
If the L_VIEW_ANNIVERSARIES and L_TODAYS_ANNIVERSARIES variables are not assigned, you can either create them in the index.php file or use whatever is already assigned, if it exists...
| 2LadyDi wrote:
|
|
I want to change the word "user/users" to "Family Member", so which file has that in it?
|
Most language related text would be assigned in your lang_main.php file. So whenever you want to adjust the text, that should be the first place to look. This holds true for the Anniversary text too:
OPEN
language/lang_english/lang_main.php
FIND
| Code:
|
$lang['Happy_Anniversary'] = 'Happy Anniversary to the following members:';
$lang['No_Happy_Anniversary'] = 'No Members have an Anniversary Today';
|
You can change the text to the right of the equal sign between the two quotes. Don't ever change the text to the left of the equal sign unless you are specifically told to do so...
| 2LadyDi wrote:
|
|
I want the Anniversary table info to match the B-day info. Looks nicer. So, 'Today's Birthdays...' but in Anniversary to read 'Today's Anniversaries'. Is this possible??
|
If you cloned the Birthday code like I suggested above, you might already have this done. The title won't display though if the variable for the Anniversaries title is not assigned or is misspelled...
Also, you can remove the colspan="2" setting for every column in this table. You only need this setting if some of the rows have more than one column while others don't. Every row in a table needs to have the same number of columns. In this case, they all do...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Happy Anniversary MOD |  |
Posted: 09/16/2007 1:29 AM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 3:22 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
| Ok, I'ma work on these and ITM Done MODs has been updated. I am going to eventually put the text files not in folders in them. Small steps to neatness forthcoming. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Happy Anniversary MOD |  |
Posted: 09/16/2007 1:33 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:22 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, that looks better so far...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Happy Anniversary MOD |  |
Posted: 09/16/2007 1:58 AM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 3:22 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
Alright...
1) grey borders gone, green now exists.
2) I'ma save Anniversary icon for when I fnd the right image or have our resident graphics person make us one.
3) Family Members text taken care of.
4) Is this the correct code to go above L_Birthday....
| Code:
|
'L_VIEW_ANNIVERSARIES'=> $lang['Todays_Anniversaries'],
'L_TODAYS_ANNIVERSARIES' => $lang['Todays_Anniversaries'],
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Happy Anniversary MOD |  |
Posted: 09/16/2007 2:10 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:22 AM
Location: St Pete, FL
|

|
|
|
|
 |
If $lang['Todays_Anniversaries'] is defined in the lang_main.php file, that would work...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Happy Anniversary MOD |  |
Posted: 09/16/2007 2:19 AM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 3:22 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
| Ok, when I am ready to put it in place, will update you NR. It's getting there... |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Happy Anniversary MOD |  |
Posted: 09/16/2007 2:25 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:22 AM
Location: St Pete, FL
|

|
|
|
|
 |
Ok, good luck with it. You should be finding that this really isn't that difficult once you understand where everything belongs...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|