Page 1 of 1
Error page when clicking on news block

Posted:
Mon Jul 30, 2007 3:15 pm
Author: .QUACK.Major.Pain
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Beginner
Board URL: http://www.aaquacks.com PHP Version: MySQL Version: What was done before the problem appeared? What was done to try to solve the problem? De.scription and MessageHello guys.
There may have been a fix for this already, but I am unable to find it.
When I have the News block setup, and click on the title in the news post, it attempts to link to forum/portal.phpportal.php?topic_id=???
I am using integra2 template but it seems to be in all templates.
What file needs to be fixed to remove one of the portal.php from the above link?
I see it has been fixed already, since my new site doesn't have this problem.
Re: Error page when clicking on news block

Posted:
Mon Jul 30, 2007 3:39 pm
Author: tmotley
Just to eliminate possibilities...
Do you have portal.php for your News Mod Index File? (News Management, Configuration) and [color=red]http] as the News Mod Base URL?
Looking at your site and at your news_block.tpl file, the common denominator on the 'bad' links in the news block is the {INDEX_FILE}.
I copied your situation on my site by putting the portal.php at the end of News Mode Base URL and portal.php in for News Mod Index File. The News Mod Base URL should NOT have portal.php at the end.

Posted:
Mon Jul 30, 2007 3:58 pm
Author: tmotley
NOTE: This will fix your RSS feed problem as well.
Re: Error page when clicking on news block

Posted:
Mon Jul 30, 2007 5:19 pm
Author: .QUACK.Major.Pain
Well I never had a problem with the feed.
I checked the configuration and had to make some changes there.
the base url is:
http://aaquacks.com/forum/the index file is the problem. I tried index.php, portal.php, viewtopic.php and none work.
It actually logs me off when changing pages.
viewtopic looked to be the closest. But syntax should be viewtopic.php?t=????
news block uses ?topic_id=???
I also rechecked my other site, and I do have the same issue there.
Re: Error page when clicking on news block

Posted:
Mon Jul 30, 2007 5:23 pm
Author: .QUACK.Major.Pain
Ok - I thought it was to redirect you to the actual post.
It is only to expand to show the full post on the portal page.
The only problem now is that when clicking on it to expand, the result is, it expands as it should, but it logs me out everytime.
I tried both Firefox and Explorer and same results - logs out when clicked.
Re: Error page when clicking on news block

Posted:
Mon Jul 30, 2007 5:34 pm
Author: tmotley
".=QUACK=.Major.Pain";p="27705" wrote:Well I never had a problem with the feed.
Ummm...
http://www.integramod.com/forum/viewtopic.php?t=3440 In searching for a solution for you, I happened upon that unanswered post from April. In looking at your site now, it appears to be url-wise functional both for news block and rss feed links.
The logging out issue could be cookie-based I suppose. Do you have a test account so I could test it. Things seem to work perfectly while logged out.
Re: Error page when clicking on news block

Posted:
Mon Jul 30, 2007 5:43 pm
Author: .QUACK.Major.Pain
Well I tried to create a test account, but this stupid captcha thing is the biggest pain in the a$$.
I exceeded my attempts and can't do it right now.

Posted:
Mon Jul 30, 2007 7:21 pm
Author: alumsprings
I am having this same problem. In the news configuration, if you put the file name in the URL, it will let you click on the little newspaper icon then it expands the article. however if you click on the topic link in the post, it takes you to the error page because it is linked to "http://yourdomain.com/forum/portal.phpportal.php?topic_id=#".....It adds portal twice when it should be once. How can you fix it?
Re: Error page when clicking on news block

Posted:
Mon Jul 30, 2007 8:04 pm
Author: tmotley
ACP
News Management
Configuration
News Mod Base URL:
http://www.alumspringsbaptistchurch.org/forum/News Mod Index File: portal.php

Posted:
Mon Jul 30, 2007 8:07 pm
Author: alumsprings
yeah i know that works but if i do that, when i click on the newspaper icon thingie, it takes you to the forum page instead of expanding the news item....i know...i'm picky. <img>

Posted:
Mon Jul 30, 2007 8:10 pm
Author: tmotley
I'm going to bed now. Set it correctly and I'll try to check on it for you tomorrow.
Re: Error page when clicking on news block

Posted:
Mon Jul 30, 2007 8:35 pm
Author: .QUACK.Major.Pain
yea same here.
I have the same settings.
title shows: forum/portal.php?topic_id=???
newspaper shows: forum/?topic_id=???
Definitely problem with that link.
Same on all templates.
Re: Error page when clicking on news block

Posted:
Tue Jul 31, 2007 4:54 am
Author: tmotley
My 'Read More' link opens up the news article fully on the portal page. Is that what it's supposed to do you think?
Maybe try this?
OPEN includes/news.php (mine's on line 140)
FIND:
- Code: Select all
'READ_MORE_LINK' =>
My line 140 read more link goes like this:
- Code: Select all
'READ_MORE_LINK' => (show_abstract && $trimmed)? '<a><img></a>' : ''
What does yours look like?

Posted:
Tue Jul 31, 2007 1:26 pm
Author: alumsprings
Mine is identical to yours.
Re: Error page when clicking on news block

Posted:
Tue Jul 31, 2007 2:01 pm
Author: .QUACK.Major.Pain
Actually that was exactly what my problem was.
My line was:
'READ_MORE_LINK' => ($show_abstract && $trimmed) ? '<a><img></a>' : ''
Both my sites were wrong.
Your line fixed it. Gives correct result and doesn't log me out anymore.
Someone needs to correct this in the 141 master download file.
Re: Error page when clicking on news block

Posted:
Tue Jul 31, 2007 2:56 pm
Author: tmotley
I'm not sure if what I gave you is straight from a download or something I bastardized together. I do remember tinkering with it a long time ago. I'm not the most organized individual in the world when it comes to most things...
alumsprings, did you turn off the trim? I don't see a read more link to check out.
SIDENOTE (alumsprings): When I was viewing some of your files, I got the following popup message. Just an FYI.
The requested URL forum/templates/fisubice/{birthday_popup.U_BIRTHDAY_POPUP} was not found on this server.

Posted:
Tue Jul 31, 2007 4:57 pm
Author: alumsprings
i took another look at that news.php file and found that i was wrong. it did have the missing info that quack's did as well....i apologize for that....it's been a long day. *sigh* anyway thanks a bunch....and quack is right, that file needs to be replaced in the download! ohhhh...and what do you mean you were looking at my files? how'd you do that?

Posted:
Tue Jul 31, 2007 5:05 pm
Author: tmotley
I wasn't doing anything nefarious. I was just viewing your source codes and non-php files (such as *.tpl). It's easy to do: just find out what template someone is using and then the files are easy to type in.
your forum url/templates/your_template/blocks/news_block.tpl and there I could view your news_block.tpl file.
Re: Error page when clicking on news block

Posted:
Tue Jul 31, 2007 5:09 pm
Author: .QUACK.Major.Pain
Hey - that's pretty slick.
Does that give hackers an advantage seeing your files?

Posted:
Tue Jul 31, 2007 5:15 pm
Author: tmotley
Not really. If they can view your site at all, they can view your template information. Also, if you try to visit a php file directly on IM, you get a Hacking attempt message... at least for the critical php files.

Posted:
Tue Jul 31, 2007 5:23 pm
Author: alumsprings
cool deal.....now, did that popup mean i was missing my birthday file or something?
Re: Error page when clicking on news block

Posted:
Tue Jul 31, 2007 6:08 pm
Author: tmotley
Oddly, when I view your overall_header.tpl file, it tries to display as a webpage. When I view my own or IM's overall_header.tpl files, it just displays the text. I wonder what's causing that? I don't know.
I don't know what would be causing the birthday thing either...