vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Postbit Toggle in User CP (https://vborg.vbsupport.ru/showthread.php?t=120793)

Cybershaolin 01-26-2007 05:48 PM

I'm using 3.6.4.

Here are all options I have! :D

Exitilus 01-26-2007 06:14 PM

I think your using the wrong Profile Field. I think your using Single-Selection Radio Buttons

You need to use Single-Selection Menu

I don't think you can change the type on a whim unless you do it via the Database.

If the option is Radio Buttons (Round circles you click) that's wrong as it doesn't determine your setting by using the "Top" "left" or whatever text you entered. It uses the position of the button selected.

Cybershaolin 01-26-2007 08:35 PM

Oh I see! Maybe that's it because I use a translated mod and it said Radio Button List! (Single selection)...

I looked at the original mod here and you're right! How do I change this in the database? Which table, which field and what change?

Thanks a lot for your help. This was running me crazy!

Exitilus 01-27-2007 12:25 AM

Do this at your own risk. But I use PHPMYADMIN. Go to the table PROFILEFIELD and change TYPE to SELECT for that Field.

Sometimes when I do this .. and view the Profile Field in AdminCP it gives some errors. I just hit save .... and go back in and it's fine after that.

Cybershaolin 01-27-2007 04:02 AM

It seems to work! Bravo!

I'll see if it holds to the option using my board in the next days...

Once again thanks a lot.

steven99 01-28-2007 04:00 AM

I changed this plugs code to:
PHP Code:

if ($vbulletin->userinfo['fieldxxxxx'] == 'Profile on top')
{
  
$vbulletin->options['legacypostbit'] = 0;
}
elseif (
$vbulletin->userinfo['fieldxxxx'] == 'Profile on left')
{
  
$vbulletin->options['legacypostbit'] = 1;


So that the option set in Style and Language will be used for everyone that hasn't this yet set -- especially guests. I specially wanted legacy postbit off and saw no need for it to set it to off again in this plug unless it needed to by the user option.

FockerFGAA 01-28-2007 06:27 AM

thats a nice mod. if i had seen this before i probably wouldnt have tried to figure it out on my own, but i think it was safer the way i ended up doing it for us not so code inclined (https://vborg.vbsupport.ru/showthread.php?t=136059) but my way required creating an extra style. ill have to consider this sometime so that i dont have to keep adding a duplicate style for every style i put on my site. thanks!

Cybershaolin 01-28-2007 07:14 AM

Quote:

Originally Posted by Cybershaolin (Post 1168168)
It seems to work! Bravo!

I'll see if it holds to the option using my board in the next days...

Once again thanks a lot.

I talked too fast! :(

I really don't understand why it's not working well. After using my board today, with my postbit options set to Profile on top, it went back again to the profile displayed at left... even if I made those changes in the DB.

When it does revert to the profile on left even if my options are ser to show it on top (I have the server options displays at the bottom hack installed) it says that the postbit template is not cache. When the profile on top is displayed, it does not show that.

I had that cache problem before but with the postbit_legacy and somebody told me to add this in order to cache it:
Attachment 59592

I also tried the code posted by steven99 and it does not even want to give me a profile on top, even if it's selected in the my options.

So, in conclusion, it does not seem to work for me. I'm about to uninstall it if nobody can find a solution for me. It gives me headaches. I just don't catch it.


All times are GMT. The time now is 04:54 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.01088 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete