1
paiac
hack comments ?
  • 2004/5/16 11:29

  • paiac

  • Just popping in

  • Posts: 13

  • Since: 2004/2/3 1


Please if it's possible help me how to hack or edit what template to change this:

Resized Image

I need just simple Post comment button.

2
Olorin
Re: hack comments ?
  • 2004/5/16 11:59

  • Olorin

  • Just popping in

  • Posts: 50

  • Since: 2003/7/5 1


"include/comment_view.php" should be the one as far as i know.
line 178
Quote:
$navbar .= '&nbsp;<input type="button" onclick="self.location.href=\''.$postcomment_link.''.$link_extra.'\'" class="formButton" value="'._CM_POSTCOMMENT.'" />';

Replace the above line with the following one:
Quote:
$navbar .= '&nbsp;<a href="'.$postcomment_link.$link_extra.'">'._CM_POSTCOMMENT.'</a>';
And you can have a simple text link instead of javascript button.

3
paiac
Re: hack comments ?
  • 2004/5/17 7:31

  • paiac

  • Just popping in

  • Posts: 13

  • Since: 2004/2/3 1


Thanks, but I need only post comment button without other possibilities.
Something like this:
Resized Image

If somebody knows how to do that please help me...

4
paiac
Re: hack comments ?
  • 2004/5/23 8:04

  • paiac

  • Just popping in

  • Posts: 13

  • Since: 2004/2/3 1


There is nobody who can give me a piece of advice?

5
phppp
Re: hack comments ?
  • 2004/5/23 11:18

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


$navbar = '<input type="button" onclick="self.location.href=\''.$postcomment_link.''.$link_extra.'\'" class="formButton" value="'._CM_POSTCOMMENT.'" />';

just before

$xoopsTpl->assign(array('commentsnav' => $navbar, 'editcomment_link' =>...

6
paiac
Re: hack comments ?
  • 2004/5/23 12:37

  • paiac

  • Just popping in

  • Posts: 13

  • Since: 2004/2/3 1


THANK YOU!!!

7
joel2
Re: hack comments ?
  • 2005/7/9 22:12

  • joel2

  • Just popping in

  • Posts: 1

  • Since: 2005/6/7 5


Add this line too :

Quote:
$postcomment_link = 'comment_new.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode;


Need both :

Quote:
$postcomment_link = 'comment_new.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode;
$navbar = '<input type="button" onclick="self.location.href=\''.$postcomment_link.''.$link_extra.'\'" class="formButton" value="'._CM_POSTCOMMENT.'" />';

Login

Who's Online

150 user(s) are online (108 user(s) are browsing Support Forums)


Members: 1


Guests: 149


aerograf,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits