Page 1 of 1

Wrong links in News block

PostPosted: Sun Mar 18, 2007 11:35 am
Author: Frost
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Advanced Knowledge
Board URL: http://www.black-fusion.com/forum/

PHP Version:
MySQL Version:


What was done before the problem appeared?
Started using the news block


What was done to try to solve the problem?
Tried opening news_block.tpl and changing "{INDEX_FILE}" to "/"



De.scription and Message

This is the first time I've ever decided to use the "News Block" on my portal.

After using the "Announcements" block and discovering that it does absolutely nothing I tried out the news block like integrmod uses.

But every link on there points to the wrong spot.

For instance on the topic title itself it tries to go to "http://www.black-fusion.com/forum/www.black-fusion.com/forum/portal.php?topic_id=36"

instead of "http://www.black-fusion.com/portal.php?topic_id=36"

I tried going into the block itself and changing the variable to a slash but that doesn't work

Where can I change the variable itself or what changes where that points to?

... I just thought of trying ././ instead of / Im going to try that real fast...

Ok, well that works sort of... but just a cheap fix...

anyone have any ideas?

Re: Wrong links in News block

PostPosted: Tue Mar 20, 2007 3:50 am
Author: Frost
Bump <img>

Re: Wrong links in News block

PostPosted: Wed Mar 21, 2007 11:28 am
Author: obiku
Maybe this help
open /includes/news.php
Find: (complete line is longer)
Code: Select all
'READ_MORE_LINK' => ($show_abstract && $trimmed) ? '

Replace complete line with
[code]                    'READ_MORE_LINK' => ($show_abstract && $trimmed) ? '<a><img></a>' ]

After this change the read more buttons should work right.

Re: Wrong links in News block

PostPosted: Thu Mar 22, 2007 2:01 am
Author: Frost
Edit Removed because I never found out of it was just my server. This is to avoid messing anyone else's site up do to my problem.

Re: Wrong links in News block

PostPosted: Thu Mar 22, 2007 2:37 am
Author: Frost
Also, while I'm messing with this section of integramod I'm going to show how to change the title of the news mod for other member's who might want it

-----[ OPEN ]------------------------------------------

/forum/blocks/language/lang_xx/lang_news_block.php

-----[ FIND ]------------------------------------------
Code: Select all
 Find] = 'Integra News';  

-----[ REPLACE WITH ]------------------------------------------
Code: Select all
 Find] = 'Your News Title';  

-----[ SAVE, CLOSE ]------------------------------------------

PostPosted: Wed Mar 28, 2007 4:03 pm
Author: richiebgood
none of these help me.
i am getting: http://www.irish-paintball.net/forum/?topic_id=665

the '?' is in the wrong place is it not? I have the trim turned on.

Re: Wrong links in News block

PostPosted: Wed Mar 28, 2007 7:45 pm
Author: tmotley
If you are certain your news settings are correct and it's only your 'read more link' that's messing up, have you tried simply uploading a fresh includes/news.php?

Just out of curiosity, under this code:

Code: Select all
         $this->setBlockVariables( 'articles', array(  


does your includes/news.php have this line at the end of variable listing underneath?

[code]                    'READ_MORE_LINK' => ($show_abstract && $trimmed) ? '<a><img></a>' ]

Re: Wrong links in News block

PostPosted: Thu Mar 29, 2007 2:13 am
Author: richiebgood
Genuis, its works now.

The code that i had was:

Code: Select all
'READ_MORE_LINK' => ($show_abstract && $trimmed) ? '<a><img></a>' : ''  



Cheers:)

Re: Wrong links in News block

PostPosted: Thu Mar 29, 2007 10:11 am
Author: Helter
there is nothing wrong with the default files unless you have edited them. You change the location of the links in acp/News Managment/configuration

if your forum files are in root, the link should be

News Mod Base URL= http://www.yoursite.com/

if your forum is in a subdirectory, such as "forum" it should be


News Mod Base URL= http://www.yoursite.com/forum/

News Mod Index File = portal.php

Re: Wrong links in News block

PostPosted: Sat Mar 31, 2007 1:50 pm
Author: BitingMonkey
I came across this thread after one of my users noticed that none of the news page, category, or archive links worked anymore. It would just reload portal.php. I tried everything here, but it didn't work. I had cached the news block following advice from another thread (it was for 48 hours) I changed it to no cache and all the links worked again. Just thought I would tack that on in case someone else has a similar problem. I was pulling my hair out over this one.