Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
User Postbit Template Selection Details »
User Postbit Template Selection
Mod Version: 1.00, by WhSox21 (Member) WhSox21 is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Beta 3 Rating: (1 vote - 5.00 average) Installs: 106
Released: 30 Jun 2005 Last Update: 08 Jul 2005 Downloads: 211
Not Supported Uses Plugins  

I'm just getting back into the swing of things with vBulletin 3.5. Here's my first plugin being released (Others are still in progress).

What this does:
This allows users to select which postbit they wish to use via their control panel.

Installation
Upload the plugin and create a new user profile field by following the directions below.
Once you complete the top two steps you must edit the plugin and find: field5
Then change that to your user profile field number.

Add a New User Profile Field

Profile Field Type:
Single-Selection Menu

Title: Postbit Template Selection

Description:
If you prefer the old-style postbit, using two vertical columns rather than the new horizontal layout, you can switch back to using that template with this switch.

Options:
Horizontal Postbit
Vertical Postbit (Legacy)

Set Default:
Yes, but no First Blank Option

Display Order:
This is your choice.

Field Required:
No

Field Editable by User:
Yes

Private Field:
Yes

Field Searchable on Members List
No

Show on Members List
No

Allow user to input their own value for this option
No

The rest does not matter.

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 26 Jul 2005, 02:19
Christine's Avatar
Christine Christine is offline
 
Join Date: Nov 2001
Real name: Christine. Really.
Heya,

This hook location conflicts with the ignore user function as well as the soft-delete noted above.

No biggie -- it is just an issue of when it is being called.

Tested with a minor change to the code and moving the hook to global_start. Add in the template cache I PM'd ya, and you are all set.

Attached Images
File Type: jpg legacy.jpg (45.1 KB, 163 views)
__________________
L'chaim
Reply With Quote
  #17  
Old 26 Jul 2005, 08:47
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Real name: Aman Singh
Exactly what i was looking for thanks...
Reply With Quote
  #18  
Old 01 Aug 2005, 13:56
trancetopia trancetopia is offline
 
Join Date: Feb 2005
Real name: Paul
Works a treat. Thanks.
__________________
.: Trancetopia :.
UK Photography Forum
Reply With Quote
  #19  
Old 04 Aug 2005, 06:09
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Can you attach the minor change you did to the code to fix the problem?

-CMX
Reply With Quote
  #20  
Old 06 Aug 2005, 20:51
Christine's Avatar
Christine Christine is offline
 
Join Date: Nov 2001
Real name: Christine. Really.
Given that this isn't my hack, I would prefer for the hack author to fix and re-release it. No stepping on any toes that way.

__________________
L'chaim
Reply With Quote
  #21  
Old 06 Aug 2005, 20:53
WhSox21 WhSox21 is offline
 
Join Date: Feb 2004
Originally Posted by Christine
Given that this isn't my hack, I would prefer for the hack author to fix and re-release it. No stepping on any toes that way.

Christine,

If you have the time would/could you PM me the working code? I'll re-release it along with giving you credit for your work.

I'm very busy right now getting the Help Desk plugin converted to 3.5.
__________________
Reply With Quote
  #22  
Old 06 Aug 2005, 22:26
Christine's Avatar
Christine Christine is offline
 
Join Date: Nov 2001
Real name: Christine. Really.
Done.
__________________
L'chaim
Reply With Quote
  #23  
Old 11 Aug 2005, 06:33
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Real name: Jonnie.
Has anyone figured out how to make this work if you have postbit_legacy selected in the vboptions. Because I have racked my brain trying to get it to work to no avail. And I would like to make postbit_legacy default for members AND guests.
__________________
Check out http://www.alotoftalk.com/ my new vB 3.5 forum =)
Reply With Quote
  #24  
Old 12 Aug 2005, 04:55
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Real name: Jonnie.
Ok the problem lies in functions.php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

vBulletin replaces the templatename of postbit with postbit_legacy if you have the setting selected in the cp, no matter what you do before hand. So short of hacking files this sort of hack will never work with postbit_legacy selected in the cp.
__________________
Check out http://www.alotoftalk.com/ my new vB 3.5 forum =)
Reply With Quote
  #25  
Old 12 Aug 2005, 06:06
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Aha, I have figured it out.

I have my forums enabled for "Legacy Postbit" by default.

Add the plugin to the hook 'cache_templates'

Use this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

CHANGE the field9 to your userfield fieldname.

This way when it caches the template, it will disable the legacypostbit option and not force it to use postbit_legacy.

-CMX
Reply With Quote
  #26  
Old 12 Aug 2005, 08:50
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Real name: Jonnie.
Originally Posted by CMX_CMGSCCC
Aha, I have figured it out.

I have my forums enabled for "Legacy Postbit" by default.

Add the plugin to the hook 'cache_templates'

Use this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

CHANGE the field9 to your userfield fieldname.

This way when it caches the template, it will disable the legacypostbit option and not force it to use postbit_legacy.

-CMX
Thnx for the help man, sometimes the solution is right in front of you. You just need to get some alternate thinking =)
__________________
Check out http://www.alotoftalk.com/ my new vB 3.5 forum =)
Reply With Quote
  #27  
Old 17 Aug 2005, 18:37
RoryF RoryF is offline
 
Join Date: Apr 2005
Thanks CMX_CMGSCCC, works like a charm
Reply With Quote
  #28  
Old 27 Sep 2005, 19:09
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Real name: Domates
Is there any way to do it with plugin?
__________________
http://www.dipsizkuyu.net - Turkey's fountain of knowledge.
Reply With Quote
  #29  
Old 03 Oct 2005, 01:17
Loony BoB's Avatar
Loony BoB Loony BoB is offline
 
Join Date: Mar 2004
I've tried to implement this and failed miserably.

I tried using the default version and had that same problem with the deleted posts. Then I tried using the above version instead, and I got the following message whenever I tried to edit my user options...

Could not find phrase '::$values for profile fields is not an array::'.

Any ideas on whether we can get a working version of this available for download instead of downloading the file just to find it doesn't work?
Reply With Quote
  #30  
Old 03 Oct 2005, 13:04
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Thanks for this fix
__________________
utassault.net forums
Free hosting for
28 co-branded Unreal Tournament clans/projects
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:02.

Layout Options | Width: Wide Color: