Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    199
    Plugin Contributions
    0

    Default Using $messagestack with zen_redirect

    I'm developing a new ot module. I want to make a conditional installation: if another (specific) ot module is installed (plus other conditions) then stop installation and send out a warning with explanations on what's happening and what to do.

    I wrote the code to detect if the other module is installed (and the other conditions) but now I need help to print out the warning.

    Since I don't want to modify admin/modules.php I was looking for a way to redirect to main page of modules in admin, passing a variable to be included like $messageStack. The redirecting process is done and is working what is missing is the warning step.

    Is it possible?

    Is there a way to redirect to pages (in admin) bringing messages? (not creating the message with $messageStack->add(.....) beacuse I would not to modify core files).

    Thanks!
    Paolo De Dionigi
    Co-maintainer of Zen Cart Italia

  2. #2
    Join Date
    Feb 2005
    Location
    Italy
    Posts
    199
    Plugin Contributions
    0

    Default Re: Using $messagestack with zen_redirect

    Actually I bypassed the problem with a complete description of the module, appearing in the right box when you click on the module itself, so if you try to install and the conditions are not respected, you are redirected to the same page, without messages, but at least there's everything written in the description.
    Paolo De Dionigi
    Co-maintainer of Zen Cart Italia

 

 

Similar Threads

  1. Help with define pages using zen_redirect()
    By skipwater in forum General Questions
    Replies: 2
    Last Post: 17 Nov 2008, 07:44 PM
  2. Fatal error with messagestack instance
    By DWDesigns in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 4 Aug 2006, 03:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR