Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 refining guest-mod

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
MarcelG Posted - 13 December 2005 : 07:54:17
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.
<
1   L A T E S T    R E P L I E S    (Newest First)
MarcelG Posted - 13 December 2005 : 08:07:33
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.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07