781
deka87
Re: Notifications based on criteria
  • 2008/12/18 20:54

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


thanks trabis. it's alwasy awesome when you and ghia join the topic.

as in regard to the line you provided, i dont have it. although i have this:

// Notification
        
$ads_id $xoopsDB->getInsertId();
        
$notification_handler =& xoops_gethandler('notification');
        
$tags = array();
        
$tags['ADS_TITLE'] = $ads_type.' '.$ads_title;
        
$tags['ADS_LANG'] = $ads->getVar('ads_lang1').' to '.$ads->getVar('ads_lang2');
        
$tags['ADS_DESC'] = $ads->getVar('ads_desc');
        if ( 
$xoopsModuleConfig['moderated'] == 1) {
            
$tags['ADS_URL'] = XOOPS_URL '/modules/' $xoopsModule->getVar('dirname') . '/admin/index.php?sel_status=2';
            
$notification_handler->triggerEvent('global'0'ads_submit'$tags);
            
$notification_handler->triggerEvent('category'$cat_id'ads_submit'$tags);
            
// If notify checkbox is set, add subscription for approve
            
if ($notifypub) {
                include_once 
XOOPS_ROOT_PATH '/include/notification_constants.php';
                
$notification_handler->subscribe('ads'$ads_id'approve'XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
            }
            
$messagesent ="<br />"._MD_CATADS_AFTER_MODERATE;
        } else {
            
$tags['ADS_URL'] = XOOPS_URL '/modules/' $xoopsModule->getVar('dirname') . '/adslist.php?cat_id=' $cat_id;
            
$notification_handler->triggerEvent('global'0'new_ads'$tags);
            
$notification_handler->triggerEvent('category'$cat_id'new_ads'$tags);
            
$messagesent ="<br />"._MD_CATADS_NO_MODERATE;
        }
        
redirect_header("index.php",2,$messagesent);
    break;


can you see those "$ads_lang1" and '$ads_lang2" variables (i've added them by myself)? I have also added two custom lines in the registration form: "$source_language" and "$target_language". So I want a user to be notified if $ads_lang1==$source_language and $ads_lang2==$target_language.

anyways, if this were too complicated, please just comment the code I've attached
Mind anchors



782
deka87
Re: Notifications based on criteria
  • 2008/12/18 20:36

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


thanks, Mowaffak. unfortunately there are over 2oo countries in the world, too many categories.

to moderators: the thread is being discussed here:https://xoops.org/modules/newbb/viewtopic.php?topic_id=67050&post_id=302796#forumpost302796 so plz delete this topic. sorry for double posting. Mowaffak, it'd be great if you could join the discussion there.
Mind anchors



783
deka87
Notifications based on criteria
  • 2008/12/18 19:09

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Hi,

I use Catads 1.4 module and I've noticed that you can set up notification options e.g. receive notifications when there is a new ad posted. I was just wondering if it is possible for a users to receive notifications about new ads posted by users from their $coutry only i.e when $country defined by the user in the registration form = $location defined in the "submit new ad" form in the catads module. I am not talking about the catads module only but other modules too where you've got to define your coutry.

Hope I made this clear, so waiting for your suggestions.
Mind anchors



784
deka87
Re: newbb notifications addons
  • 2008/12/18 17:21

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


it is actually pretty easy to do. you just need to edit admin/adsmod.php and add there the tags you need (like "ADS_DESC") and then add them into your language/english/mail_template/ I have added several variables in notification mails for catads module and it works just fine.
Mind anchors



785
deka87
Re: Notifications based on criteria
  • 2008/12/18 17:04

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


C'mon moderators pay a little bit of your precious attention to this thread. This could really be helpful cos if a user gets notifications about all the ads posted he gets kinda spammed.
Mind anchors



786
deka87
Re: Notifications based on criteria
  • 2008/12/18 5:43

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Yea that's a great idea to have a keyword targeted notifications. Module developers, any suggestions?
Mind anchors



787
deka87
Notifications based on criteria
  • 2008/12/17 21:05

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Hi,

I use Catads 1.4 module and I've noticed that you can set up notification options e.g. receive notifications when there is a new ad posted. I was just wondering if it is possible for a users to receive notifications about new ads posted by users from their $coutry only i.e when $country defined by the user in the registration form = $location defined in the "submit new ad" form in the catads module. I am not talking about the catads module only but other modules too where you've got to define your coutry.

Hope I made this clear, so waiting for your suggestions.
Mind anchors



788
deka87
Re: Problems with Smartsection in PHP5
  • 2008/12/16 7:52

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Some updates... I've tried 3 different themes on the admin side and I still get this weird behaviour of the smartsection module...How do I fix it? Is there a way to degrade the module?
Mind anchors



789
deka87
Re: Problems with Smartsection in PHP5
  • 2008/12/16 7:47

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


I want to join the thread. I used to run smartsection 2.13 and it worked alright. But when I updated it to Smartsection 2.14 I got the same weird behaviour of it, but in the admin section of the module only. I use the "default" theme (xoops 2.2.4) on the admin side and I don't actually want to change it cos of one module. I use PHP 4 and I don't understand what might get wrong.
Mind anchors



790
deka87
Re: Is it possible to clone Lexikon module?
  • 2008/12/14 18:41

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Awesome! The description is very clear so it only took two hours to clone it to modules/glossaries/. By the way, that comment of some American dude from Cali on the bad translation to English of the guide (which I guess was corrected then) almost freaked me out. I believe that XOOPS is an international project and everybody who benefits a little piece to it deserves many thanks.

Anyways, in regard to my clonned version of the lexikon module. I've done everything but replacing the templates by the new ones and left the logo alone. So it uses the same templates as the original installed lexikon module. So if anybody needs a clonned version of this great module do not hesitate to contact me by email or pm.
Mind anchors




TopTop
« 1 ... 76 77 78 (79) 80 81 82 ... 96 »



Login

Who's Online

136 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 136


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits