View unanswered posts | View active topics It is currently 17 Dec 2018 4:31 pm



Post new topic Reply to topic  [ 7 posts ] 
[RESOLVED] Lunated - Adding elements to sidebar 
Author Message

Joined: 25 Nov 2009 6:42 pm
Posts: 2
Post [RESOLVED] Lunated - Adding elements to sidebar
I'm very new to WP. I'm successfully running the lovely Lunated theme on http://www.joannasayers.com but I'd like to change a couple of things. Firstly I'd like to move the 4 sponsor squares up to the top of the sidebar. Secondly, I'd like to add more sponsors/ads/pictures to the sidebar. I'm afraid you'll have to treat me like an idiot as I've not done this before but I'm quick to learn :D
Thank you for your help.


25 Nov 2009 6:51 pm
Profile
Site Admin
User avatar

Joined: 28 Sep 2009 3:07 pm
Posts: 401
Location: Malaysia
Post Re: Lunated - Adding elements to sidebar
Moving the sponsors ad blocks

Open sidebar.php, CUT this part :

Code:
$lunated_sponsor_enable = get_option('lunated_sponsor_enable');
$lunated_sponsor_info = get_option('lunated_sponsor_info');
if ($lunated_sponsor_enable == 'true') {
if ($lunated_sponsor_info == '') { $lunated_sponsor_info = '#'; }
$lunated_sponsor_items = 4;
?>
<div class="adv">

<?php
for ($zvi=1;$zvi<=$lunated_sponsor_items;$zvi++) {
/*
$lunated_sponsor{x}_1 => website url
$lunated_sponsor{x}_2 => image url
$lunated_sponsor{x}_3 => image alt tag
*/
$zv_varname1 = 'lunated_sponsor'.$zvi.'_1';
$$zv_varname1 = get_option($zv_varname1);
if ($$zv_varname1 == '') {
$lunated_sponsor_link = $lunated_sponsor_info;
} else {
  $lunated_sponsor_link = $$zv_varname1;
  //if (valid_url($$zv_varname1)) { $lunated_sponsor_link = $$zv_varname1; }
  //else { $lunated_sponsor_link = $lunated_sponsor_info; }
}

$zv_varname2 = 'lunated_sponsor'.$zvi.'_2';
$$zv_varname2 = get_option($zv_varname2);
if ($$zv_varname2 == '') {
$lunated_sponsor_image = get_bloginfo('template_directory').'/images/adshere.jpg';
} else {
  $lunated_sponsor_image = $$zv_varname2;
  //if (valid_url($$zv_varname2)) { $lunated_sponsor_image = $$zv_varname2; }
  //else { $lunated_sponsor_image = get_bloginfo('template_directory').'/images/adshere.jpg'; }
}

$zv_varname3 = 'lunated_sponsor'.$zvi.'_3';
$$zv_varname3 = get_option($zv_varname3);
$lunated_sponsor_alttag = '';
if ($$zv_varname3 != '') { $lunated_sponsor_alttag = htmlspecialchars($$zv_varname3); }

?>
<a href="<?php echo $lunated_sponsor_link; ?>" title="<?php echo $lunated_sponsor_alttag; ?>"><img alt="<?php echo $lunated_sponsor_alttag; ?>" src="<?php echo $lunated_sponsor_image; ?>" /></a>

<?php } ?>

<div class="clear"></div>
</div>

<?php } /* end sponsor enabled */ else { // disabled
$lunated_custom_sponsor = get_option('lunated_custom_sponsor');
if ($lunated_custom_sponsor != '') {
echo '<div id="adv">'.stripslashes($lunated_custom_sponsor).'</div>';
}
}


Paste it after this line:

Code:
<div class="rightsidebar">

<?php


-----------------------

Adding more ad blocks:

Open functions.php, look for:
Code:
array( "name" => "Slot 1",
   "id" => $shortname."_sponsor1",
   "type" => "adsslot",
   "std" => ""),
array( "name" => "Slot 2",
   "id" => $shortname."_sponsor2",
   "type" => "adsslot",
   "std" => ""),
array( "name" => "Slot 3",
   "id" => $shortname."_sponsor3",
   "type" => "adsslot",
   "std" => ""),
array( "name" => "Slot 4",
   "id" => $shortname."_sponsor4",
   "type" => "adsslot",
   "std" => ""),


Now add 5th and 6th slot like this:

Code:
array( "name" => "Slot 1",
   "id" => $shortname."_sponsor1",
   "type" => "adsslot",
   "std" => ""),
