Could you tell me where I can find the strings 'filter' or 'Refine' or 'promoted'. I'm in translating the module and would like to see it in place. Is it only if there are many web links?

Comments

nancydru’s picture

I believe those are in the "weblinks_user.inc" file. This is part of the "Weblinks" tab that gets added to the user profile.

FrankT’s picture

Thanks, I can see the string except the filter type 'promoted' or 'not promoted'. Is there something special to be done before to get it in the user interface?

FrankT’s picture

..maybe it has to do that I didn't find how to switch on moderation of web links so far!?

nancydru’s picture

I really don't use the user links part, so Robert is going to have to look at that.

rmiddle’s picture

Status: Postponed (maintainer needs more info) » Active

Moderation wasn't built into weblinks. We have added some support by having an unpublished block and if you go into the weblinks content type and default to unpublished that will give you the ability to moderate. As for who see the user tab. Make sure the users role has 'edit own weblinks' checked. Also should have 'create weblinks' checked as well.

Thanks
Robert

rmiddle’s picture

Status: Active » Postponed (maintainer needs more info)
FrankT’s picture

Status: Active » Postponed (maintainer needs more info)

I would like to come back to (a part of) my original question: I still don't have any idea where to find the strings promoted in the user interface? Could you tell me, please?

nancydru’s picture

Well, according to the translation template, it would be on line 154 of "weblinks.user.inc".

  $filters['status'] = array('title' => t('status'),
    'options' => array('status-1'   => t('published'),     'status-0' => t('not published'),
                       'moderate-1' => t('in moderation'), 'moderate-0' => t('not in moderation'),
                       'promote-1'  => t('promoted'),      'promote-0' => t('not promoted'),
                       'sticky-1'   => t('sticky'),        'sticky-0' => t('not sticky')));

About moderation: There is, in the "node" table, a flag called "moderate." In past versions of Drupal, they tried to include some moderation support into Core. At some point (maybe 5.0), they decided that core should no longer try to do moderation, but they left the flag there. I believe it is used by the Moder8 module. To the best of my knowledge, no other contributed modules actually use that flag.

FrankT’s picture

OK, I understand 'moderation' (but there still seems to be some kind of activity as there is a beta version of modr8 for 6.x, too.) I think this issue could be closed.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Fixed
rmiddle’s picture

Status: Fixed » Closed (fixed)
rmiddle’s picture

Status: Closed (fixed) » Fixed
rmiddle’s picture

#289892: Filtering does not work

Someone else has brought this up. should we wrap that section around an module_exist function or ripe it out all together?

Thanks
Robert

nancydru’s picture

http://drupal.org/node/285852

I thought you used it and wanted that left in. I don't and can't see much use in it.

rmiddle’s picture

I don't use that aspect of the system. That can be yanked out.

Thanks
Robert

FrankT’s picture

I don't use it, too (my question was for translation purposes only). In my eyes the issue can be closed.

nancydru’s picture

Status: Fixed » Closed (fixed)