Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Mod - "Email this advert to a friend!"

  1. #1
    Thread Starter
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    Thanks
    121
    Thanked 1,754 Times in 1,441 Posts

    Smile Mod - "Email this advert to a friend!"

    Here comes a small tutorial for the weekend:

    Goal of this modification is to get a "Email this advert to a friend!" link inside the ad description.

    Note!: I recommend to use this only in a childtheme, otherwise the changes will be gone after upgrading to a newer version of ClassiPress.

    Open your /wp-content/themes/childtheme/single-ad_listing.php and find around line 100 this:

    PHP Code:
                                            <?php
                                            
    // end legacy check
                                            
    ?>

                                        </ul>

                                    </div><!-- /bigright -->
    replace above code with this:

    PHP Code:
                                            <?php
                                            
    // end legacy check
                                            
    ?>

                            <li><a href="mailto:?subject=<?php the_title();?>&amp;body=<?php the_permalink() ?>" title="Click here to open your email-client and send this ad description to a friend."><b>Email this advert to a friend!</b></a></li>

                                        </ul>

                                    </div><!-- /bigright -->
    The result is this:

    [CENTER]email-this.png[/CENTER]

    Enjoy!
    Rolf Hassel (Samcy)

  2. The Following 4 Users Say Thank You to samcy For This Useful Post:

    eaport (July 17th, 2012), echo08 (August 3rd, 2013), mnio (February 25th, 2013), paulie69 (July 22nd, 2012)

  3. #2
    Rookie paulie69's Avatar
    Join Date
    Jul 2012
    Location
    Australia
    Posts
    7
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #3
    Thread Starter
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    Thanks
    121
    Thanked 1,754 Times in 1,441 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  5. The Following User Says Thank You to samcy For This Useful Post:

    manamaga (August 6th, 2012)

  6. #4
    mazza's Avatar
    Join Date
    Jun 2012
    Location
    United Kingdom
    Posts
    194
    Thanks
    21
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #5
    aj270303's Avatar
    Join Date
    Dec 2011
    Location
    United Kingdom
    Posts
    2,106
    Thanks
    56
    Thanked 99 Times in 81 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #6
    sjassi's Avatar
    Join Date
    Aug 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #7
    manamaga's Avatar
    Join Date
    May 2012
    Location
    United Kingdom
    Posts
    511
    Thanks
    9
    Thanked 14 Times in 13 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. The Following User Says Thank You to manamaga For This Useful Post:

    aj270303 (August 6th, 2012)

  11. #8
    Thread Starter
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    Thanks
    121
    Thanked 1,754 Times in 1,441 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  12. #9
    sjassi's Avatar
    Join Date
    Aug 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  13. #10
    manamaga's Avatar
    Join Date
    May 2012
    Location
    United Kingdom
    Posts
    511
    Thanks
    9
    Thanked 14 Times in 13 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. The test "advert" not showing correctly after uppgrading to 3.1.5
    By TheSyndicate in forum Help Using ClassiPress
    Replies: 1
    Last Post: November 9th, 2011, 08:58 AM
  2. Adding "Share with a friend" to footer
    By liquidpixels in forum Report JobRoller Bugs
    Replies: 3
    Last Post: September 21st, 2011, 07:20 AM
  3. [MOD NEEDED] Change blank price "0" to "Call or email"
    By doctorcilantro in forum ClassiPress General Discussion
    Replies: 17
    Last Post: March 2nd, 2011, 09:08 AM
  4. [SOLVED] "Whoops! Page Not Found" shows when trying to view an advert
    By toastcard in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: February 6th, 2011, 03:39 PM
  5. [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