PDA

View Full Version : New Posting Features - Post Greeting


Theoldwiz
03-01-2008, 10:00 PM
Hello, this mod lets your users type in a greeting along with a signature.

Profile Field:

User Profile Fields / Add new profile field / Single Line Text Box

Title: Greeting

Description: The greeting that shows up on all of your posts

Max input length: 25

Field Length: 25

Type: Single Line

Field Required: No, but display at registration, or just no, you choose

Field Editable: Yes

Private: No

Field Searchable on Members List: No

Show on Members List: No

Now go to user profile fields / user profile field manager

Jot down the field number of the greeting (It says fieldX)

Template Edits:

Go to your postbit or postbit legacy (whatever you use)

Find: <div id="post_message_$post[postid]" align="left">$post[message]

Add ABOVE: $post[fieldX] <br>

Replace: X with your fields number you jotted down.


Enjoy

7lanet
03-02-2008, 04:47 PM
thanks
^_^

Theoldwiz
03-02-2008, 04:49 PM
Your welcome, enjoy :D

codershark
03-02-2008, 06:05 PM
any example or screenshot ?

I dont know what the hack do :(

Theoldwiz
03-02-2008, 07:42 PM
Ill get a screenshot soon but let me explain.

This hack allows users to select a greeting that heads every post. Such as Hey, or Hi, or anything they want.

mystic10
03-03-2008, 03:53 PM
can i use it for 3.6.8 as well

SEOvB
03-03-2008, 06:05 PM
this will show up in every single post (previous and new posts) made by the user, which would be pretty annoying. and you should change the location of where you've put your "custom code"


$post[fieldX] <br />


Should go before the $post[message], and not outside of the div for it like so:

<div id="post_message_$post[postid]" align="left">$post[fieldX] <br />$post[message]

mesdar
12-12-2008, 06:33 AM
thanks

installed