XFileSharing Pro - Help regarding ads

Message
Author
iburn
Posts: 1
Joined: Jul 01, 2015 12:32 pm

Help regarding ads

#1 Postby iburn » Jul 01, 2015 12:40 pm

Hey!
I need some help regarding implementation of ads on my site, I run dopefile.com.
I'm currently using my ads in this ad space:
http://prntscr.com/7nie2t
What I want to do is this:
http://prntscr.com/7nif49
Please help me regarding this.
P.S I also have to disable ads to premium users, so make sure you guide me that way.
Thank you!

AnotherIdiot
Posts: 101
Joined: Aug 23, 2014 2:59 pm

#2 Postby AnotherIdiot » Jul 08, 2015 6:05 am

Firstly ask your ad provider to send you 2 different codes, one code will be the download button and the other the play now button.

From there use firebug (a firefox add-on) to find the piece of code for the file_info.

<table class="filepanel" cellpadding="0" cellspacing="1">
<tr>
<td width="585">
<img src="<TMPL_VAR site_url>/images/icon_file.png" style="float: left;">

Add your advert to this part for your "mp3 icon"

<div id="mainmenu">
<ul>
<li>
<li>
<a class="btn_blue" href="https://fileshack.net/?op=registration">Sign Up</a>

That is where you would ad the advert link there.

Be careful though as what you are asking for is frowned upon by ad networks as you are tricking people into clicks.

To not have Premium members affected wrap the the text in

<TMPL_IF enabled_prem>
text here
<TMPL ELSE>
text with ads here
</TMPL_IF>