Results 1 to 10 of 10

Thread: Need to override Website URL for Reciprocal links

  1. #1
    Join Date
    Oct 2007
    Posts
    55

    Question Need to override Website URL for Reciprocal links

    I know darn well that when I was installing v5.4 a year ago I discovered someone here had a patch they'd developed that allowed the website URL used to check for reciprocal links to be overridden. But I've looked for that post for over half an hour this morning and can't find it. I KNOW the post is here somewhere because I installed and used it under v3.54. So, I'm hoping someone here will be able to point me to it.

    Here's my dilemma and what I need to accomplish...

    On my server my 3 installs of Indexu are in three separate directories each of which uses the same code and database but a different custom skin. This lets me present my search engine to visitors looking completely different depending on where they found me, or what gender the visitor is or even what day of the week it is.

    In my case I use this method to guide visitors to my search engine from different directions and present them with a skin that hopefully appeals directly to them. So, a middle-aged man might see a grey and white skin (like portaldex) that makes no sound but includes sports feeds, wine ads, auto and business articles in the side bar , while a woman the same age who visits might see a pink and white skin featuring low romantic music, housekeeping, child-rearing, health, career and beauty tips in the side bar and a 20-something visiting through the third skin might see a red, yellow, purple, green and orange skin that plays loud & energetic rock, and includes music news, tech-toys, lovemaking tips and dating feeds in the side bars. In short, I'm trying to tune my presentation to my visitor as much as possible.

    I don't necessarily want them to realize this is the same site their dad, wife or college student kid visited yesterday but with an entirely different skin being used. Yet all sites share the same links database, the same domain and the same single licensed copy of IndexU.

    This all works fine with one notable exception. Since IndexU is installed in 3 distinct subdirectories to support those 3 skins, I use setup in the admin control panel to define unique URLs which include the subdirectory for each skin.

    In other words, one skin's "web URL" is www.mydomain.com/skin1 while the second skin's URL is www.mydomain.com/skin2 and the third skin's URL is www.mydomain.com/skin3. However, when the reciprocal link checker runs I want it to ONLY search for links that include the primary domain URL and NOT the subdirectory where Indexu is installed (i.e. www.mydomain.com)

    Saying this another way, I want all outside users to provide links to my primary domain (http://www.mydomain.com) and NOT to the IndexU subdirectory their skin resided in. I want to be able to tell the reciprocal Link checker to IGNORE the subdirectory and use only the domain name I specify when it searches for a reciprocal link on the visitor's site.

    This seems pretty straight-forward to me and I KNOW I'm not the only one with this problem. As I said I found a patch here last year that made it work exactly as I've described.

    Can someone here point me to that patch, please?

    Thanks!
    Last edited by webwitch; 02-19-2009 at 03:41 PM.

  2. #2
    Join Date
    Oct 2007
    Posts
    55

    Default

    I finally figured this out and found the posts I was looking for. The mod I was seeking was originally done by MPDaddy. The threads that defined the original requirement AND described mpdaddy's "3rd Party Reciprocal" add-on and how to install it appear here:

    http://www.nicecoder.com/community/f...ocal-url-5748/
    http://www.nicecoder.com/community/f...ciprocal-5787/

    However, from what I can tell this free mod was only released for version 5.4. I can't tell whether anyone has installed and tested it or said whether it works with IndexU Deluxe.

    Can anyone here tell me if you've managed to make this Add-on work with Deluxe 1.2 or higher?

    Thanks!
    Last edited by webwitch; 02-18-2009 at 12:34 PM.

  3. #3
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    We can always do it the easy way.

    Deluxe 1.3 misc.lib.php line 234

    if (!ereg("$site_url|$p_site_url[scheme]://$p_site_url[host]", $content['html'])):

    change $site_url to whatever URL you desire.

    $site_url would be mydomain.com/skin1 or mydomain.com/skin2

    You MAY need to check elsewhere, I haven't done a thourough search for this.

  4. #4
    Join Date
    Oct 2007
    Posts
    55

    Default

    ROFLMAO! IndexU Deluxe line 234 in which module, Bruce? You're getting as bad as me about forgetting key details, my harried friend!

    I know I CAN sit on the code like that; But mpdaddy's solution was elegant, well thought out and complete. I'd rather take that route and pay him for the patch if I can convince him to release it for Deluxe or go and try to install his mod to see if I can make it work in Deluxe myself.

    I'm not sure which module does the original reciprocal check; but Won't it also need to be patched in checkurl.php or am I smoking wacky-terbacky here?

    Thanks.

  5. #5
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I kinda missed typing that part. I've fixed my post above

  6. #6
    Join Date
    Nov 2007
    Posts
    227

    Default

    I will check the old mod this weekend and see if I can create a plugin by Monday. I didn't think anyone would have a use for it so I didn't have plans of converting it. The original mod was made because of a users request. I am sure most of the code is the same but the lines have likely changed.

    Regards
    mp
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  7. #7
    Join Date
    Oct 2007
    Posts
    55

    Thumbs up 3rd Party Reciprocal Mod Instructions for Indexu Deluxe v1.2.1

    I took some time today to manually adjust and update the original installation procedures for the 3rd Party Reciprocal mod so that they can be followed and used for manual installation of the patch into Indexu Deluxe v1.2.1 After applying the changes manually, I then tested the programs and confirmed that the changes do work as they should. Finally, I went back and revised the original install instructions to explain how to install this mod into IndexU Deluxe v1.2.1.

    The attached text file reflects those modified installation instructions.

    The original author of this patch has indicated he intends to re-release this patch as a plugin so that it can be installed much more easily into the IndexU Deluxe product; and I'm sure he will eventually do that. However I needed these changes in place ASAP. This technique allowed me to get the patch working.

    If you need this patch but are not in as big a hurry as I was, I recommend waiting for the author to release the plugin version. This mod requires changes to 10 PHP files plus a database change. In my revisions to the patch installation procedure, I described the installation of this patch as "not for sissies". But if you can't wait for the plugin to be released and you're very careful in installing these changes, this revised patching procedure ought to do the trick. Following the attached revised install procedure enabled me to make it work in v.1.2.1 without problems. If you are not running v 1.2.1, pay close attention, because some minor adjustments may be needed to make the patch work in Indexu Deluxe v1.3.1 and beyond.

    Good Luck and have fun!
    Attached Files Attached Files
    Last edited by webwitch; 02-22-2009 at 08:37 AM.

  8. #8
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Nicely done!

  9. #9
    Join Date
    Nov 2007
    Posts
    227

    Default

    The plugin version is almost done. I ran into a few snags that slowed me down a bit. In the plugin version, you can define 2 url's to use for reciprocals. By default it will use your site url, but it can be overwritten with any url you want. I'm back to work but with luck I can get it finished tomorrow or the next day.

    Regards
    Wayne
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  10. #10
    Join Date
    Oct 2007
    Posts
    55

    Default

    Thanks for the compliment, Bruce. I deliberately avoided sending out Nicecoder's copyrighted code. That's is why I provided only the procedure.

    And to mpdaddy I would add. The delays are unavoidable. That's why I decided to take the DIY approach.

Similar Threads

  1. Reciprocal URL
    By Mitchell in forum v5.x
    Replies: 16
    Last Post: 12-09-2007, 07:06 PM
  2. Reciprocal URL
    By woolfie in forum v5.x
    Replies: 5
    Last Post: 09-23-2007, 10:49 PM
  3. Reciprocal URL
    By thebel in forum Tutorials, Hints & Tips
    Replies: 2
    Last Post: 09-04-2006, 06:38 PM
  4. Reciprocal links
    By tunaweb in forum v5.x
    Replies: 3
    Last Post: 01-12-2006, 02:09 AM
  5. Reciprocal Links - Does it check
    By scott659 in forum Pre-Sales Questions
    Replies: 1
    Last Post: 08-08-2004, 03:05 PM

Posting Permissions

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