Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: [MOD] tux v1.0 for sNews 1.6  (Read 5126 times)

tuxStyle

  • Newbie
  • *
  • Karma: 0
  • Posts: 14
[MOD] tux v1.0 for sNews 1.6
« on: May 17, 2007, 10:17:49 pm »

Links in this post updated by keys, Jan.31.08)

Read here for how to apply the patch on Windows.

Patch:
http://www.activestyle.ca/sNews-patch-mod/mod.tux1.0-sn1.6/mod.tux1.0-sn1.6

Database changes:
Code: [Select]
alter table articles add column display_auto int(3) Default 1 ;
alter table categories add catnumber int(6) default '0';    
alter table categories add showcount varchar(4) NOT NULL default 'YES';    
alter table categories add showsitemap varchar(4) NOT NULL default 'YES';

Patches and mods included:
1. Patch for rss bug
2. [MOD] Tiny MCE
3. [MOD] Custom Contact
4. [MOD] Hidden Articles 2.01
5. [MOD] Hide Empty Categories
6. [MOD] Admin Article Categorisation 2.0
7. [MOD] MAC 1.0

I will try to include:
[MOD] Sub-pages Splitting in Articles and Pages

I didn't include: [MOD] Changing order of Pages because itwas conflicting with [MOD] Admin Article Categorisation 2.0.

I didn't used the other mods so ...
Have fun.
« Last Edit: January 30, 2008, 09:23:21 pm by Keyrocks »
Logged

Joost

  • Guest
[MOD] tux v1.0 for sNews 1.6
« Reply #1 on: May 17, 2007, 11:12:01 pm »

@tuxStyle,

I really appreciate the hard work, but could you make this human readable? :)
I am aware that adding mods requires a certain amount of skills, but this is difficult to understand for most of us.
This page looks like a summary. What we need, is a tutorial or a step by step manual, explaining what its for and how to do it. Documentation is just as important as the code itself.
Logged

Status

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 64
[MOD] tux v1.0 for sNews 1.6
« Reply #2 on: May 18, 2007, 05:18:23 am »

I am wondering the same thing.
Looking at Wikipedia for Patch and Diff brings up Patch (Unix) [Top of the search result page] which is a program that can update text documents with some instruction in a "Patch" file.

but from the first link, it turns out that you need access to your web host that most hosts don't give.

I'm wondering, why not just put all the "Patch Diff" things in the ONE topic, instead of reply to the post and confusing people.
Logged

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
[MOD] tux v1.0 for sNews 1.6
« Reply #3 on: May 18, 2007, 07:27:12 am »

First link in tuxStyle post leads to thread where use of diff&patch is described and where it's said among other things that described patching could be done on local environment. So, patch locally and upload already changed snews.php.

Second link is where to get patch itself for saving as local file - use example from first link to apply it. Should be applied on fresh, not modified snews.php.

Only other thing to do manually - is to apply database changes needed.

The rest of post is links to original mods.
Logged

reanimator

  • Newbie
  • *
  • Karma: 0
  • Posts: 31
[MOD] tux v1.0 for sNews 1.6
« Reply #4 on: May 18, 2007, 09:22:24 am »

codetwist are you sure you can only apply on a fresh installation?

The way i understand it you just need a fresh snews.php file for refference. then the script will compare the already applied modifications and alter accordingly. or no?
Logged

mosh

  • Hero Member
  • *****
  • Karma: 77
  • Posts: 510
  • Awesome day :)
    • cms-zen
[MOD] tux v1.0 for sNews 1.6
« Reply #5 on: May 18, 2007, 09:37:06 am »

i couldnt understand what is this mod ???  :/   :P  :D

reanimator

  • Newbie
  • *
  • Karma: 0
  • Posts: 31
[MOD] tux v1.0 for sNews 1.6
« Reply #6 on: May 18, 2007, 09:44:03 am »

Logged

tuxStyle

  • Newbie
  • *
  • Karma: 0
  • Posts: 14
[MOD] tux v1.0 for sNews 1.6
« Reply #7 on: May 18, 2007, 03:29:03 pm »

How to apply this patch:

1. Download: http://www.activestyle.ca/sNews-patch-mod/bin.zip
This are binaries for windows.
You will use patch.exe on your local windows machine to change the snews.php (original file downloaded from website)

2. Unpach the arhive.
You should have a structutre like this:

bin/
.htaccess
index.php
readme.html
snews.php
style.css

3. Download the patch: http://www.activestyle.ca/sNews-patch-mod/mod.tux1.0-sn1.6/mod.tux1.0-sn1.6
in the same directory as your snews.php

4. Start a command prompt: Start -> Run -> cmd (or command)

5. Go to your snews.php directory:
Code: [Select]
cd c:\...\...\...\\6. Apply the patch:
Code: [Select]
bin\patch.exe -p1 snews.php < mod.tux1.0-sn1.67. Change mysql tables using phpmyadmin or other tool:
Code: [Select]
alter table articles add column display_auto int(3) Default 1 ;
alter table categories add catnumber int(6) default '0';    
alter table categories add showcount varchar(4) NOT NULL default 'YES';    
alter table categories add showsitemap varchar(4) NOT NULL default 'YES';
8. Make some tests to see if everything is ok.

9. If everything is ok, upload new snews.php on your webserver.

10. Don't  forget to change mysql tables on your server too.

Remeber:
1. Backup your snews.php or your site :)
2. This patch works if is applied on a fresh downloaded/unmodified snews.php (it can work on a modiffied snews.php if the changes in this patch are not conflicting with other changes)
3. Allways, and i mean, allways, make tests on your local windows machine.
I use: http://www.apachefriends.org/en/xampp-windows.html


And yes, this mod is in fact a collection of mods.
I hope all is ok now.
Logged

Vinoth

  • Newbie
  • *
  • Karma: 1
  • Posts: 33
[MOD] tux v1.0 for sNews 1.6
« Reply #8 on: May 19, 2007, 02:14:51 pm »

How to perform the sixth step, the fact is that it does not do anything. can u say what would we get when the patch is executed.
Logged

lessismore

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 67
[MOD] tux v1.0 for sNews 1.6
« Reply #9 on: May 19, 2007, 08:27:55 pm »

Thanks.
Now, if only the sql could be converted to skip the phpmyadmin GUIs  :cool:
--
PS - I think more people have access to the *nix CLI shell (jailshell) on their host (thru cPanel) than realize - ISPs don't exactly advertise it and some do turn it off.  

http://en.wikipedia.org/wiki/PuTTY is the best to access the *nix CLI from windows via SSH - but even a java shell is fine for typing a one line patch cmd.
Logged