Archive

Posts Tagged ‘href’

Changes (2) On The Navigation Menu Of A Prestashop Webshop

October 20th, 2011 Comments off

1/ When you click on a cms category in the navigation menu I will see the first CMS page and not an overview of all my pages of that CMS category.

For example

If I click on the first cms category in my navigation menu I become:

http://www.maselection.eu/cms.php?id_cms_category=3

The thing I want is the obtain the first cms page, in this case ‘Qui est Marie Melodie’

http://www.maselection.eu/cms.php?id_cms=23

This my code of the blockcategories.tpl

<ul id=”main-nav”>
{foreach from=$cms_titles.categories item=cms_category}
<li><a class=”main-link” href=”{$cms_category.link}”>{$cms_category.name}</a>
<ul class=”sub-links”>
{foreach from=$cms_titles.cms item=cms_page}
{if $cms_category.id_cms_category eq $cms_page.id_cms_category}
<li><a href=”{$cms_page.link}”>{$cms_page.meta_title}</a></li>
{/if}
{/foreach}
</ul>
</li>
{/foreach}
{foreach from=$blockCategTree.children item=child name=blockCategTree}
<li><a class=”main-link” href=”{$child.link}”>{$child.name}</a>
{if count($child.children) gt 0}
<ul class=”sub-links”>
{foreach from=$child.children item=sub_child}
<li><a href=”{$sub_child.link}”>{$sub_child.name}</a></li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
<li><a class=”main-link” href=”{$base_dir}stores.php”>{l s=’Magasins’}</a></li>
<li><a class=”main-link” href=”{$base_dir}blog”>{l s=’Blog-Creation’ module=’blockcategories’}</a></li>

2/ When I click on a category or a subcategory in the navigation menu, the subcategory navigation menu must stay visible. Actually it doesn’t stay visible

For example:

When I click on ’boutique en ligne’ in the navigation menu http://www.maselection.eu
I can’t see the subcategories anymore, the must stay visible even when I go to productdetails.

WordPress – Correct Single Post Php Error

September 29th, 2011 Comments off

We are finishing up a wordpress blog and having a formatting error on the single post page:

<?php get_header(); ?>

