|
|
#1 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Apr 2004
Lives in Utah
Hosted on Nifty
338 posts
Gave thanks: 0
Thanked 0 times
|
Which File/s to Edit?
Which file or files would I edit to change the way a news item works when it is posted? I want to make some chnages in the way the linking works in the title of the news item.
Thanks |
|
|
|
|
|
#2 (permalink) |
|
I'm Dope as Crack
Resident.
Joined in Mar 2004
Lives in Asheboro, NC
Hosted on Pass 7
13,036 posts
Gave thanks: 7
Thanked 29 times
|
that's very vague. i'm not sure what you are meaning by "how it works". have you looked at the template files for the news module?
__________________
|
|
|
|
|
|
#3 (permalink) |
|
Hostering?
Excelling Contributor
Joined in Jan 2004
Lives in New York
Hosted on D41
970 posts
Gave thanks: 0
Thanked 0 times
|
I guess "how it works" means , "how its formatted.."
__________________
*-[www.oolio.com]-* {_DIME.41 Reseller_} Stay cool. ![]() >> Avatar used with permission from garyzullo.com <<
|
|
|
|
|
|
#4 (permalink) | |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,364 posts
Gave thanks: 25
Thanked 94 times
|
Quote:
John
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
|
#5 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Apr 2004
Lives in Utah
Hosted on Nifty
338 posts
Gave thanks: 0
Thanked 0 times
|
I wish I could guess what I mean.
Actually I am not sure exactly what is wanted now but what I was trying to do is change the title of the news items so that they would not be a link to the whole title. And just be a title. I am not sure if we want to do that now, as I see no reason too, but if we wanted too how would I do that. Also we basically have a site with many articles on deifferent subjects like movies, anime, etc. And it also has a webcomic. We also want a comments section for each subject or actually article so people can post their thoughts on it. Would any of you know any good modules to run that? As of now I am just using the news module to publish them. |
|
|
|
|
|
#6 (permalink) |
|
I'm Dope as Crack
Resident.
Joined in Mar 2004
Lives in Asheboro, NC
Hosted on Pass 7
13,036 posts
Gave thanks: 7
Thanked 29 times
|
to make it not a link any more, in line 132 of the index.php page of the news module
change this: $story['title'] = $sarray[$i]->textlink().' : '."<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>"; to this: $story['title'] = $sarray[$i]->textlink().' : '.$sarray[$i]->title()."";
__________________
|
|
|
|
|
|
#8 (permalink) |
|
I'm Dope as Crack
Resident.
Joined in Mar 2004
Lives in Asheboro, NC
Hosted on Pass 7
13,036 posts
Gave thanks: 7
Thanked 29 times
|
well, the fact is that I don't know it either. I am in the opening stages of teaching it to myself, but when it comes to xoops, I am usually able to edit out things. it just takes recognition of what you are looking for, trial and error. Atleast, that's how it works for me.
I always try out things like this on myself before attempting to tell someone else if it will work though. I tried this, and it worked.
__________________
|
|
|
|
|
|
#9 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,364 posts
Gave thanks: 25
Thanked 94 times
|
Hey, trial and error worked for making the Incandescent Light Bulb, the Phonograph, and the telephone.... so why not!
![]()
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|