• [Mod] Latest News and Archive 5 0 5 1
Currently:  

Author Topic: [Mod] Latest News and Archive  (Read 183534 times)

0 Members and 2 Guests are viewing this topic.

Offline Maniac

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #75 on: September 12, 2005, 10:18:39 PM »
Great MOD - Thank you!

i have a quick question. I created the archives.html file as suggested but I cannot get to it - the news archive link simply reloads index.php I saw a user had a similar problem - he posted all of his code - 8O.

This is what I set my index.php variables to:

Code: [Select]
$display_by_count = "1";
$latest_news_days = "31";
$show_news_articles = "1";
$show_news_articles_archive = "10";

I have two news items (as of now) - one shows up on the home page as expected by the show_news_articles but I cannot get to the archive... When I do click the archive link though both news items appear on the page - wrong template though...

Any advice would be appreciated.

Offline udaman

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #76 on: September 15, 2005, 05:34:10 PM »
Did you get to resolve your problem? My site is doing exactly the same thing. It was fine before but now if you click on Archive it reloads the index.php again. Any help to fix the problem will be greatly appreciated.

My setting:
Code: [Select]
$display_by_count = "1";
$latest_news_days = "14";
$show_news_articles = "1";
$show_news_articles_archive = "10";

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #77 on: October 27, 2005, 11:39:40 AM »
great MOD .. thanks

Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #78 on: November 29, 2005, 11:24:43 PM »
Hi @ all

Great MOD, really!

But i have one problem with the table of the news_comment_bit! My wish is, that border="0" and cellspacing="0"! It doesn't function! I think its because I have no table - if I make a table, the whole site get a problem, so I can't have table.... Please help me!???????

The Problem: http://web72.login-22.hoststar.ch/home/index.php


The Code of the news_comment_bit.html:
Code: [Select]
<tr>
<td class="row2" border="0" cellspacing="0"><div border="0" cellspacing="0" align="right"><small>(Datum: {news_comment_date})</small></div>
  <b>Schlagzeile: {news_comment_headline}</b></td>
</tr>
<tr>
<td class="row1" border="0" cellspacing="0" align="left">{news_comment_text}</td>
</tr>

Thanks a lot for your help!

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #79 on: November 30, 2005, 12:01:20 AM »
@ Olphi,

... Frage 1 : was soll eine Border haben ... die gesamten News oder nur deine news_comment_bit.html ?
... Frage 2 : wie soll die Border aussehen ? Als 1Pixel-Border oder normale Table-Border ?

Die home.html und die news_comment_bit.html sind dann entsprechend zu gestalten ... also ?

 
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #80 on: November 30, 2005, 08:41:59 AM »
@ mawenzi

Also wie du siehst scheint bei mir etwa border="1", etc... Das Problem ist nun ich habe alle files, ausser der news_comment_bit.html auf border"0" gesetzt, wenn ich nun eben diesen auch auf border="0" setzte (mit <table> funktion), kommt mein gesamter Desgin der Homepage durcheinander, vorallem rechts und unten verschiebt sich alles....

Das Problem ist der Code der news_comment_bit.html, meines erachtens müsste ein <table> drin sein, dann könnte ich nämlich einen border="0" setzen, doch so weiss ich nicht wie ich es hinkriege, dass der Rahmen wegfällt!!! Alle anderen Files hab ich hingekriegt!


Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #81 on: November 30, 2005, 12:13:06 PM »
Schein, als ob ich alles ingekriegt habe  :lol: (zwei Tage basteln.... ) 

Thx @ mawenzi

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #82 on: November 30, 2005, 06:18:40 PM »
@ Olphi,

... tja ... learning by doing ist doch nicht so schlecht ... und sicher auch nachhaltig für die Lösung von weiteren Problemen !
Das Ergebnis sieht gut aus und könnte noch hiermit verfeinert werden :
http://www.4homepages.de/forum/index.php?topic=5142.msg37435#msg37435

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #83 on: December 12, 2005, 05:33:06 PM »
For presentation of this news in a NEWS-READER :
Für die Präsentation dieser News in einem NEWS-READER :

[MOD] News-RSS-Feed V.1.0

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline chip

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • pixelmall.de
Re: [Mod] Latest News and Archive
« Reply #84 on: January 22, 2006, 04:50:38 AM »
hi everyone,

I have the same problem as mentioned above:

Quote
... if you click on Archive it reloads the index.php again.

There's no chance to get to the archive.

The problem is caused by register_globals being off. If I turn it on everything is fine.

Does anybody have an idea how this issue can be solved by leaving register_globals = off ? My host won't change this.


Thanks

btw: thanks Fugaziman for this one  :D


update:

okay I was to overhasty, I love my host  :D

Offline zaisk

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #85 on: February 20, 2006, 07:22:24 PM »
I have the same problem too. I can't get to the news archuve :/

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Mod] Latest News and Archive
« Reply #86 on: February 20, 2006, 07:41:34 PM »

Try this:
Search
Code: [Select]
if ($news_type == "latestnewsall") { 
 $site_template->print_template($site_template->parse_template(archive));     

else { 
 $site_template->print_template($site_template->parse_template($main_template)); 
}

and insert above:
Code: [Select]
if (isset($HTTP_GET_VARS['news_type']) || isset($HTTP_POST_VARS['news_type'])) {
  $news_type = (isset($HTTP_GET_VARS['news_type'])) ? stripslashes(trim($HTTP_GET_VARS['news_type'])) : stripslashes(trim($HTTP_POST_VARS['news_type']));
}


Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline spacefighter

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #87 on: March 03, 2006, 05:59:20 PM »
Hallo

Habe den Mod in meiner Gallery eingebaut.

So weit so gut.
Nur kann ich keine News schreiben.
Bei Details ist der Bereich Kommentare verschwunden.

Weis einer eine Lösung?

mfg
Meik

Offline spacefighter

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #88 on: March 03, 2006, 06:48:49 PM »
Hat sich erledigt. Hab den Fehler gefunden.

mfg
Meik

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [Mod] Latest News and Archive
« Reply #89 on: April 18, 2006, 10:56:58 PM »
Danke

für den tollen MOD. Klappt super.

Nice

Steffen