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?

[solved] Edit News in "readmore" in 6.01.10

Asked Modified Viewed 2,610 times
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
asked
Senior Member

Hi all,

so far what I found via the search function here was not related to recent versions.

Everything below concerns a logged admin.

One of my sites is pretty big (http://www.meeetooo.info) and I need to freshen up some news.

When looking for them via categories, I reach the news in "readmore" mode" where the "edit pencil" www.meeetooo.info/portail/images/edit.gif script is not available.

Is there a way to add the "edit pencil" www.meeetooo.info/portail/images/edit.gif script in "readmore" mode?

Thank you.
Edited by Quartzkyte on 22-06-2007 02:32,
0 replies

9 posts

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

Must be a theme issue, I have the edit button also in "news.php?readmore=?" - in both single and double column news layout.

1] What does the

function render_news{
...code for news...
}

look like in that theme?

2] Have you tried with a different theme already Quartz?
And does the theme.php have the

require_once INCLUDES."theme_functions_include.php";

line in top of it (I guess it does, but I have to ask)
0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

Thank you for considering my question...

1/ :

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

global $locale;

   echo "<table class='news-border' border='0' cellspacing='1' width='100%' cellpadding='1'><tr>";
   echo "<td class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a class='small3' href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}


2/ nope... am attaching the file, which I modded from PFT Red (Dale's good old themes :))...

Unfortunately this site of mine uses non-standard themes. I saw on another site of mine that some themes did have what I need... unfortunately not on this site, where I use only extravagant themes...

:|

Thanks again...
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

OK, I'll look into it and keep you posted.
0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

Thank you very much.
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

OK, you can try this. I added two lines of code in the top (theme_functions_include.php)
- This should give you the "edit pencil" in two collumn news layout.

I changed the

function render_article{
}

(see comments in code)

Hopefully this would give you what you need.

Cheers!
0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

I'll try it. Thank you.

Edit: no cigar, unfortunately...
Edited by Quartzkyte on 22-06-2007 00:36,
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

Strange, should work.

No cigar-pencil for articles too?
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

Try to find:

   echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img alt='' src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;' style='vertical-align:middle;'></a>";


Replace with something similar to:

   echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·").closeform("N",$info['news_id']);


0 replies
Q
Quartzkyte
Q
www.php-fusion.co.uk/../../images/smiley/cool.gif

Mike
---------------------------------------
Quartzkyte, admin @ French N.S.S.
  • Senior Member, joined since
  • Contributed 404 posts on the community forums.
  • Started 40 threads in the forums
  • Started this discussions
answered
Senior Member

Allright!
:)
Didn't pay attention to the fact sveinungs corrected the articles. :|
WEC pointed it out correctly.

Thank you both of you. B) :D
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 9 posts
  • Votes 0 votes
  • Topic users 3 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet