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)
 Split thread feature.
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 5

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 16 November 2004 :  20:34:55  Show Profile
Stim, modify the function to cut it at 75 characters will you?
In fact, create a variable that contains the number of characters to do the cut off at, so I can change it at a later time.

Support Snitz Forums
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 16 November 2004 :  21:05:47  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Ok here you go davio... Demo here.

Syntax CustomLeft(strToFilter, LengthReturned)

Dont go under 20 charecters to return... 20 is the minimum.


Function CustomLeft(fString, fLen)
  if ((InStr(fString, "<")>0) and (InStr(fString, ">")>0) and len(fString)>fLen) Then
    Dim strTemp, strTempcnt, strBrk1, strBrk2, strRemoved,tagCount
	strTemp = fString
	strTempcnt = 0
	strRemoved = 0
	tagCount = 0
	  Do While (InStr(1, strTemp, "<")>0) And (InStr(1, strTemp, ">")>0)
	    strBrk1 = InStr(1, strTemp, "<")
	    strBrk2 = InStr(1, strTemp, ">")-strBrk1
	    tagCount = tagCount + 1
	    strRemoved = strRemoved + Len(Mid(strTemp, strBrk1, strBrk2))
	    strTemp = Left(strTemp, Instr(1, strTemp, "<")-1) & Right(strTemp, Len(strTemp)-Instr(1,strTemp, ">"))
	    strTempcnt =  Len(strTemp)
		if (InStr(Left(strTemp, fLen), "<")<1) And (InStr(Left(StrTemp,fLen),">")<1) then
		  Exit Do
		end if
	  Loop
	  
	  if ((strTempcnt > fLen) and (strRemoved > 0)) then
		LastChars = Right(Left(strTemp, ((fLen)+Cint(Instr(Mid(strTemp,(fLen),20)," ")))-1),5)
		CustomLeft = Left(fString, InStr(fString, LastChars)+4) & "..."
	  elseif (strTempcnt > fLen) and (strRemoved < 1) then 
 	    CustomLeft = Left(fString, ((fLen)+Cint(Instr(Mid(fString,(fLen),20)," ")))-1) & "..."
	  else
	    CustomLeft = fString
	  end if
  elseif len(fString)>fLen then
 	CustomLeft = Left(fString, ((fLen)+Cint(Instr(Mid(fString,(fLen),20)," ")))-1) & "..."
  else
        CustomLeft = fString
  end if
End Function

-Stim
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 16 November 2004 :  21:31:23  Show Profile
Thanks Stim.

Support Snitz Forums
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 07 December 2004 :  06:13:31  Show Profile  Visit richfed's Homepage
Hi Davio -

Just inquirying as to the progress of this MOD [much needed!] ... do you think it'll become a reality?

I use a MS-SQL server database and would be happy to test it for you live if you need it.

Thanks -

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 December 2004 :  16:29:06  Show Profile
Well, I had mentioned before I will be posting the progress of the mod on my forum. Only a few members have been taking notice of the progress.

I have finished the mod. The beta testers are testing it and should be released by next week, if not sooner.

Support Snitz Forums
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 08 December 2004 :  05:01:50  Show Profile  Visit richfed's Homepage
Good news ... thanks for all you do!
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 08 December 2004 :  09:29:58  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
WOHOO! An early christmas gift! =)
Thanks alot!

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 12 December 2004 :  01:46:36  Show Profile  Visit muzishun's Homepage
Out of curiosity, dayve... will this MOD have the ability to merge topics as well? Or will all of the newly split topics have to go into new threads?

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 12 December 2004 :  17:44:39  Show Profile
Although I'm not Dayve, I'll answer your question.
No it doesn't have the option to merge topics. The replies you select go into a new topic.

Support Snitz Forums
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 12 December 2004 :  22:25:37  Show Profile  Visit muzishun's Homepage
Well, it was worth asking. I may just edit the database directly at some point to move all of the entries to the thread that I want them in... I don't forsee this being a regular occurance anyway.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 13 December 2004 :  12:15:32  Show Profile
The mod has been released. See here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=56103

Support Snitz Forums
Go to Top of Page
Page: of 5 Previous Topic Topic Next Topic  
Previous 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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07