vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   User Postbit Template Selection (https://vborg.vbsupport.ru/showthread.php?t=91407)

vBulletin THEN DAYLIGHT 05-22-2006 07:23 PM

No worries, fixed!!!!!!!!!!!!!!! WOOOOOOOOOOOOO!!!!!!

gopherhockey 08-08-2006 02:31 AM

The posts and replies are too difficult to follow here.

Has anyone actually gotten this, or something similar, to work if you have the legacy postbit option set on in your admincp?

I want the legacy postbit to be the default for guests and all new registrations. Therefore, I have to keep this set. If not, it usese the new postbit, which I dislike but want users to select if they wish.

Basically I want the entire thing to work backwards.

I would just paste the legacy into postbit and postbit into legacy, but there are users who have selected their option and this would create a mess.

Oblivion Knight 08-08-2006 07:01 AM

How to get this working with EITHER postbit or postbit_legacy as default.

Move the plugin to use the hook cache_templates, and replace the code with:
Code:

global $vbulletin;
if ($vbulletin->userinfo['field5'] != 'Use Forum Default')
{
        if ($vbulletin->userinfo['field5'] == 'Horizontal Postbit')
        {
                $vbulletin->options['legacypostbit'] = 0;
        }
        elseif ($vbulletin->userinfo['field5'] == 'Vertical Postbit (Legacy)')
        {
                $vbulletin->options['legacypostbit'] = 1;
        }
}

Add an additional option to the custom profile field at the TOP of the list, "Use Forum Default".

This should work on both 3.5.x and 3.6.x setups.. :)

MotMann 09-24-2006 09:42 PM

@Oblivion Knight

It's not works on Vb 3.6.1 :(

I used the last code from you...

MotMann 11-13-2006 08:57 AM

Quote:

Originally Posted by vBulletin THEN DAYLIGHT (Post 984977)
No worries, fixed!!!!!!!!!!!!!!! WOOOOOOOOOOOOO!!!!!!

And what yo do? On my side it's not working.

Konstantinos 12-17-2006 06:46 AM

it doesnt work in 3.6.4

brvheart 01-08-2007 01:47 PM

Could we get a port to 3.6.x for this? This is a great option to give the members :)

gothicuser 01-10-2007 12:41 PM

Just managed to get this working perfectly under 3.6.4 using instructions from THIS post
Many thanks Oblivion Knight :D

brvheart 01-10-2007 01:11 PM

how do you move the plugin? Sorry never done that....I will be kick myself it is so easy...


EDIT: Nevermind I got and it is working :) thank you

SoftWareRevue 04-24-2007 12:15 PM

Quote:

Originally Posted by Oblivion Knight (Post 1047326)
How to get this working with EITHER postbit or postbit_legacy as default....This should work on both 3.5.x and 3.6.x setups...

Can someone explain this in a "step-by-step guide for the complete idiot" kind of way, please? :)


All times are GMT. The time now is 11:05 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.01219 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete