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?

Theme issue

Asked Modified Viewed 2,853 times
S
sever576
S
sever576 10
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Please help me

I need to eliminate all data but "Read More" shown when I add a news in my index.page. Please advise me what I should to redact in these lines:
function render_news($subject, $news, $info) {
   global $locale;
   opentable($subject);
   echo $locale['040'].newsposter($info)."\n"
   ."<br>\n<hr>\n<br>\n".$news."<br><br>\n<hr>\n"
   .openform("N",$info['news_id']).newsopts($info," &middot;").closeform("N",$info['news_id'])."\n";
   closetable();
Edited by sever576 on 27-01-2008 03:02,
0 replies

7 posts

B
bartek124
B
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 3 threads in the forums
answered
Newbie

In includes/theme-functions_include.php

55 line of code:
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['042']."</a> ".$sep." ";


Remove.
0 replies
S
sever576
S
sever576 10
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Thank you very much for your reply to my message. But I coulldn't delete the "posted by" words whatever I did.
What lines should be redacted to do this?
Edited by sever576 on 28-01-2008 01:57,
0 replies
M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

That should be dealt with in theme.php but since the layout of each theme is different, there is no simple answer here. It depends on your theme.
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

Questions like these really belongs at the theme site.

You can try this code, should do what you want (if you use One Column news layout, that is)

function render_news($subject, $news, $info) {
   global $locale;
   opentable($subject);
   echo $locale['040'].newsposter($info)."\n";
   echo "<br>\n<hr>\n<br>\n".$news."";
     if (!isset($_GET['readmore']) && $info['news_ext'] == "y") { echo " <a href='news.php?readmore=".$info['news_id']."'".$link_class."><b>".$locale['042']."</b></a>";}
   echo "<br><br>\n<hr>\n";
   closetable();
}
0 replies
P
pkw
P
pkw 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
answered
Newbie

Hello sveinungs.

Quote

You can try this code, should do what you want (if you use One Column news layout, that is


Can one do that when I´m using Two Column news layout

yours //Pkw
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

Not that easily. You'll have to modify both news.php and theme_functions_include.php quite a lot to do that, I'm afraid. Maybe someone has done it already, I don't know.
0 replies
P
pkw
P
pkw 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
answered
Newbie

hey sveinungs

Thanks a lot for your quick respons.

Yours //Pkw
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 5 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet