Results 1 to 3 of 3

Thread: Changing the Screenshot url to use the store name instead of link

  1. #1
    Thread Starter
    Amateur straybullet's Avatar
    Join Date
    Jul 2010
    Location
    United States
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Changing the Screenshot url to use the store name instead of link

    OK a lot of people want to use affiliate links and not have them show to the visitors.

    Well Bluecafe gave the following fix that works...


    http://forums.appthemes.com/link-man...-16533/page-4/
    PHP Code:

    Open taxonomy-stores.php 
    look for line 28
    <p class="store-url"><a href="<?php echo $stores_url?>" target="_blank"><?php echo $stores_url?></a></p>

    change it to
    <p class="store-url"><a href="<?php echo $stores_url?>" target="_blank"><?php echo $term->name?></a></p>

    Now if you have a url that redirects or is long the screenshot function breaks, as far as I can tell the screenshot function is in

    theme-functions.php located in the includes folder and I believe the following code creates the screenshot

    PHP Code:
    function clpr_store_image($post_id$tax_name$tax_arg$width) {
        
    $term_id appthemes_get_custom_taxonomy($post_id$tax_name$tax_arg);
        
    $the_store_url get_metadata($tax_name$term_id'clpr_store_url'true);
        
        if(
    $the_store_url)
            
    $clpr_store_image_url = ($the_store_url "http://s.wordpress.com/mshots/v1/" urlencode($the_store_url) . "?w=" $width FALSE);
        else
            
    $clpr_store_image_url bloginfo('template_url') .'/images/clpr_default.jpg';
            
        return 
    $clpr_store_image_url;


    My question is how can I make it pull a screenshot using the store name ie Amazon.com instead of the store link. I will make all my coupon listings STORENAME.COM and if we can get it to pull screenshots from http:// WWW. STORENAME .COM that would fix a lot of peoples problems until the next release comes out.

  2. #2
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Rookie sdm2590's Avatar
    Join Date
    Apr 2019
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Same store URLs and screenshots.
    By bephuong in forum Report Clipper Bugs
    Replies: 24
    Last Post: May 16th, 2011, 04:29 AM
  2. popular store
    By shivajik in forum Clipper General Discussion
    Replies: 1
    Last Post: May 4th, 2011, 04:46 PM
  3. store per user
    By mediatonik in forum Report Clipper Bugs
    Replies: 3
    Last Post: April 20th, 2011, 07:25 AM
  4. [SOLVED] Store without coupons?
    By moonpromo in forum Report Clipper Bugs
    Replies: 2
    Last Post: April 7th, 2011, 08:33 PM