Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Postbitswitcher Details »»
Postbitswitcher
Version: 1.0.1, by Surviver Surviver is offline
Developer Last Online: May 2020 Show Printable Version Email this Page

Category: End-User Options - Version: 3.6.4 Rating:
Released: 01-08-2007 Last Update: 01-09-2007 Installs: 53
DB Changes Uses Plugins Template Edits
 
No support by the author.

This Hack allow users to choose, if theay want to have a vertical or horizontal postbit.

Installation

- Import the Product
- Do the following Template-Edits

Template SHOWTHREAD

Search
HTML Code:
    <if condition="$show['addpoll']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
    </tr>
    </if>
Replace with:
HTML Code:
    <if condition="$show['addpoll']">
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
    </tr>
    </if>
    <tr>
        <td class="thead">$vbphrase[postbitlayout]</td>
    </tr>
    <tr>
        <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[postbitlayout]" /> <a href="showthread.php?$session[sessionurl]do=changepostbit&t=$threadinfo[threadid]"><if condition="$show['is_pl']">$vbphrase[postbit_top]<else />$vbphrase[postbit_left]</if></a></td>
    </tr>
Template modifyoptions

Search:
HTML Code:
<tbody id="collapseobj_uopt_thrd" style="$vbcollapse[collapseobj_uopt_thrd]">
    <tr>
        <td class="panelsurround" align="center">
        <div class="panel">
            <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
                
                <fieldset class="fieldset">
                    <legend>$vbphrase[visible_post_elements]</legend>
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                    <tr>
                        <td>$vbphrase[option_to_hide_elements]</td>
                    </tr>
                    <tr>
                        <td>
                            <div><label for="cb_showsignatures"><input type="checkbox" name="options[showsignatures]" value="1" id="cb_showsignatures" $checked[showsignatures] />$vbphrase[show_signatures]</label><input type="hidden" name="set_options[showsignatures]" value="1" /></div>
                            <div><label for="cb_showavatars"><input type="checkbox" name="options[showavatars]" value="1" id="cb_showavatars" $checked[showavatars] />$vbphrase[show_avatars]</label><input type="hidden" name="set_options[showavatars]" value="1" /></div>
                            <div><label for="cb_showimages"><input type="checkbox" name="options[showimages]" value="1" id="cb_showimages" $checked[showimages] />$vbphrase[show_images] ($vbphrase[including_attached_and_img_code])</label><input type="hidden" name="set_options[showimages]" value="1" /></div>
                        </td>
                    </tr>
                    </table>
                </fieldset>
Replace with:
HTML Code:
<tbody id="collapseobj_uopt_thrd" style="$vbcollapse[collapseobj_uopt_thrd]">
    <tr>
        <td class="panelsurround" align="center">
        <div class="panel">
            <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
                
                <fieldset class="fieldset">
                    <legend>$vbphrase[visible_post_elements]</legend>
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                    <tr>
                        <td>$vbphrase[option_to_hide_elements]</td>
                    </tr>
                    <tr>
                        <td>
                            <div><label for="cb_showsignatures"><input type="checkbox" name="options[showsignatures]" value="1" id="cb_showsignatures" $checked[showsignatures] />$vbphrase[show_signatures]</label><input type="hidden" name="set_options[showsignatures]" value="1" /></div>
                            <div><label for="cb_showavatars"><input type="checkbox" name="options[showavatars]" value="1" id="cb_showavatars" $checked[showavatars] />$vbphrase[show_avatars]</label><input type="hidden" name="set_options[showavatars]" value="1" /></div>
                            <div><label for="cb_showimages"><input type="checkbox" name="options[showimages]" value="1" id="cb_showimages" $checked[showimages] />$vbphrase[show_images] ($vbphrase[including_attached_and_img_code])</label><input type="hidden" name="set_options[showimages]" value="1" /></div>
                        </td>
                    </tr>
                    </table>
                </fieldset>
$postbitoptions
Have fun

Known Bugs
  • None
Changelog

v 1.0.1
[F] Guests can now change the postbit type
[+] Now you can change this setting if you edit a user via ACP

Greetings Surviver

PS: If someone can improve the translation, it would be nice, if he would do this, because my English is very bad.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-12-2007, 01:29 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simply marvelous. Installed and working!
Reply With Quote
  #23  
Old 01-14-2007, 02:03 PM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, thanks a lot. Installed.
Reply With Quote
  #24  
Old 01-02-2008, 08:10 PM
thewolrab thewolrab is offline
 
Join Date: Dec 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent. I was looking for one of these as the one provided on vBulletin.com for 3.5.x was no longer working for me, and (obviously) I expected the change on modifyoptions, but the dHTML popup in threads as well?

Installed:up:
Reply With Quote
  #25  
Old 03-06-2008, 04:14 AM
Saskia's Avatar
Saskia Saskia is offline
 
Join Date: Oct 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These kinds of wonderful hacks are the ones vB should implement into its next version.

Excellent work and with such an easy install. Simple and incredibly useful. Working perfectly on 3.6.8. Keep it up!
Reply With Quote
  #26  
Old 03-06-2008, 06:15 AM
mikkitine's Avatar
mikkitine mikkitine is offline
 
Join Date: Oct 2007
Location: London
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

3.6.8 PL 2: Works perfectly. Thank you.
Reply With Quote
  #27  
Old 05-08-2008, 05:03 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

French language by Nerilka
Reply With Quote
  #28  
Old 05-23-2008, 09:14 AM
akee's Avatar
akee akee is offline
 
Join Date: Feb 2007
Location: Hungary
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi!

try it somebody on 3.7.0 Gold?

I try it today, this is works on 3.7.0 Gold!
Reply With Quote
  #29  
Old 04-28-2010, 02:29 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working fine on 3.8.X
Reply With Quote
  #30  
Old 01-13-2011, 01:13 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Surviver,

Can you update this to vb 4.x please?

Thanks!

.
Reply With Quote
  #31  
Old 04-20-2011, 02:41 PM
empire10 empire10 is offline
 
Join Date: Oct 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this working on 4.1.3, the functionality is still working but it does not display the user option in the profile edit options. To fix this do the following:

Edit template "modifyoptions_postbitmode" and replace the contents with:

Code:
<div class="blockrow">
	<label for="sel_threadedmode">$vbphrase[post_display_mode]</label>
	<select name="postbitmode">
		<option value="0"<if condition="!$vbulletin->userinfo['postbitmode'] OR $vbulletin->userinfo['postbitmode'] == 0"> selected="selected"</if>>$vbphrase[use_forum_default]</option>
		<option value="1"<if condition="$vbulletin->userinfo['postbitmode'] == 1"> selected="selected"</if>>$vbphrase[postbit_top]</option>
		<option value="2"<if condition="$vbulletin->userinfo['postbitmode'] == 2"> selected="selected"</if>>$vbphrase[postbit_left]</option>
	</select>
	<p class="description">$vbphrase[choose_post_display_mode]</p>
</div>
And edit plugin "Optionen Anzeigen" replace with:
Code:
$templater = vB_Template::create('modifyoptions_postbitmode'); 
$template_hook['usercp_options_other'] .= $templater->render();
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:01 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.04855 seconds
  • Memory Usage 2,335KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete