Author |
Topic |
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
|
xx ENIGMA xx
Junior Member
166 Posts |
Posted - 12 December 2003 : 12:34:46
|
quote: Originally posted by marcelgoertz
No changes in post.asp, just some changes in inc_func_common.asp as I recall. Here's the topic: http://www.crashsite.nl/topic.asp?TOPIC_ID=3337 I also created some new ways of showing images in this mod. It's not very hard to do, but if you do have questions, you know where to find me!
I've been trying to do this "quote in table" and have asked for help here with little turn out.
Could you post how you did this as I have been trying to follow what you have done at crashsite but you have single quote's in the pasted code and when I fix that it still doesnt create a table for me, so I must be missing something. |
my little forum playground
|
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 12 December 2003 : 12:43:15
|
Marcel, I tried the stuff at crashsite also. No success. Would you be kind enough sir to bestow your asp prowess on us. Your framed quotes look great. We stand humbly beseeching you! |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 12 December 2003 : 15:31:59
|
As the code I am about to paste into this topic will be containing [code] tags that should not be interpreted, I guess the risk of misinterpretation is too big. That's why I will simply provide you with direct download links to my inc_func_common.asp and inc_func_posting.asp.
In short the functions of both files: inc_func_common.asp ; this file (amongst other things) interprets the codes you write in post.asp to HTML code. So, simply if you write [b], it makes sure that <b> is written to the record. inc_func_posting.asp ; this file works the other way around. It reads the HTML from the db, and translates it back to forumcode.
So, what does this mean ? It means that if you change something in one file, you will need to change/add it also in the other file. For instance, if I tell inc_func_common.asp to interpret [b] as <strong>, I will need to make sure that somewhere in inc_func_posting.asp a function is used to translate <strong> back to [b].
Okay, but how this affect the [quote] function ? You surely have used the quote function before, in an already existing topic. This topic is stored in the db, and the entry is stored with the quote code as defined in your current inc_func_common.asp. So, if you change this function, and also change the corresponding function in inc_func_posting.asp, you will not be able to edit the existing topics which contain quotes. These quotes will be displayed as HTML instead of forumcode. So, you will have to add the new quote-code to inc_func_posting.asp.
Okay, now I've explained this, I can point out the risk which goes along with my version of the mod. My bordercolor of the quote-table is derived from the db. So, when i change this color in the forum, the function inc_func_posting.asp will NOT be able to translate the existing quote table to forumcode.
A whole story innit ?
Okay, now to business: Look in my inc_func_common.asp, and search for [quote] You can completely replace this section with your section in inc_func_common.asp. You could also replace the " & strTableBorderColor & " with a hardcoded colorvalue.
Now look in my inc_func_posting.asp, and again search for [quote] (lines 101, 102, 123, 124, 125, 126) You can add these sections to your section in inc_func_posting.asp. If you replaced the the " & strTableBorderColor & " with a hardcoded colorvalue, you need to do the same here!
Hope this helps.
|
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 12 December 2003 15:34:36 |
|
|
xx ENIGMA xx
Junior Member
166 Posts |
Posted - 12 December 2003 : 15:50:50
|
thanks marcelg, I will give it another try and me being a complete asp n00b hopefully wont dictate my success
EDIT: thanks for the post, it took a bit but I finally got it |
my little forum playground
|
Edited by - xx ENIGMA xx on 13 December 2003 16:36:03 |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
|
RebelTech
Average Member
USA
613 Posts |
Posted - 13 December 2003 : 20:25:10
|
Enigma, I haven't started yet any hints? |
|
|
imotep
Starting Member
23 Posts |
Posted - 13 December 2003 : 21:40:26
|
Marcel, Take a look at your site with Opera. Your tables get messed up. The one that has "the forums:", "the frontpage:", etc is full width which pushes down your front page news table to even with the ":plans:" table. |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 14 December 2003 : 05:08:55
|
imotep, thanks for that remark. I will look into it as soon as possible. (i've tested with IE and Mozilla 1.5)I have fixed it I've now tested with IE 6.x, Mozilla 1.5 and Opera 7...I guess that covers about 80% over the market ? Maybe someone can explain me this, but why does the exact same code produce a completely different page in these three browsers ? In Opera for instance the image resize function again does not work Also the hr's under a post are shown differently (not in the correct color), the quote's are shown differently (even differently than they shown in Mozilla, and as they do in IE) So, three browsers, three different versions of my site |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 14 December 2003 05:38:30 |
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 14 December 2003 : 06:17:07
|
Marcel, glad you fixed it. I thought you were going to have one heck of a job on your hands tracking it down. What did you have to do to fix it? |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 14 December 2003 : 06:44:35
|
I had to add about 6 </table> entries to the sidebar.asp file...I don't know why, but that fixed it... |
portfolio - linkshrinker - oxle - twitter |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 21 December 2003 : 18:32:43
|
okay, some small updates ; added the board time/date to the header for members (no room for this info for users who haven't logged in). Next to that implemented paging in the articles/news/weblogs by means of a dropdown-paging (ripped from topic.asp). |
portfolio - linkshrinker - oxle - twitter |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 08 January 2004 : 08:41:00
|
OWM, I agree... this is just a test, to see if it actually does pay to serve ads, and I am afraid that I won't earn very much with this....less than $ 0,05 a day on average. And, as I don't want to sacrifice useable space I've placed them in the sidebar, and the only format they have for that width is the 'skyscraper' model...and that's big. Do you think that the 'Agorahosting' ad is too big also ? |
portfolio - linkshrinker - oxle - twitter |
|
|
Topic |
|