refining guest-mod

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/60449?pagenum=1
05 November 2025, 14:46

Topic


MarcelG
refining guest-mod
13 December 2005, 07:54


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. <

 

Replies ...


MarcelG
13 December 2005, 08:07


Never mind, I found it. bigsmile
Code:
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.<
© 2000-2021 Snitz™ Communications