1
otito
How to change "post news" to "post articles"?
  • 2004/6/18 21:50

  • otito

  • Just popping in

  • Posts: 12

  • Since: 2004/6/18


Hi. I ahve just setup XOOPS on my site at otito.com. Now i am trying to customize some things.I have difficulty customizing the blocks. When i go through Administration>>blocks and go to the one-option "edit template" i find a place where i do not see any menu items to change,just a lot of php code. Unfortuantely i do not have a good knoledge of php. For example i wanted to chnage the module "news" to "articles", and i could do that form the administration panel. Now i want to change the "submit news" to "submit articles" but could not figure it out.
I appreciate your help.
Check my site's home page to see the "post news" and the parent menu item "articles"
Thank you

2
Bender
Re: How to change "post news" to "post articles"?
  • 2004/6/18 22:44

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10



Well i have to steal some stuff from a JackJ posting for that:

Quote:
Each module has any related submenus defined in the xooops_version.php file in the individual modules root folder.

// Menu
$modversion['hasMain'] = 1;
global $xoopsUser;
if(!empty($xoopsUser)) {
$group = $xoopsUser->getGroups();

if (in_array(2, $group)) { //or other group-IDs
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
}
}
$modversion['sub'][2]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][2]['url'] = "archive.php";


Well here you can see only the variable names used for the submenus. To actually change them you will have to modify the corresponding language file(s).

Actually i did some digging and you have to go into /modules/news/language/*english or whatever you use/ and edit the modinfo.php (line 18 for XOOPS 2.0.6).

Hope this helps.

3
otito
Re: How to change "post news" to "post articles"?
  • 2004/6/18 22:49

  • otito

  • Just popping in

  • Posts: 12

  • Since: 2004/6/18


THANK YOU
I will try it and give a feedback

4
otito
Re: How to change "post news" to "post articles"?
  • 2004/6/18 22:55

  • otito

  • Just popping in

  • Posts: 12

  • Since: 2004/6/18


That worked. That was a good lesson in xoops
thanks

Login

Who's Online

470 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 470


more...

Donat-O-Meter

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

Latest GitHub Commits