refining guest-mod - Posted (415 Views)
Retired Support Moderator
MarcelG
Posts: 2625
2625
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. <
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
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.<
 
You Must enter a message