NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Website Development
Reload this Page Script Question

Website Development Development concepts, scripts, sponsors and affiliate programs.

Advanced Search
1 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 01-15-2012, 08:28 PM THREAD STARTER               #1 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



Script Question


Hey guys and girls

I have the site .... Vampire Ebook and it is using a theme (wordpress) that has some built in ad spots but the thing is i do not wish to use them but each time i delete that part of the script i lose the whole sidebar
????: NamePros.com http://www.namepros.com/website-development/743466-script-question.html

Below is what i have been deleting, at least i know enough to copy and paste the script to return it to normal if i stuff up , but any ideas/advice would be appreciated ...many thanks in advance !

</div>

<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
</div>
</div>

<div class="sidebar-box">
<h3>Categories</h3>
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
evirtual1 is offline  
Old 01-16-2012, 07:38 AM   #2 (permalink)
Senior Member
 
Irieman's Avatar
Join Date: Sep 2006
Posts: 1,053
Irieman has much to be proud ofIrieman has much to be proud ofIrieman has much to be proud ofIrieman has much to be proud ofIrieman has much to be proud ofIrieman has much to be proud ofIrieman has much to be proud ofIrieman has much to be proud ofIrieman has much to be proud of
 



Your site seems offline, but I would assume that you only need to remove this part to keep the sidebar:

PHP Code:
<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
????: NamePros.com http://www.namepros.com/showthread.php?t=743466
</div>
</div>
Irieman is offline  
Post Thanks / Like
Thanks Janine thanked for this post
Old 01-16-2012, 09:07 AM   #3 (permalink)
Business Member
 
iowadawg's Avatar
Join Date: Aug 2007
Location: Not in Texas
Posts: 2,413
iowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond repute
 




Or go to widgets, and only have what you want in the sidebars.

Or look at the theme sidebar page (like sidebar.php).
Make changes there.
iowadawg is offline  
Post Thanks / Like
Thanks Janine thanked for this post
Old 01-16-2012, 02:44 PM THREAD STARTER               #4 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



Originally Posted by Irieman View Post
Your site seems offline, but I would assume that you only need to remove this part to keep the sidebar:

PHP Code:
<div class="sidebar-box-blank">
<div class="sidebar-ads">
????: NamePros.com http://www.namepros.com/showthread.php?t=743466
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
</div>
</div>
Took out 'template_directory'......... all that did was leave a blank box so that's not the answer

---------- Post added at 09:44 AM ---------- Previous post was at 09:43 AM ----------

Originally Posted by iowadawg View Post
Or go to widgets, and only have what you want in the sidebars.

Or look at the theme sidebar page (like sidebar.php).
Make changes there.
There is no option to remove advertising in the widgets section, i am in the sidebar part of the script ?

Anyway both repped for your time
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
evirtual1 is offline  
Old 01-16-2012, 02:48 PM   #5 (permalink)
NamePros Regular
 
carob's Avatar
Join Date: Mar 2009
Posts: 546
carob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to all
 



Remove the entire image tag:

<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />

The alt text "ads" is the alternative text that appears if WP can't find or can't show the image.
carob is offline  
Old 01-16-2012, 02:54 PM THREAD STARTER               #6 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



That is the part i put in bold and stated i lose the whole sidebar when i do that delete, thanks but that is not the answer
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
evirtual1 is offline  
Old 01-16-2012, 02:57 PM   #7 (permalink)
Senior Member
 
Chicken's Avatar
Join Date: Oct 2005
Posts: 1,089
Chicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud ofChicken has much to be proud of
 


Save The Children Save The Children Save The Children Save The Children
Originally Posted by evirtual1 View Post
That is the part i put in bold and stated i lose the whole sidebar when i do that delete, thanks but that is not the answer
If you remove just the image tag you lose the entire sidebar?

What if you remove,
<div class="sidebar-ads">

<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
????: NamePros.com http://www.namepros.com/showthread.php?t=743466
</div>
__________________
Quit developing - Jan 2012
Chicken is offline  
Post Thanks / Like
Thanks Janine thanked for this post
Old 01-16-2012, 02:57 PM   #8 (permalink)
NamePros Regular
 
carob's Avatar
Join Date: Mar 2009
Posts: 546
carob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to all
 



Originally Posted by evirtual1 View Post
That is the part i put in bold and stated i lose the whole sidebar when i do that delete, thanks but that is not the answer
Try replacing it with some placeholder text and see what happens.
carob is offline  
Old 01-16-2012, 02:58 PM THREAD STARTER               #9 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



