Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Change the text ??

Asked Modified Viewed 5,752 times
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
asked
Member

How can I change the text at the bottom of each News item in the main page where it says

Read More · 0 Comments · 1 Reads

?
0 replies

13 posts

E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Also ho can I make the titles of the News Items, clickable, so users won't have to click Read More, but they can just click the title to read the full news.
0 replies
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

So i have to change the theme files that came in the installation file? And them upload them again?
0 replies
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

I cant find which file I should change.

Index.php ?
theme.php ?

in the Theme folder?
0 replies
E
Elactos
E
Elactos 10
Infusions & modifications for PHP-Fusion v7
http://www.redward.org
  • Member, joined since
  • Contributed 138 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

Use the search functions.

This has already been answered by me in an earlier thread.
0 replies
B
Bombastic
B
  • Member, joined since
  • Contributed 67 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

As helpful as ever I see.
0 replies
D
DubSev
D
DubSev 10
......................................
let's go f***ing mental! la la la la...
  • Senior Member, joined since
  • Contributed 285 posts on the community forums.
  • Started 5 threads in the forums
answered
Senior Member

in includes/theme_functions_include.php edit the following part to your needs:

function newsposter($info,$sep = "",$class = "") {
   global $locale;
   $res = "";
   $link_class = $class ? " class='$class' " : "";
   $res = THEME_BULLET." <a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";
   $res .= $locale['global_071'].showdate("longdate", $info['news_date']);
   $res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
   return "<!--news_poster-->".$res;
}

function newsopts($info, $sep, $class = "") {
   global $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
   if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
   if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
   if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
   $res .= $sep." <a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
   return "<!--news_opts-->".$res;
}
0 replies
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Thanks, i'll give it a try.
0 replies
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Quote

DubSev wrote:
in includes/theme_functions_include.php edit the following part to your needs:

function newsposter($info,$sep = "",$class = "") {
   global $locale;
   $res = "";
   $link_class = $class ? " class='$class' " : "";
   $res = THEME_BULLET." <a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";
   $res .= $locale['global_071'].showdate("longdate", $info['news_date']);
   $res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
   return "<!--news_poster-->".$res;
}

function newsopts($info, $sep, $class = "") {
   global $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
   if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
   if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
   if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
   $res .= $sep." <a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
   return "<!--news_opts-->".$res;
}


I'm sorry, I'm new to this.

I've been looking at that code for a while but I can not figure out, what I should change in there if for example I want "Full News" instead of "Read More" at the end of a news item.
0 replies
P
proteus
P
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

If you want it to say Full News instead of Read More then you need to go into your locale folder, find your language, I'm thinking English by the way you write. Inside this folder locate the file called global.php. Find the line that says:
$locale['global_072'] = "Read More";.
Change the words Read More for Full News, or whatever you want it to say.
0 replies
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Quote

proteus wrote:
If you want it to say Full News instead of Read More then you need to go into your locale folder, find your language, I'm thinking English by the way you write. Inside this folder locate the file called global.php. Find the line that says:
$locale['global_072'] = "Read More";.
Change the words Read More for Full News, or whatever you want it to say.


Thanks, i'll try that.

I actually want to change it to albanian, but I am using english language.
0 replies
E
enimal
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions
answered
Member

Ohh greattt. I see everything that I want to change in there.

Thanks a lot man. Great help
0 replies
P
proteus
P
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

You're very welcomed.
:D
0 replies
— 2 months later —
B
bikerbones
B
bikerbones 10
range'>Respects,
<-[BONES]->

www.bikers-n-outlaws.com/sig.gif

In case your curiosity gets the best of you, DO NOT come to my site and apply for membership if you are NOT a biker. You will most likely NOT be very welcome and your account will more than likely be deleted. No apologies, that is just the way things are these days.
  • Member, joined since
  • Contributed 55 posts on the community forums.
answered
Member

Quote

enimal wrote:
Also ho can I make the titles of the News Items, clickable, so users won't have to click Read More, but they can just click the title to read the full news.


For me I had to edit news.php like this:

Find line 44:

         $news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);


Replace with:(This removes the useless anchor you see in the code above as well.)

         $news_subject = "<a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='Read More'>".stripslashes($data['news_subject']);


Then find line 65:
               $news_[0] .= "<tr>\n<td class='tbl2'><strong>".$news_subject."</strong></td>\n</tr>\n";


Replace with:
               $news_[0] .= "<tr>\n<td class='tbl2'><strong>".$news_subject."</a></strong></td>\n</tr>\n";


Also find line 82:
               $news_[$ncolumn] .= "<tr>\n<td class='tbl2'><strong>".$news_subject."</strong></td>\n</tr>\n";


Replace with:
               $news_[$ncolumn] .= "<tr>\n<td class='tbl2'><strong>".$news_subject."</a></strong></td>\n</tr>\n";


That worked for me and I'm still XHTML valid.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 13 posts
  • Votes 0 votes
  • Topic users 6 members

6 participants

P
P
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 1 thread in the forums
E
E
Elactos 10
Infusions & modifications for PHP-Fusion v7
http://www.redward.org
  • Member, joined since
  • Contributed 138 posts on the community forums.
  • Started 5 threads in the forums
B
B
bikerbones 10
range'>Respects,
<-[BONES]->

www.bikers-n-outlaws.com/sig.gif

In case your curiosity gets the best of you, DO NOT come to my site and apply for membership if you are NOT a biker. You will most likely NOT be very welcome and your account will more than likely be deleted. No apologies, that is just the way things are these days.
  • Member, joined since
  • Contributed 55 posts on the community forums.
D
D
DubSev 10
......................................
let's go f***ing mental! la la la la...
  • Senior Member, joined since
  • Contributed 285 posts on the community forums.
  • Started 5 threads in the forums
B
B
  • Member, joined since
  • Contributed 67 posts on the community forums.
  • Started 7 threads in the forums
E
E
enimal 10
  • Member, joined since
  • Contributed 117 posts on the community forums.
  • Started 26 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet