 |
08-31-2007, 01:14 AM
|
#1 (permalink)
|
|
Inactive
Join Date: 08-20-07
Posts: 48
Latest Blog: None
|
Adsense - Forum singature
I couldn't able to find any relevant info on this,
Can some one guide me whenther we can place adsense code in forum signature or not? If yes how.
Many people has asked same before, but I couldn't able to get proper info. please suggest.
Thanks,
|
|
|
08-31-2007, 01:20 AM
|
#2 (permalink)
|
|
Contributing Member
Join Date: 05-10-07
Location: New York
Posts: 186
|
The forum has to enable HTML in signatures in order for you to do so.
I don't see forsee any forum owner in their right mind letting people run adsense in their sigs though...
|
|
|
08-31-2007, 06:12 AM
|
#3 (permalink)
|
|
Inactive
Join Date: 08-20-07
Posts: 48
Latest Blog: None
|
Ok
|
|
|
08-31-2007, 09:10 AM
|
#4 (permalink)
|
|
Contributing Member
Join Date: 07-16-07
Location: Hyderabad, India.
Posts: 501
|
I don't think that that is allowed, as per the Adsense TOS.
|
|
|
08-31-2007, 09:21 AM
|
#5 (permalink)
|
|
Banned
Join Date: 12-09-06
Posts: 306
|
Quote:
Originally Posted by topbuyer
I couldn't able to find any relevant info on this,
Can some one guide me whenther we can place adsense code in forum signature or not? If yes how.
Many people has asked same before, but I couldn't able to get proper info. please suggest.
Thanks,
|
bfore dng ths better 2 contact google adsense team.
|
|
|
08-31-2007, 10:18 AM
|
#6 (permalink)
|
|
Inactive
Join Date: 08-28-07
Posts: 24
Latest Blog: None
|
You can't do it yourself as Google Adsense code is javascript. No self respecting webmaster will let you run javascript in a signature on a forum. In any case, I think it's against TOS to have multiple publishers on the same page (likely if more than one user has the same idea).
For a while, as a webmaster I ran Adsense as part of my forum structure - I put it in the php code that displayed the threads. It actually appeared when the user's signature was displayed (if it was being used). It worked ok.
But no, the only way you can do it is if you are actually the webmaster.
dkodigital
|
|
|
08-31-2007, 11:18 AM
|
#7 (permalink)
|
|
Inactive
Join Date: 08-20-07
Posts: 48
Latest Blog: None
|
@dkodigital
Can you give me some reference to that php code. In my forum, I will try that then there will be only one google adsense running..
|
|
|
08-31-2007, 12:53 PM
|
#8 (permalink)
|
|
Inactive
Join Date: 08-28-07
Posts: 24
Latest Blog: None
|
Hi, I can't really, because it's specific to the forum software you run. I don't run phpbb, it's smf for me. Whatever software you use, there'll be a support forum somewhere you can ask the specific question. There's also likely to be a Mod section where you can tweak your installation. You'll be looking at editing one of your display templates though, I can tell you that.
Sorry I can't be of more help.
dkodigital
|
|
|
08-31-2007, 09:20 PM
|
#9 (permalink)
|
|
Inactive
Join Date: 08-20-07
Posts: 48
Latest Blog: None
|
Fine dkodigital.
BTW, I am using SMF at www.onlywebtalk.com
Last edited by Ayaka : 09-01-2007 at 06:55 AM.
|
|
|
09-01-2007, 05:34 AM
|
#10 (permalink)
|
|
Inactive
Join Date: 08-28-07
Posts: 24
Latest Blog: None
|
Ah right, ok. I'm away from my own PC and my source files right now, but i'll see if I can pinpoint the code for you later this weekend.
dkodigital
|
|
|
09-01-2007, 06:22 AM
|
#11 (permalink)
|
|
Inactive
Join Date: 08-20-07
Posts: 48
Latest Blog: None
|
Thanks dkodigital.
|
|
|
09-01-2007, 12:49 PM
|
#12 (permalink)
|
|
Contributing Member
Join Date: 05-08-06
Location: Augusta, GA
Posts: 339
|
ya I was hoping I could do this as I am sure John wouldn't mind me running adsense here on v7n (sarcasm) 
|
|
|
09-02-2007, 04:45 AM
|
#13 (permalink)
|
|
Inactive
Join Date: 08-28-07
Posts: 24
Latest Blog: None
|
In the Display.template.php file (in the smf/Themes directory)
This is the code that needs to be added after // Ads remark to get the ads to display for non-members and members after the first post (until they've made 25 posts - you can alter this number for your own threshold).
Code:
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr>
<div class="signature">', $message['member']['signature'], '
</div>';
echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
//Ads
//if ($message['id'] == $context['first_message'] && $context['user']['is_guest'])
global $user_info;
if ($message['id'] == $context['first_message'] && ($user_info['posts'] < 25 ))
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg">
<div align="center">
<br>
<script type="text/javascript"><!--
google_ad_client = "your publisher id";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "AFC6DB";
google_color_bg = "AFC6DB";
google_color_link = "005177";
google_color_text = "005177";
google_color_url = "005177";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p>Sponsored Ads. Registered users with 25 posts or more do not see these ads. Please consider <a href="http://your url/index.php?action=register;" title="Register"><b>registering</b></a>!
</div>
<br>
|
|
|
09-02-2007, 01:57 PM
|
#14 (permalink)
|
|
Banned
Join Date: 08-21-07
Location: NYC
Posts: 145
Latest Blog: None
|
Quote:
Originally Posted by topbuyer
I couldn't able to find any relevant info on this,
Can some one guide me whenther we can place adsense code in forum signature or not? If yes how.
Many people has asked same before, but I couldn't able to get proper info. please suggest.
Thanks,
|
This would never be allowed because it's against Google's TOS for 2 different publishers AdSense to be displayed on the same page.
|
|
|
09-02-2007, 02:32 PM
|
#15 (permalink)
|
|
Inactive
Join Date: 08-28-07
Posts: 24
Latest Blog: None
|
I think topbuyer has already indicated that he wants to run it on his own forum and that's what I provided the code for. You can't put it in your sig on another forum (like this one).
There are revenue-sharing MODS around for certain forum software that allows the owner to share Google Adsense income with members. Digital Point Forums do that.
|
|
|
09-02-2007, 07:47 PM
|
#16 (permalink)
|
|
Inactive
Join Date: 08-20-07
Posts: 48
Latest Blog: None
|
Thanks dkodigital for code. I will try that, but as I am using DilberMC theme at my forum onlywebtalk.com, I couldn't able to find file Display.template.php in that theme dir, it is there in default theme dir. any suggestions.
Also, it would be helpfull, if you could redirect me towards "revenue-sharing MODS" like what it is and how it works. Also, also how to implement this in SMF.
Thanks again dkodigital .
|
|
|
09-03-2007, 12:39 AM
|
#17 (permalink)
|
|
Inactive
Join Date: 08-28-07
Posts: 24
Latest Blog: None
|
Hi topbuyer,
The file will be in your /forum directory/Themes/Theme name directory, whichever one you are using. If it's the default theme it'll be in there. Find the section marked 'Show members signatures' and add the bits that i've highlighted in red. You'll probably also have to tweak the colours to blend with your theme. Remember to keep a backup of your original file though, in case it doesn't work for you (no guarantees from me).
See here for more details about ad revenue sharing in SMF.
http://custom.simplemachines.org/mods/index.php?mod=715
Hope this helps.
Last edited by dkodigital : 09-03-2007 at 12:43 AM.
|
|
|
09-03-2007, 02:01 AM
|
#18 (permalink)
|
|
Inactive
Join Date: 08-20-07
Posts: 48
Latest Blog: None
|
Fine I was checking that link only.
But, I don't see file named Display.template.php in my theme dir.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:47 AM.
© Copyright 2008 V7 Inc
|
|