1
ManXP
Hack search/request
  • 2004/6/8 16:07

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Hello. I am searching/requesting for a hack for my XOOPS website. I use News module every day and i need to get it modified. I don't want to see categories there. I need just categories for images (for example when you select category "Winamp", there will be "Winamp" picture in news article) but i dont want to see news title like this - "Winamp: My text...", it should be just "My text...".
Or categories can be disabled at all, and when i'll write news article, i should select picture to be displayed manually (like in Virtua News CMS).

Hope, you can understand what i want and can help me. Thank you.

2
nick89
Re: Hack search/request
  • 2004/9/11 11:03

  • nick89

  • Just popping in

  • Posts: 47

  • Since: 2004/7/9 8


Find the following file:
XOOPS DIRECTORY /modules/news/article.php

On Line 60 you can find the following:
$story['title'] = $article->textlink()." : ".$article->title();


Change it to:
$story['title'] = $article->title();


All Done.

3
ManXP
Re: Hack search/request
  • 2004/9/11 20:17

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Ok, thank you. I'll try this.

4
sbkiller
Re: Hack search/request
  • 2004/9/11 23:45

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


If you also want to know how to setup your own preference of how much news topic will be display in the front page.

The default was 5, 10 ,15,...30

To setup like 1, 2, 3, anynumbers please go here:

https://xoops.org/modules/newbb/viewtopic.php?forum=7&topic_id=24365

5
ManXP
Re: Hack search/request
  • 2004/9/12 12:33

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Hm, now i am looking how to make some changes i submiting news on module News 1.2x. There are checkboxes "Approve" and "Notify by mail when published". 1st isn't checked, 2nd - is. Now i want to change it (so 1st will be checked, 2nd - not). Hope i have to edit submit.php file?

6
sbkiller
Re: Hack search/request
  • 2004/9/12 12:56

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Maybe I don't really know about this one because I don't have News version 1.2, I have the 1.1 one. :(

You might have to change it in the xoops_version.php or else it will be in the admin folder in the news module.

7
nick89
Re: Hack search/request
  • 2004/9/17 8:36

  • nick89

  • Just popping in

  • Posts: 47

  • Since: 2004/7/9 8


Quote:

ManXP wrote:
Hm, now i am looking how to make some changes i submiting news on module News 1.2x. There are checkboxes "Approve" and "Notify by mail when published". 1st isn't checked, 2nd - is. Now i want to change it (so 1st will be checked, 2nd - not). Hope i have to edit submit.php file?


Find these lines on submit.php
case 'form':
    default:
        
$xt = new XoopsTopic($xoopsDB->prefix("topics"));
        
$title '';
        
$hometext '';
        
$noname 0;
        
$nohtml 0;
        
$nosmiley 0;
        
$notifypub 1;
        
$topicid 0;
        if (
$approveprivilege) {
            
$topicdisplay 0;
            
$topicalign 'R';
            
$ihome 0;
            
$bodytext '';
            
$approve 0;
            
$autodate '';
            
$expired 0;
            
$published 0;
        }
        if(
$xoopsModuleConfig['autoapprove'] == 1) {
            
$approve=1;
        }
        include_once 
'include/storyform.inc.php';
        break;
}


change:
$notifypub = 1; TO $notifypub = 0;
AND
$approve = 0; TO $approve = 1;

Login

Who's Online

181 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 181


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