11
rickh
Re: Notification sent when editing a news?
  • 2005/5/24 23:02

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


does someone have an opinion about this????

I already tried this:

if ( !empty( $isnew ) )
        {
            
$notification_handler -> triggerEvent'story'$story -> storyid(), 'approve'$tags );
         
// } DELETED BY ME
        
$notification_handler -> triggerEvent'global'0'new_story'$tags );
        
/*
            $poster = new XoopsUser($story->uid());
            $subject = _AM_ARTPUBLISHED;
            $message = sprintf(_AM_HELLO,$poster->uname());
            $message .= "nn"._AM_YOURARTPUB."nn";
            $message .= _AM_TITLEC.$story->title()."n"._AM_URLC.XOOPS_URL."/modules/".$xoopsModule->dirname()."/article.php?storyid=".$story->storyid()."n"._AM_PUBLISHEDC.formatTimestamp($story->published(),"m",0)."nn";
            $message .= $xoopsConfig['sitename']."n".XOOPS_URL."";
            $xoopsMailer =& getMailer();
            $xoopsMailer->useMail();
            $xoopsMailer->setToEmails($poster->getVar("email"));
            $xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            $xoopsMailer->setFromName($xoopsConfig['sitename']);
            $xoopsMailer->setSubject($subject);
            $xoopsMailer->setBody($message);
            $xoopsMailer->send();
        } //ADDED BY ME
        */
    
}
        
redirect_header'index.php?op=newarticle'1_AM_DBUPDATED );
        exit();
        break;


see the comments. But it seems like now there will be no notification sent at all when creating new articles.



12
rickh
Re: blank page :((((
  • 2005/5/24 20:45

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


a little kick of this topic.

My host has set the php memory limit to 4MB. Now my XOOPS site runs fine after my last post a few months ago, but I discovered that the edit/create user function in the admin didn't work due to exceeding of that 4MB memory limit. Now i modified the admin.php with "ini_set("memory_limit","8M");" and it works again, but I think it's strange that I have to edit this manually.

My question is: Does XOOPS use a abnormally ammount of memory? Or is my webhost a little paranoia and have they set this limit much to low?

Maybe a developer or other php expert can tell me this? If you guys say this limit is too low, i will contact my webhost about this.



13
rickh
Re: XOOPS 2.0.10-2.1.1 Patch (.zip)
  • 2005/5/24 20:32

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


keep in mind that 2.1.1 is not a stable function. So dont't use it on a production server because it contains a lot of bugs.



14
rickh
Re: Notification sent when editing a news?
  • 2005/5/21 23:42

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


** KICK **

I have the same problem. I've read the reply of mithrandir, but i'm not sure what to edit. I think i only have to edit admin/index.php.

Now I have this:

$story -> store();
        
$notification_handler = & xoops_gethandler'notification' );
    
$tags = array();
        
$tags['STORY_NAME'] = $story -> title();
        
$tags['STORY_URL'] = XOOPS_URL '/modules/' $xoopsModule -> getVar'dirname' ) . '/article.php?storyid=' $story -> storyid();
        >>>>
$isnew = isset($story->storyid) ? 0;<<<<
    if ( !empty( 
$isnew ) )
        {
            
$notification_handler -> triggerEvent'story'$story -> storyid(), 'approve'$tags );
        } 
        
$notification_handler -> triggerEvent'global'0'new_story'$tags );
etc....

The line marked with >>><<< is the only thin i've added. At the moment I don't have the facilities to test it on a test install and I don't want to test it on the main server.
Is it right what i'm doing?

btw. I use news 1.1



15
rickh
Re: Modifying links in a theme
  • 2005/5/21 9:56

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


I have the same problem with Macromedia Dreamweaver. My 'solution' is to edit the links in the HTML sourcecode. Eventually, you should try 'search and replace' to automatically replace all that wrong links in one time.



16
rickh
Re: Backup my site (windows 2003/IIS 6)
  • 2005/5/20 8:51

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


I back-up my site by just copying the XOOPS directory and exporting the MySQL database by using phpmyadmin.

I dont know IIS6, but i guess u also have an option to export the database.



17
rickh
Re: I lost everything!
  • 2005/5/18 21:24

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


What file were you editing? Just extract it from the downloadable XOOPS package and upload it to your FTP again.



18
rickh
Re: How to let users chose a theme?
  • 2005/5/17 16:06

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


Quote:

Mithrandir wrote:
XOOPS 2.2 will allow users to select a theme in their user profile


That's better I think . Because I see that the chosen theme wont be saved now when the user logs in next time.

(In my case it's only for testing purposes, so for now it's not a problem that it is not saved).



19
rickh
Re: How to let users chose a theme?
  • 2005/5/17 15:59

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


ah thanks :P I just thought it should be something simple I forgot to look at

It works now



20
rickh
How to let users chose a theme?
  • 2005/5/17 15:47

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


Maybe a stupid question, bit i can't find it

In the admin menu you can specify which themes users can chose. But HOW could normal (registered) users chose this themes? I cannot chose it at 'Edit account'.

I guess users can do this without having to install a third party module?




TopTop
« 1 (2) 3 4 5 ... 9 »



Login

Who's Online

169 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 169


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