The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 94 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 573 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 752 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 892 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 892 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined variable $unreadreports - Line: 25 - File: C:\sites\kwikcontent\supportforum\global.php(959) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php(959) : eval()'d code 25 errorHandler->error
C:\sites\kwikcontent\supportforum\global.php 959 eval
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: C:\sites\kwikcontent\supportforum\global.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\global.php 1024 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: C:\sites\kwikcontent\supportforum\inc\functions.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions.php 5308 errorHandler->error
C:\sites\kwikcontent\supportforum\global.php 1024 build_theme_select
C:\sites\kwikcontent\supportforum\showthread.php 28 require_once
Warning [2] Undefined array key "mybb" - Line: 2121 - File: C:\sites\kwikcontent\supportforum\inc\functions.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions.php 2121 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_indicators.php 41 my_set_array_cookie
C:\sites\kwikcontent\supportforum\showthread.php 669 mark_thread_read
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php(484) : eval()'d code 6 errorHandler->error
C:\sites\kwikcontent\supportforum\inc\functions_post.php 484 eval
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 768 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: C:\sites\kwikcontent\supportforum\inc\functions_post.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\inc\functions_post.php 773 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1126 build_postbit
Warning [2] Undefined array key "threadprefix" - Line: 4 - File: C:\sites\kwikcontent\supportforum\showthread.php(1224) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1224) : eval()'d code 4 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1224 eval
Warning [2] Undefined array key "invisible" - Line: 1568 - File: C:\sites\kwikcontent\supportforum\showthread.php PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php 1568 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code 33 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1600 eval
Warning [2] Undefined variable $search_thread - Line: 60 - File: C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code 60 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1600 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code 82 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1600 eval
Warning [2] Undefined variable $thread_deleted - Line: 104 - File: C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code PHP 8.1.27 (WINNT)
File Line Function
C:\sites\kwikcontent\supportforum\showthread.php(1600) : eval()'d code 104 errorHandler->error
C:\sites\kwikcontent\supportforum\showthread.php 1600 eval





Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Adsense Ads
#1
Jeff,

Can you please provide tutorial on how to change colors for adsense displays.

Thanks!
Reply
#2
Well, I'm not really sure how I would create this info as a tutorial. It's really more of a set of guidelines...

Your Google AdSense ads are generated using Javascript. Each ad requires its own block of Javascript to display the ads. There are variables within those code blocks that define the colors that will be rendered. Each color is referenced by its hexadecimal color code. Within the default Kwikcontent template, the Google AdSense ads are using the default ad colors and therefore do not need variable declarations. To alter the colors, you'll have to add to the Javascript code blocks.

Here is the code block of Javascript variables for the default AdSense color scheme for the long strip of ads on the left side of your sites:

google_ad_client = "{$domain.google_ad_client}";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
{if $domain.google_ad_channel}google_ad_channel = "{$domain.google_ad_channel}";{/if}

Note: There is some template logic in there. It is wrapped around the google_ad_channel variable. It's probably best for you to leave that line in tact, as-is.

Now here is the same sized ad with a gray background, a black border, green links, blue text and red URLs:

google_ad_client = "{$domain.google_ad_client}";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_color_border = "000000";
google_color_bg = "CCCCCC";
google_color_link = "00FF00";
google_color_text = "0000FF";
google_color_url = "FF0000";
{if $domain.google_ad_channel}google_ad_channel = "{$domain.google_ad_channel}";{/if}

Hopefully the variable names will be self-explanatory as to what areas they control.

There are AdSense ads in every one of the template files on your site. You will need to make these changes in every template file where you require changes.

That's not much of a tutorial, but hopefully it guides you in the right direction. If not, we can explore any questions you have.

- Jeff
Reply
#3
Appreciate it...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Adsense, Kontera etc tradedemon 10 20,293 12-11-2009, 07:01 AM
Last Post: kwikform

Forum Jump:


Users browsing this thread: 1 Guest(s)