1
Aidus
Help! Need News module Hack.
  • 2004/10/5 13:23

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


Can I somehow replace text menus EDIT and DELETE with images?
I think i should make some changes in class.newsstory.php file:
$ret " [ .XOOPS_URL."/modules/news/admin/index.php?op=edit&storyid=".$this->storyid."'>"._EDIT."



I am sorry about my english:) Im just learning It

2
rcjohnson
Re:Help! Need News module Hack.
  • 2004/10/5 14:09

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


Well, Im good at English, but new to xoops.

I think you should be able to do that by checking your /modules/news/language/English/admin.php file.

There are several constants that define the variable names. I think you should be able to replace the defined value with a link to an image, or maybe it would be better to declare a variable, with that declared variable being a link to the image.

for example:
instead of :
define("_AM_EDIT","Edit");


change to:

define("_AM_EDIT",'/news/language/images/edit.gif');


Im just getting into php, but I think that might do it. Also, Im not sure that the above is the correct structure to use, but it may be close.

3
Aidus
Re:Help! Need News module Hack.
  • 2004/10/5 15:27

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


Well that not works:( I think there must be some changes. Maybe someone can write how to
define image there.

4
rcjohnson
Re:Help! Need News module Hack.
  • 2004/10/5 15:59

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


yeah, I just looked it up. It appears that constants must be a string, integer, float or boolean value.

sorry for pointing you in the wrong direction...

so, maybe you can define the constant with a varible, and that variable is the link to the image.

I'll shut up until someone who knows what they are talking about can help ya.

5
Aidus
Re:Help! Need News module Hack.
  • 2004/10/5 16:55

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


Problem solved:
In file language\english\global.php I replace string:
define("_EDIT","Edit");

with this:
define("_EDIT",'');


Thanks to http://www.truba.from.lv :))

Login

Who's Online

369 user(s) are online (294 user(s) are browsing Support Forums)


Members: 0


Guests: 369


more...

Donat-O-Meter

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

Latest GitHub Commits