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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 table in the message
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

s80ts0465
Junior Member

Italy
290 Posts

Posted - 15 April 2004 :  05:37:34  Show Profile  Send s80ts0465 an ICQ Message
hi to everyone,

just a little question, Is there any mod to draw table in the message body ?? something like the list but that display everuthing in a table???

bye stefano

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 15 April 2004 :  05:48:28  Show Profile  Visit PeeWee.Inc's Homepage
You do that, you would have to turn HTML on. You could add some code that will allow you to use some HTML code within the Forum Code.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 16 April 2004 :  03:40:53  Show Profile  Send s80ts0465 an ICQ Message
Thanks a lot,

but there is a problem. how to add this code??

do u know an example???

and anyway after adding this code, i've to disable once again the html code, because i need the forum code enable for the image post.

Edited by - s80ts0465 on 16 April 2004 03:43:55
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 16 April 2004 :  06:30:49  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Instructions to add forum code for tables can be found here.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 16 April 2004 :  07:26:39  Show Profile  Send s80ts0465 an ICQ Message
i've read the topic. Very interesting, and maybe it solves my problems. but still a question...that mod alloq me to write the table code, or i can select the code using an icon as the list???
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 16 April 2004 :  08:06:52  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
The code Roland posted in that topic only handles the conversion of forum code into html.
Adding a table button would require some additional code changes.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 16 April 2004 :  09:42:35  Show Profile  Send s80ts0465 an ICQ Message
so with the roland code i can simply write the code [table]....[/table] and the forum understand the table code??? is it right??
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 16 April 2004 :  09:55:23  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Yes, if you want to know how it works and looks like, take a look here, I've added the table tags to my forum.
You will note that the text content is not formatted, as Roland pointed out in his post.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 16 April 2004 :  10:17:07  Show Profile  Send s80ts0465 an ICQ Message
checked ur forum. EXCELLENT. i asked u something on ur forum
Could u please explain me what did u do to obtain this results?? the same things of roland mods???

bye and thankssssssssssssssss

Edited by - s80ts0465 on 16 April 2004 10:30:11
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 16 April 2004 :  10:38:25  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Here are the required modifications (basically the same as Roland's but with line numbers of a fresh Snitz v3.4.04 install):

Find the following code in inc_func_common.asp (line 474):

			fString = replace(fString, "[hr]", "<hr noshade size=""1"">", 1, -1, 1)


and add the following code below that line:

			'## tables
			fString = replace(fString, "[table]", "<table border=""1"" cellspacing=""0"" cellpadding=""0"">", 1, -1, 1)
			fString = replace(fString, "[/table]", "</table>", 1, -1, 1)
			fString = replace(fString, "[tr]", "<tr>", 1, -1, 1)
			fString = replace(fString, "[/tr]", "</tr>", 1, -1, 1)
			fString = replace(fString, "[td]", "<td>", 1, -1, 1)
			fString = replace(fString, "[/td]", "</td>", 1, -1, 1)
			'##



Now find the following code in inc_func_posting.asp (line 340):

			fString = replace(fString, "</font id=""code""></pre id=""code"">","[/code]", 1, -1, 1)


and add the following code below that line:

			'## new table creating codes
			fString = replace(fString, "<table border=""1"" cellspacing=""0"" cellpadding=""0"">","[table]", 1, -1, 1)
			fString = replace(fString, "</table>","[/table]", 1, -1, 1)
			fString = replace(fString, "<tr>","[tr]", 1, -1, 1)
			fString = replace(fString, "</tr>","[/tr]", 1, -1, 1)
			fString = replace(fString, "<td>","[td]", 1, -1, 1)
			fString = replace(fString, "</td>","[/td]", 1, -1, 1)
			'##


That's all.
(make sure you backup your files before you make any modifications)

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 16 April 2004 :  10:39:25  Show Profile  Send s80ts0465 an ICQ Message
Ok great i'm gonna try it as soon as possible.

thanks once again
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 16 April 2004 :  10:46:44  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
You're welcome.
If you experience any problems, feel free to ask.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 16 April 2004 :  11:10:00  Show Profile  Send s80ts0465 an ICQ Message
Ok perfect i tryed it and it works really fine. but the user has to write all the code. Is it so difficult to add an icon (as list icons) to get automatically the code ?? Which is the page to modify it? at the end i can also substitute the list code with the table code.

Anyway at the end the procedure seems to be not so easy and not so user-friendly, so i'm thinking to another solution. Any idea about it? to create it easier?
i thought to create a dedicate popup windows to acquire the datas and import them in the message. do u understand what i mean??
something like the Injection message mod and adding (with include i think that popup name page in the post_info.asp) Let me know if it could works

bye ste

Edited by - s80ts0465 on 16 April 2004 12:21:57
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 16 April 2004 :  12:35:14  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
OK, here are the instructions to add a "table" button:

Find the following code in inc_post_buttons.asp (line 66):
		"<a href=""Javascript:list();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorList,"Insert List","align=""top""") & "</a>" & vbNewLine

and replace it with the following code:
		"<a href=""Javascript:list();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorList,"Insert List","align=""top""") & "</a>" & vbNewLine & _
		"<a href=""JavaScript:table();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorTable,"Insert Table","align=""top""") & "<a/>" & vbNewLine

Now find the following code in inc_code.js (lines 55-57):

//function AddText(NewCode) {
//	document.PostTopic.Message.value+=NewCode
//}


and paste the following code below it:
function table() {
	var text = getText();
	if (helpstat){
		alert("Table tag Builds a table around the enclosed text.\n\nUSE: [table][tr][td]text here[/td][/tr][/table]");
	} else if (basic) {
		AddTxt="[table][tr][td]" + text + "[/td][/tr][/table]";
		AddText(AddTxt);
	} else {
		if (text) {
			txt=prompt("Text to be put into table",text);
		} else {
			txt=prompt("Text to be put into table","Text");
		}
		if(txt!=null) {
			AddTxt="[table][tr][td]"+txt+"[/td][/tr][/quote]";
			AddText(AddTxt);
		}
	}
}


Finally find the following code in inc_iconfiles.asp (line 59):

Const strIconEditorUrl = "icon_editor_url.gif|23|22"

and paste the following code below it:
Const strIconEditorTable = "icon_editor_table.gif|23|22"


Now upload a image of your choice for your table button to your forum folder, along with the edited files and you're done.

I have created a simple table button, feel free to use it:


Again make sure you backup your files before editing.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 16 April 2004 :  12:49:37  Show Profile  Send s80ts0465 an ICQ Message
really great it really works fine.

But do u think that would be possible to realize a popup windows where to insert only the value of the cell of the table, without that the user have to do with the html code?? At about me it would be really great, so everybody, even without knowing html code, could post some table.

thanksssssss a lot once again

Edited by - s80ts0465 on 16 April 2004 14:54:38
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 16 April 2004 :  15:31:36  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Have you tried changing the Format Mode to "Prompt" when posting? That would do the trick.
If you would like popup to open in all modes, let me know and I post the required changes here.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07