Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nSys News System plug-in
#2
I forgot to attach file Smile

Edit:

New download file again Smile

Edit #2:
CKEditor added Smile

Edit #3:
I disabled few lines of the code (changing statistics data for user, because it became unnecessary for this plug-in) that can only bring troubles Big Grin
Function is still there, called ChangeNumOfUser($userid,$where=1,$comm=NULL), and if you want to enable it, find code lines with this function and remove # from beginning of the line, but I wouldn't recommend it, 'cause I haven't tested how it works in this GS plug-in. Enjoy Smile

Edit #4:
a) I altered the function for shortening your article to number of character defined in Configuration section.
Before this, it worked just on substr() function, and did not look for opened tags when shortening, and that could leave you with unclosed tag and interfere with the rest of the page's style.
Now, it shortens it to the specified number, but keeps eventual opened tag, and closes it with </tag> before adding following "...[Read More]" link.
If you find similar problems with your shortened stories, please report, and I will work on it further more.

b) Because I had some problems with attaching my css files to the header, and I wasn't able to apply my style to the menu and some other things, I decided to import content of css file called nSysImport.css (located in path/to/plugins/nSys/styles/default/) to the header, and now it works fine.
If you need to change any positions or anything related to menu or something else that's based on my css style, you can simply edit this new css style - nSysImport.css (it will be automatically applied to the header on the next refresh).

Edit #5:
Altered function for shortening articles further more, and defined some variables and offsets, so there are no errors displayed in debug mode Smile
Also, When you run the script for the first time, and installation starts, there is no confirmation message displayed in green layers. You can turn it back on, if you want, by editing classes.php:
line 447 and 448, at the end of the line there is 0, put it to 1 if you want it to be displayed.
And for every confirmation message that shows up (when news is added, or something like that), you can turn it off. Just search for WriteToFiles commands in classes-admin.php and put 0 at the end (original function looks like this: WriteToFiles($file,$mode,$input,$say=1), so if you don't put 0 or leave last field empty, it will show result output).

Edit#6:
I added support for Fancy URLs option, so now, if it is enabled, nSys will use /urls/like/this, and if disabled, it will use urls?like=old&these=ones
You have to alter your .htaccess file, located in GS root folder, here is an explanation.
Reply


Messages In This Thread
nSys News System plug-in - by bosniamaj - 2010-06-01, 01:06:19
nSys News System plug-in - by bosniamaj - 2010-06-01, 01:07:49
nSys News System plug-in - by pauloc - 2010-06-01, 02:09:54
nSys News System plug-in - by bosniamaj - 2010-06-01, 02:11:48
nSys News System plug-in - by bosniamaj - 2010-06-01, 02:55:24
nSys News System plug-in - by Oleg06 - 2010-06-01, 04:28:19
nSys News System plug-in - by bosniamaj - 2010-06-01, 04:36:51
nSys News System plug-in - by Oleg06 - 2010-06-01, 04:37:00
nSys News System plug-in - by maxpop - 2010-06-01, 05:26:52
nSys News System plug-in - by bosniamaj - 2010-06-01, 05:28:17
nSys News System plug-in - by maxpop - 2010-06-01, 05:29:15
nSys News System plug-in - by Oleg06 - 2010-06-01, 22:00:12
nSys News System plug-in - by bosniamaj - 2010-06-02, 04:24:39
nSys News System plug-in - by bosniamaj - 2010-06-02, 04:28:24
nSys News System plug-in - by Oleg06 - 2010-06-02, 06:19:50
nSys News System plug-in - by bosniamaj - 2010-06-02, 06:24:29
nSys News System plug-in - by Oleg06 - 2010-06-02, 16:31:10
nSys News System plug-in - by bosniamaj - 2010-06-02, 17:18:14
nSys News System plug-in - by bosniamaj - 2010-06-03, 03:30:43
nSys News System plug-in - by Oleg06 - 2010-06-03, 04:12:09
nSys News System plug-in - by bosniamaj - 2010-06-03, 04:17:30
nSys News System plug-in - by bosniamaj - 2010-06-03, 04:22:57
nSys News System plug-in - by kuba.sanitrak - 2010-06-03, 05:31:25
nSys News System plug-in - by bosniamaj - 2010-06-03, 07:16:42
nSys News System plug-in - by bosniamaj - 2010-06-03, 07:18:01
nSys News System plug-in - by Oleg06 - 2010-06-03, 16:54:48
nSys News System plug-in - by pauloc - 2010-06-03, 19:11:39
nSys News System plug-in - by bosniamaj - 2010-06-03, 23:38:22
nSys News System plug-in - by bosniamaj - 2010-06-03, 23:42:05
nSys News System plug-in - by pauloc - 2010-06-04, 02:02:11
nSys News System plug-in - by bosniamaj - 2010-06-04, 02:59:43
nSys News System plug-in - by pauloc - 2010-06-04, 17:10:53
nSys News System plug-in - by bosniamaj - 2010-06-05, 01:05:56
nSys News System plug-in - by bosniamaj - 2010-06-05, 08:17:55
nSys News System plug-in - by umbor1986 - 2010-06-07, 08:35:40
nSys News System plug-in - by bosniamaj - 2010-06-07, 15:57:02
nSys News System plug-in - by pauloc - 2010-06-07, 18:34:19
nSys News System plug-in - by bosniamaj - 2010-06-07, 18:42:09
nSys News System plug-in - by maxpop - 2010-06-07, 23:55:42
nSys News System plug-in - by umbor1986 - 2010-06-08, 08:52:29
nSys News System plug-in - by zajca - 2010-07-02, 19:08:14
nSys News System plug-in - by Rebecca - 2010-07-05, 20:22:30
nSys News System plug-in - by Rebecca - 2010-07-05, 22:22:35
nSys News System plug-in - by NeBox - 2010-07-07, 01:10:19
nSys News System plug-in - by Zegnåt - 2010-07-08, 01:25:24
nSys News System plug-in - by NeBox - 2010-07-08, 01:35:55
nSys News System plug-in - by Zegnåt - 2010-07-08, 01:41:46
nSys News System plug-in - by NeBox - 2010-07-08, 01:54:17
nSys News System plug-in - by zajca - 2010-07-09, 06:10:46
nSys News System plug-in - by yojoe - 2010-07-09, 08:18:49
nSys News System plug-in - by zajca - 2010-07-09, 08:32:10
nSys News System plug-in - by yojoe - 2010-07-09, 23:52:41
nSys News System plug-in - by melmoth - 2010-07-13, 19:32:27
nSys News System plug-in - by Zegnåt - 2010-07-13, 21:36:26
nSys News System plug-in - by melmoth - 2010-07-14, 23:10:10
nSys News System plug-in - by rzientek - 2010-08-23, 05:34:46
nSys News System plug-in - by tnyse - 2010-08-31, 06:08:17
nSys News System plug-in - by shumphreys - 2010-09-08, 07:48:24
nSys News System plug-in - by Oleg06 - 2010-09-10, 02:10:53
nSys News System plug-in - by yojoe - 2010-12-21, 01:44:20
nSys News System plug-in - by andyash - 2011-11-05, 23:13:37
nSys News System plug-in - by kadox - 2012-01-30, 07:57:51



Users browsing this thread: 2 Guest(s)