[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i", $subfolder[2], $matches); $customerurl = $matches['domain']; $customerurl = str_replace("www.", "", $customerurl); $customerurl = str_replace(".", "D", $customerurl); $customerurl = strtoupper($customerurl); $publish_show = $wpdb->get_row("SELECT bann_tempid,bann_tempname,bann_tempimg,bann_status FROM " . $wpdb->prefix . "bannerstyles WHERE bann_status='ON'"); ?>

Current Banner Style

bann_tempname == 'plain_image') {?>
[For this style name,description,url is not supported]

To insert Banner in header - Method 1

After Publishing your own style of template:
Step 1 : Please Go To Admin Menu->Appearance->Editor
Step 2 : Select your theme in top select box and go to file header.php
Step 3 : Add the following code above/below
"</div> <!-- #header -->" depends on your theme.

To insert Banner in Page/Post - Method 2

When you don't like to have a banner on the header part of your blog, you can use the following plugin code to display banner on particular post/page.
Step 1: [appthabanner style=id]
Step 2: In the above plugin code you have to provide banner style number as a value to 'id'. Example: [appthabanner style=1]
Note: The style id is available under each banner style preview/thumb image on this page. (Next to Delete button)

Note:Please use only one method to display on your blog/website to avoid conflict.

Available Banner Styles

»" * */ function pageList($curpage, $pages) { //Pagination $page_list = ""; if ($search != '') { $self = '?page=' . banner_show; } else { $self = '?page=' . banner_show; } /* Print the first and previous page links if necessary */ if (($curpage != 1) && ($curpage)) { $page_list .= " First "; } if (($curpage - 1) > 0) { $page_list .= "< "; } /* Print the numeric page list; make the current page unlinked and bold */ for ($i = 1; $i <= $pages; $i++) { if ($i == $curpage) { $page_list .= "" . $i . ""; } else { $page_list .= "" . $i . ""; } $page_list .= " "; } /* Print the Next and Last page links if necessary */ if (($curpage + 1) <= $pages) { $page_list .= "> "; } if (($curpage != $pages) && ($pages != 0)) { $page_list .= "Last "; } $page_list .= "\n"; return $page_list; } /* * string nextPrev (int curpage, int pages) * Returns "Previous | Next" string for individual pagination (it's a word!) */ function nextPrev($curpage, $pages) { //Pagination $next_prev = ""; if (($curpage - 1) <= 0) { $next_prev .= "Previous"; } else { $next_prev .= "Previous"; } $next_prev .= " | "; if (($curpage + 1) > $pages) { $next_prev .= "Next"; } else { $next_prev .= "Next"; } return $next_prev; } //End of Pagination $count = $wpdb->get_var("SELECT count(*) FROM " . $wpdb->prefix . "bannertemp"); $limit = 20; $start = findStart($limit); /* Find the number of pages based on $count and $limit */ $pages = findPages($count, $limit); /* Now we use the LIMIT clause to grab a range of rows */ $rst_show = $wpdb->get_results("SELECT bann_tempid,bann_tempname,bann_tempimg,bann_status FROM " . $wpdb->prefix . "bannerstyles WHERE bann_status='OFF' ORDER BY bann_tempid ASC LIMIT $start,$limit"); foreach ($rst_show as $show) { ?> '; } } ?>
Style id=bann_tempid;?>