Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: [megaMOD] Pre-MODified sNews file  (Read 3962 times)

gomisan

  • Full Member
  • ***
  • Karma: 0
  • Posts: 194
    • http://fish-cam.net/
[megaMOD] Pre-MODified sNews file
« on: April 18, 2006, 04:29:20 pm »

I've done a few modifications to the sNews file now, and thought I might share the 'fork' as it were with everyone. Most of the modifications are detailed here in this very forum, and ALL changes are commented in the file itself (though my line numbering is off a bit as changes were made after other changes had been commented)

Anyway...

http://www.tglmultimedia.net/images/snews.rar

Brief rundown of mods included:

[FIX] arrow.gif path fixed
[FIX] only published articles show in archives
[MOD] Function Added - Display extra articles in center function, this provides a function whereby you can show x number of articles on te homepage, and y articles on category specific pages
[MOD] Function added - Find Category IDs through SEF title, this helps with thing like checking current caegory or changing buttons depending on category etc
[MOD] Meta tag mod added. Fully implemented, with default meta tags in Global options which are appended to any used in articles.
[FIX] Java script headers - only used when logged in now
[MOD] Send email on comments, when you get a new comment you will be sent an email
[MOD] Function added - Show website address. A quick function to supply a piece of data that is often re-used in footers etc, your website title as a link.

This is probably more useful for newcomers overwhelmed by the thought of changing a bunch of code. however it is totally unsupported, and un-official! So it would be a good idea to get acquainted with the code in case you need to upgrade it later.

ohh, and you'll need to run the following SQL command on your databse:

ALTER TABLE articles ADD description_meta CHAR(200);
ALTER TABLE articles ADD keywords_meta CHAR(100);

This adds the required fields for the meta data info, I have elected to give 200 chars for the desc and 100 for the keywords, but that can be changed.
Logged
Check out my sNews powered Tropical Fishtank site, live Fish-Cam !!

bramsyuur

  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
    • http://snews.vietbee.net
[megaMOD] Pre-MODified sNews file
« Reply #1 on: April 18, 2006, 07:55:49 pm »

@Gomisan:
Great job, mate!
Thanks,
bram.
Logged
La comunidad sNews en tu idioma!
Comunidad sNews en Español

bryn

  • Hero Member
  • *****
  • Karma: 2
  • Posts: 934
    • http://www.cssugly.com
[megaMOD] Pre-MODified sNews file
« Reply #2 on: April 20, 2006, 12:02:06 am »

yep great work gomisan and thanks for doing this..it seems that some users were getting a tad confused with how and where to add all the code changes..now they can just use this ;)

this could be the start of a series of Modded snews.php files each one modified specifically to suit different purposes, and with some written documentation to explain their use ;D
Logged
Over 1,000 posts of joy, sNews is not only brilliant, but fun too! thanks guys :D

gomisan

  • Full Member
  • ***
  • Karma: 0
  • Posts: 194
    • http://fish-cam.net/
[megaMOD] Pre-MODified sNews file
« Reply #3 on: April 20, 2006, 05:16:01 am »

documentation? *runs screaming*  ;D

Before I forget, one of my shortcomings is that I do things in a hurry, and often don't note WHERE my information is coming from. SO please to all the people whose work is in that file, all the clever bits of code and stuff that was contributed by others, thankyou.

Logged
Check out my sNews powered Tropical Fishtank site, live Fish-Cam !!

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
[megaMOD] Pre-MODified sNews file
« Reply #4 on: April 20, 2006, 08:22:20 am »

Quote
this could be the start of a series of Modded snews.php files each one modified specifically to suit different purposes, and with some written documentation to explain their use

This would be great, but if I may suggest something then... IF you have a modded snews file and want to show it of. mail/PM it to one of the administrators so he can post this piece of code in ONE place. This scattered code snippet structure is making me go bananas soon... I would like for all resources to be put in one resources section ordered in single post fashion. That is one post per mod/addon linking to the specific file.

That how I feel.

Oh. and a great effort, gomi. Real good.
Logged
"It's only dead fish that goes with the flow... "
Updated

ketut

  • Full Member
  • ***
  • Karma: 0
  • Posts: 115
    • Book Bali Hotels
[megaMOD] Pre-MODified sNews file
« Reply #5 on: April 21, 2006, 03:08:25 pm »

pagination not yet implemented ;D
here is the thread: http://solucija.com/forum/index.php?topic=213.15
can you provide in .zip .tar.gz file format (not in .rar)?

thanks

gomisan

  • Full Member
  • ***
  • Karma: 0
  • Posts: 194
    • http://fish-cam.net/
[megaMOD] Pre-MODified sNews file
« Reply #6 on: April 21, 2006, 04:42:16 pm »

It wasn't meant to be a version with EVERY mod, just the ones I've used , tested and found useful.

Logged
Check out my sNews powered Tropical Fishtank site, live Fish-Cam !!