vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - [tk] Egg Avatar (https://vborg.vbsupport.ru/showthread.php?t=208324)

UncoderMom 04-11-2009 02:44 AM

Oooh I thought I'd mention... the pop up for me to clean my own avi comes up fine.

Bounce 04-11-2009 08:48 AM

Quote:

Originally Posted by hambil (Post 1788593)
They won't expire until the user logs in and sees them.

This avatar has been egged the maximum 0 times :eek:

Thought 0 was to disable ?
Quote:

Maximum Eggings.
Maximum number of time an avatar can be egged. After which all eggings will be denied until some fade with time or are cleared. 0 disables

hoof 04-11-2009 12:37 PM

I was having an issue with the pop up as well and fixed it to my liking. I thought I'd share for those having the same problem :)

Here's what I changed:

Go to adminCP>style manager> and find the "eggav_bit" template
Replace contents with:
Code:

<div class="thead">$vbphrase[eggavatar_egg]: <span style="font-weight:normal">$username</span></div>
<if condition="$vbulletin->options[eggavatar_creditsenable]"><div class="thead">{$vbulletin->options[eggavatar_eggcost]} {$vbulletin->options[eggavatar_creditname]} $vbphrase[eggavatar_toegg]</if><if condition="$show[clean] AND $vbulletin->options[eggavatar_creditsenable]">,&nbsp;{$vbulletin->options[eggavatar_cleancost]} {$vbulletin->options[eggavatar_creditname]} $vbphrase[eggavatar_toclean], $cleanall_cost $vbphrase[eggavatar_tocleanall].</td></tr></if><if condition="$vbulletin->options[eggavatar_creditsenable]"></div></if>
        <div class="panelsurround" align="center">
        <div class="panel">
                <div <if condition="!$show['ajax']">style="width:$stylevar[formwidth]"</if> align="$stylevar[left]">
                <fieldset class="fieldset">
                        <legend><phrase 1="$username">$vbphrase[what_do_you_want_to_egg_xs_with]</phrase></legend>
                        <div style="height: 160px; overflow-x: hidden; overflow-y: auto;">
                        <div style="border: thin solid black;" align="center">
            <if condition="$show['egg']">
                $eggavatar_eggbits
            <if condition="$show['clean']"></if>
<span style="color: #80909c; font-weight: bold;"><a>----- Clean your Avatar Options -----</a></span>
                $eggavatar_cleanbits
            </if>
        <!-- <div style="margin-top:$stylevar[cellpadding]px;" "border: thin solid black;"> -->
                <input type="hidden" name="do" value="addegg" />
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                <input type="hidden" name="uid" value="$userid" />
                <input type="hidden" name="pid" value="$postid" />
                <input type="hidden" name="url" value="$url" />
                <input type="submit" name="eggsubmit" class="button" value="$vbphrase[eggavatar_egg_submit]" accesskey="s" />

</div>
                </div>
                </fieldset>
                </div>
        </div>
        </div>
</div>

Now everything displays in the first container with a simple separation on the cleaning section.
Hope this helps, and I hope you don't mind me posting this hambil.
My community loves this modification :)

hambil 04-11-2009 02:13 PM

Quote:

Originally Posted by hIBEES (Post 1788759)
This avatar has been egged the maximum 0 times :eek:

Thought 0 was to disable ?

Hmmmm - I'll get that fixed.

hambil 04-11-2009 02:14 PM

Quote:

Originally Posted by hoof (Post 1788856)
I was having an issue with the pop up as well and fixed it to my liking. I thought I'd share for those having the same problem :)

Here's what I changed:

Go to adminCP>style manager> and find the "eggav_bit" template
Replace contents with:
Code:

<div class="thead">$vbphrase[eggavatar_egg]: <span style="font-weight:normal">$username</span></div>
<if condition="$vbulletin->options[eggavatar_creditsenable]"><div class="thead">{$vbulletin->options[eggavatar_eggcost]} {$vbulletin->options[eggavatar_creditname]} $vbphrase[eggavatar_toegg]</if><if condition="$show[clean] AND $vbulletin->options[eggavatar_creditsenable]">,&nbsp;{$vbulletin->options[eggavatar_cleancost]} {$vbulletin->options[eggavatar_creditname]} $vbphrase[eggavatar_toclean], $cleanall_cost $vbphrase[eggavatar_tocleanall].</td></tr></if><if condition="$vbulletin->options[eggavatar_creditsenable]"></div></if>
        <div class="panelsurround" align="center">
        <div class="panel">
                <div <if condition="!$show['ajax']">style="width:$stylevar[formwidth]"</if> align="$stylevar[left]">
                <fieldset class="fieldset">
                        <legend><phrase 1="$username">$vbphrase[what_do_you_want_to_egg_xs_with]</phrase></legend>
                        <div style="height: 160px; overflow-x: hidden; overflow-y: auto;">
                        <div style="border: thin solid black;" align="center">
            <if condition="$show['egg']">
                $eggavatar_eggbits
            <if condition="$show['clean']"></if>
<span style="color: #80909c; font-weight: bold;"><a>----- Clean your Avatar Options -----</a></span>
                $eggavatar_cleanbits
            </if>
        <!-- <div style="margin-top:$stylevar[cellpadding]px;" "border: thin solid black;"> -->
                <input type="hidden" name="do" value="addegg" />
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                <input type="hidden" name="uid" value="$userid" />
                <input type="hidden" name="pid" value="$postid" />
                <input type="hidden" name="url" value="$url" />
                <input type="submit" name="eggsubmit" class="button" value="$vbphrase[eggavatar_egg_submit]" accesskey="s" />

</div>
                </div>
                </fieldset>
                </div>
        </div>
        </div>
</div>

Now everything displays in the first container with a simple separation on the cleaning section.
Hope this helps, and I hope you don't mind me posting this hambil.
My community loves this modification :)

If it fixes the problem people are having great, I'm all for it :)

Bounce 04-11-2009 02:53 PM

Quote:

Originally Posted by hambil (Post 1788915)
Hmmmm - I'll get that fixed.

:up: my issue here still stands as well mate :up:

goxy63 04-11-2009 04:27 PM

Generic avatars are not displayed, everything else looks just fine!?

Thanks once more for great hack

zombietom 04-11-2009 06:05 PM

does this work with 3.7 ?
thanks and it looks very cool

zombietom 04-11-2009 07:17 PM

works good on 3.7 --just need to set up the credits thing...
thanks and i clicked installed

UncoderMom 04-12-2009 12:38 PM

Thank you Hambil!


All times are GMT. The time now is 04:56 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.01976 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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