<div id=”columns”>
<div id=”centercol”>
<?php $urlHome = get_bloginfo(‘template_directory’); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”box post” id=”post-<?php the_ID(); ?>”>
<div class=”post-title”>
<h2><a href=”<?php the_permalink(); ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”>
<?php the_title(); ?>
</a></h2>
</div>
<!–/post-title –>
<div class=”content”>
<?php $postimageurl = get_post_meta($post->ID, ‘post-img’, true); if ($postimageurl) { ?>
<div class=”pic fl”><a href=”<?php the_permalink(); ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><img src=”<?php echo $postimageurl; ?>” alt=”<?php the_title_attribute(); ?>” /></a></div>
<?php } ?>
<!–/post-img –>
<div class=”post-date”>On
<?php the_time(‘M.d.y’); ?>
, In
<?php the_category(‘, ‘) ?>
, by
<?php the_author_posts_link(); ?>
</div>
<!–/post-date –>
<div class=”post-excerpt”>
<?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>
</div>
<!–/post-excerpt –>
</div>
<!–/content –>
<div class=”clr”></div>
</div>
<!–/box
<div class=”clr”></div>
<div class=”box post” style=”padding:10px;”>
<div class=”content border”>
<div class=”pic fl”><?php echo get_avatar(get_the_author_email(), $size = ’80′, $default = $urlHome . ‘/images/avatar.gif’ ); ?></div>
<div class=”post-author”>
<div class=”author-descr”>
<h3>
<?php the_author(); ?>
</h3>
<p>
<?php the_author_description(); ?>
</p>
<div class=”author-details”><a href=”<?php the_author_url(); ?>” target=”_blank”>Visit Authors Website</a>  |  <a href=”<?php bloginfo(‘url’); ?>/author/<?php echo strtolower(get_the_author_nickname()); ?>”>All Articles From This Author</a></div>
</div>
<!–/author-descr –>
</div>
<!–/post-author –>
<div class=”clr”></div>
</div>
<!–/content –>
<div class=”clr”></div>
</div>
<!–/box –>
<div id=”respond” class=”box”>
<div class=”content border”>
<div class=”fl”>If you enjoyed this article, please consider sharing it!</div>
<div class=”fr”><a href=”http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>” title=”Bookmark at Delicious” rel=”nofollow” target=”_blank”><img src=”<?php bloginfo(‘template_directory’); ?>/images/ico-soc1.gif” alt=”Icon” /></a> <a href=”http://www.mixx.com/submit?page_url=<?php the_permalink() ?>” title=”Bookmark at Mixx” rel=”nofollow” target=”_blank”><img src=”<?php bloginfo(‘template_directory’); ?>/images/ico-soc2.gif” alt=”Icon” /></a> <a href=”http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>” title=”Bookmark at StumbleUpon” rel=”nofollow” target=”_blank”><img src=”<?php bloginfo(‘template_directory’); ?>/images/ico-soc3.gif” alt=”" /></a> <a href=”http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>” title=”Bookmark at Digg” rel=”nofollow” target=”_blank”><img src=”<?php bloginfo(‘template_directory’); ?>/images/ico-soc4.gif” alt=”Icon” /></a> </div>
<div class=”clr”></div>
</div>
<div class=”clr”></div>
</div>
<!–/box –>
<div class=”box post-rel”>
<div class=”content border”>
<div class=”subcols”>
<!–/<div class=”col1″>
<h2>Related Posts</h2>
<?php
$results = $wpdb->get_results(yarpp_sql(array(‘post’),array()));
foreach ( (array) $results as $_post ) :
$_post = get_post($_post->ID); ?>
<div class=”th fl”><a href=”<?php echo get_permalink($_post->ID); ?>”><img src=”<?php echo get_post_meta($_post->ID, ‘post-img’, true); ?>” alt=”" /></a></div>
<div><a href=”<?php echo get_permalink($_post->ID); ?>”><?php echo $_post->post_title; ?></a></div>
<div class=”hl2″></div>
<?php endforeach; ?>
</div> –>
<!–/col1 –>
<div class=”col2″>
<h2>Popular Posts</h2>
<?php
foreach ( (array) taccess_popular_posts() as $_post ) : ?>
<div class=”th fl”><a href=”<?php echo get_permalink($_post->ID); ?>”><img src=”<?php echo get_post_meta($_post->ID, ‘post-img’, true); ?>” alt=”" /></a></div>
<div><a href=”<?php echo get_permalink($_post->ID); ?>”><?php echo $_post->post_title; ?></a></div>
<div class=”hl2″></div>
<?php endforeach; ?>
</div>
<!–/col1 –>
</div>
<div class=”clr”></div>
<!–/subcols –>
</div>
<!–/content –>
</div>
<!–/box –>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<!–/centercol –>
<?php get_sidebar(); ?>
<div class=”clr”></div>
</div>
<!–/columns –>
<?php get_footer(); ?>

Please let me know cost and turnaround time is ASAP. This should be low budget and quick turnaround project due to it being a minor issue.

PM and I will email the URL of the website.

Gucci Biker Jacket

September 4th, 2011 Comments off

If you are a biker, you need to consider picking up a <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci biker jacket </a>for the road. These are very comfortable and they help to provide protection against the elements including wind and rain during riding. Because you will likely be traveling at very high speeds, this means that your arms and body are protected from bugs that splatter on you as you navigate the road. If you enjoy riding without having to deal with splattering bug that you injure or distract you, it is important you consider a <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci biker jacket </a>that will fit the needs you have. There are many different leathers available and many designs offer the variety that bikers are looking for, like <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci bomber jacket</a> and <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci hooded jacket</a>. If you have a favorite cartoon character, you can find a patch and have it sewn on your favorite leather jacket.
You may also want to purchase a leather motorcycle jacket that is done in simple black with no design at all. One of the great things about riding a motorcycle, is showing the others on the street that you belong with a group. Jackets with group emblems are an easy way to accomplish that. You also have the option of having a custom leather motorcycle jacket designed for you alone. This will help you to get a look that is perfect for you. Add the patches that you desire and choose the fit you like best. These jackets are affordable and there are many different options for changing the look of the jacket. Other jackets that come without patchwork may be less complicated in design and this is what some riders are attracted to. Regardless of budget, there are options available for anyone that loves to ride with a quality, comfortable <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci tracksuit</a>. Keep yourself dry and out of the rain, get the protection you need and at the same time looking stylish to others on the open road.
Now in online store you will also find that lots of stylish Gucci clothes, like <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci sweater</a>, <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci hoodies</a> and <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci hoody</a>, choose one for yourself in this winter, you will feels winter is also very warm and fashion.

<a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci jackets</a>
<a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci jackets for men</a>
<a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci leather jackets</a>
<a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci bomber jacket</a>
<a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci gg jacket</a>
<a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci jacket</a>

Get Comfortable Gucci Jackets

September 4th, 2011 Comments off