Placeholder text ..... i can guess what the means but not sure how to go about it ?

just fill the line with anything ?
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
evirtual1 is offline  
Old 01-16-2012, 02:59 PM   #10 (permalink)
NamePros Regular
 
carob's Avatar
Join Date: Mar 2009
Posts: 546
carob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to all
 



Originally Posted by evirtual1 View Post
Placeholder text ..... i can guess what the means but not sure how to go about it ?
????: NamePros.com http://www.namepros.com/showthread.php?t=743466

just fill the line with anything ?
yes any old letters... some parts of page are not visible if they have no content, nothing to lose by trying.
carob is offline  
Old 01-16-2012, 06:10 PM THREAD STARTER               #11 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



I wonder if they should be in brackets or anything ?
I will try thanks ....repped

---------- Post added at 01:10 PM ---------- Previous post was at 12:56 PM ----------

I did this but no real result:
The bold is what i took out but it leaves a little box that really doesn't fix the problem ? and it mover the second sidebar underneath the first one ??
????: NamePros.com http://www.namepros.com/showthread.php?t=743466


<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?

>/images/banner_125x125.jpg" alt="Ads" width="125" height="125"
/>


<div class="">
<img src="<?php bloginfo(); ?>/llllllllllllllllllllll
llllllllllllllllllll/>
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
Last edited by evirtual1; 01-16-2012 at 06:14 PM.
evirtual1 is offline  
Old 01-16-2012, 06:47 PM   #12 (permalink)
Senior Member
 
defaultuser's Avatar
Join Date: May 2009
Location: internet@ctivist.com
Posts: 4,799
defaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatnessdefaultuser Has achieved greatness
 



Originally Posted by evirtual1 View Post
Vampire Ebook [/URL]and it is using a theme (wordpress) that has some built in ad spots but the thing is i do not wish to use them but each time i delete that part of the script i lose the whole sidebar
Most paid themes include support.
????: NamePros.com http://www.namepros.com/showthread.php?t=743466

Is there anything else IN the sidebar? If not then the CSS is likely just collapsing that area. Try adding a fixed width to it (or adding text like suggested).

Your best bet if you want someone to help is to post the before and after HTML (and CSS) from your site so that the rendering output cause/difference can be found. Then you can tie it back to the source php.

You cannot diagnose something you can't see.
__________________
A Member of: IdeationTeam.com
HowToBeADomainer.com - a Domaining How To
AuthorEditor.com
Last edited by defaultuser; 01-16-2012 at 09:05 PM.
defaultuser is online now  
Post Thanks / Like
Thanks Janine thanked for this post
Old 01-16-2012, 09:07 PM THREAD STARTER               #13 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



Ok thanks for that .....tried to rep you ...apparantly too found ? WHo would have guessed but seems like a good sugestion (entire script) ..... this is not a paid theme

---------- Post added at 04:07 PM ---------- Previous post was at 03:54 PM ----------

Below is the script without my changes, i have bolded the area of concern


<!-- Sidebar -->
<div id="sidebar">

<!-- Sidebar Left -->
<div id="sidebar-left">

<div class="sidebar-box">
<h3>Pages</h3>
????: NamePros.com http://www.namepros.com/showthread.php?t=743466
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
</div>

<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />

</div>
</div>

<div class="sidebar-box">
<h3>Categories</h3>
<ul>
<?php wp_list_categories('title_li='); ?>
</ul>
</div>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>

<?php endif; ?>

</div>
<!-- /Sidebar Left -->

<!-- Sidebar Right -->
<div id="sidebar-right">

<div class="sidebar-box">
<h3>Archives</h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>

<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />

</div>
</div>

<div class="sidebar-box">
<h3>Blog Roll</h3>
<ul>
<?php wp_list_bookmarks('categorize=0&title_li='); ?>
</ul>
</div>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>

<?php endif; ?>

</div>
<!-- /Sidebar Right -->

</div>
<!-- Sidebar -->
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
evirtual1 is offline  
Old 01-16-2012, 11:42 PM   #14 (permalink)
NamePros Regular
 
carob's Avatar
Join Date: Mar 2009
Posts: 546
carob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to all
 



Have you considered just replacing that advertising placeholder image with one of your own?

Here is some relevant stuff from the site's CSS

#sidebar .sidebar-box-blank {

width: 195px;

margin-bottom: 25px;

}

