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

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

0 Members and 2 Guests are viewing this topic.

Offline troopers

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • weltimperator.de
Re: [Mod] Latest News and Archive
« Reply #90 on: August 29, 2006, 12:39:58 PM »
thx a lo, it worked until now fine.

I dont know, why it doenst work now. archived news, doenst work. :(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
weltimperator.de

Offline troopers

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • weltimperator.de
Re: [Mod] Latest News and Archive
« Reply #91 on: August 29, 2006, 04:31:40 PM »
if i use:

Code: [Select]
if ($_GET['newstype'] == "latestnewsall"){
   $news_type = "latestnewsall";
   }
it works fine.
« Last Edit: August 31, 2006, 04:20:06 PM by troopers »
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
weltimperator.de

Offline troopers

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • weltimperator.de
Re: [Mod] Latest News and Archive
« Reply #92 on: August 31, 2006, 04:19:50 PM »
ok, next try :)

i'm trying some modifications with this script.But now i have a questions about this, cause i don't know, if it will be securityhole or something like a fatal coding error.
(yes im a php newbie)

in details.php i modified this line

Code: [Select]
if (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id) || !$image_row) {
  redirect($url);

with this:
Code: [Select]
if ($_GET['image_id'] == "37") {
#    redirect($url);
      header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
}

else {
if (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id) || !$image_row) {
  redirect($url);
}
}

I want that normal users write an article, like a blog. But everytime the user will be redirected to the mainpage, without any entry in the db. And the admin will be redirected to the blog-picture with a comment. with the code above the user wount be redirected, and a comment is also written.

i hope you'll unterstand what i mean.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
weltimperator.de

Offline blue22deep

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #93 on: November 19, 2006, 09:39:09 PM »
Hi

Anyone got this running on a site so i can see what it looks like...?? :)
Best Regards
Carsten, Denmark

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #94 on: November 19, 2006, 10:04:28 PM »
@ blue22deep 

... here the NEWS (Die letzten Neuigkeiten auf der Website) ...
... here the Archived News ...
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) ...

skiemor

  • Guest
Re: [Mod] Latest News and Archive
« Reply #95 on: December 30, 2007, 12:17:54 PM »
Hi @ all,
If I delete a comment, the new must be delete in the table of news too.
But is not so?
Ok, I can change the text of the comment or change the date to get the new out of table.

Chris.
« Last Edit: December 30, 2007, 12:32:58 PM by skiemor »

Offline musicsurfer

  • Full Member
  • ***
  • Posts: 184
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #96 on: April 26, 2008, 12:43:50 PM »
Hallo zusammen

Ich habe 2 Fragen zu dem MOD

Zum einen möchte ich nicht, das bei der News-Auflistung die Uhrzeit angezeigt wird, sondern nur das Datum.
Was muss ich denn da ändern ?

Außerdem wollte ich den Schriftgrad ändern.
Bei dem Datum klappt das auch, aber ich bekomme die Schriftgröße der Newsüberschrift nicht geändert.
Wie bekomme ich diese News-Sachen denn einheitlich auf einen kleineren Schriftgrad ?

Viele Grüße
Musicsurfer

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [Mod] Latest News and Archive
« Reply #97 on: April 26, 2008, 03:54:02 PM »
Wo ich hier schon mal bin  :mrgreen:
News werden ja alle angezeigt, nur das Archiv klappt bei mir nicht, was könnte da vergessen worden sein *grübel*
Danke Harald




Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #98 on: June 12, 2008, 12:02:56 AM »
Hallo Harald,

... zunächst schwer zu sagen, da aber immer auf das home.html-template weitergeleitet wird ...
... habe ich den Verdacht, dass du dein archive.html-template nicht richtig angelegt hast ...
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 sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [Mod] Latest News and Archive
« Reply #99 on: August 09, 2008, 03:39:56 PM »
I just updated to 1.7.6 and I cant seem to get the News Archive to work I get the following error

Code: [Select]
Parse error: syntax error, unexpected $end in /home/cydonian/public_html/photos/includes/template.php(101) : eval()'d code on line 227
Anyone run into this problem?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #100 on: August 09, 2008, 04:48:08 PM »
Hi Chris ...

... sorry, there is some trouble with your update ...
... but good to see, that you are using your old template ... I like it very much ...
... for your posted problem, try this ...
... http://www.4homepages.de/forum/index.php?topic=21063.msg114523#msg114523 ...
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 sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [Mod] Latest News and Archive
« Reply #101 on: August 10, 2008, 12:13:15 AM »
Hi mawenzi,

Thanks for the reply. I tried to figure it out but I cant seem to narrow down where the missing { is. Any suggestions?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Latest News and Archive
« Reply #102 on: August 10, 2008, 12:41:38 AM »
Any suggestions?

... so look at the error message ...
-> in template ... also in your archive.html ...
-> syntax error, unexpected $end ... syntax in templates it is only { and } ... and unexpected end, there must be a missig } ...

... if no success with this template ... try it again with a totaly new one ... ;)
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 sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [Mod] Latest News and Archive
« Reply #103 on: August 13, 2008, 02:40:04 PM »
looks like when I open the site in IE every page has an error with the missing } comment. The only difference is the news archive page doesnt load at all. IE just shows "This page has errors" at the bottom left. Looks like I messed up somewhere along the road to MOD recovery. Did things too fast.

I've been searching everywhere for a missing } and I can't find one. The template can't be the issue because the line it refers to (archive.html) is the last line and I've read in most cases it never is in the html file. This is a pain.

The search continues.

| end of line |

« Last Edit: August 13, 2008, 02:53:58 PM by sigma. »

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [Mod] Latest News and Archive
« Reply #104 on: August 13, 2008, 06:09:36 PM »
Interesting. I guess it pays to have a separate and new install of 4images on a server. Testing the mod out and Im still getting those errors. I guess it could be in the html files since im just copying the old templates from my old 1.7.1 setup.

Which would mean the code on the first page of this thread has been updated??
or its just me... which is the more likely answer :)

ignore me, i'll figure it out