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)
-   -   End-User Options - Postbitswitcher (https://vborg.vbsupport.ru/showthread.php?t=136018)

Surviver 01-08-2007 10:00 PM

Postbitswitcher
 
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.

KURTZ 01-09-2007 08:01 PM

INSTALLED

edit: but in the quick menu i havent any option :( and for future developments, maybe is a good thing to put the options in the ACP too :)

anyway good job

SIN77 01-09-2007 08:16 PM

thanx for this, i perfer the horizontal postbit, but some of my members prefer the vertical one

hcmagix 01-09-2007 08:40 PM

Hey Danke Surviver, hast Du das auch TMS optimiert? ;)

Super Sache

projectego 01-09-2007 08:41 PM

Awesome! Thanks, Survivor!

Goat Boy 01-09-2007 11:57 PM

Just want I always wanted.

Thanks

Surviver 01-10-2007 03:29 AM

Quote:

Originally Posted by KURTZ (Post 1154891)
INSTALLED

edit: but in the quick menu i havent any option :( and for future developments, maybe is a good thing to put the options in the ACP too :)

anyway good job

I will add it ;)

Quote:

Originally Posted by hcmagix (Post 1154919)
Hey Danke Surviver, hast Du das auch TMS optimiert? ;)

Super Sache

Das Produkt unterst?tzt TMS :)

Greetings Surviver

AzzidReign 01-10-2007 03:39 AM

Wow! Thanks a lot! I was hoping vbulletin would eventually release this as a part of their code since not everyone likes horizontal and not everyone likes vertical postbits!

My members are going to go nuts when they see this :)

Hornstar 01-10-2007 09:07 AM

Now I wish I had added the modifications to the other postbit in all my templates lol I'll probably install this when I get around to adding all the content to them. nice work tho.

D.Ilyin 01-10-2007 01:23 PM

UPDATED it! thanks!


All times are GMT. The time now is 06: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.01794 seconds
  • Memory Usage 1,766KB
  • 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
  • (4)bbcode_html_printable
  • (2)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
  • (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