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
  #12  
Old 01-10-2007, 01:27 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the codes in showthread and modifyoptions are changed? edit: probably not

also where is the option in the ACP? edit: found it in the user management

so UPDATED

but i think was better if you put this option ALSO in the usergroups management and not only in single user management

great, really great hack
Reply With Quote
  #13  
Old 01-10-2007, 01:42 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks very interesting, Will look more into it
Reply With Quote
  #14  
Old 01-10-2007, 01:43 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shazz View Post
Looks very interesting, Will look more into it
totally agree this hack has a lot of potential
Reply With Quote
  #15  
Old 01-10-2007, 01:49 PM
Surviver's Avatar
Surviver Surviver is offline
 
Join Date: Feb 2006
Location: Bonn, Germany
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KURTZ View Post
the codes in showthread and modifyoptions are changed? edit: probably not

also where is the option in the ACP? edit: found it in the user management

so UPDATED

but i think was better if you put this option ALSO in the usergroups management and not only in single user management

great, really great hack
Aaah Usergrouppermissions. What do you mean ? Usergroup Standard OR Rights ?


Greetings Surviver
Reply With Quote
  #16  
Old 01-10-2007, 01:59 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UG Manager ---> edit UG ecc ecc

maybe you can set that the Admin can allow a specific UG to change the postbit lay-out ... i think this is the better way ... (obviously remains the single User settings like now)
Reply With Quote
  #17  
Old 01-10-2007, 03:58 PM
waller99 waller99 is offline
 
Join Date: Oct 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The original setting is "Site Default" Where can I set the site default at? Or can this only be changed for each individual user?

I want to make "vertical" the default. How can I do this?
Reply With Quote
  #18  
Old 01-10-2007, 04:03 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by waller99 View Post
The original setting is "Site Default" Where can I set the site default at? Or can this only be changed for each individual user?

I want to make "vertical" the default. How can I do this?
in the ACP --- > vBulletin Options ecc ecc
Reply With Quote
  #19  
Old 01-10-2007, 05:11 PM
waller99 waller99 is offline
 
Join Date: Oct 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it. Thanks...
Reply With Quote
  #20  
Old 01-10-2007, 10:00 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this!
Reply With Quote
  #21  
Old 01-11-2007, 03:47 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was asking if they could release this to the wild (vb.org has the option in the usercp)....Thanks for doing it!

INSTALLED AND NOMINATED

btw....works flawlessly on my vb3.6.4 forums!
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 06:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06930 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_html
  • (3)bbcode_quote
  • (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_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