Jump to content


- - - - -

[Unsupported] [RC23]Individual Member Adsense


26 replies to this topic

#21 Most

    Member

  • Members
  • PipPipPip
  • 34 posts
  • Location:Jamaica
  • IPB Version:v2.3.x

Posted 28 May 2008 - 09:29 AM

ok found it. thanks

would definately pay to have this work with other ads including banner ads

#22 MADA

    n00b

  • Members
  • Pip
  • 3 posts
  • IPB Version:v2.3.x

Posted 20 July 2008 - 12:42 AM

hey guys i had installed that mod right and in step no. 2 in the template edits i'd got a problem

IN ... ACP Home -> Look & Feel -> Template HTML -> Topic View -> RenderRow

i shall find that :

Quote

<tr>
<td class="catend" colspan="2">
<!-- no content -->
</td>
</tr>

and after it i put that :

Quote

<if="$this->ipsclass->vars['individual_adsense_enable']">
<if="$author['individualadsense']">
<if="$post['post_count'] == 1">
<tr>
<td class="row2" width="30%" colspan="2">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "{$author['individualadsense']}";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
</tr>
<tr>
<td class="catend" colspan="2">
<!-- no content -->
</td>
</tr>
</if>
</if>
</if>

i hadn't found any thing of that on my skin template

please some body tell me where can i put the code
and that's my Render_Row Template

Quote

