Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3] 4 5 6

Author Topic: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users  (Read 38869 times)

tyee

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 56
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #30 on: October 12, 2007, 02:13:08 am »

@Rui Mendes
      I am using 1.5.3.1 now and am attempting to install sNewsMEMU version on XAMPP, which went fine. Now I'm trying to port over my current template and get it working. I'm nearly there only I have a problem with the new pages I create are not showing up in the top main menu, so I'm trying to fix that then I'm good to go live if I can use my current database and not lose all my current content.

So your suggestion here of --

1 - First, most important. Backup your database.
2 - Just add some new fields to your database.
3 - Replace snews and files with snewsMEMU.

Do this procedure allow me to use my current database content? I assume yes, because you say to backup my database. I guess I can use phpMyAdmin to do this?? Could you list the commands to do this.

Then I can just install sNewsMEMU, get my current template installed and working, then just import my current content from that backup I made?

Or does everyone who wants to use this template have to enter all their content again from scratch???

Logged

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #31 on: October 12, 2007, 10:53:19 am »

For update online:
- I made this for you, is the code you must run in sql.

Code: [Select]
Alter TABLE articles add author_id int(11) NOT NULL default '0';
Alter TABLE articles add allow_edit char(3) NOT NULL default 'NO';
Alter TABLE articles add display_auto int(3) default '1';
Alter TABLE categories add author_id int(11) NOT NULL default '0';
Alter TABLE categories add allow_edit char(3) NOT NULL default 'NO';
Alter TABLE comments add author_id varchar(8) NOT NULL default '';
INSERT INTO `settings` (name,value) VALUES ('comments_reg', '');
INSERT INTO `settings` (name,value) VALUES ('added_by', 'on');
INSERT INTO `settings` (name,value) VALUES ('alert_register', '');
INSERT INTO `settings` (name,value) VALUES ('alert_emailusr', '');
INSERT INTO `settings` (name,value) VALUES ('length_password', '9');
INSERT INTO `settings` (name,value) VALUES ('registration_off', '');
INSERT INTO `settings` (name,value) VALUES ('users_online', 'on');
INSERT INTO `settings` (name,value) VALUES ('disable_home','');
INSERT INTO `settings` (name,value) VALUES ('disable_archive','');
INSERT INTO `settings` (name,value) VALUES ('disable_contact','');
INSERT INTO `settings` (name,value) VALUES ('disable_sitemap','');
INSERT INTO `settings` (name,value) VALUES ('template','default');


CREATE TABLE users (
    id int(8) primary key auto_increment,
  username varchar(255) NOT NULL default '',
  username_real varchar(255) NOT NULL default '',
  password varchar(255) NOT NULL default '',
  realname varchar(255) default NULL,
  location varchar(255) default NULL,
  email varchar(250) NOT NULL default '',
  website varchar(250) NOT NULL default '',
  level enum('1','2','3','4') NOT NULL default '4',
  ipaddy varchar(255) NOT NULL default '',
  banned int(3) NOT NULL default '0',
  show_rname char(3) NOT NULL default 'YES',
  show_email char(3) NOT NULL default 'YES',
  first_login char(3) NOT NULL default 'YES',
  edit_comments char(3) NOT NULL default 'NO',
  permit_upload char(3) NOT NULL default 'NO',
  frozen char(3) NOT NULL default 'NO',
  site_owner char(3) NOT NULL default 'NO'
);


INSERT INTO `users` VALUES (1, '21232f297a57a5a743894a0e4a801fc3', 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Admin', '', 'admin@your-site.com', 'http://your-site.com', '1', '', 0, 'YES', 'YES', 'NO', 'NO', 'YES', 'NO', 'YES');


CREATE TABLE upfiles (
        id int(11) primary key auto_increment,
path ENUM('./docs/','./pdf/') NOT NULL,
name VARCHAR(30) NOT NULL,
type VARCHAR(30) NOT NULL,
size INT NOT NULL
);


if want in localhost, export from phpMyAdmin to a file, in localhost you import that file and run code I did.
Now in localhost I think you have everything working, so you can modify your template as you wish.

Hope can help you
« Last Edit: October 12, 2007, 11:19:07 am by Rui Mendes »
Logged
Need a Job on Europe. Linkdin - Facebook / Group

tyee

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 56
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #32 on: October 14, 2007, 05:28:37 am »

Much appreciated Rui, I'll give it a try!
Logged

line

  • Newbie
  • *
  • Karma: 1
  • Posts: 10
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #33 on: November 04, 2007, 03:18:37 am »

Thanks for this package.. It's working.. ;D

I don't know much about PHP and MySQL.. just enough to properly follow the steps you provided..
If I'm going to add additional MODs, I have to add the code on the core.php file, right?
Logged
"Living is easy with eyes closed. Misunderstanding all you see" - strawberry fields forever

jlhaslip

  • Sr. Member
  • ****
  • Karma: 16
  • Posts: 374
    • My snews with AEF Forum site
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #34 on: November 04, 2007, 08:12:46 am »

basically, yes.
Each Mod has a set of instructions including the list of files you may need to add or chmod, etc.
Core.php does most of the work in the MEMU and most Mods include some changes to the core.php in this "package"
Logged
Yes! I have no siggy.

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #35 on: November 12, 2007, 06:25:28 pm »

IMPORTANT NOTICE:
As of today, November 12.07, the first version of sNews 1.6 MEMU (version 1.0) has been replaced with a completely re-written and re-modified package as Version 1.1. This new package eliminates a few bugs that were un-solvable. Please read over the First Post in this Topic for the details.  :)
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #36 on: November 13, 2007, 01:51:38 am »

Hello Doug.

I try to install and I found a little bug, well not a bug
miss file/folder in your package
Your config.php you has a reference to (line 90)

# sNews Admin Tips functions
include('mods/admin_tips/admin_tips.php');

So I think miss that folder and admin_tips.php file.
Logged
Need a Job on Europe. Linkdin - Facebook / Group

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #37 on: November 13, 2007, 03:50:19 am »

Awww... shucks... I missed an orphan!  ;D
Yes... I removed the admin_tips folder (and its function file) before uploading as it still needs more work... and forgot that one.
DONE - I commented it out for now... as I will eventually add the mod back in... and the download is now refreshed.
Thanks Rui.
« Last Edit: November 13, 2007, 03:57:27 am by Keyrocks »
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #38 on: November 14, 2007, 08:45:19 pm »

Last night was very exausted.

I try and works fine, very good job Doug.

Congratulations.
Logged
Need a Job on Europe. Linkdin - Facebook / Group

lessismore

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 67
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #39 on: November 15, 2007, 10:37:20 am »

I just installed this - fantastic.

The concept of pre-populated content via SQL is brilliant - it ties the content to the administration features better than any type of "read me last" documentation.

Plus, you get a picture of a giant moose.
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #40 on: November 15, 2007, 03:34:43 pm »

Last night I was very exausted. I try and works fine, very good job Doug.
Congratulations.
Thanks for testing once again Rui. I do appreciate the feedback.

I just installed this - fantastic.
The concept of pre-populated content via SQL is brilliant - it ties the content to the administration features better than any type of "read me last" documentation. Plus, you get a picture of a giant moose.

One of these days... I would like to use pre-populated SQL content that explains in more detail how the site's features work... or could work... so that the package would sort of have its own introduction and guide built-in... giving the first-time user an opportunity to experiment with existing content... adding, editing and deleting, etc. BTW, the moose is a genuine, live animal in the wilds of northwestern Ontario, caught on camera by an old friend of mine. They are magnificent animals. :)
« Last Edit: November 15, 2007, 03:39:30 pm by Keyrocks »
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Tarasishe

  • Newbie
  • *
  • Karma: 1
  • Posts: 12
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #41 on: November 15, 2007, 11:36:28 pm »

I thought, that the given assembly will not be updated any more... And yesterday has come and has seen updating.

Now it is even more functional! Many thanks for your work, I hope there will be a further development.

Also the opportunity of switching-off of registration very was useful.

Very much it would be desirable to see [MOD] Poll:: Anketa.
« Last Edit: November 15, 2007, 11:38:47 pm by Tarasishe »
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #42 on: November 16, 2007, 01:28:07 pm »

1 - I thought, that the given assembly will not be updated any more... And yesterday has come and has seen updating.
2 - Now it is even more functional! Many thanks for your work, I hope there will be a further development.
3 - Very much it would be desirable to see [MOD] Poll:: Anketa.
1 - The latest version was necessary to get rid of a few unsolvable bugs that resulted from they way I went about building the first package... adding bakercad's MU mods to an existing ME project. So I re-built it the other way around... adding all the ME (and more) mods to bakercad's MU package... and the minor bugs vanished.
2 - The MEMU project will stay at version 1.1 (current version) for a good while. I may end up making another package from it - the MEMUPO project - which would be the MEMU with article content generation disabled... so that the site will only generate Pages Only under categories, with 3 extra content positions.
3 - The Poll mod looks fairly easy to add in... why not give it a try yourself?  :)
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

hafing

  • Full Member
  • ***
  • Karma: 1
  • Posts: 174
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #43 on: November 17, 2007, 09:56:04 pm »

I like to change the way the MEMU is "structured" but I can't find the way.

The way the MEMU is structured now is:
- index.php
- config.php
- snewsMU.php
- htaccess
- folder
- folder
- etc.

The structures I like to see is:
- Index.php
- Folder (with all of the files and folders belonging to MEMU)

Brauck has used this approch with some of his templates. This approch has many advantages such as if one has a website and wants to keep all the old stuff outsite sNews. Is there a simple way to do this or ...?
 8)
« Last Edit: November 17, 2007, 10:41:10 pm by hafing »
Logged
I can be 2fast and 2curious

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: [Package] sNews 1.6 MEMU = Modular, Enhanced & Multiple Users
« Reply #44 on: November 18, 2007, 12:41:39 am »

I would suppose that you could arrange the files and folders in other ways... putting most in one folder... if you wished. The only thing to keep in mind is the file-paths to files between files. Your site root would need to have:
- the short index.php file
- the core engine file (snewsMU.php)
- the .htaccess file
- and all of the rest in one other folder.

Think of the config.php file as the "collector" or "consolidation" file. It contains all configuration settings for the site (and others can be added there as well) to keep them all in one location.This file also contains the "include" strings for all of the existing and additional files that must come "together" as if all their functions were in one big file (as they are in the default package). This makes it easier to add mods or addons that require very little or no changes to the core engine file... which is (I think off the top of my head) snewsMU.php and disable them when not needed. We then "include" the config.php file at the top of the root index.php file.

Note however... that the root index.php file has no template in it. That has been replaced with the switch-statements that determine which template is currently enabled from the drop-down in the Settings >> Templates (expandable) panel. This is what makes it possible to have any number of template folders in the template directory... and change the site-wide template anytime from the Admin Settings panel group.

Languages were also separated out of the core system in order to make it easier to create new language files and have several in their own folders... to switch the sNews GUI from one language to another.


Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU
Pages: 1 2 [3] 4 5 6