Resource icon

[bd] Rotating Ads 2.0

No permission to download
e2917af694.jpg

According to this there should be a position, but it doesn't show in the list. I suppose you could try adding it in using the Widget Framework..
Not sure what this means. A lot of people have claimed to add an avatar but not a one of them have shared how.
 
That was meant for someone else.. and I haven't heard or seen anyone able to actually add a custom avatar lol.. However I could share my findings, like I said though it is not the best way by far and I am still trying to find another way but for now it works.. you would need to modify/add some templates through your admin panel though..
 
That was meant for someone else.. and I haven't heard or seen anyone able to actually add a custom avatar lol.. However I could share my findings, like I said though it is not the best way by far and I am still trying to find another way but for now it works.. you would need to modify/add some templates through your admin panel though..
Oh, i was just commenting, if you read back from the beginning some have said they did it but never said how. Sure, i would love to see how you did it thanks.
 
Oh, i was just commenting, if you read back from the beginning some have said they did it but never said how. Sure, i would love to see how you did it thanks.
Ahh ok, well it's simple actually but also might break something.. I haven't "tested" it thoroughly lol..

First what you need to do is create 2(Two) new templates and call them whatever you wish I named mine after the templates your going to copy.

For the 2 new templates you created you are going to copy and paste the following templates one into each of the new templates, message_user_info and message.
Mine are named "message_user_info_ads" and "message_ads" so that is what I will refer to.

At the top of your new template "message_ads" you will want to find the following:
Code:
    <xen:include template="message_user_info">
        <xen:map from="$message" to="$user" />
    </xen:include>
Change it to:
Code:
    <xen:include template="message_user_info_ads">
        <xen:map from="$message" to="$user" />
    </xen:include>
Save and your done with this template.

Next open your "message_user_info_ads" and again find this at the top:
Code:
        <div class="avatarHolder">
            <span class="helper"></span>
            <xen:avatar user="$user" size="m" img="true" />
            <!-- slot: message_user_info_avatar -->
        </div>
You want to replace this line, with your own image:
Code:
            <xen:avatar user="$user" size="m" img="true" />
Here is how mine currently looks:
Code:
        <div class="avatarHolder">
            <span class="helper"></span>
            <img width="96" height="96" alt="UOFreeshards" src="styles/uo.jpg"></img>
            <!-- slot: message_user_info_avatar -->
        </div>
Of course adjust the size, alt and src to suit your needs.
Save and your done with this template.

The last template you need to modify is, rotating_ads_second_post.
Locate the following line near the top:
Code:
    <xen:include template="message">
Change it to:
Code:
    <xen:include template="message_ads">
Again this needs to match whatever you named your template.
Save and your done.

After that just refresh your page and it should show a custom avatar, the only downside is if you upgrade or add a mod that changes either of those templates you *might* have to recopy and modify your template files. As of right now this is the only way I have found to add in the custom avatar and it's sloppy but it works.
 
If it works it works lol, since it isn't calling the templates for anything but the "second ad post" it shouldn't interfere with any other post from what I can tell.
Works perfect thank you, it is very easy also, if we upgrade in the future it should only a couple of minutes to fix templates, thanks again.
 
Works perfect thank you, it is very easy also, if we upgrade in the future it should only a couple of minutes to fix templates, thanks again.
No problem, just bugged me that it had the default avatar :D.. and indeed not like it'd be hard to recopy and paste lol..
 
Last edited:
Could you please tell me which is the main performance difference between XenCentral ads addon and this one?

I'm having performance problems with the first plugin and I need to change it.
 
I currently have an ad block on my site using this add-on to do the following:

1. If guest (unregistered, not a member) - show a Welcome/Sign Up Now banner graphic.
2. If logged in (registered member) - show a specific ad banner.

What I am trying to do now, if possible is add a third ad that would suppress the second one completely if the conditions are met. Namely:

3. If logged in (registered member) AND today is birthday - suppress #2 ad banner and ONLY show Birthday Banner instead.

How do I do that? Currently if the member is logged in, and it is their birthday, the ad rotates between ad banner, and Birthday Banner.

Thanks.
 
Top Bottom