PDA

View Full Version : Mini Mods - Birthday image post


Asterix_ita
04-12-2010, 10:00 PM
This addon add a image in the post if the user has a birthday

Log

13/04/10 v.1.0.0 start addon
14/04/10 v.1.0.1 auto template
14/04/10 v.1.0.2 fix bug user delete
09/06/10 v.1.0.3 add option align image left or right

INSTALLATIONS!

1) Import product-product_birthimage38X.xml into PRODUCTS. Allow Overwrite "YES" (for upgrade) (admincp -> Plugin System -> Manage Products -> [Add/Import Product])
2) Configure the options to vBulletin Options - CT birthday Image Post

Upgrade from vers. 1.0.0

Change template

Open template: postbit

find and delete:

--------------------------------------------------------------------
<if condition="$ctbirthdatyok">
<div style="padding-bottom:$vboptions[bip_ct_padding_botton] ;border:0px solid #cccccc;margin:4px">
<img src="$vboptions[bip_ct_path]" align="right">
</div>
</if>
--------------------------------------------------------------------

Open template: postbit_legacy

find and delete:

--------------------------------------------------------------------
<if condition="$ctbirthdatyok">
<div style="padding-bottom:$vboptions[bip_ct_padding_botton] ;border:0px solid #cccccc;margin:4px">
<img src="$vboptions[bip_ct_path]" align="right">
</div>
</if>
--------------------------------------------------------------------

Done

matthewhotdude
04-14-2010, 02:44 AM
Thanks great little mod

mgurain
04-14-2010, 06:37 AM
Nice one,
can you make fully simple product install ? since I have more than one customized styles !

Asterix_ita
04-14-2010, 12:52 PM
In version 1.0.1 there is no need to change the templates Postbit e Postbit_legacy

matthewhotdude
04-14-2010, 04:21 PM
Theres a Bug

The Birthday cake is showing up for all the users I have deleted I.E guest posts

Asterix_ita
04-14-2010, 04:36 PM
Sorry but I did not understand the problem. I visited your site as a guest and I am not looking cakes for every post

You can make a stamp

the cake is displayed only on post Big Boy

matthewhotdude
04-14-2010, 04:43 PM
These 2 users used to be members, and I have deleted them for various reasons and the cake shows up. it's the same for every deleted user

Asterix_ita
04-14-2010, 04:48 PM
very strange, I see it this way your site

matthewhotdude
04-14-2010, 04:51 PM
Yes, because neither of those users in your screenshot have been deleted.

It is showing up for every DELETED user.

The one user in your screenshot it is actually his Birthday. So it's showing up for birthdays and every deleted user

Taurus1
04-14-2010, 04:51 PM
I have the same issue. Guests posts all have the birthday cake in. How to resolve?

matthewhotdude
04-14-2010, 05:07 PM
do you understand?

Asterix_ita
04-14-2010, 05:28 PM
ok I see what I can do to exclude users deleted

thanks

matthewhotdude
04-14-2010, 05:32 PM
thanks

Asterix_ita
04-14-2010, 05:47 PM
Fix in the v.1.0.2

thanks

matthewhotdude
04-14-2010, 05:54 PM
One question before I update. Because I installed the original and did the manual template edits. Will I have to undo the edits I made?

matthewhotdude
04-14-2010, 05:56 PM
Thanks works.

Asterix_ita
04-14-2010, 06:07 PM
If you still have version 1.0.0 of the plugin you need to remove from postbit_legacy the code


<if condition="$ctbirthdatyok">
<div style="padding-bottom:$vboptions[bip_ct_padding_botton] ;border:0px solid #cccccc;margin:4px">
<img src="$vboptions[bip_ct_path]" align="right">
</div>
</if>

Black Tiger
04-14-2010, 09:14 PM
I like this mod, but is the IMG code required to be enabled? Or does it also work when IMG code is disabled form the ACP?

Taurus1
04-14-2010, 11:35 PM
Thanks for the update!

Asterix_ita
04-15-2010, 04:47 AM
Do not use BBCode to draw the image