Author |
Topic |
|
tuningsv
New Member
El Salvador
67 Posts |
Posted - 18 September 2003 : 17:27:03
|
hello, i am looking for some mod to display in a different way when you reply with quote... something like this http://tuningsv.com/test/index.htm
if someone have any idea please post it here.
thanks a lot.
|
Edited by - ruirib on 18 September 2003 17:42:12 |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
|
tuningsv
New Member
El Salvador
67 Posts |
Posted - 19 September 2003 : 11:31:16
|
thanks a lot for the links but the links in the topic "quote by author" do not work
i checked the other topic... but i have the 3.4 version and i do not have the inc_function.asp file so, i don't find where is the "quote function"(the code that makes the quote reply)
|
Edited by - tuningsv on 19 September 2003 16:12:55 |
|
|
cyber Knight
Starting Member
41 Posts |
Posted - 20 September 2003 : 09:44:28
|
I might be wrong but you can find it in inc_func_common.asp .
I needed to do the same thing for the [ code] because i have the forum set to RTL and when the code posted sometimes it mess up the page so to be posted in a table makes it easier to view or copy. thats what i did:
fString = doCode(fString, "[quote]", "[ /quote]", "<BLOCKQUOTE id=""quote""><table border=""1"" style=""border-collapse: collapse"" bgcolor=""#C4DCF7"" bordercolor=""#111111"" id=""quote"">Quote:<tr id=""quote""><td id=""quote""><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=""quote"">" & ":", "</font id=""quote""></td id=""quote""></tr id=""quote""></table id=""quote""></BLOCKQUOTE id=""quote"">")
fString = doCode(fString, "", "[ /code]", "<BLOCKQUOTE id=""code""><table border=""1"" style=""border-collapse: collapse"" bgcolor=""#C4DCF7"" bordercolor=""#111111"" id=""code"">Script code:<tr id=""code""><td id=""code""><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=""code"">" & ":", "</font id=""code""></td id=""code""></tr id=""code""></table id=""code""></BLOCKQUOTE id=""code"">")
it worked with the [quote] but not with the [ code] i don't know where did i go wrong?! If any of you gurus can help me out i would be very grateful,and if it not too much to ask i need the code to be centered.
tuningsv that captured image you posted was it from a php forum? if it not too much trouble can you post the source code page,it might help to see how its done. P.S : if there were any stupid errors in the code i posted above please excuse my ignorance am still learning.
|
Edited by - cyber Knight on 20 September 2003 09:47:01 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 20 September 2003 : 11:13:37
|
How about this line, CK? Take the space out of the bit in red.
fString = doCode(fString, "[ quote]", "[/quote]", "<BLOCKQUOTE id=""quote""><table border=""1"" style=""border-collapse: collapse"" bgcolor=""#C4DCF7"" bordercolor=""#111111"" id=""quote""><br></br><tr><td><font size=" & strFooterFontSize & "></font>Quote:</td></tr><tr id=""quote""><td id=""quote""><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=""quote"">", "</font id=""quote""></td id=""quote""></tr id=""quote""></table id=""quote""></BLOCKQUOTE id=""quote"">")
The [ code] portion is missing the opening [ code] (in blue):
fString = doCode(fString, "[ code]", "[ /code]", "<BLOCKQUOTE id=""code""><table border=""1"" style=""border-collapse: collapse"" bgcolor=""#C4DCF7"" bordercolor=""#111111"" id=""code"">Script code:<tr id=""code""><td id=""code""><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=""code"">" & ":", "</font id=""code""></td id=""code""></tr id=""code""></table id=""code""></BLOCKQUOTE id=""code"">")
|
Edited by - Carefree on 20 September 2003 11:14:30 |
|
|
cyber Knight
Starting Member
41 Posts |
Posted - 20 September 2003 : 13:03:44
|
Thank you Carefree ,it worked
quote: The [ code] portion is missing the opening [ code] (in blue):
its there but i forgot to put a space thats why it didn't show(if you reply with quote you will see it )but thats another problem i have to ask in the newbie's section (how to post a snitz code within the code okay now i managed to confuse myself and i doubt anyone will know what the heck am saying
Thanks again Carefree, I hope tuningsv can get it to work too. |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 22 September 2003 : 04:34:32
|
You're welcome ;-) |
|
|
tuningsv
New Member
El Salvador
67 Posts |
Posted - 09 October 2003 : 15:36:30
|
hello.... i made the changes but when the quote includes two or more replies the html code displays inside the "quote" part of the post.
|
|
|
cyber Knight
Starting Member
41 Posts |
Posted - 09 October 2003 : 18:12:52
|
I had no problem ,so far it works nicely . in my forum i use it for [ code] and in some posts 4 or 5 tables and it shows the way its supposed to.
BTW tuningsv about that http://tuningsv.com/test/index.htm i managed to exract the script for it ,if any of you guys wanted: hers its in a zip file
there is another one am trying to get because it has the line number which makes it user friendly for those who posts codes and want to point a line number
|
Edited by - cyber Knight on 09 October 2003 18:15:20 |
|
|
Ez4arab
Junior Member
479 Posts |
Posted - 12 October 2003 : 17:12:32
|
I have idea for you why don't use CSS? what you need is only this
/* Code blocks */ .code{background:#fafafa;border:1px solid #d1d7dc;color:#006600; font:11px Courier,"Courier New",sans-serif;padding:5px}
|
Ez4arab web site Ez4arab | |
|
|
|
Topic |
|