<a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci jackets for men</a> make for great fashion apparel as well as are durable and stylish. Men particularly like leather coats as they make them feel special and also comfortable. The other good thing about <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci leather jackets</a> is that these are very good at keeping you warm and can last for a long time if good quality one is purchased and proper care is taken. In selecting a jacket the first thing to look at is its cut; some of the most popular cuts are motor cross, <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci bomber jacket </a>and distressed jackets.
If you are looking for a new jacket, don’t go into the old familiar stores – try something new!
Look for well-known designer labels
If you are not comfortable with wearing second hand or vintage fashion then your next port of call should be well known brands such as <a href=”http://www.yazminfashion.com/gucci-jacket-c-105.html”>Gucci jackets</a>. Some of the jackets these guys make are absolutely fantastic quality and they are usually available at well under

Reformat This List Into Html Files And Structure

April 14th, 2011 Comments off

Hi,

I need a script written that will take the attached list of top 100,000 websites and have it create html files in a certain structure.

Basically the structure is as the following…

List 50 domains per page like this:

<A HREF=http://yahoo.com>yahoo.com</A><BR>
<A HREF=http://google.com>google.com</A><BR>

Then at the bottom of each page setup pagination like this:

<A HREF=1.htm>1</A> – <A HREF=2.htm>2</A> – <A HREF=3.htm>3</A>

I would prefer that the script be written in perl. No other formatting is needed. Simplicity is key. It just has to work in the format above.

I don’t just need the result of the executed script, I also need the script itself so I can rerun the script in the future.

Message with any questions.

Regards,

Wyatt

Categories: Google, HTML, Perl/CGI Tags: , , , , , ,

Regex Function Php

March 8th, 2010 Comments off

Quick Regex needed:
function ReplaceUrls($html, $base)
return $html

I need a function that scans my html code for all the href links and does the following:
1)
- if link is relative add $base in front
- if link already contains $base in front
then replace the link by # and add onclick=”something(‘link’, ‘whatever’)” in the <a tag
2)
- if link is not relative nor from the same base, do nothing

Examples with $base=”http://www.mydomain.com/”:
<a href=”/images/toto.png” target=”_blank”>image</a>
<a href=”http://www.mydomain.com/index.php” style=”color:#333333;”>my link</a>
<a href=”http://www.anotherdomain.com/”>some site</a>

Will give you
<a href=”#” onclick=”something(‘http://www.mydomain.com/images/toto.png’, ‘whatever’);” target=”_blank”>image</a>
<a href=”#” onclick=”something(‘http://www.mydomain.com/index.php’,'whatever’);” style=”color:#333333;”>my link</a>
<a href=”http://www.anotherdomain.com/”>some site</a>

Categories: PHP Tags: , , , , , ,

Change Link After First Click

February 15th, 2010 Comments off

I want a script change link after first click on images
for example :
we see this in main page :

<a href=X><img src=1></img></a>
<a href=X><img src=2></img></a>

After visitor click on one of above links , i want all links change to below :

<a href=Y><img src=1></img></a>
<a href=Y><img src=2></img></a>

Important Notice :

It must setup with cookies and surfer when visit new domain or visit in another time , it be renew
I have a file about expire cookie , and it help about how cookie expiration

Categories: ASP, Javascript, JSP, PHP Tags: , , , , , ,

Create Pages From Keywords 2

December 29th, 2009 Comments off

Hi,

I need a 1 page simple text-based app that can take a html template (that I provide), a list of keywords and a list of folder names, and then create a new page for each keyword, and save the new pages into the correct folders.

How it works:

User goes to a web page, sees 3 boxes.

Box 1: enter html for template (text)
Box 2: enter list of keywords (text, 1 per line)
Box 3: enter list of folder names (text, 1 per line)

Click ‘Go’ button.

the script processes the data and displays it in a table with more options.

The table has 8 columns:

