Duken

Members
  • Content count

    13
  • Joined

  • Last visited


About Duken

  • Rank
    core_member_rank_11

Contact Methods

  • Website URL http://www.duken.nl/forums/

Profile Information

  • Gender Male
  • Interests http://www.duken.nl/forums/

Duken's Activity

  1. Duken added a post in a topic: Mobile skin - How and where to add Ads (Adsense)   

    Hope someone can help us get the boat in the water....
     
    I have the feeling nobody knows this :(
  2. Duken added a post in a topic: Mobile skin - How and where to add Ads (Adsense)   

    Little kick :)
  3. Duken added a post in a topic: Mobile skin - How and where to add Ads (Adsense)   

    Hi,
     
    There are some topic with the same question as this one but none with a good awnser.
    I'm getting a lot of mobile users, i need to add adsense to my Mobileskin but i can't find any good tutorial or how to.
     
    I can add a PHP code like this for Mobile ads from Google:
     
    <?php $GLOBALS['google']['client']='ca-mb-pub-XXXXXXXXX'; $GLOBALS['google']['https']=read_global('HTTPS'); $GLOBALS['google']['ip']=read_global('REMOTE_ADDR'); $GLOBALS['google']['markup']='xhtml'; $GLOBALS['google']['output']='xhtml'; $GLOBALS['google']['ref']=read_global('HTTP_REFERER'); $GLOBALS['google']['slotname']='XXXXXXXXX'; $GLOBALS['google']['url']=read_global('HTTP_HOST') . read_global('REQUEST_URI'); $GLOBALS['google']['useragent']=read_global('HTTP_USER_AGENT'); $google_dt = time(); google_set_screen_res(); google_set_muid(); google_set_via_and_accept(); function read_global($var) { return isset($_SERVER[$var]) ? $_SERVER[$var]: ''; } function google_append_url(&$url, $param, $value) { $url .= '&' . $param . '=' . urlencode($value); } function google_append_globals(&$url, $param) { google_append_url($url, $param, $GLOBALS['google'][$param]); } function google_append_color(&$url, $param) { global $google_dt; $color_array = explode(',', $GLOBALS['google'][$param]); google_append_url($url, $param, $color_array[$google_dt % count($color_array)]); } function google_set_screen_res() { $screen_res = read_global('HTTP_UA_PIXELS'); if ($screen_res == '') { $screen_res = read_global('HTTP_X_UP_DEVCAP_SCREENPIXELS'); } if ($screen_res == '') { $screen_res = read_global('HTTP_X_JPHONE_DISPLAY'); } $res_array = preg_split('/[x,*]/', $screen_res); if (count($res_array) == 2) { $GLOBALS['google']['u_w']=$res_array[0]; $GLOBALS['google']['u_h']=$res_array[1]; } } function google_set_muid() { $muid = read_global('HTTP_X_DCMGUID'); if ($muid != '') { $GLOBALS['google']['muid']=$muid; return; } $muid = read_global('HTTP_X_UP_SUBNO'); if ($muid != '') { $GLOBALS['google']['muid']=$muid; return; } $muid = read_global('HTTP_X_JPHONE_UID'); if ($muid != '') { $GLOBALS['google']['muid']=$muid; return; } $muid = read_global('HTTP_X_EM_UID'); if ($muid != '') { $GLOBALS['google']['muid']=$muid; return; } } function google_set_via_and_accept() { $ua = read_global('HTTP_USER_AGENT'); if ($ua == '') { $GLOBALS['google']['via']=read_global('HTTP_VIA'); $GLOBALS['google']['accept']=read_global('HTTP_ACCEPT'); } } function google_get_ad_url() { $google_ad_url = 'http://pagead2.googlesyndication.com/pagead/ads?'; google_append_url($google_ad_url, 'dt', round(1000 * array_sum(explode(' ', microtime())))); foreach ($GLOBALS['google'] as $param => $value) { if (strpos($param, 'color_') === 0) { google_append_color($google_ad_url, $param); } else if (strpos($param, 'url') === 0) { $google_scheme = ($GLOBALS['google']['https'] == 'on') ? 'https://' : 'http://'; google_append_url($google_ad_url, $param, $google_scheme . $GLOBALS['google'][$param]); } else { google_append_globals($google_ad_url, $param); } } return $google_ad_url; } $google_ad_handle = @fopen(google_get_ad_url(), 'r'); if ($google_ad_handle) { while (!feof($google_ad_handle)) { echo fread($google_ad_handle, 8192); } fclose($google_ad_handle); } ?>  
    Or
     
    <script type="text/javascript"><!-- google_ad_client = "ca-pub-xxxxxxxx"; /* xxxxxxx */ google_ad_slot = "xxxxxx"; google_ad_width = xxx; google_ad_height = xxx; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>  
     
    Can someone please give a hint or a small how to where to add the PHP code in the mobile skin? When this gives issues, where can i add the adsense script code the best? 
     
    Hope there is a savior here!!
     
    Thank you,
    Regards
     
    Jerry
  4. Duken added a post in a topic: Mobile Ads - Where to Place It In Mobile Skin   

    Someone has a good solution? 
     
    Just an example to add adsense after post 1 or on top? 
  5. Duken added a post in a topic: User Online Status in Topics   

    [quote name='Michael' timestamp='1322576120' post='2202123']
    By adding those to the Topic View -> hookUserOnline skin template.


    I think i'm getting mad... but where is this option?! Sorry, would you please show me where? :thumbsup:

    Edit, Never mind... found it :sorcerer:

About Me

Status Feed