vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - User's Forum status (https://vborg.vbsupport.ru/showthread.php?t=153626)

napukjon 07-27-2007 10:00 PM

User's Forum status
 
This mod allows you to add a profile field where users can state whether or not they are on the board and available. This is then added to the postbit(_legacy) so people can see when posting whether or not they will be getting a reply from the person soon etc.

Instructions
1. Go to your ACP > User Profile Field > Add New Profile Field
2. Use either Single Selection Menu/Radio Buttons
3. Then enter the following information into the fields (Feel free to change them to your own - This is just what i have put in)

Title: Forum Status
Description: Are you available at the moment?
Options: -
Available
On Holiday
Prolonged Absence
Message me, ill get back to you when i can.

4. Click Submit.
5. Add another profile field with the following information (Again feel free to change)

Title - Absence Message
Description - If you are on holiday or Absent for prolonged period, and would like to leave a message (Maybe when you are returning etc, please leave it here)
Max Length of allowed user input - 500 (Make it more if you so wish, i think this should be sufficient though.)
And the rest should be fine as they are.

6. Take a note of the 2 fields numbers you have just created. Your going to need this for the template edit.

Now for the template edits...

1. Go to Style & Templates > Style Manager > Select the Style(s) you want to edit > Find "edit templates" in the drop down list > Postbit(_Legacy)

Find:
Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>

After add:
Code:

                                <div>
                                        Forum Status: $post[fieldxx]
                                </div>

Field xx is the number of the custom field which relates to the forum status.

That should be that, and it should be fixed up. Any problems let me know and ill see what i can do to help. But it would be nice for others to help each other if there are any problems :)

Triky 07-30-2007 02:52 PM

In its small, this can be a good idea.
Installed. :)

rayphua 07-30-2007 03:48 PM

Would be more interesting if users are able to set their status in ajax at a location that's more accessible than going into control panel. thanks.

LjubavnaZona 08-05-2007 12:01 AM

Ahmm I have a little problem with this. In the User Profile Field: Absence Message that I created I am unable to leave the Option blank. I have to enter something because it's telling me that I have to put something in it. And I tried to just put "Leave a message" but than I dont get any box to write in for my long absence ... I am not sure what I am doing wrong, I followed all of the instructions... other than that looks great.
Thank you!

LjubavnaZona 08-05-2007 12:02 AM

Never mind I found the problem :) Duh!!

cbiweb 08-05-2007 12:41 AM

Good mod, but how does it get around the cookie timeout problem? For instance, if the timeout is set to 15 minutes, it's quite possible the member is not actually in the forums anymore, even though his status says he is, due to the timeout period.

Wheezy 08-31-2007 03:08 AM

Thanks for this! Installed.


All times are GMT. The time now is 03:36 AM.

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.02366 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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