Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Domain Results 0.1

  1. #11
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,914
    Blog Entries
    88
    Thanks
    519
    Thanked 845 Times in 550 Posts

    Default

    In that case you wouldn't need this plugin. Just put <?php echo $h->post->origUrl; ?> in the bookmarking templates.

  2. #12
    Junior Member Kenet's Avatar
    Join Date
    Jan 2011
    Location
    Poland
    Posts
    9
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by Nick View Post
    In that case you wouldn't need this plugin. Just put <?php echo $h->post->origUrl; ?> in the bookmarking templates.
    There are four bookmarking templates:
    _list
    _no_posts
    _post
    _sort_filter

    Should I put this code in every one of them?

  3. #13
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,914
    Blog Entries
    88
    Thanks
    519
    Thanked 845 Times in 550 Posts

    Default

    Well, you wouldn't put it in _no_posts, because that shows no posts, and you wouldn't put it in _sort_filter because that only shows the sort/filter.

  4. #14
    Junior Member
    Join Date
    Apr 2012
    Posts
    3
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by nothingman View Post
    Thanks Nick.

    I did away with the 'Source' text and replaced it with a tool tip (when a user places the mouse on the URL, the user sees what it is does).

    For those interested in adding a tool tip just replace the following in domain_results.php (line 48).

    PHP Code:
    echo $h->lang["domain_results_pre_domain"] . "<a href='" $h->url(array('domain'=>$get_domain)) . "'>"$h->lang["domain_results_domain"] . $get_domain "</a>\n"
    WITH

    PHP Code:
    echo $h->lang["domain_results_pre_domain"] . "<a href='" $h->url(array('domain'=>$get_domain)) . "' title='ASDF'>"$h->lang["domain_results_domain"] . $get_domain "</a>\n"
    Replace 'ASDF' with 'whatever you want'
    thank you very much for the tip, also you can add $ get_domain code to display the domain name.

    PHP Code:
    echo $h->lang["domain_results_pre_domain"] . "<a href='" $h->url(array('domain'=>$get_domain)) . "' title=".$get_domain.">"$h->lang["domain_results_domain"] . $get_domain "</a>\n"

    as I can do to when they click, the link opens the page in a new tab?
    Last edited by quimbox; 04-30-2012 at 02:41 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Enabling domain re-direction with sub domains?
    By baadier in forum How-To and Troubleshooting
    Replies: 18
    Last Post: 03-16-2012, 03:22 AM
  2. Seo Urls not working in Sub domain...'Page not found'
    By wordpressexpert in forum How-To and Troubleshooting
    Replies: 1
    Last Post: 07-01-2010, 06:38 AM
  3. [Docs] Logging Results to a File
    By Nick in forum Developing Plugins
    Replies: 0
    Last Post: 01-18-2010, 06:11 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •