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] Birthday mod
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] Birthday mod
PostPosted: 06/09/2007 5:39 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:08 AM
Location: Birmingham, UK.
greatbrE.gif
Hi Nightrider, just installed the birthday mod... apart from the box going way out on the index page the rest installed ok after I’d corrected EM install file

http://www.djpassions.com/

Terrafrost =  violent1 :p
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Birthday mod
PostPosted: 06/09/2007 7:40 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:08 AM
Location: Birmingham, UK.
greatbrE.gif
In ACP under Birthdays I've set 'Birthday Panel Visibility' to Conditional for now so that the dodgy template doesn’t put anyone off from using the site. If you want to see what I mean Nightrider set it back to 'Unconditional' ..... headbang
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Birthday mod
PostPosted: 06/10/2007 1:43 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: 6:08 AM
Location: St Pete, FL
peace.gif
The code for the index_body.tpl file needed to be moved below the Mix row.  There was a rowspan setting two lines up that caused problems when the birthday code was inserted in the middle of it...

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] Birthday mod
PostPosted: 06/10/2007 5:12 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:08 AM
Location: Birmingham, UK.
greatbrE.gif
Oh ok I was thinking it was something to with rowspan number so I changed from 2 to 3 as it fixed a similar problem with the music statistics mod before but it didn't work with the birthday mod so I put it back to how it was.

Cheers NR
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Birthday mod
PostPosted: 06/11/2007 1:12 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: 6:08 AM
Location: St Pete, FL
peace.gif
The rowspan setting was good.  You shouldn't have to guess at what it should be.  The rowspan setting will take up a column for the number of rows specified inclusive on the row that it was defined.  So if your table has two columns per row, you only define one column on each row after the rowspan setting since the rowspan setting accounts for one of the columns in each row.  Each row MUST have the same number of columns or the display will be wrong, as you saw.  So if the rowspan setting is assigned 2, then the next row only needs one column.  The 3rd row down will have to have two columns defined either by using a colspan setting, another rowspan setting, or two <td></td> declared columns...

So did I confuse you more???

1  1  1  1  1
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] Birthday mod
PostPosted: 06/11/2007 1:34 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:08 AM
Location: Birmingham, UK.
greatbrE.gif
Just a little but I’ll be sure to give what you said a try Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Birthday mod
PostPosted: 06/11/2007 3:26 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: 6:08 AM
Location: St Pete, FL
peace.gif
Ok, I'll try again:

Say you have a rowspan setting = 3, as in this index_body.tpl example:

Code:
  <tr>
   <td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
   <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}{TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}<br /><br />{NEWEST_POST}</span>
   </td>
  </tr>

On this row, there are two columns <td></td>.  With the rowspan setting of 3, that means that the next two rows: <tr></tr>, can only have 1 column each since the rowspan setting from above takes up one column per row.  So the following would be valid:

Code:
  <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
  <tr>
   <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_SONGS} {TOTAL_CATS}<br /><br />{L_NEWEST_SONG} <b>{U_SONG}</b> by {SONG_POSTER} on {SONG_TIME}</span></td>
  </tr>

If there had not been a rowspan=3 setting on the first row, then these two rows would display wrong since they only have one of the two required columns.  This can be corrected by adding another column:  <td></td> or by adding colspan settings for each row:  colspan="2".  IOW, if the first row did not contain the rowspan setting, then the following would also be valid for the 2nd and 3rd rows:

Code:
  <tr>
   <td class="row1" colspan="2" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
  <tr>
   <td class="row1" colspan="2" align="left" width="100%"><span class="gensmall">{TOTAL_SONGS} {TOTAL_CATS}<br /><br />{L_NEWEST_SONG} <b>{U_SONG}</b> by {SONG_POSTER} on {SONG_TIME}</span></td>
  </tr>

So when all is said and done, there will be an equal number of columns on each row in the table...

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] Birthday mod
PostPosted: 06/14/2007 2:22 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:08 AM
Location: Birmingham, UK.
greatbrE.gif
I don't understand just reading what you said... will have to give it ago sometime, will propberly pick up what mean better then   1

Thanks for explaining.  blob8
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: Birthday mod
PostPosted: 06/14/2007 5:13 PM 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: 6:08 AM
Location: St Pete, FL
peace.gif
I'm not surprised that it is confusing.  This is a complex option that would be better explained through pictures than words.  Once you finally understand it and can see what's happening, you will wonder why you had trouble understanding it because it really makes sense once you understand the whole picture...

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] Birthday mod
PostPosted: 06/14/2007 5:23 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:08 AM
Location: Birmingham, UK.
greatbrE.gif
ok cheers  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
 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: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0751s (PHP: 73% - SQL: 27%) - SQL queries: 57 - GZIP disabled - Debug on