mycategoryorder.php
January 30th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: My Category Order
Plugin URI: http://www.geekyweekly.com/mycategoryorder
Description: A Wordpress plugin to finally let you set the explicit order of post categories.
Version: 2.3
Author: froman118
Author URI: http://www.geekyweekly.com
Author Email: froman118@gmail.com
*/
function mycategoryorder_init() {
function mycategoryorder_menu()
{ if (function_exists('add_submenu_page')) {
$location = "../wp-content/plugins/";
add_submenu_page("edit.php", 'My Category Order', 'My Category Order', 2,"mycategoryorder",'mycategoryorder');
}
}
function mycategoryorder_js_libs() {
if ( $_GET['page'] == "mycategoryorder" ) {
wp_enqueue_script('scriptaculous');
}
}
add_action('admin_menu', 'mycategoryorder_menu');
add_action('admin_menu', 'mycategoryorder_js_libs');
function mycategoryorder()
{
global $wpdb;
$mode = "";
$mode = $_GET['mode'];
$parentID = 0;
if (isset($_GET['parentID']))
$parentID = $_GET['parentID'];
$query = mysql_query("SHOW COLUMNS FROM $wpdb->terms LIKE ‘term_order’”) or die(mysql_error());
if (mysql_num_rows($query) == 0) {
$wpdb->query(”ALTER TABLE $wpdb->terms ADD `term_order` INT( 4 ) NULL DEFAULT ‘0′”);
}
if($mode == “act_OrderCategories”)
{ $idString = $_GET['idString'];
$catIDs = explode(”,”, $idString);
$result = count($catIDs);
for($i = 0; $i < $result; $i++)
{
$wpdb->query(”UPDATE $wpdb->terms SET term_order = ‘$i’ WHERE term_id =’$catIDs[$i]‘”);
}
}
else
{
$subCatStr = “”;
$results=$wpdb->get_results(”SELECT DISTINCT t.term_id, name FROM $wpdb->term_taxonomy tt inner join $wpdb->terms t on t.term_id = tt.term_id where tt.taxonomy = ‘category’ and tt.parent = $parentID ORDER BY term_order ASC”);
foreach($results as $row)
{
$catCount=$wpdb->get_row(”SELECT count(*) as catCount FROM $wpdb->term_taxonomy WHERE taxonomy = ‘category’ and parent = $row->term_id “, ARRAY_N);
if($catCount[0] > 0)
$subCatStr = $subCatStr.”
marketing_pro.php.bak
January 28th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: Marketing PRO Top Menu
Description: Adds Marketing PRO Top Menu Item
Author: Alexey Yevtushenko
*/
// Hook for adding admin menus
add_action('admin_menu', 'mt_add_pages');
// action function for above hook
function mt_add_pages() {
// Add a new top-level menu (ill-advised):
//add_menu_page('Marketing PRO', 'Marketing PRO', 8, __FILE__, 'mt_toplevel_page');
}
// mt_toplevel_page() displays the page content for the custom Test Toplevel menu
function mt_toplevel_page() {
?>
Marketing PRO
Build
your list faster and increase your sales with the advanced automated persuasion
power of the Marketing PRO module
As a
person who is serious about really making your online marketing and persuasion
pushbutton easy, you’re
going to love what the Marketing PRO module
does for you.You
can click on any of the sub-tabs above to get started.Or,
if you’re new to the system, here’s just a quick overview of the top features
and how to use them to grow your business online.
Instantly create your own specialized landing page optimized to boost both
your list sign-ups AND Search Engine Rankings!This home page has been
specially designed, coded, and tested to:
Convert
people coming to your site from visitors to subscribers (the first and
most important Persuasion Bridge to cross.)
Attract
the Search Engine spiders, get them coming back over and over again, and
lure them deeper and deeper into your site with every visit! This means
optimized Search Engine rankings with no added work on your part!
Instantly create unlimited number of stand-alone sales pages, landing pages,
registration pages… pages of all types — with NO technical or coding
skills!Pages for sales, product
reviews, contact info, or anything else you can think of to help market
and grow your business — with no coding or technical
skills required.The Marketing PRO version of BLOG i360? will allow you to create sales
pages, download pages, or other such pages – with or without navigation
tabs — .This increases
conversion because you are creating pages that focus the visitors
attention only on your offer and the action you want them to take.
Instant navigation tab creation and controlInstantly create, customize,
and manage fully functional navigation tabs on your BLOG i360? site
in under 15-sconds!Now, with absolutely
no programming skills what-so-ever you can create beautiful, clean navigation
tabs to point to any page on your site, or any site you own!You are in tot la control
of what your visitors see.
Instantly turn any Marketing PRO page into a One
Time Offer pageOne of the most persuasive
things you can do to encourage people to take action now instead of procrastinating
is to offer some type of special discount or bonus (or both) on a product
or service you offer.The challenge has always
been — how do you honestly and ethically apply this valid persuasion strategy
without lying?You’ve seen the type
of sites and advertisements I’m talking about here. Slimy sales pitches
that promise “there are only 100 of these widgets available and 89
have been sold already.” Yet, magically, you wander back to the same
site weeks later to find… low and behold, there are still 11 widgets left!
Wow! Lucky you!Seriously… there is
not faster way to damage your credibility and destroy trust than abusing
a valid persuasion strategy like so many marketers do. But up till now,
that has been the only choice.But now — with your
Marketing PRO pages — you can boost your sales by honestly and ethically
reward fast action takes for their decisiveness.Use the Marketing PRO
page generator to create a sales page with a special one time offer, click
the OTO button after creating any page you want, hit save… and BAM! —
your sales page will now only show up one time to each visitor!
More
of your prospects and customers benefit from your product or service
You
convert more sales
And
most importantly — your integrity remains intact and you stay true to
your word!It’s an awesome marketing
tool that normally costs at least $200 per page for a programmer
to integrate for you! With the Marketing PRO module — it’s built right
in!
}
?>
marketing_pro.php
January 26th, 1970
·
by Jerry Hill · Filed Under: Barbell Strength
/*
Plugin Name: Marketing PRO Top Menu
Description: Adds Marketing PRO Top Menu Item
Author: Alexey Yevtushenko
*/
// Hook for adding admin menus
add_action('admin_menu', 'mt_add_pages');
// action function for above hook
function mt_add_pages() {
// Add a new top-level menu (ill-advised):
add_menu_page('Marketing PRO', 'Marketing PRO', 8, __FILE__, 'mt_toplevel_page');
}
// mt_toplevel_page() displays the page content for the custom Test Toplevel menu
function mt_toplevel_page() {
?>
Marketing PRO
Build
your list faster and increase your sales with the advanced automated persuasion
power of the Marketing PRO module
As a
person who is serious about really making your online marketing and persuasion
pushbutton easy, you’re
going to love what the Marketing PRO module
does for you.You
can click on any of the sub-tabs above to get started.Or,
if you’re new to the system, here’s just a quick overview of the top features
and how to use them to grow your business online.
Instantly create your own specialized landing page optimized to boost both
your list sign-ups AND Search Engine Rankings!This home page has been
specially designed, coded, and tested to:
Convert
people coming to your site from visitors to subscribers (the first and
most important Persuasion Bridge to cross.)
Attract
the Search Engine spiders, get them coming back over and over again, and
lure them deeper and deeper into your site with every visit! This means
optimized Search Engine rankings with no added work on your part!
Instantly create unlimited number of stand-alone sales pages, landing pages,
registration pages… pages of all types — with NO technical or coding
skills!Pages for sales, product
reviews, contact info, or anything else you can think of to help market
and grow your business — with no coding or technical
skills required.The Marketing PRO version of BLOG i360? will allow you to create sales
pages, download pages, or other such pages – with or without navigation
tabs — .This increases
conversion because you are creating pages that focus the visitors
attention only on your offer and the action you want them to take.
Instant navigation tab creation and controlInstantly create, customize,
and manage fully functional navigation tabs on your BLOG i360? site
in under 15-sconds!Now, with absolutely
no programming skills what-so-ever you can create beautiful, clean navigation
tabs to point to any page on your site, or any site you own!You are in tot la control
of what your visitors see.
Instantly turn any Marketing PRO page into a One
Time Offer pageOne of the most persuasive
things you can do to encourage people to take action now instead of procrastinating
is to offer some type of special discount or bonus (or both) on a product
or service you offer.The challenge has always
been — how do you honestly and ethically apply this valid persuasion strategy
without lying?You’ve seen the type
of sites and advertisements I’m talking about here. Slimy sales pitches
that promise “there are only 100 of these widgets available and 89
have been sold already.” Yet, magically, you wander back to the same
site weeks later to find… low and behold, there are still 11 widgets left!
Wow! Lucky you!Seriously… there is
not faster way to damage your credibility and destroy trust than abusing
a valid persuasion strategy like so many marketers do. But up till now,
that has been the only choice.But now — with your
Marketing PRO pages — you can boost your sales by honestly and ethically
reward fast action takes for their decisiveness.Use the Marketing PRO
page generator to create a sales page with a special one time offer, click
the OTO button after creating any page you want, hit save… and BAM! —
your sales page will now only show up one time to each visitor!
More
of your prospects and customers benefit from your product or service
You
convert more sales
And
most importantly — your integrity remains intact and you stay true to
your word!It’s an awesome marketing
tool that normally costs at least $200 per page for a programmer
to integrate for you! With the Marketing PRO module — it’s built right
in!
}
?>