1. keyword (display the keyword)
2. H1 tag (display the keyword in an editable 1-line text box, 1st letter capitalised)
3. H2 tag (display the keyword in an editable 1-line text box, 1st letter capitalised)
4. Title tag (display the keyword plus the word

Categories: PHP, Programming Tags: , , , , , ,

Page 404 Design Needed

December 13th, 2009 Comments off

Hi

We offer web hosting as part of our company www.cardencomputers.co.uk and we need a 404 page not found design made and if people have parked domains with us (i.e. hosting but no website) we need that designed too. They should match our logo and colours at www.cardencomputers.co.uk

404 page sould say

404 – Page not found

Sorry the page you have requested is currently unavailable.

This domain is hosted by <a href=”http://www.cardencomputers.co.uk”>Carden Computers Limited</a>. For more information on our services please visit <a href=”http://www.cardencomputers.co.uk”>www.cardencomputers.co.uk</a>

Parked domain should say:

This domain is hosted and parked by <a href=”http://www.cardencomputers.co.uk”>Carden Computers Limited</a>. For more information on our services please visit <a href=”http://www.cardencomputers.co.uk”>www.cardencomputers.co.uk</a>

We are looking for the pages to be very graphical and web 2.0

Happy bidding

Thanks

Dave

Generate Pages From Keywords

November 30th, 2009 Comments off

Hi,

I need a 1 page simple text-based app that can take a html template (that I provide), a list of keywords and a list of folder names, and then create a new page for each keyword, and save the new pages into the correct folders.

How it works:

User goes to a web page, sees 3 boxes.

Box 1: enter html for template (text)
Box 2: enter list of keywords (text, 1 per line)
Box 3: enter list of folder names (text, 1 per line)

Click ‘Go’ button.

the script processes the data and displays it in a table with more options.

The table has 8 columns:

1. keyword (display the keyword)
2. H1 tag (display the keyword in an editable 1-line text box, 1st letter capitalised)
3. H2 tag (display the keyword in an editable 1-line text box, 1st letter capitalised)
4. Title tag (display the keyword plus the word

Categories: PHP, Programming Tags: , , , , , ,

Oscommerce Ajax

November 20th, 2009 Comments off

OsCommerce site.
Custom Ajax script used to filter products; has been installed on my site for years, recently installed it on my friends site. Works except previous and next navigation.

Need expert help resolving previous and next navigation functionality, in relation to the ajax script.

if ($this->current_page_number > 1)
{
if ( basename($PHP_SELF) == “filter_result.php”)
{
//DOES NOT WORK
//RELOADS SAME PAGE ON FRIENDS SITE
$display_links_string .= ‘<a href=”javascript:; onclick=”doLoad(0,0,0,’ . ($this->current_page_number – 1) .’)”‘;

//$display_links_string .= ‘<a href=”‘ . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . ‘=’ . ($this->current_page_number – 1), $request_type) ;
}
else {
$display_links_string .= ‘<a href=”‘ . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . ‘=’ . ($this->current_page_number – 1), $request_type) ;
}//EOF Eric Mod

Categories: Ajax, MySQL, osCommerce, PHP Tags: , , , , , ,

Little Fixes

August 12th, 2009 Comments off

We need some little modifications on a menu programmer made, its done very complicated, but not not all pages work with the menu.

its for oscommerce shop, also the logo needs to be linked to the index.php

The menu is this :

[code]<script type="text/javascript">
function load()
{
var LINK = window.location.pathname;
if (LINK == "/laminaat.php")
{
var elem = document.getElementById('Background2');
elem.style.visibility = "visible";
}
if (LINK == "/" || LINK == "/index.php")
{
var elem = document.getElementById('Background');
elem.style.visibility = "visible";
}
if (LINK == "/digitaal.php")
{
var elem = document.getElementById('Background1');
elem.style.visibility = "visible";
}
if (LINK == "/tapijt.php")
{
var elem = document.getElementById('Background3');
elem.style.visibility = "visible";
}
if (LINK == "/informatie.php")
{
var elem = document.getElementById('Background4');
elem.style.visibility = "visible";
}
if (LINK == "shipping.php" || LINK == "bestelprocedure.php")
{
var elem = document.getElementById('Background4');
elem.style.visibility = "visible";
}
}
</script>
[/code]

and this as tabmenu:
[code]
<div onreadystatechange="load();" class="FIRST" id="Background">
<div id="LINK">behang</div>
<div id="LINK"><a href="digitaal.php">   digitaal</a></div>
<div id="LINK"><a href="laminaat.php">   laminaat</a></div>
<div id="LINK"><a href="tapijt.php">   tapijt</a></div>
<div id="LINK"><a href="informatie.php?info_id=1">     informatie</a></div>
</div>
<div class="SECOND" id="Background1">
<div id="LINK"><a href="/">behang</a></div>
<div id="LINK">   digitaal</div>
<div id="LINK"><a href="laminaat.php">   laminaat</a></div>
<div id="LINK"><a href="tapijt.php">   tapijt</a></div>
<div id="LINK"><a href="informatie.php?info_id=1">     informatie</a></div>
</div>
<div class="THIRD" id="Background2">
<div id="LINK"><a href="/">behang</a></div>
<div id="LINK"><a href="digitaal.php">   digitaal</a><a href="#"></a></div>
<div id="LINK">   laminaat</div>
<div id="LINK"><a href="tapijt.php">   tapijt</a></div>
<div id="LINK"><a href="informatie.php?info_id=1">     informatie</a></div>
</div>
<div class="FOURTH" id="Background3">
<div id="LINK"><a href="/">behang</a></div>
<div id="LINK"><a href="digitaal.php">   digitaal</a></div>
<div id="LINK"><a href="laminaat.php">   laminaat</a></div>
<div id="LINK">   tapijt</div>
<div id="LINK"><a href="informatie.php?info_id=1">     informatie</a></div>
</div>
<div class="FIFTH" id="Background4">
<div id="LINK"><a href="/">behang</a></div>
<div id="LINK"><a href="digitaal.php">   digitaal</a></div>
<div id="LINK"><a href="laminaat.php">   laminaat</a></div>
<div id="LINK"><a href="tapijt.php">   tapijt</a></div>
<div id="LINK">     informatie</div>
</div>[/code]

means all other pages don’t have the menu in on top, so needs fix

Need A List Of Proxy Toplist

August 9th, 2009 Comments off

I need a list of minimum 200 proxytop list sites.
( if you can provide me more thats only better )

Why I need that , because I need to submit my proxy there.

I not want to register to the topproxy site – only free submit.

How I want the list ( in txt. ) :

1 row with the link to the exchange page :

http://www.xxxx.com/submit.php
http://www.xxxxxxxx.info/exchange.php
http://www.xxxxxxx.com/add
http://www.xxxxxx.com/exchange.php
http://www.xxxx.com/exchange.php

And 1 row of the backlink :

<a href=”http://www.xxxxx.com”>Fresh proxy list</a>
<a href=”http://www.xxx.com”>can you hide</a>
<a href=”http://www.xxxxxxx.org”>Free Proxy Listing</a>
<a href=”http://www.xxxxxxxxxx”>unlock</a>
<a href=”http://www.xxxxxxx.me”>web proxies</a>
<a href=”http://www.xxxxxx.net”>projectarchive</a>

When you also can provide me yahoo + google groups would be very good.

When you have questions , PM me.

Seo Updates Drupal Php Store

August 6th, 2009 Comments off

Our site is built in Drupal using Ubercart.

Our regular contractor is busy with some big PR opportunity, but these are his notes, so it’ll give you a first look at what needs to be completed and where he left off. By the way…previous guy wasn’t a Drupal guy, but was doing me a favor getting the work done. Anyway…I just wanted to note that since his notes makes it sound like a mess, I think it reflects some work, but more inexperience, no bash intended. He’s still awesome;)

We also have needs to update text and tags on a regular basis.

The following is a copy of the working notes:

Blog:
From what I’ve seen, the default blog module allows for all users to create blog content, which of course is undesirable (all users, meaning your customers too.) There very well might be a way to make it so only admin users can use this… but I couldn’t see it.
so I found this:
http://drupal.org/node/41373
which is basically instruction on how to do a drupal blog, BUT with limited “bloggers”. The downside is that to accomplish this it limits the people who can actually register… effectively eliminating the ability for customers to register at all. I’m having a very hard time getting this installed and working. So this is NOT a good solution.

I believe the trick is going to be using the default blog module, but figure out a way to limit the users who can post.

Here are links to find more info:
http://drupal.org/node/41373
http://sudosys.be/?q=drupal_blog_modules

Ads:
The banner ad rotating deal seems like it will go REALLY well and is precisely what we’re looking for. I got it installed just fine, started setting things up, etc.. but then got to a point where I’m instructed to look under the help menu to find instructions on how to embed the ads on specific pages
(Administer -> “By module” tab -> then click on any “Get help” link)
All of those help links are broken. I searched all over for help with this, but can’t find any. I’m SOOO close on this, but for whatever reason I can’t access that documentation, and can’t find the content online.

If we can figure out why these links aren’t working, you’d be able to finish this one off.

Here is some documentation on that module:
documentation:
http://drupal.org/node/394126

Here’s the status on the original SEO document:
Everything was done with the following exceptions:

- Meta Descriptions for store/product pages (Again, I simply cannot find a fix for this. I don’t know if it’s the way the store was built, or what, but for whatever reason the descriptions are not being rendered into the HTML.) I posted to the support forums, but I am not getting any response.

I thought I was on the right track in finding this:
http://drupal.org/node/465744
Which suggested I deselect the option to generate a description meta tag from the node teaser.
I found that option here:
Administer -> Content Management -> Meta tags
but I deselected it and it doesn’t appear to have fixed the issue. :(

- “Visible call to action on every relevant page”. That was our banners. I can simply go through and put them in manually, but that banner ad module would make it much easier and give us the ability to track, give us statistics, etc. But if it comes down to it, you can simply place them in manually as you see fit. I have uploaded those to the system already. You can use the following code snippets to paste into the description field for the pages you’d like those banners to appear on:

<A HREF=”http://www.doctorgrandmas.com/store/wheat-berries”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/wheat-berries.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/sweetener”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/natural-sweetner.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/sweetener”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/natural-sweetner-2.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/whole-wheat-mixes/muffin-mixes”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/whole-wheat-muffins.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/whole-wheat-mixes/muffin-mixes”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/whole-wheat-muffins-2.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/whole-wheat-mixes/pancake-mixes”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/whole-wheat-pancakes.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

<A HREF=”http://www.doctorgrandmas.com/store/whole-wheat-mixes/pancake-mixes”><IMG SRC=”http://www.doctorgrandmas.com/images/banners/whole-wheat-pancakes-2.jpg” BORDER=”0″ ALIGN=”right” STYLE=”margin: 0px 0px 5px 10px;”></A>

- And of course adding the content from that second document I couldn’t open. However, as soon as you can access that it should be easy.

- Promo code: I haven’t started on this yet as I’ve been working on the above issues. This is basically the ability to allow shoppers to input coupon codes to get discounts, etc, correct?

- Here’s an important note that you will find helpful and will probably save time:
Editing the footer:
cannot do this through admin. This is found directly in a template file:
themes/wholefoods/page.tpl.php

- I still haven’t had the chance to look into google base – definitely something that could help. We see a lot of traffic for Karen’s Cookies through google base.

- It was also suggested that we add an FAQ. I had not received content for this. Would be a good idea though, include information on shipping policies, shipping times, etc..

Replica Designer Handbags

June 28th, 2009 Comments off

In Fashion-in-bag all products are &lt;a href=’http://www.fashion-in-bag.com/’&gt;&lt;strong&gt;Replica Designer Handbags&lt;/strong&gt;&lt;/a&gt; ,high quality and original design.Every &lt;a href=’http://www.fashion-in-bag.com/’&gt;&lt;strong&gt;Designer Handbags&lt;/strong&gt;&lt;/a&gt; are selected strictly at the top grade criterion-the most fashion style,the finest material and the lowest price.We wish each customer can be satisfied with every our &lt;a href=’http://www.fashion-in-bag.com/’&gt;&lt;strong&gt;Replica Handbags&lt;/strong&gt;&lt;/a&gt; which we sent out.It is our principle that we must take you to the world of named brand &lt;a href=’http://www.fashion-in-bag.com/’&gt;&lt;strong&gt;Designer Replica Handbags&lt;/strong&gt;&lt;/a&gt; personally.Else,we believe if only focusing on the quality of bags that can make us grow better as far as possible.

Jobs Lsting Site Ireland Jobs

May 21st, 2009 Comments off

&lt;html&gt;
&lt;body&gt;

&lt;a href=”http://www.bankofworks.com/” target=”link”&gt;Last comment&lt;/a&gt; &lt;a href=”http://www.bankofwork.com/” target=”link”&gt;facebook Ireland jobs dublin&lt;/a&gt; &lt;a href=”http://www.bankofworks.co.uk/” target=”link”&gt;blogger awards&lt;/a&gt;

Similiar to the sites&lt;p&gt;
With facebook and google linking up the holiday work programe, jobs dublin, ireland, people will be able to go to bankofworks and review jobs in dublin by social network. Bloggers are rewared by facebook, with youtube links and bebo links. So if you work in charity, I.T, a trade you can get a job in dublin on summer holidays
&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;

Simple Php Question

May 19th, 2009 Comments off

I’m using drupal and ubercart – but its kind of irrelevant for this question.

I’m printing a variable $terms as so:

<?php print $terms ?>

in html the following appears:

<ul class=”links inline”><li class=”taxonomy_term_46 first”><a href=”/catalog/46″ rel=”tag” title=”">4ever Fit</a></li>

<li class=”taxonomy_term_191″><a href=”/catalog/191″ rel=”tag” title=”">Muscle Building</a></li>
<li class=”taxonomy_term_200″><a href=”/catalog/200″ rel=”tag” title=”">Muscle Repair</a></li>
<li class=”taxonomy_term_170 last”><a href=”/catalog/170″ rel=”tag” title=”">Protein</a></li>
</ul>

What I want, is only the following to print:

<ul class=”links inline”><li class=”taxonomy_term_46 first”><a href=”/catalog/46″ rel=”tag” title=”">name1</a></li>

and then I could just put a </ul> after.

how can I do this? I assume some kind of string function would do the trick?

First person to answer this will get the $

Programming Project 1242618705

May 17th, 2009 Comments off

I have several pages using a dtree module and need these converted to html links. The pages also call pages into a frame and these should make a call to a div instead. Some information needs to be added to the index pages as well as to each pf the pages the index calls. This would be too time consuming to do manually so a program should be written to parse the original pages and in the case of the index pages it would probably be easiest to create a new page based on information from the old pages. On each information page it is probably okay to simply insert new info at a predetermined location in the page. Once the project has begun I can deliever the index pages and information pages for processing as well as other elements to include on both types of pages.

The dtree pages look like this…

d = new dTree(“d”);
d.add(0,-1,”imageenabler.chm”,”");
d.add(1,0,”ImageEnabler”,”");
d.add(2,1,”ImageEnabler overview”,”imageEnablerOverview.htm”);
d.add(3,1,”ImageEnabler commands”,”");

These need converting to:

&lt;dl&gt;
&lt;dt&gt;
&lt;a href=”helpale/WorkingWithALE.htm” onclick=”updateObjectIframe(this); return false;”&gt;&lt;img src=”folder.gif” border=”0″ /&gt;Working with ALE&lt;/a&gt;
&lt;/dt&gt;
&lt;dd&gt;&lt;a href=”helpale/browseFunction.htm” onclick=”updateObjectIframe(this); return false;”&gt;&lt;img src=”page.gif” border=”0″ /&gt;Browse function&lt;/a&gt;
&lt;/dd&gt;
&lt;dd&gt;
&lt;a href=”helpale/browse.htm” onclick=”updateObjectIframe(this); return false;”&gt;&lt;img src=”page.gif” border=”0″ /&gt;Browse&lt;/a&gt;
&lt;/dd&gt;
&lt;dd&gt;
&lt;a href=”helpale/Favourites.htm” onclick=”updateObjectIframe(this); return false;”&gt;&lt;img src=”page.gif” border=”0″ /&gt;Favourites&lt;/a&gt;
&lt;/dd&gt;

According to my research this should allow the pages to be followed by the search engines which i dont think dtree will allow which is what this whole exercise is about. Now if someone can replace the dtree I am using with a compatible one so much the better, or can tell me I don’t need to go to the trouble because google can already crawl the pages great, but I am not hopeful.

I have attached one main file and a frame file that has already been converted, and one set that is needing conversion so you can see the differences and what needs to be fixed.

Smarty Expert If/else Assign

May 7th, 2009 Comments off

Hello and thanks for reviewing my small project.

I need someone that is available right now for the next few hours and can work with me via yahoo instant messenger.

I will pay through SL Escrow.

The Project:

Login here with user: test2 pass: test2
https://www.alliedtruststore.com/index.php?ukey=auth

you can see there if active_aff = 1 right? well that’s it ..if the customers active_aff field = 1 ..show affliliate information and links…else do nothing …dont show it..this needs to be defined somewhere in a class i don’t know where

I only added the field in their SQL table already and i made it always default 0 varchar not null and i changed test2 to 0 and test30 to 1 to see if it works as you go.

*note
Please, if you are not a fluent SMARTY expert that has dealt with smarty templates and classes don’t bid. Guaranteed this is the hardest if statement you ever write and will take a solid hour or so do not waste my time thinking this is some simple in and out 10 min job any coder can do. EXPERT ONLY this is a very exploded script pulling assign’s from thin air. I will leave you bad feedback if not, if you don’t know smarty in and out don’t bid.

well this new field isnt smarty assigned anywhere …there are like 5 class.php files it could be in /modules /core funtctions /includes /classes

its not assigned so it will never show up for one…then to make it listen to a new if statement like if smatry.active_aff==1 or something then show this table…

i don’t know where it needs to be assigned …. /templates/frontend/user_account.html

&lt;h1 align=”center”&gt;Your Account Home &lt;/h1&gt;
&lt;table cellpadding=”15″ cellspacing=”0″ width=”100%”&gt;
{section name=op loop=$ChildShortHTMLs}
{if $ChildShortHTMLs[op].tpl ne ”}
{include file=$ChildShortHTMLs[op].tpl}
{/if}
{/section}
&lt;/table&gt;

/templates/frontend/short_affilaite_program.tpl

&lt;tr&gt;
&lt;td valign=”top”&gt;
&lt;table width=”400″ align=”center”&gt;
&lt;tr&gt;&lt;td align=”center” valign=”top”&gt;
&lt;p&gt;&lt;strong&gt;Account Information:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;

Insert Javascript To Webpage

April 18th, 2009 Comments off

Hi,

I need someone who can use perl or any other technologies to insert javascript to any web pages dynamically like www.wordchamp.com.

Here is the example.
http://www.wordchamp.com/lingua2/ReaderResult.do?assignmentID=0&amp;courseID=0&amp;url=www.nytimes.com&amp;fromID=13&amp;toID=8&amp;demo=false&amp;docPhraseID=0&amp;back=

I don’t need any translations at all like the one above. I just want to be able to insert my own hyperlink to the words I have in my data text file or database.

Let us assume the content of the page is: You are welcome to ……
I want to the result page to be &lt;a href=”…/you/”&gt;You&lt;/a&gt; &lt;a href=”…/are/”&gt;are&lt;/a&gt; &lt;a href=”…./welcome/”&gt;welcome&lt;/a&gt; ……

Looking forward to your bidding. If you need any further information, please feel free to contact me.

Mysql Php Pagination Fix

March 29th, 2009 Comments off

Hello,

I have a script, it displays all active banners using pagination. Once the banner is clicked it doesn’t show up again. This works fine.

The issue:

For example I’m displaying 25 banners per page, I have over 1000 active banners so there are 102 pages.

If I click on the all 25 of the banners on page one and then leave the site, the next time I come back to the site they do not show. This works correctly. But here is the problem, when I come back to the site page one is blank, I have to move on to page 2 in order to see the next round of banners. So in other words it’s not moving the banners up to page one.

I need this fixed.

Here is the code if you think you want to tackle it.

[code]
&lt;?php

session_start();

include "../header.php";

include "../config.php";

include "../style.php";
$uname=$_SESSION[uname];
if( session_is_registered("ulogin") ) {

$tbl_name="banners"; //your table name

// How many adjacent pages should be shown on each side?

$adjacents = 3;

/*

First get total number of rows in data table.

If you have a WHERE clause in your query, make sure you mirror it here.

*/

if( session_is_registered("ulogin") )

{

$query = "SELECT COUNT(*) as num FROM banners, banner_clicks WHERE banners.status=1 and banners.max&gt;banners.shown AND banner_clicks.userid&lt;&gt;'".userid."' group by banners.id";

}

else

$query = "SELECT COUNT(*) as num FROM $tbl_name WHERE status=1 and max&gt;shown";

$ttlpag=mysql_query($query) or die (mysql_error());

$total_pages = mysql_fetch_array($ttlpag);

$total_pages = $total_pages[num];
$qn="select * from sat_banclicks where userid='$uname' group by bannerid";
$ns=mysql_query($qn);
$nk=mysql_num_rows($ns);
$total_pages=$total_pages-(2*$nk);
//echo $nk;

/* Setup vars for query. */

$targetpage = "bannerlinkview.php"; //your file name (the name of this file)

$limit = 25; //how many items to show per page

$page = $_GET['page'];

if($page)

$start = ($page - 1) * $limit; //first item to display on this page

else

$start = 1; //if no page var is given, set start to 0

/* Get data. */

if( session_is_registered("ulogin") )

{

$sql = "SELECT banners.id as id, banners.name as name, banners.bannerurl as bannerurl, banners.targeturl as targeturl, banners.userid as userid, banners.shown as shown, banners.clicks as clicks, banners.max as max, banners.added as added FROM banners, banner_clicks WHERE banners.status=1 and banners.max&gt;banners.shown AND banner_clicks.userid&lt;&gt;'".userid."' group by banners.id LIMIT $start, $limit";

}

else

{

$sql = "SELECT * FROM banners WHERE status=1 and max&gt;shown LIMIT $start, $limit";

}

$result = mysql_query($sql) or die (mysql_error());

if(!mysql_num_rows($result))

{

$result = mysql_query ("SELECT * FROM banners WHERE status=1 and max&gt;shown LIMIT $start, $limit");

}

/* Setup page vars for display. */

if ($page == 0) $page = 1; //if no page var is given, default to 1.

$prev = $page - 1; //previous page is page - 1

$next = $page + 1; //next page is page + 1

$lastpage = ceil($total_pages/$limit); //lastpage is = total pages / items per page, rounded up.

$lpm1 = $lastpage - 1; //last page minus 1

/*

Now we apply our rules and draw the pagination object.

We're actually saving the code to a variable in case we want to draw it more than once.

*/

$pagination = "";

if($lastpage &gt; 1)

{

$pagination .= "&lt;div class="pagination"&gt;";

//previous button

if ($page &gt; 1)

$pagination.= "&lt;a href="$targetpage?page=$prev"&gt;

Categories: MySQL, PHP Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Bear