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

Thread: Domain Results 0.1

  1. #1
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default Domain Results 0.1

    Domain Results
    Version: 0.1
    Author: Nick Ramsay
    Created on:
    2010/12/09
    Last Updated: 2010/12/09
    Tested on: Hotaru 1.4.1 ~ 1.4.2
    Plugins Required: Bookmarking 0.5+
    Plug & Play: Yes
    Supported: No

    Description
    This plugin is an alternative to JonH's "More From" plugin. It displays the post's domain which links to more results submitted to your site from that domain.

    The difference between this and Jon's version is this one doesn't use the domain as a search value. Instead, it uses the Bookmarking plugin to retrieve results based on the post_domain field in the database posts table. As a bonus, since it uses Bookmarking, it enables the filters for popular, upcoming, latest, all and best from.

    Instructions
    1. Upload the "domain_results" folder to your plugins folder.
    2. Install it from Plugin Management in Admin.

    Note: To get the filters working properly in Bookmarking 0.5, follow these instructions.

    Revision History
    v.0.1 2010/12/09 - Nick -Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.
    Attached Thumbnails Attached Thumbnails domain_results.png  
    Attached Files Attached Files
    Last edited by Nick; 12-10-2010 at 02:38 AM. Reason: Added note about getting the filters to work properly in Bookmarking 0.5


  2. #2
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    159
    Thanked 54 Times in 41 Posts

    Default

    Nick, the attachment is empty.

  3. #3
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    Sorry, try again now.

  4. #4
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    159
    Thanked 54 Times in 41 Posts

    Default

    Thanks Nick, this is just awesome. Not downplaying Jon's plugin, but this is giving the desired results.

    Also, is there a way I could add the text, 'Source' before the link?

  5. #5
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    Sure, you can edit the language file (and then clear the language cache).

    "Source" is not clickable in this example:
    PHP Code:
    $lang["domain_results_pre_domain"] = " |   Source: ";
    $lang["domain_results_domain"] = ""
    "Source" is clickable in this example:
    PHP Code:
    $lang["domain_results_pre_domain"] = " |  ";
    $lang["domain_results_domain"] = "Source: "

  6. Thanked by:


  7. #6
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    159
    Thanked 54 Times in 41 Posts

    Default

    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'

  8. #7
    Senior Member Gunaxin's Avatar
    Join Date
    Mar 2010
    Location
    Baltimore, MD - USA
    Posts
    117
    Thanks
    37
    Thanked 26 Times in 16 Posts

    Default

    Nice work Nick! This plugin seems to find everything better. However it just gives me the Popular results. I can tell that's what you intended, and then if I click Upcoming or Latest I should get the results from that domain as well. However those buttons revert back to Upcoming and Latest for the entire site (without tagging the domain too). See an example here :

    http://links.gunaxin.com/domain/uproxx.com/

    I also noticed this method doesn't generate the RSS feed as the search did. That might be useful to have it possible.
    Last edited by Gunaxin; 12-09-2010 at 06:45 PM.
    Gunaxin Links - Stuff for Guys on the Web - Proudly running Hotaru CMS 1.4.1

  9. #8
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    @Gunaxin, you're right about there being no RSS feed. That would be a good addition in a future version.

    As for the filters, you're right about that too, but it's easily fixed:

    1. Open bookmarking.php in the Bookmarking plugin.
    2. Find the theme_index_pre_main function (possibly around line 500?)
    3. Scroll down to the very bottom of that function and add this plugin hook:

    PHP Code:
    $h->pluginHook('bookmarking_sort_filter'); // allow custom filters 
    before:

    PHP Code:
    // display the sort links
    $h->displayTemplate('bookmarking_sort_filter'); 
    That hook will be in the next version of Bookmarking.

  10. #9
    Senior Member Gunaxin's Avatar
    Join Date
    Mar 2010
    Location
    Baltimore, MD - USA
    Posts
    117
    Thanks
    37
    Thanked 26 Times in 16 Posts

    Default

    hmmmm. Tried it, and it didn't work. So either I didn't do it right, or it doesn't work. Can anyone else test and confirm?
    Gunaxin Links - Stuff for Guys on the Web - Proudly running Hotaru CMS 1.4.1

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

    Default

    I have question...
    Is the a way to modify this plugin to work as direct source link.
    I know that users can click the post title to visit source site (in Luciola Light) but I would like to give them visible original direct source link. Not to site but to actual url that user submitted in step 1 of post submission.
    Last edited by Kenet; 01-25-2011 at 05:55 PM.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 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, 05: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
  •