Author |
Topic |
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 07 March 2002 : 22:35:51
|
Given enough time I could probably figgure this out on my own, but so far I've only given myself a headache.
What I need to do is take a string, find a spacific substring or 'tag' within the string and the corrisponding 'closing tag' I need to isolate the string between the two tags and send it though a function that I have already prepaired. (It works nicely too ) Then I need to replace the origional string chunk with the value returned from the function.
Nathan Bales - Romans 15:13 ---------------------------------- Snitz Exchange | Do's and Dont's |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 07 March 2002 : 22:45:54
|
take a look at the ReplaceImageTags function in the inc_functions.asp file. |
|
|
Nathan
Help Moderator
USA
7664 Posts |
|
Nathan
Help Moderator
USA
7664 Posts |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 08 March 2002 : 00:55:06
|
Are we going to get to see what this "It" is? |
|
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 08 March 2002 : 01:11:10
|
Its not finished yet, still gotta add all the bells and wistles
I believe it is on your wish list too . . .
Nathan Bales - Romans 15:13 ---------------------------------- Snitz Exchange | Do's and Dont's |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 08 March 2002 : 04:34:57
|
Not even a little hint Nathan
www.daoc-halo.com |
|
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 08 March 2002 : 18:33:34
|
Not yet, I but do be watching the mods forum either tonight or sometime tomarrow
Nathan Bales - Romans 15:13 ---------------------------------- Snitz Exchange | Do's and Dont's |
|
|
Deleted
deleted
4116 Posts |
Posted - 08 March 2002 : 18:52:59
|
Nathan, this is what I used in http://www.istanbulmuzesi.org to deal with multi-language forums.
function doLangCode (fString) DIM i, s, fOTagPos, fCTagPos, fOTag, fCTag 'get the correct language part fOTag = "[" & strLangLCID & "]" fCTag = "[/" & strLangLCID & "]" fOTagPos = Instr(1, fString, fOTag, 1) fCTagPos = Instr(1, fString, fCTag, 1) if (fCTagPos > 0 and fOTagPos > 0) then s = mid(fString, fOTagPos + len(fOTag), fCTagPos - fOTagPos - len(fOTag)) else s = fString end if doLangCode = s end function
I also replaced all text based output from database in each ASP file, with this function, meaning:
I replaced this:
... rs("NAME") ...
With this:
... doLangCode(rs("NAME")) ...
I also added a similar thing into chkstring function ("title" and "display"), which did most of the work.
Edited by - bozden on 08 March 2002 18:54:18
Edited by - bozden on 08 March 2002 18:55:51 |
|
|
Nathan
Help Moderator
USA
7664 Posts |
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 09 March 2002 : 18:43:31
|
Looks interesting Nathan, will try it out later today
www.daoc-halo.com |
|
|
|
Topic |
|