[cXF] Customize ads after first post

DIY [cXF] Customize ads after first post

Currently reading:
DIY [cXF] Customize ads after first post

BassMan

Staff member
Administrator
May 18, 2015
1,691
989
BassMan submitted a new resource:

Customize ads after first post - ... with free [cXF] Advertising position after first post add-on

Required add-on for this customization to work: [cXF] Advertising position after first post
You can easily customize your ads (for example AdSense) by adding some extra code to your HTML box when creating your ad.


Example #1
View attachment 1216

... and on mobile:
View attachment 1218
As you can see in above screen the ad will show like post with avatar. The...
Read more about this resource...
 

BassMan

Staff member
Administrator
May 18, 2015
1,691
989
How can I change avatar for advertisement?
  • In code find <xf:avatar user="$user" size="m" itemprop="image" />
    ... and replace it with <img src="url_to_image" alt="Advertisement" class="avatar" />.

    Edit the url for your image.
 

BassMan

Staff member
Administrator
May 18, 2015
1,691
989
How can I change user title Advertisement to something else?
  • edit the phrase cxf_ads_after_first_post
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to customizeXF

We are running default XenForo style customized by cXF
Registration is free!

Search forums

Similar threads

Top