Wrong links in News block

Support for IntegraMOD 141

Moderator: Integra Moderator

Wrong links in News block

PostAuthor: Frost » Sun Mar 18, 2007 11:35 am

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?
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Wrong links in News block

PostAuthor: Frost » Tue Mar 20, 2007 3:50 am

Bump <img>
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Wrong links in News block

PostAuthor: obiku » Wed Mar 21, 2007 11:28 am

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.
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Wrong links in News block

PostAuthor: Frost » Thu Mar 22, 2007 2:01 am

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.
Last edited by Frost on Thu Mar 29, 2007 5:59 am, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Wrong links in News block

PostAuthor: Frost » Thu Mar 22, 2007 2:37 am

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 ]------------------------------------------
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

PostAuthor: richiebgood » Wed Mar 28, 2007 4:03 pm

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.
Last edited by richiebgood on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 1:01 am
Cash on hand: 0.00
Location: Ireland

Re: Wrong links in News block

PostAuthor: tmotley » Wed Mar 28, 2007 7:45 pm

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>' ]
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

Re: Wrong links in News block

PostAuthor: richiebgood » Thu Mar 29, 2007 2:13 am

Genuis, its works now.

The code that i had was:

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



Cheers:)
Last edited by richiebgood on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

richiebgood
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 08, 2006 1:01 am
Cash on hand: 0.00
Location: Ireland

Re: Wrong links in News block

PostAuthor: Helter » Thu Mar 29, 2007 10:11 am

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
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: Wrong links in News block

PostAuthor: BitingMonkey » Sat Mar 31, 2007 1:50 pm

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.
Last edited by BitingMonkey on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

BitingMonkey
Members
Members
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Joined: Sat Nov 11, 2006 5:32 am
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]