Author |
Topic  |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 11 January 2013 : 00:16:50
|
I did the Table Mod Da_Stimulator did here http://forum.snitz.com/Forum/topic.asp?ARCHIVE=true&TOPIC_ID=55659 so my members could place a table in their post using Forum Code. I thought I'd play around with the codes so they could see a variety of options they could use and I came up with this below. The table displays as desired. However; it's being displayed at the bottom of the post. I've tried the valign=top and everything else I can think of to no avail. Does someone have time to look at my codes and tell me what I'm doing wrong?
[table align=center border=10 bordercolorlight=crimson bordercolordark=maroon cellspacing=0 cellpadding=3 table] [tr table] [td align=center colspan=16 bgcolor=blue table][magenta]God's Love[/magenta] [/td][/tr] [tr table] [td align=center bgcolor=crimson table][/td] [td align=center bgcolor=dodgerblue table][/td] [td align=center bgcolor=seafoam table][/td] [td align=center bgcolor=magenta table]

[/td] [td align=center bgcolor=darkorange table][/td] [td align=center bgcolor=red table][/td] [td align=center bgcolor=green table][/td] [td align=center bgcolor=yellow table][/td] [td align=center bgcolor=crimson table][/td] [td align=center bgcolor=magenta table][/td] [td align=center bgcolor=dodgerblue table][/td] [td align=center bgcolor=yellowgreen table][/td] [td align=center bgcolor=darkorange table]

[/td] [td align=center bgcolor=dodgerblue table][/td] [td align=center bgcolor=magenta table][/td] [td align=center bgcolor=crimson table][/td] [/tr] [tr table] [td align=center colspan=16 bgcolor=yellow table]God's Love [/td][/tr][/table]
Here is a screenshot of how it looks if that helps. Don't laugh! I was trying to be creative not attractive. (lol)

|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 11 January 2013 : 18:08:32
|
It's correct. That's the way the mod was written. All opening table format tags (table, tr, td, etc) must end with " table]", but all closing tags (/table, /tr, etc) do not. |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 January 2013 : 18:09:39
|
I am sorry, I just looked at the code and deleted the post. |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 11 January 2013 : 19:45:09
|
So, why would the table display at the bottom of a post? No ideas?
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 11 January 2013 : 21:55:44
|
I tested it on a vanilla site here, it does not relocate the table at all. If I have text before/after the table, it remains where I put it. There's something else happening. |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 11 January 2013 : 22:30:25
|
Well it displays Waaaay down in the post, not just a couple of lines. But, yes, text before and after it displays in the correct area.
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
Edited by - MaGraham on 11 January 2013 22:31:41 |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 January 2013 : 23:24:34
|
quote: Originally posted by MaGraham
So, why would the table display at the bottom of a post? No ideas?
I notice what you mean? It appears at the bottom: http://www.nukkar.net/sc/topic.asp?TOPIC_ID=2 |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 11 January 2013 : 23:35:43
|
quote: Originally posted by GauravBhabu I notice what you mean? It appears at the bottom: http://www.nukkar.net/sc/topic.asp?TOPIC_ID=2
Exactly! How strange is that?!
Thank you for sharing that, GauravBhabu!
I should have thought of doing that myself. 
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 12 January 2013 : 11:51:31
|
quote: Originally posted by MaGraham
[quote]Originally posted by GauravBhabu I notice what you mean? It appears at the bottom: http://www.nukkar.net/sc/topic.asp?TOPIC_ID=2
Exactly! How strange is that?!
Thank you for sharing that, GauravBhabu!
I should have thought of doing that myself. 
This is happening due to break tags not being cleared. Author of the code must be aware of this and has code in his mod to clear the break tags. I have not had a chance to look why it is not working as intended. However, when you are writing in editor window, if you write without any breaks it will work correctly Look here: http://www.nukkar.net/sc/topic.asp?TOPIC_ID=2
|
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 12 January 2013 : 12:17:45
|
quote: Originally posted by GauravBhabu This is happening due to break tags not being cleared. Author of the code must be aware of this and has code in his mod to clear the break tags. I have not had a chance to look why it is not working as intended. However, when you are writing in editor window, if you write without any breaks it will work correctly Look here: http://www.nukkar.net/sc/topic.asp?TOPIC_ID=2
But I don't type my post in the Editor Window, GauravBhabu. I usually type my post in NotePad and then copy it and paste it in my post.
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 12 January 2013 : 12:44:02
|
quote: But I don't type my post in the Editor Window, GauravBhabu. I usually type my post in NotePad and then copy it and paste it in my post.
Type your code in one continuous line. I will look at the Mod Code to see why it is not working as intended. |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 12 January 2013 : 17:27:11
|
The code below is part of Table Mod
ClearBreaksS1 = Left(tblCode(i), ftblEn) ClearBreaksS2 = Replace(ClearBreaksS1, "<br>", " ") ClearBreaksS2 = Replace(ClearBreaksS2, "<br />", " ") ClearBreaksS2 = Replace(ClearBreaksS2, Chr(10), " ") tblCode(i) = replace(tblCode(i), ClearBreaks1,ClearBreaks2)
The character highlighted in red should be replaced with sS
This code line should read as below: tblCode(i) = replace(tblCode(i), ClearBreaksS1,ClearBreaksS2)
It may be a good idea if forum Moderators can fix the code in the Mod Topic
Take Care
|
Edited by - GauravBhabu on 12 January 2013 17:28:25 |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 12 January 2013 : 22:02:22
|
quote: Originally posted by GauravBhabu
The code below is part of Table Mod
ClearBreaksS1 = Left(tblCode(i), ftblEn) ClearBreaksS2 = Replace(ClearBreaksS1, "<br>", " ") ClearBreaksS2 = Replace(ClearBreaksS2, "<br />", " ") ClearBreaksS2 = Replace(ClearBreaksS2, Chr(10), " ") tblCode(i) = replace(tblCode(i), ClearBreaks1,ClearBreaks2)
The character highlighted in red should be replaced with sS
This code line should read as below: tblCode(i) = replace(tblCode(i), ClearBreaksS1,ClearBreaksS2)
It may be a good idea if forum Moderators can fix the code in the Mod Topic
Take Care
That fixed it! Incredible!
Thank you so much for your time in figuring this out for me and, obviously, for everyone else as well!
God bless!
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 12 January 2013 : 23:17:32
|
quote: Originally posted by MaGraham
quote: Originally posted by GauravBhabu
The code below is part of Table Mod
ClearBreaksS1 = Left(tblCode(i), ftblEn) ClearBreaksS2 = Replace(ClearBreaksS1, "<br>", " ") ClearBreaksS2 = Replace(ClearBreaksS2, "<br />", " ") ClearBreaksS2 = Replace(ClearBreaksS2, Chr(10), " ") tblCode(i) = replace(tblCode(i), ClearBreaks1,ClearBreaks2)
The character highlighted in red should be replaced with sS
This code line should read as below: tblCode(i) = replace(tblCode(i), ClearBreaksS1,ClearBreaksS2)
It may be a good idea if forum Moderators can fix the code in the Mod Topic
Take Care
That fixed it! Incredible!
Thank you so much for your time in figuring this out for me and, obviously, for everyone else as well!
God bless!
I am glad it is fixed. I learned it all here at Snitz. Take Care. |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 14 January 2013 : 22:14:24
|
quote: Originally posted by GauravBhabu I am glad it is fixed. I learned it all here at Snitz. Take Care.
Wow! What a testimony for Snitz! 
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
|
Topic  |
|