×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to make option notifier at notify by default?

How to make option notifier at notify by default? 15 years 9 months ago #2830

  • zombla
  • zombla's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi there
Option notifier is at (do not notify by default) !
How to make option notifier at (notify by default)
Thanks

How to make option notifier at notify by default? 15 years 9 months ago #3020

  • gaijinhosue
  • gaijinhosue's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Bump

My users do not have the greatest English I want the default to be "Notify"
Which file do I need to modify and change the order.
Regards

P.S.
This is the only thing I do not like about this everything else is amazing.

How to make option notifier at notify by default? 15 years 9 months ago #3022

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there.
Go to components/com_comment/jos_comment/comment.class.php

find the function notifySelect() and change
$html .= "<option value='0' ".($this->_tnotify ?  "" : "selected=\"selected\"")	." >" 	. _JOOMLACOMMENT_ENTERNOTIFY0 	. "</option>";
		$html .= "<option value='1' ".($this->_tnotify ? "selected=\"selected\"" : "")	." >" 	. _JOOMLACOMMENT_ENTERNOTIFY1	. "</option>";
 
to
$html .= "<option value='0' ".($this->_tnotify ? "selected=\"selected\"" : "")	." >" 	. _JOOMLACOMMENT_ENTERNOTIFY0 	. "</option>";
		$html .= "<option value='1' ".($this->_tnotify ?  "" : "selected=\"selected\"")	." >" 	. _JOOMLACOMMENT_ENTERNOTIFY1	. "</option>";
 

How to make option notifier at notify by default? 15 years 9 months ago #3031

  • zombla
  • zombla's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
:)
Hi Daniel
Thank you very much

How to make option notifier at notify by default? 15 years 4 months ago #6262

  • Michael Salling
  • Michael Salling's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I have triedto do as written, but there is a problem

The drop down box change so that Notify is first, but in the back, nothing is changed

When I get the mail as admin, it still say notify NO, in "manage comments" there are still a red envelope, an no mails are sent.

Any advice ?

PS. running Beta2

How to make option notifier at notify by default? 15 years 4 months ago #6304

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Hmm I can't seem to figure that out Michael.

The E-Mail form one is easy though. Open your language.php file and swap the values for _JOOMLACOMMENT_ENTERNOTIFY0 and _JOOMLACOMMENT_ENTERNOTIFY1

Everything in the backend still says No notification because it reads the value of 0 in select box as No Notification (the default) and we swapped it in the template generation only. I guess everything related to notification has to be "swapped" between 0 and 1, but that's a lot of modifications to make... maybe there's an easier way.

How to make option notifier at notify by default? 15 years 4 months ago #6316

  • Michael Salling
  • Michael Salling's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Thank for your answer :)
I will try make a search in all files for "notify" to see if I can find it, and change it.

How to make option notifier at notify by default? 15 years 4 months ago #6319

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Ah that's what I always do haha but this time I was only searching for "tnotify"!

I'm sure there will be many matches under the administrator folder for notify - it'll be somewhere under that folder if it's the backend you need to change :)

I'm sure it's just a matter of swapping "off" with "on" a few times here and there, if you know what I mean.
  • Page:
  • 1
Time to create page: 0.121 seconds