Page 1 of 7 123 ... LastLast
Results 1 to 10 of 64

Thread: Creating a "SOLD" stamp for your ads.

  1. #1
    Thread Starter
    dmyers's Avatar
    Join Date
    Oct 2010
    Location
    United States, Texas
    Posts
    103
    Thanks
    5
    Thanked 83 Times in 11 Posts

    Lightbulb Creating a "SOLD" stamp for your ads.

    One of the first things I went to change in ClassiPress 3.0.5 was the way the theme marks posts as being sold. ClassiPress 3.0.5 puts a text comment at the top of the classified ad that says "This item has been sold" that is the same color as the rest of the text, so it doesn't stand out at all.

    This is where I wanted to make the change. It was a really simple change, but had dramatic effects. Here is a screenshot of what I was able to do by changing one line of code.




    INSTRUCTIONS

    Step 1: The first thing you need to do is download the attached image (sold_stamp.gif) to your local computer somewhere you can find it later.

    Step 2: Make a backup copy of "classipress/single-ad-listing.php"

    Step 3: Find this code in the single-ad-listing.php file.

    Code:
    <li id="cp_sold"><span><?php _e('This item has been sold', 'appthemes'); ?></span></li>

    Step 4: Replace the code above with this code and save the file.

    Code:
    <li id="cp_sold"><span><img src="/wp-content/themes/classipress/images/sold_stamp.gif"></span></li>

    Step 5: Upload the single-ad-listing.php file to your classipress root folder.

    Step 6: Upload the sold_stamp.gif file to "/wp-content/themes/classipress/images/" folder.


    Now, every ad you or your members mark as sold will have the sold stamp at the top of the listing.

    Hope everyone enjoys this... I am still working on a way to ad a "sold" icon that can be seen when not viewing the complete ad, like when you are browsing a category. I think this will be helpful as well.
    Attached Images Attached Images
    Last edited by pepsi; November 17th, 2010 at 04:46 PM.

  2. The Following 33 Users Say Thank You to dmyers For This Useful Post:

    annonse (June 5th, 2011), appouser (July 18th, 2011), aw1zard (November 25th, 2010), blogie (December 11th, 2010), bonobo82 (June 4th, 2012), chimera (August 30th, 2013), cilla83 (July 26th, 2011), cityzoom (March 8th, 2011), dmxwyrw (October 22nd, 2011), drabello (March 18th, 2011), epijunky (May 31st, 2011), f1ngers (January 24th, 2012), ggriffin (January 12th, 2012), goaliecrease (May 21st, 2012), hazara (February 2nd, 2011), joniboy (February 28th, 2011), lcolley (November 30th, 2010), lieslotte (October 28th, 2011), liewzy (June 16th, 2011), marsibe (March 7th, 2011), moonspellsquinte (March 14th, 2013), morizio (June 30th, 2011), nschweikart (January 18th, 2012), osquid (February 22nd, 2011), pepsi (November 17th, 2010), peterdep (March 12th, 2011), quim (February 21st, 2011), sanook (July 18th, 2011), tech9 (February 2nd, 2011), theecotrader (March 1st, 2011), tinnud (January 24th, 2011), topadslk (February 24th, 2011), wighty (September 20th, 2011)

  3. #2
    Thread Starter
    dmyers's Avatar
    Join Date
    Oct 2010
    Location
    United States, Texas
    Posts
    103
    Thanks
    5
    Thanked 83 Times in 11 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. The Following User Says Thank You to dmyers For This Useful Post:

    bonobo82 (June 4th, 2012)

  5. #3
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. The Following User Says Thank You to pepsi For This Useful Post:

    bonobo82 (June 4th, 2012)

  7. #4
    sgg123's Avatar
    Join Date
    Feb 2011
    Location
    United Kingdom
    Posts
    183
    Thanks
    16
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Attached Images Attached Images

  8. #5
    Thread Starter
    dmyers's Avatar
    Join Date
    Oct 2010
    Location
    United States, Texas
    Posts
    103
    Thanks
    5
    Thanked 83 Times in 11 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. The Following User Says Thank You to dmyers For This Useful Post:

    sgg123 (February 21st, 2011)

  10. #6
    sgg123's Avatar
    Join Date
    Feb 2011
    Location
    United Kingdom
    Posts
    183
    Thanks
    16
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #7
    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!

  12. #8
    rubencio's Avatar
    Join Date
    May 2010
    Location
    Spain
    Posts
    3,804
    Thanks
    268
    Thanked 316 Times in 278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

    r u b e n c i o . c o m


    Since 2010 providing AppThemes solutions,
    Plugins and the best childthemes...



  13. #9
    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!

  14. #10
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts

    my syntax didn't work

    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 7 123 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [BUG] CP's "Contact" form overrides the "From" in other email plugins
    By ejikoala in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: October 29th, 2010, 08:11 PM
  2. Replies: 6
    Last Post: October 2nd, 2010, 11:50 AM
  3. Add "SOLD" to items that are gone
    By tiffany in forum ClassiPress General Discussion
    Replies: 3
    Last Post: May 29th, 2009, 02:32 AM