<!--Begin Msg Number {$post['pid']}-->
<div class='catheader' id='post-header-{$post['pid']}'><div class='catheader1'><div class='catheader2'></div></div></div>
<div class='cleared'></div>
<div class='borderwrap2'>
<table class='ipbtable' cellspacing='0'>
<tr>
<td class='posttop' valign='middle' width='1%'>
<a name='entry{$post['pid']}'></a>
<if="$author['id']">
<div id='post-member-{$post['pid']}' class='username'>
<span class='{$post['name_css']}'>{$author['_pp_online_image']}{$author['_members_display_name']}</span>
</div>
<!-- member menu -->
<div id='post-member-{$post['pid']}_menu' style='display:none;width:230px'>
<div class='popupmenu'>
<div>
<if="$author['members_display_name_short'] != $author['members_display_name']">
<div class='popupmenu-item'><strong>{$author['members_display_name']}</strong></div>
</if>
<div style='float:right;padding:5px'>
<div class='pp-image-thumb-wrap'>
<img src='{$author['pp_thumb_photo']}' width='{$author['pp_thumb_width']}' height='{$author['pp_thumb_height']}' alt='' />
</div>
<if="$this->ipsclass->vars['pp_allow_member_rate']">
<div style='margin-top:5px;margin-left:6px;'>
<img src='{$this->ipsclass->vars['img_url']}/rating_{$author['_pp_rating_real']}_mini.gif' alt='{$this->ipsclass->lang['rating_prefix']}: {$author['_pp_rating_real']}' style='vertical-align:middle' border='0' />
</div>
</if>
</div>
<div class='popupmenu-item'>
{$author['_pp_gender_image']} <a href='{$this->ipsclass->base_url}showuser={$author['id']}'>{$this->ipsclass->lang['dd_view_profile']}</a>
</div>
<if="$this->ipsclass->member['id']">
<div class='popupmenu-item'>
<if="in_array($author['id'], array_keys($this->ipsclass->member['_cache']['friends']))">
<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_remove_small.png' alt='' border='0' /> <a href='#' onclick="friends_pop('&amp;do=remove&amp;member_id={$author['id']}&amp;md5check={$this->ipsclass->md5_check}');return false">{$this->ipsclass->lang['dd_remove_friend']}</a>
<else />
<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_add_small.png' alt='' border='0' /> <a href='#' onclick="friends_pop('&amp;do=add&amp;member_id={$author['id']}&amp;md5check={$this->ipsclass->md5_check}');return false">{$this->ipsclass->lang['dd_add_friend']}</a>
</if>
</div>
<div class='popupmenu-item'>
<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/send_pm_small.png' alt='' border='0' /> <a href="{$this->ipsclass->base_url}act=Msg&amp;CODE=4&amp;MID={$author['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>
</div>
<div class='popupmenu-item'>
<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&amp;CODE=gettopicsuser&amp;mid={$author['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>
</div>
</if>
<div class='popupmenu-item-last'>
<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&amp;CODE=getalluser&amp;mid={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>
</div>
</div>
</div>
<div align='left' style='white-space:nowrap'><div class='popupmenu-footer-tile' style='position:relative;margin-left:3px;margin-right:3px'><div class='popupmenu-footer-left' style='position:relative;float:left;left:0px;margin-left:-3px;width:100%'></div><div class='popupmenu-footer-right' style='position:relative;float:left;left:3px' align='right'></div><div class='cleared'></div></div></div></div>
<!-- member menu -->
<script type='text/javascript'>ipsmenu.register('post-member-{$post['pid']}', '', 'username_over', 'username');</script>
<else />
<span class='{$post['name_css']}'>{$author['_members_display_name']}</span>
</if>
</td>
<td class='posttop' valign='middle' width='99%'>
<!-- POSTED DATE DIV -->
<div style='float:left'>
<span class='postdetails'>{$post['post_icon']} <img src='{$this->ipsclass->vars['img_url']}/to_post_off.gif' alt='{$this->ipsclass->lang['to_post_alt']}' border='0' style='padding-bottom:2px' /> {$post['post_date']}</span>
</div>
<!-- REPORT / DELETE / EDIT / QUOTE DIV -->
<div align='right'>
<span class='postdetails'>
{$post['ip_address']} {$this->ipsclass->lang['posted_on']}
<a href='#' title='{$this->ipsclass->lang['tt_link']}' onclick='link_to_post({$post['pid']});return false'>#{$post['post_count']}</a>
<if="$this->ipsclass->member['is_mod']">
| <a href='#' title='{$this->ipsclass->lang['click_for_mod']}' onclick='topic_toggle_pid({$post['pid']});return false'>{$post['pid_start_image']}</a>
</if>
</span>
</div>
</td>
</tr>
<tr>
<td align='center' class='row5a' valign='top'>
<div align='center'>
<div align='left' style='width:90%'>
<div class='userwrap'><div class='userwrap1'><div class='userwrap2'></div></div></div>
<div class='cleared'></div>
<div class='userinfo2'>
<span class='postdetails'>
<if="$author['id'] && $author['avatar']">
<div align='center'><a href='{$this->ipsclass->base_url}showuser={$author['id']}' title='{$this->ipsclass->lang['dd_view_profile']}'>{$author['avatar']}</a></div><br /><br />
<else />
<div align='center'><img src='style_images/<#IMG_DIR#>/noavatar.gif' border='0' alt='' /></div><br /><br />
</if>
{$author['title']}<br />
{$author['member_rank_img']}<br /><br />
{$author['member_group']}<br />
{$author['member_posts']}<br />
{$author['member_joined']}<br />
{$author['member_location']}
{$author['member_number']}<br />
<if="$author['custom_fields'] != ''">
{$author['custom_fields']}
</if>
<br />
{$author['warn_text']} {$author['warn_minus']}{$author['warn_img']}{$author['warn_add']}
</span><br />
<img src='{$this->ipsclass->vars['img_url']}/spacer.gif' alt='' width='160' height='1' /><br />
</div>
<div class='userwrapfooter'><div class='userwrapfooter1'><div class='userwrapfooter2'></div></div></div>
<div class='cleared'></div>
</div>
</div>
</td>
<td class='row6' id='post-main-{$post['pid']}' valign='top' width='100%'>
<!-- THE POST {$post['pid']} -->
<div class='postcolor' id='post-{$post['pid']}'>
{$post['post']}{$post['edit_by']}
<if="$post['post_edit_reason'] != ''">
<div class='post-edit-reason'>
{$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}
</div>
</if>
<!--IBF.ATTACHMENT_{$post['pid']}-->
</div>
{$post['signature']}
<!-- THE POST -->
</td>
</tr>
<tr>
<td class='row5a' nowrap='nowrap'>
<div style='text-align:center'><{ROW_START}><a href='java script:scroll(0, 0)'><{P_UP}></a>{$post['report_link']}<{ROW_END}></div>
</td>
<td class='row6' nowrap='nowrap'>
<!-- PM / EMAIL / WWW / MSGR -->
<div style='float:left'>&nbsp;</div>
<!-- REPORT / UP -->
<div align='right'>
<{ROW_START}>{$post['delete_button']}{$post['edit_button']}<a href='#' onclick='multiquote_add({$post['pid']});return false' title='{$this->ipsclass->lang['mq_title']}'>{$post['mq_start_image']}</a><a href='{$this->ipsclass->base_url}act=Post&amp;CODE=02&amp;f={$this->ipsclass->input['f']}&amp;t={$this->ipsclass->input['t']}&amp;qpid={$post['pid']}' title='{$this->ipsclass->lang['tt_reply_to_post']}'><{P_QUOTE}></a><{ROW_END}>
</div>
</td>
</tr>
</table></div>
<div class='footer'><div class='footer1'><div class='footer2'></div></div></div>
<div class='cleared'></div><br />

<script type='text/javascript'>
if (!itab_topic_first_loaded)
{
itab_topic_load_first_post({$post['pid']});
}
<if="$post['edit_button'] != ''">
if (ajax_loaded && use_enhanced_js)
{
menu_build_menu('edit-but-{$post['pid']}', new Array
(
img_item+" <a title='{$this->ipsclass->lang['edit_full_desc']}' href='{$this->ipsclass->base_url}act=post&amp;do=edit_post&amp;f={$post['forum_id']}&amp;t={$post['topic_id']}&amp;p={$post['pid']}&amp;st={$this->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}</a>",
img_item+" <a href='#' title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{$this->ipsclass->lang['edit_quick_title']}</a>"
));
}
</if>
</script>


#23 MADA

    n00b

  • Members
  • Pip
  • 3 posts
  • IPB Version:v2.3.x

Posted 20 July 2008 - 02:44 PM

PLZ Reply

#24 MADA

    n00b

  • Members
  • Pip
  • 3 posts
  • IPB Version:v2.3.x

Posted 21 July 2008 - 08:02 AM

is there any one can help ??!!!

#25 marko2002

    Advanced Member

  • Members
  • PipPipPipPip
  • 95 posts
  • Location:Scotland, UK
  • Real Name:Mark
  • IPB Version:v2.3.x

Posted 02 August 2008 - 05:36 PM

View PostMADA, on Jul 21 2008, 04:02 AM, said:

is there any one can help ??!!!

There have been skin changes I guess, but it does still work ... instead of looking for the whole code jsut look for ...

	<!-- no content -->
	</td>
</tr>
... and add it after that.

On another matter that was touched earlier regarding making this mod work with the Gallery, can anyone offer any advice regarding getting this working on the download mod (IDM). I've got code so that if a member enters their adsense code then it will show an ad with their publisher ID <else /> it will show ours. It's obviously something to do with the fact that IDM can't call on the <if="$author['individualadsense']"> but I'm not proficient in coding enough to work out how to get them talking.
Any advice greatly appreciated.
Cheers
Marko
Posted Image

#26 robert8450

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:robert
  • IPB Version:v2.3.x

Posted 17 June 2009 - 04:06 AM

i know this says there is no more support, but does anyone know if there is a way to change the ad colors? I tried using some adsense legacy code but that doesn't seem to be working.

Also, does anyone know how to make it so that member can also set the adsense channel?

#27 Nuno

    Novice

  • Members
  • PipPip
  • 14 posts
  • Real Name:Nuno Brito
  • IPB Version:v2.3.x

Posted 04 July 2009 - 09:51 PM

This is only displayed on the introduction topic.

What about the other pages inside the same discussion?

Any ideas?

;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users