Author Topic: [MOD] - Latest headlines for the news.  (Read 53049 times)

0 Members and 1 Guest are viewing this topic.

TheOracle

  • Guest
[MOD] - Latest headlines for the news.
« on: July 27, 2005, 03:26:45 PM »
---

[EDIT by V@no]
If anyone has original text from this mod, please share with others, help us restore this mod.
Thank you.
« Last Edit: August 06, 2008, 01:04:04 AM by V@no »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] - Latest headlines for the news.
« Reply #1 on: July 28, 2005, 12:46:32 AM »
Since the mentionned URL has not been posted on it's own topic, I thought it would be best to post this one as a seperated one to avoid confusions.
actualy I am confused...since your mod is a part to the mod u've mentioned and it also required that mod to be installed prior yours (well, atleast a few steps must do)...yet u havent mentioned that ;)
Am I wrong?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

TheOracle

  • Guest
Re: [MOD] - Latest headlines for the news.
« Reply #2 on: July 28, 2005, 12:54:14 AM »
Update :

Topic updated above - regarding relations with the original MOD and my thanks to Vincent for contributing on this project.

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] - Latest headlines for the news.
« Reply #3 on: August 11, 2005, 02:53:41 AM »
I get no errors, ACP says "Setting saved" but they are not (It happens with News section only)

I change News settings: for example: News number 5; days number 5; show the last X news and press Save changes. The page reloads and says "Setting saved" but they are not (setting are back to default (news/days number fields empty and so on))

on 4images version 1.7.1

TheOracle

  • Guest
Re: [MOD] - Latest headlines for the news.
« Reply #4 on: August 11, 2005, 02:56:16 AM »
I have worked on this MOD today actually.

Now, new questions :

1 - Are you using multiples languages ?
2 - In your ACP - > Settings page, do you see any text on the news table ?
3 - Your settings are saved. Did you checked in your 4images_news table to see if your settings really were updated ?

If these three were applied, then go to your ./news.php file and

find :

Quote

LIMIT 1

";


replace with :

Code: [Select]

LIMIT 0, ".((isset($config['news_nb'])) ? $config['news_nb'] : 5);


Then, try to save your settings again.

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] - Latest headlines for the news.
« Reply #5 on: August 11, 2005, 03:09:09 AM »
 
1. I don't use multiple languages
2. In my ACP - > Settings page, i see at the news table
3. My settings not saved, at the 4images_news table just:

news_id user_id user_name news_title news_text news_date
    1 1 ID25 bla blabla 1123714980
    8 1 ID25 blabla bla 1123720820

where saved options?

TheOracle

  • Guest
Re: [MOD] - Latest headlines for the news.
« Reply #6 on: August 11, 2005, 03:15:27 AM »
Ah ! so here we go. This problem is related with the original post. Not the headlines since you seem to have problems with your SQL news fields. ;)

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] - Latest headlines for the news.
« Reply #7 on: August 11, 2005, 03:16:52 AM »
hmm, where i can download tables.sql for news?

TheOracle

  • Guest
Re: [MOD] - Latest headlines for the news.
« Reply #8 on: August 11, 2005, 03:39:53 AM »
 8O OMG !!!!

The SQL instructions are not included. I have just informed Vincent about this. Hopefully, he will update the topic soon. ;)

In the mean time, here's what you need to execute from your phpmyadmin :

Code: [Select]

CREATE TABLE `4images_news` (
  `news_id` mediumint(8) NOT NULL auto_increment,
  `user_id` mediumint(8) NOT NULL default '0',
  `user_name` varchar(255) NOT NULL default '',
  `news_title` varchar(255) NOT NULL default '',
  `news_text` text NOT NULL,
  `news_date` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`news_id`)
) TYPE=MyISAM;

INSERT IGNORE INTO `4images_settings` (`setting_name`, `setting_value`) VALUES ('news_home_display', '1');
INSERT IGNORE INTO `4images_settings` (`setting_name`, `setting_value`) VALUES ('news_nb', '10');
INSERT IGNORE INTO `4images_settings` (`setting_name`, `setting_value`) VALUES ('news_nb_days', '15');
INSERT IGNORE INTO `4images_settings` (`setting_name`, `setting_value`) VALUES ('news_cutoff', '3');
INSERT IGNORE INTO `4images_settings` (`setting_name`, `setting_value`) VALUES ('news_html', '0');
INSERT IGNORE INTO `4images_settings` (`setting_name`, `setting_value`) VALUES ('news_bbcode', '1');
INSERT IGNORE INTO `4images_settings` (`setting_name`, `setting_value`) VALUES ('news_bbcodeimg', '1');


Assuming your table prefix name is : 4images, execute the code right away. Otherwise, before applying, simply change the prefix name on very ' 4images_ ' mark.
Then, try to save your settings from ACP - > Settings again.

My apologize for this forgotten step.  :oops:

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] - Latest headlines for the news.
« Reply #9 on: August 11, 2005, 03:58:55 AM »
Thank you very much, at now all ok :)

TheOracle

  • Guest
Re: [MOD] - Latest headlines for the news.
« Reply #10 on: August 11, 2005, 04:00:55 AM »
Excellent. Enjoy ! 8)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] - Latest headlines for the news.
« Reply #11 on: August 11, 2005, 11:41:24 AM »
Hello,

i have tested this PlugIn but i have some Errors.

In ACP i have say i will see the latest 3 News for 30 Days. With the PlugIn i see now the latest News but not the latest 3.

When i click the Link to the news_headlines.php i have a blank Page (http://www.terraristik-galerie.de/news_headlines.php?news_id=22)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

TheOracle

  • Guest
Re: [MOD] - Latest headlines for the news.
« Reply #12 on: August 11, 2005, 11:59:33 AM »
Quote

In ACP i have say i will see the latest 3 News for 30 Days. With the PlugIn i see now the latest News but not the latest 3.


In the instructions, it clairly states the ' lastest headline '. It will not work with more than a single since the WHERE statement is limited to 1 and following up on each news you post as the latest.

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] - Latest headlines for the news.
« Reply #13 on: August 11, 2005, 02:40:12 PM »
Hi :)
maybe you know why i see blank page in news.php, when i click on the "Arhive" ?
I dont see news archive there :/

TheOracle

  • Guest
Re: [MOD] - Latest headlines for the news.
« Reply #14 on: August 11, 2005, 02:49:41 PM »
This MOD is not related to news.php file. If you're experiencing problems with the original MOD, I'd suggest you post in this topic :

http://www.4homepages.de/forum/index.php?topic=9064.0

which is another different process from this MOD but is simply related in the presentation itself.