 | [Solved] Birthday mod |  |
Posted: 06/09/2007 5:39 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 9:48 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
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 = :p |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/09/2007 7:40 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 9:48 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
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' .....  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Birthday mod |  |
Posted: 06/10/2007 1:43 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/10/2007 5:12 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 9:48 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
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 |
|
|
 | Re: Birthday mod |  |
Posted: 06/11/2007 1:12 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
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???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/11/2007 1:34 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 9:48 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Just a little but I’ll be sure to give what you said a try  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Birthday mod |  |
Posted: 06/11/2007 3:26 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
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} [ {L_WHOSONLINE_ADMIN} ] [ {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} [ {L_WHOSONLINE_ADMIN} ] [ {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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/14/2007 2:22 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 9:48 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
I don't understand just reading what you said... will have to give it ago sometime, will propberly pick up what mean better then
Thanks for explaining.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Birthday mod |  |
Posted: 06/14/2007 5:13 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:48 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/14/2007 5:23 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 9:48 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
ok cheers  |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|