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?

News problem

Asked Modified Viewed 1,514 times
K
Kieran-R
K
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Hey,

I have a problem when posting news, I get this;

img148.imageshack.us/img148/3811/testingoo7.png

But I want this;

img513.imageshack.us/img513/9215/welcomecy6.png

Please help :(
Thanks
0 replies

11 posts

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

I'm quite sure I understand what you want, but I'll give it a go.

1] The "posted by..." part is displayed together with the title of the news? You don't want this, only the title.

2] This is related to the theme you use. I don't know what theme this is, but you'll need to edit your themes theme.php file (you find that in /themes/your_theme_name/themes.php.

3] Look for a function that is called

function reneder_news{
}

This is the one that determine how your news is displayed. If you copy the code in your theme.php file and post it here, we might be able to tell you what you need to do.

Cheers!
0 replies
J
Josso
J
Josso 10
–––
Without faith, nothing is possible. With it, nothing is impossible
  • Senior Member, joined since
  • Contributed 309 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

@Sveinungs: I think he mean that the background double, so there are two "bars".
0 replies
K
Kieran-R
K
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Here we are:
Thanks.

function render_news($subject, $news, $info) {

global $locale;

echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capleftbig'><img src='".THEME."images/blank.gif' width='5' height='20' alt='' style='display:block'></td>
<td class='capmain'>$subject -
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."
".$locale['041'].showdate("longdate", $info['news_date'])."</a></span></td>
<td class='caprightbig'><img src='".THEME."images/blank.gif' width='3' height='30' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> |\n";
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> |\n";
echo $info['news_reads'].$locale['044']."

</td>
</tr>
</table>\n";
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

@Josso, might be...

@Kieran: to remove the info after the title, edit this line:


<td class='capmain'>$subject -
<span class='small'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."
".$locale['041'].showdate("longdate", $info['news_date'])."</a></span></td>


Change like this:

<td class='capmain'>$subject</td>
0 replies
K
Kieran-R
K
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Yeah I was talking about the two bars but I also wanted that :)
Could anyone help about the 2 bars? :S
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Don't set height='30' if the image blank.gif only has a height of 20. It will then repeat itself as shown on your screen shot.

B.t.w. the first thing you should advise when asking a theme questions is the name of the theme and if you made changes to it.
0 replies
K
Kieran-R
K
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

I've changed it to 20 and no changes are made. :S
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

And you still don't give the name of the theme, so i'm done. You are on your own.
0 replies
K
Kieran-R
K
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Oh ok, calm it.
Name was x3 or somthing, I changed the name afterwards.
Does that help?
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

You are asking for help and more here are trying to help you and you can't even bother to look up the exact theme name you have set in main setting or advise if you have modified the theme?

Seriously, you should calm down and think twice before posting.
0 replies
K
Kieran-R
K
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Quote

Seriously, you should calm down and think twice before posting.

Ok, I'm calm. Your the one having a fit :).
And I told you the theame? Can't you read?

I don't want your help, your very rude when all I was doing was asking a simple question.
Would anyone elce like to help me ? :)
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 11 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet