Add to favorites -module
eliz82
Joined: 2009-11-06
Posts: 71 |
![]() |
By default "Add to favorites" link it appear both in the sidebar (on Item Action) and under the Items and Album thumbnails |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
Quote:
only for items (not albums). Uncomment module.inc lines 127-130: if ($item->getCanContainChildren()) { continue; } Quote:
I want that the "Add to favorites" only appear in the sidebar Try adding this after line 130 (I haven't tested it): if (!isset($wantsDetailedLinks[$item->getId()])) { continue; } |
|
eliz82
Joined: 2009-11-06
Posts: 71 |
![]() |
on a quick testing both seems to be working without problems. i saw in the comment of module.inc that you are the developer of this module, and i want to tell you about another strange problem that i experience with this module. is there any method that "add to favorites" link to not appear to users that have a specific string in they username (for example "[Bot]" or [Spider] ) or certain user ids ? this are the spiders that is seems to be active in my phpbb3 Yahoo [Bot] Google [Bot] MSN [Bot] Baidu [Spider] Google Feedfetcher Majestic-12 [Bot] MSNbot Media Ask Jeeves [Bot] Alexa [Bot] Exabot [Bot] Gigabot [Bot] Voyager [Bot] Yahoo MMCrawler [Bot] Heritrix [Crawler] Steeler [Crawler] |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
You could write a test for the user name in that same section of code, and exit the loop with a "continue" statement along the same lines. Good Luck! |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Quote:
when synchronize the users between gallery and phpbb3, those accounts are also created in gallery2 if you remove "those accounts" from gallery they will be treated like guests -s |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
Yahoo [Bot] 17 I guess Yahoo likes your items more than any other bot. Dave _____________________________________________ |
|