Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Happy Anniversary MOD
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: [Solved] Happy Anniversary MOD
PostPosted: 09/15/2007 10:43 PM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 3:22 AM
Location: Somewhere in Maryland
marylndC.gif
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
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: [Solved] Happy Anniversary MOD
PostPosted: 09/16/2007 1:08 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 4:22 AM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Happy Anniversary MOD
PostPosted: 09/16/2007 1:29 AM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 3:22 AM
Location: Somewhere in Maryland
marylndC.gif
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
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: [Solved] Happy Anniversary MOD
PostPosted: 09/16/2007 1:33 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 4:22 AM
Location: St Pete, FL
peace.gif
Yes, that looks better so far...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Happy Anniversary MOD
PostPosted: 09/16/2007 1:58 AM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 3:22 AM
Location: Somewhere in Maryland
marylndC.gif
Alright...

1) grey borders gone, green now exists.  Dancing  
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
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: [Solved] Happy Anniversary MOD
PostPosted: 09/16/2007 2:10 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 4:22 AM
Location: St Pete, FL
peace.gif
If $lang['Todays_Anniversaries'] is defined in the lang_main.php file, that would work...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Happy Anniversary MOD
PostPosted: 09/16/2007 2:19 AM Reply with quote
Citation
2LadyDi
Citation
Posts 826
Word Cnt. 37,329
BDay Oct 2
Sign Libra
Sex Sex:Female
Joined: Apr 03, 2007
Local time: 3:22 AM
Location: Somewhere in Maryland
marylndC.gif
Ok, when I am ready to put it in place, will update you NR. It's getting there...
Back to Top
View user's profile Find all posts by 2LadyDi Send private message   Phoogle Map Visit poster's Blog
Re: [Solved] Happy Anniversary MOD
PostPosted: 09/16/2007 2:25 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 4:22 AM
Location: St Pete, FL
peace.gif
Ok, good luck with it.  You should be finding that this really isn't that difficult once you understand where everything belongs...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2
Page 2 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0678s (PHP: 82% - SQL: 18%) - SQL queries: 51 - GZIP disabled - Debug on