/* Sidebar - Ads */



#sidebar .sidebar-ads {

width: 195px;

text-align: center;

}
carob is offline  
Old 01-17-2012, 02:20 AM THREAD STARTER               #15 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



i did try to insert google ads (125x125) but couldn't succeed after many attempts
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
Last edited by evirtual1; 01-18-2012 at 12:20 AM.
evirtual1 is offline  
Old 01-17-2012, 11:48 PM   #16 (permalink)
NamePros Regular
 
carob's Avatar
Join Date: Mar 2009
Posts: 546
carob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to allcarob is a name known to all
 



Originally Posted by evirtual1 View Post
i did try to insert google ads (125x125) but couldn't succedd after many attempts
Hi where were you inserting them?

The placeholder image





is located here:

http://vampirehire.com/wp-content/th...er_125x125.jpg
????: NamePros.com http://www.namepros.com/showthread.php?t=743466

Try just going there and renaming that image to something else, then give your own jpg image the name of the original one and see what happens. Or is that what you did already?


Did the theme come with instructions? It is possible there is some logic we cannot see.
carob is offline  
Post Thanks / Like
Thanks Janine thanked for this post
Old 01-18-2012, 12:23 AM THREAD STARTER               #17 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



I did try to insert google ads in this part of the script and couple of times i came close but the words 'ads' remained and when i deleted it i lost the complete sidebar left and right, thanks perhaps i wil have another go tomorrow, there is no reference or options regarding ad blocks

<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
evirtual1 is offline  
Old 01-18-2012, 07:36 AM   #18 (permalink)
4pm
NamePros Regular
 
4pm's Avatar
Join Date: Jun 2011
Location: Moscow
Posts: 626
4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold
 



hi,

i'd suggest you try to delete the following strings exactly as bolded (find and delete these two identical blocks of code in your snippet):

<div class="sidebar-box-blank">
<div class="sidebar-ads">
<img src="<?php bloginfo('template_directory'); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" />
</div>
</div>
<-- do not miss these two </div> tags


this should completely remove the box between Archives block and Blogroll box, and beetween Pages and Categories


do not try to keep <img src="<?php bloginfo(''); ?>/images/banner_125x125.jpg" alt="Ads" width="125" height="125" /> (or anything with bloginfo) as this will lead to php error - bloginfo() function without a parameter will default to bloginfo('name') so it'll look like <img src="Your Blog Name/images/banner_125x125.jpg" alt="Ads" width="125" height="125" /> after php parser and theres apparently no such a dir as "Your Blog Name" in your WP root directory.
????: NamePros.com http://www.namepros.com/showthread.php?t=743466

if you want to replace default banner image with your own image replace the whole <img ... /> thing with the following:

<img src="path_to_your_images_dir/your_image_filename.your_image_extension" alt="Whatever_alt_text_you_want" width="your_image_width" height="your_image_height" />


*
__________________
Webbox | 1st.ly | PR checker
Last edited by 4pm; 01-18-2012 at 07:42 AM.
4pm is offline  
Post Thanks / Like
Thanks Janine thanked for this post
Old 01-18-2012, 02:40 PM THREAD STARTER               #19 (permalink)
NamePros Expert
 
evirtual1's Avatar
Join Date: Aug 2007
Location: Rod.Tv
Posts: 7,369
evirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond reputeevirtual1 has a reputation beyond repute
 



Yes by removing the below i have been able to fix the probem ....yipppeeee

Mahy thanks , i guess the </div> was throwing everything out of wack although i must admit 'sidebar-box-blank' was never considered ......many thanks

repped !!!!

<div class="sidebar-box-blank">
</div>
</div>
__________________
Start your business with.... AllDogWalking.Com
Business Information
School Study Guide
Blonde
evirtual1 is offline  
Old 01-18-2012, 03:03 PM   #20 (permalink)
Freelance Web Designer
 
Janine's Avatar
Join Date: May 2006
Location: Philippines
Posts: 3,080
Janine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond reputeJanine has a reputation beyond repute
 



Cystic Fibrosis Save a Life
Thank you so much for helping guys!
Janine is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripteen - The Best PHP Scripts on the Web cyberoptik Scripts For Sale 57 12-17-2011 11:16 PM
Awesome Classifieds N More PHP Script [HUGE NP Member Discount] SmokinBull Scripts For Sale 4 10-30-2011 09:24 AM

 
All times are GMT -7. The time now is 10:41 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger