Commit Graph

16569 Commits

Author SHA1 Message Date
Misty (Bot)
e02f354ec9 Latest translations and fallbacks 2017-07-19 09:23:24 +00:00
Julian Lam
efea8f8e99 closes #5784 2017-07-18 14:59:06 -04:00
Baris Usakli
18181260e7 closes #5836 2017-07-18 13:36:21 -04:00
Baris Usakli
43a70270ef closes #5835 2017-07-18 11:31:18 -04:00
Misty (Bot)
018d5d7819 Latest translations and fallbacks 2017-07-18 09:24:12 +00:00
Stjepan Osojnički
9b491e4c2e Add post images hook (#5828)
* Add post images hook

This hook would allow plugins to manipulate images inside posts  after images are manipulated by nodebb (for example, delay loading). Without this hook we can manipulate images by searching post data for them and manipulate that data, but any change on that level is either erased by nodebb once image loading starts (if delay is turned on) or it disables native image behaviour by changing image code so native behaviour is not triggered.
Hook at this place works for both delayed loading turned on and off.
Usage for this kind of hook was talked about here: https://community.nodebb.org/topic/10960/opening-uploaded-images-in-modal-windows

* trying to fix Travis error

* Update images.js

Hook moved out of wrapImagesInLinks function to places where images are actually loaded. One of the places is inside unloadImage function but in place where loading is happening because of failed if check (delayImageLoading not se in users configuration).
2017-07-17 18:16:48 -04:00
Barış Soner Uşaklı
eecc680761 style 2017-07-17 18:16:23 -04:00
dbolack-ab
c1452db0ba Adds the filter:uploadStored hook which fires after the file is saved… (#5798)
* Adds the filter:uploadStored hook which fires after the file is saved in the async waterfall and passes:
                       var storedFile = {
                       url: nconf.get('relative_path') + upload.url,
                       path: upload.path,
                       name: uploadedFile.name,
               }
               plugins.fireHook( 'filter:uploadStored', { uploadedFile: uploadedFile, storedFile: storedFile } );

* Corrections per PR. Should match style guide.

* Correction attempts take 2.

Per:

/home/travis/build/NodeBB/NodeBB/src/controllers/uploads.js

  234:5    error  Missing semicolon                            semi

  235:3    error  Expected indentation of 3 tabs but found 2   indent

  235:19   error  There should be no spaces inside this paren  space-in-parens

  235:105  error  There should be no spaces inside this paren  space-in-parens

  236:3    error  Expected indentation of 3 tabs but found 2   indent

* next() shouldn't fire twice, but I see no documentation suggesting that the paramaters will fire correctly.

Previous comments imply it is preferred to have fireHook fire fof the callback rather than having it happen next,  so I'm wrapping next in an anonymous function to ensure it passes the parameters.

If this is not the preferred method, please provide a thorough correction.

* Meh. Figuring out this style requirement is so hit and miss.

* Corrected for proper callback? technique.

Might blow up on style. Will watch.
2017-07-17 18:15:24 -04:00
Barış Soner Uşaklı
b983be2919 fix colspans in category privilege tab 2017-07-17 15:29:36 -04:00
Julian Lam
44851f97ac added logic for hiding logo if none is set, preventing crash on startup if no logo is set 2017-07-17 14:51:12 -04:00
Julian Lam
d9ace1723c removed references to libs that aren't used 2017-07-17 12:40:50 -04:00
Julian Lam
f29b9f29f9 added missing setImmediate 2017-07-17 12:23:11 -04:00
Julian Lam
63ec3b6a55 upgrade script to generate and set email logo+sizes in config 2017-07-17 12:16:14 -04:00
Julian Lam
5cec946871 fixed bug with logo being stretched in emails 2017-07-17 11:03:12 -04:00
Julian Lam
c40b11aa6e updated site upload logic so that site logo is resized for email header, implemented site logo in email header 2017-07-17 10:47:56 -04:00
Barış Soner Uşaklı
8e8507c9e6 up widget essentials 2017-07-16 15:35:22 -04:00
Barış Soner Uşaklı
cc4f4e7282 style changes 2017-07-15 16:57:41 -04:00
Barış Soner Uşaklı
67ca1881bd closes #5831 2017-07-15 16:24:46 -04:00
Baris Usakli
0a4b76357a #5830 2017-07-14 17:29:53 -04:00
Baris Usakli
9dee81b37f closes #5830 2017-07-14 17:29:31 -04:00
Julian Lam
f2f4f07570 Merge branch 'revamped-email-templates' into develop 2017-07-14 16:37:57 -04:00
Julian Lam
39e78a8a12 forgot the css :rage2: 2017-07-14 16:35:43 -04:00
Julian Lam
7fc6442af7 resized digest header 2017-07-14 16:34:38 -04:00
Julian Lam
bcdfba653a tweaking hero image 2017-07-14 16:32:37 -04:00
Julian Lam
5f24d63005 digest tpl 2017-07-14 16:30:37 -04:00
Baris Usakli
f8bfe79cf4 remove tid from recent_tids 2017-07-14 16:23:20 -04:00
Julian Lam
4c0135e188 fixed missing payload items in invitation email 2017-07-14 15:50:59 -04:00
Julian Lam
0b8b3fafbf banned and invitation 2017-07-14 15:43:55 -04:00
Julian Lam
065b3a3a03 notif_chat tpl 2017-07-14 15:36:18 -04:00
Julian Lam
a9540a13a1 fixing url in footer 2017-07-14 14:54:56 -04:00
Julian Lam
f0f856fe6b more padding adjustments 2017-07-14 14:46:31 -04:00
Julian Lam
f9233d5c9b more padding fixes 2017-07-14 14:43:06 -04:00
Julian Lam
b7d0ea900e who knew you couldn't put two paragraphs inside a td 2017-07-14 14:37:13 -04:00
Julian Lam
733f694cf3 adjusted some margins 2017-07-14 14:31:43 -04:00
Julian Lam
4dc9905b30 adding password reset image 2017-07-14 14:22:11 -04:00
Julian Lam
f128f988f3 slimmed down some data, testing notif_post again 2017-07-14 14:21:58 -04:00
Julian Lam
82dda3e2e6 added email closing back to notif_post 2017-07-14 14:02:34 -04:00
Julian Lam
582dd1ed2e testing new footer with new_post tpl 2017-07-14 13:09:35 -04:00
Misty (Bot)
3a0bc15a7a Incremented version number - v1.5.2 2017-07-14 12:56:02 -04:00
Julian Lam
51349bb71f more email templates updated 2017-07-14 12:55:34 -04:00
Baris Usakli
5a9ae8f4c7 rearrange menu items 2017-07-13 17:18:01 -04:00
Baris Usakli
72cafd55cf 2 new hooks for changing direction and set name 2017-07-13 16:09:01 -04:00
Baris Usakli
f1f8a587d4 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
# Conflicts:
#	package.json
2017-07-13 15:02:23 -04:00
Baris Usakli
ea29e3e250 simpler call to validateFilters 2017-07-13 15:01:29 -04:00
Baris Usakli
6ba913d6e6 up themes 2017-07-13 14:02:42 -04:00
Julian Lam
7c6c1adb04 test email done 2017-07-13 12:54:54 -04:00
Julian Lam
0d0e0d7311 removed prerender text and used partials for header and footer 2017-07-13 12:50:09 -04:00
Julian Lam
6c768030cc using variable for urls again, welcome.tpl done I think 2017-07-13 12:39:58 -04:00
Julian Lam
10d23f5447 resized logo again 2017-07-13 12:21:24 -04:00
Julian Lam
2eecf43eae updated logo image 2017-07-13 11:51:48 -04:00