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)
 refining guest-mod
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 13 December 2005 :  07:54:17  Show Profile  Visit MarcelG's Homepage  Reply with Quote
I'm working on refining my guest mod feature at oxle, and I'm a bit stuck.
At this moment, the way the guest mod works at oxle is that a user can use the Guest account to post a message.
He/she then hás to fill out a nickname, which is then added to the message at the bottom in this format:
[pbg]nickname[/pbg]
The PBG tag is handled by the extratags function, and is converted to a div, with the text 'posted by nickname, an anonymous guest'.

This works very much ok, however, I want to do it differently.
I want to 'move' the nickname from the message to the username next to the message, instead of the 'Guest' username.
So, in short, my question is this:
How do I pull the nickname part out of the message ? I knów it's surrounded by [pbg][/pbg], but that's as far as my hunch goes.
Any idea is very much welcome.
<

portfolio - linkshrinker - oxle - twitter

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 13 December 2005 :  08:07:33  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Never mind, I found it.
Mid(Reply_Content,(Instr(Reply_Content,"[pbg]")+5),(Instr(Reply_Content,"[/pbg]")-(Instr(Reply_Content,"[pbg]")+5)))

Perhaps not the nicest solution, but it does the trick.<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07