Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Table Mod Displays Table at Bottom of Post
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MaGraham
Senior Member

USA
1297 Posts

Posted - 11 January 2013 :  00:16:50  Show Profile  Reply with Quote

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  Show Profile
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.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 January 2013 :  18:09:39  Show Profile
I am sorry, I just looked at the code and deleted the post.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 11 January 2013 :  19:45:09  Show Profile


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
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 11 January 2013 :  21:55:44  Show Profile
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.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 11 January 2013 :  22:30:25  Show Profile

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
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 January 2013 :  23:24:34  Show Profile
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
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 11 January 2013 :  23:35:43  Show Profile
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
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 January 2013 :  11:51:31  Show Profile
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
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 12 January 2013 :  12:17:45  Show Profile
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
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 January 2013 :  12:44:02  Show Profile
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.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 January 2013 :  17:27:11  Show Profile
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
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 12 January 2013 :  22:02:22  Show Profile
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
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 January 2013 :  23:17:32  Show Profile
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.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 14 January 2013 :  22:14:24  Show Profile

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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07