array( "name" => "Slot 2",
   "id" => $shortname."_sponsor2",
   "type" => "adsslot",
   "std" => ""),
array( "name" => "Slot 3",
   "id" => $shortname."_sponsor3",
   "type" => "adsslot",
   "std" => ""),
array( "name" => "Slot 4",
   "id" => $shortname."_sponsor4",
   "type" => "adsslot",
   "std" => ""),
array( "name" => "Slot 5",
   "id" => $shortname."_sponsor5",
   "type" => "adsslot",
   "std" => ""),
array( "name" => "Slot 6",
   "id" => $shortname."_sponsor6",
   "type" => "adsslot",
   "std" => ""),


Next, open sidebar.php, look for:

Code:
$lunated_sponsor_items = 4;


Change the "4" to the number of ad blocks you have. In the example above, I have 6, so :

Code:
$lunated_sponsor_items = 6;

_________________
ZENVERSE - Web Design and Development Blog
MonoShade Premium Wordpress Theme - from $15
Scapemode Premium Photography Wordpress Theme - from $25
Premium Wordpress Themes

Have a nice day and Enjoy your stay!


29 Nov 2009 11:13 am
Profile WWW

Joined: 25 Nov 2009 6:42 pm
Posts: 2
Post Re: Lunated - Adding elements to sidebar
Thank you so much for your reply. I shall add your suggestions asap. I found a rather make-shift way was to check the hide sponsored ads button and add in manually but it didn't look as good. I really appreciate your time and help. :D


30 Nov 2009 3:40 am
Profile
Site Admin
User avatar

Joined: 28 Sep 2009 3:07 pm
Posts: 401
Location: Malaysia
Post Re: Lunated - Adding elements to sidebar
You're welcomed :D

_________________
ZENVERSE - Web Design and Development Blog
MonoShade Premium Wordpress Theme - from $15
Scapemode Premium Photography Wordpress Theme - from $25
Premium Wordpress Themes

Have a nice day and Enjoy your stay!


30 Nov 2009 1:29 pm
Profile WWW

Joined: 16 Sep 2011 4:48 pm
Posts: 1
Post Re: [RESOLVED] Lunated - Adding elements to sidebar
Thanks for the information’s. Very nice and a good list, I will surely follow it. Thank again
______________
energy savings


16 Sep 2011 4:50 pm
Profile

Joined: 03 Nov 2011 2:56 pm
Posts: 2
Post Moncler mens vest
Moncler mens vest



With email marketing campaigns to Internet landing pages now comprising a moncler mens vest significant amount of the marketing budgets, some people have abandoned the traditional, word processed pre-approach letter. Yet, this marketing and sales strategy may be somewhat short sighted.Before anyone engages in writing any business letter, the first question needs to be answered is "What is the purpose of the communication?" Upon successfully answering this question, then and only then can a well written letter be constructed.So what is the purpose of a pre-approach sales letter? Years ago, moncler mens vest sale might have been to secure that first time appointment to just a friendly introduction to a way to increase sales. Today, I believe the purpose is two-fold: 1. First attempt to showcase what makes you different or how you stand out away from everyone else 2. First demonstration of your core valuesTo stand out in the crowd or to be that


03 Nov 2011 4:29 pm
Profile

Joined: 03 Nov 2011 2:56 pm
Posts: 2
Post Moncler mens coats
Moncler mens coats


Moncler Jackets is an excellent example of the sports fashion clothing, on the outside. At a time when the area has become a way moncler mens coats with a group of followers of fashion were called style guru paninari. They were the first to present a unique feature of Moncler to offer comfort and quality. This jacket is characterized by a special scheme for the design of the neck, a scarf that looks like the bow. The secret of this moncler mens coat uk are creating a layer of warm clothing. Yellow and orange Moncler have a favorite dress, then, and they became the most coveted in Europe Moncler Jackets.Moncler Jackets Women is famous brand in the world, and is known for its quality and stylemoncler mens coats sale . It has a wide range of products suitable for all ages, gender, where every man and woman, children. With the Internet and online shopping was easy for the fire to make its way into other countries and see the impact on fashion trends in other climates, that does not necessarily freeze. All women moncler jacket sur-prize every year, moncler mens coat fur is a wider choice of colors and designs. Moncler Jackets exploded onto the Japanese scene, and where people are following the trends of fashion and always in need of a good quality.


03 Nov 2011 4:32 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

Party Dresses
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.