4images Forum & Community

General / Allgemeines => Chit Chat => Topic started by: TheOracle on July 27, 2005, 03:26:45 PM

Title: [MOD] - Latest headlines for the news.
Post by: TheOracle 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.
Title: Re: [MOD] - Latest headlines for the news.
Post by: V@no 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?
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle 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.
Title: Re: [MOD] - Latest headlines for the news.
Post by: ID25 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
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle 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.
Title: Re: [MOD] - Latest headlines for the news.
Post by: ID25 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?
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle 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. ;)
Title: Re: [MOD] - Latest headlines for the news.
Post by: ID25 on August 11, 2005, 03:16:52 AM
hmm, where i can download tables.sql for news?
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle 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:
Title: Re: [MOD] - Latest headlines for the news.
Post by: ID25 on August 11, 2005, 03:58:55 AM
Thank you very much, at now all ok :)
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on August 11, 2005, 04:00:55 AM
Excellent. Enjoy ! 8)
Title: Re: [MOD] - Latest headlines for the news.
Post by: JensF 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)
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle 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.
Title: Re: [MOD] - Latest headlines for the news.
Post by: ID25 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 :/
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle 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.
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on August 30, 2005, 11:03:51 PM
Hi,

the normal news is really fine running, but with the headlines I have this problem in "news_headlines.php":

Parse error: parse error, unexpected ',' in /home/www/web1/html/news_headlines.php on line 43

I have copy the MOD code for the news_headlines.php more than one time but it is every time the same.

the 43. line must be:
    $news_headlines_table .= "<tr class=\"imagerow2\">\n";

I test a lot of changes in the news_headlines.php (delete spaces and so long) but it donīt will run without error ;-(

in home.html or index.php the headline was showed fine, but when i click in the headline link comes the error.

Can somebody help???

Greetings and thanks for your quick reply (sorry for my bad english)

Hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on August 30, 2005, 11:18:17 PM
You made a mistake somewhere during the implementation process. I run the file without any problems.
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on August 30, 2005, 11:30:30 PM
Thank you for your very quick reply.

I donīt know what I can do not correct. All other runīs correct and I check all steps from the headline Mod more as one times.

You can see it here in function:

http://www.artgalerie-europa.de behind the new comments (scroll down)

and with http://www.artgalerie-europa.de/news.php

really thanks for you good support

Greetings Hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on August 30, 2005, 11:45:00 PM
Sounds like you're using 4images v1.71. Am I right ?
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on August 30, 2005, 11:51:43 PM
thankīs

no I am using version 1.7!  :?

Yesterday i installed the cacche mod for it from vano
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on August 30, 2005, 11:58:06 PM
Quote

Yesterday i installed the cacche mod for it from vano


I did not installed it. This might create an impact thought. This is what might of happened.  :|
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on August 31, 2005, 12:06:46 AM
Update. Problem found and corrected.
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on August 31, 2005, 12:23:49 AM
You are great!

The mistake is not there anymore, but I miss the news-message in the table yet. See here:

http://www.artgalerie-europa.de/news_headlines.php?news_id=3

Greetings Hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on August 31, 2005, 03:24:26 AM
Ahh ! yes, a slight error. I'm sorry. Now, it's fixed. ;)
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on August 31, 2005, 08:00:28 AM
Dear Oracle,

now it works great! You are the best supporter for me  :P

Sorry for your extra work with my problems :oops:

Greetings from hein back to you
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on August 31, 2005, 11:27:05 AM
Quote

Sorry for your extra work with my problems


No problem. I never thought there was an error on that line. ;)
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on September 04, 2005, 12:50:54 AM
Update:

My first post has been updated. 4images users can now use the headlines with hits. ;)

Good luck !
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on September 06, 2005, 09:48:44 AM
Hi Oracle,

itīs really not possible to use your Mod for more than one headline?

I want to show all news on the homepage only as headline, why my news are very long.

Greetings again to you

Hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on September 06, 2005, 11:32:39 AM
I will look into this tonight.
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on September 06, 2005, 11:54:48 AM
Hi Oracle,

you are great!!!  :mrgreen:

Thank you so much for your ever great and quick support for me!

greetings hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on September 07, 2005, 12:49:54 AM
Ok. Bad news. Since this MOD uses a parsed template, I cannot simply make repititive URLs for limited headlines. The thing is, if I customize it like you requested, you'd - no longer - be able to customize your news headlines's HTML template file as the HTML tables would need to be self-coded from news_headlines.php file.

This will have to be done for another time. ;)
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on September 07, 2005, 08:16:19 AM
o.k. Thanks Oracle, be dont hurry- a am waiting  :wink:

But an idear:
It isīnt possible (alternative for my problem) to cut the News from Vincent Mod, for instance by 100 Indication or behind the title and show the rest of this new by click on a link likes. "read more" on the homepage?

I hope you understand my bad english... :oops:

Greetings to you

Hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on September 07, 2005, 11:26:56 AM
Quote

"read more" on the homepage?


Suggestion considered. I will work on that when my time will be less limited. ;)
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on September 07, 2005, 02:09:46 PM
o.k. and thanks...

Hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on September 08, 2005, 12:18:45 PM
Update:

Yesterday, I found an excellent modulation that would allow you to limit your words, from the headlines's table in the index page. It should end with [...] and, beside, you would have : [Read more].

Note: Please be aware that this is, still, for one headline at the time and not for all of them.

This will be tested tomorrow night and I will post another update if successful. ;)
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on September 08, 2005, 01:03:03 PM
Update:

Yesterday, I found an excellent modulation that would allow you to limit your words, from the headlines's table in the index page. It should end with [...] and, beside, you would have : [Read more].

Note: Please be aware that this is, still, for one headline at the time and not for all of them.

This will be tested tomorrow night and I will post another update if successful. ;)

Hey Oracle,

thats is a great solution but (when I understand you correct) not for me, why I need more headlines as alternate to the complete News in the homepage.  :oops:

I mean headlines for all as new or actual marked news (like news mod) and a link to a single-site with the complete news-text of every headline... really like your mod but for more headlines...

Is it not possible to read out the titel of news_table for headlines and open the complete News-Text of every news (definied in the admin panel with News-mod "News display mode" in days or number) like this:
http://www.deine_website.com/news_headlines.php?news_id=XX ?

Sorry and greatings from

Hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on September 08, 2005, 11:34:34 PM
Like I explained earlier, when my time will be less limited - I could always try to customize this MOD as a new release version from the first post to display all headlines from your database as it is not an easy task.

Quote

Is it not possible to read out the titel of news_table for headlines and open the complete News-Text of every news (definied in the admin panel with News-mod "News display mode" in days or number)


I'm not too sure what you're trying to explain here. Could you elaborate that a little ?
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on September 10, 2005, 11:26:55 AM
Dear Oracle,

o.k. i can wait of your customize MOD.

I want try to explain what I mean with my last posting:

in the normal news MOD from VINCENT the news was already shown on the Homepage (index). Isnīt it possible to show there only the titels of the news (or cutted complete news by limited letters) alternate to the headline from your MOD and link it with your headline page for the complete News?

Sorry for my idears

Thanks a lot to you

Hein
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on September 10, 2005, 11:56:02 AM
Quote

(or cutted complete news by limited letters) alternate to the headline from your MOD and link it with your headline page for the complete News?


It makes sense. Actually, I didn't want to talk about this until it was officially completed but, now that you're asking, I'm actually coding this up but it's not ready yet. ;)
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on September 10, 2005, 01:03:32 PM
Oracle,

you are my hero  :lol:
Title: Re: [MOD] - Latest headlines for the news.
Post by: TheOracle on September 10, 2005, 04:01:21 PM
Update :

Ok, everything seems to be coded (99% at least). I'm having difficulties to track the news_id from includes/functions.php file but, for the rest, it's fine. This option will even be available under your ACP - > Settings page (in the news table - as an additional option). You will be able to type the number of characters you'd like to see in the news text.

Beside, you have the : ... [ Read more ] .

In the mean time, further modifications will be required on index.php file since an additional function will be involved. Meaning, I would stongly advise that you install the : ' Maintenance Page ' MOD and activate it as soon as this MOD is being published.
Title: Re: [MOD] - Latest headlines for the news.
Post by: Hein on September 10, 2005, 05:36:27 PM
Suuuuper  :lol:

o.k. I will install the ' Maintenance Page ' MOD now...  :mrgreen:
Title: Re: [MOD] - Latest headlines for the news.
Post by: trez on March 07, 2006, 10:05:30 AM
anyone have still the code? I really want to use that addon ;)
Title: Re: [MOD] - Latest headlines for the news.
Post by: Stoleti on March 10, 2006, 09:12:26 PM
i'm also interested too  8O
Title: Re: [MOD] - Latest headlines for the news.
Post by: Stoleti on June 18, 2006, 12:05:34 AM
If someone had this addon, can send me pm ? please  :(
Title: Re: [MOD] - Latest headlines for the news.
Post by: om6acw on August 05, 2008, 07:02:46 PM
I want to ask moderators here, if somebody publish his mod here they should be locked and that way you can prevent deleting of this mod? Other way why is this thread still here when mod is not existing anymore? Because I have this mod installed on my previous version of 4image 172 and I want this mod on my current version too but I am not able to track down installation steps from my old gallery. Now TheOracle decide to remove his mod and its not just me who is looking for it and I think its not fair what he did. I understand he is only owner of this mod and he can do it what he want with it, but he should think before he post it, if he want money for it he should ask for them and if he release mod for free he should leave it live on site.
Title: Re: [MOD] - Latest headlines for the news.
Post by: V@no on August 06, 2008, 01:02:59 AM
You are right, topic moved to chit-chat for now.