Closed (outdated)
Project:
Follow
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 16:43 UTC
Updated:
8 Mar 2024 at 08:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nadeemja commentedI hacked away and got something that works for me flawlessly. Try it out yourself. I'm no pro, so beware.
Patch attached.
Comment #2
nadeemja commentedComment #3
duntuk commentedNeed drupal 7 version here...
Comment #4
monotaga commentednadeemja, thanks! This was useful for my site.
Comment #5
monotaga commentedThe patch in #1 doesn't account for "Follow this site (RSS)". I've repatched.
Comment #6
monotaga commented@nadeemja, was there a reason that you used "$_domain['subdomain']" to set FOLLOW_DOMAIN instead of, say, "$_domain['sitename']"? As it is, if a site's subdomain changes (as mine will do when we move from dev to production), I'll need to make changes to the MySQL table for this.
I'd recommend changing:
define('FOLLOW_DOMAIN', str_replace(".","_", $_domain[subdomain]));to:
define('FOLLOW_DOMAIN', strtolower(str_replace(' ','-',check_plain($_domain['sitename']))));Although, if the site name changes, then the same issue happens. It might just be better to use the site ID since that's not something that the user can change (and otherwise won't change).
Comment #7
guzmosz commentedMe too...
Need drupal 7 version
Comment #8
monotaga commentedHas anyone just tried using the Domain Table Prefix module for this functionality?
Comment #9
bcobin commentedPer the developer, it should be relatively straightforward to use hook_domain_batch() - this is in domain.api.php which is included in the Domain project download.
See http://drupal.org/node/1556470
This is for D7, BTW...
Comment #10
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks