vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   New Posting Features - Post Greeting (https://vborg.vbsupport.ru/showthread.php?t=171905)

Theoldwiz 03-01-2008 10:00 PM

Post Greeting
 
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:
Code:

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

$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"

Code:

$post[fieldX] <br />
Should go before the $post[message], and not outside of the div for it like so:
Code:

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

mesdar 12-12-2008 06:33 AM

thanks

installed


All times are GMT. The time now is 01:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01079 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete