Author Topic: [MOD] PHPNuke Module  (Read 71354 times)

0 Members and 1 Guest are viewing this topic.

Offline limes

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: problem
« Reply #15 on: May 12, 2003, 12:08:21 AM »
Quote from: limes
hi,

i have done all the modifications to integrate 4images gallery into a PHPNuke Module



but when i'm start "gallery" i get the message:



the file contains:



what's going wrong?


someone the same problem there???

Offline n2972s

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://www.dahlfamily.net
[MOD] PHPNuke Module
« Reply #16 on: May 12, 2003, 12:10:35 AM »
I looked into this for limes,  it seems I am the only one that can view his gallery with the modifcations.

I am not sure what is going on here so if somebody else has any ideas please lend him a hand.

Gustave
Simply Hosting, Affordable hosting with great support.
http://www.simplyhosting.net

Offline le_ninja_blanc

  • Pre-Newbie
  • Posts: 6
    • View Profile
[MOD] PHPNuke Module
« Reply #17 on: May 12, 2003, 06:42:09 PM »
Quote from: n2972s
Oops sorry.  I knew I had fixed this but didn't look closely enough at what I had done.

Uncomment the following in useful stuff:

Quote
//if (getenv("QUERY_STRING")) {
//  $self_url .= "?".getenv("QUERY_STRING");
//  $self_url = preg_replace(array("/([?|&])action=[^?|&]*/", "/([?|&])mode=[^?|&]*/", "/([?|&])phpinfo=[^?|&]*/", "/([?|&])printstats=[^?|&]*/", "/[?|&]".URL_ID."=[^?|&]*/", "/[?|&]l=[^?|&]*/", "/[&?]+$/"), array("", "", "", "", "", "", ""), $self_url);
//}
//else {
  if (preg_match("/details.php/", $self_url) && !preg_match("/[?|&]".URL_IMAGE_ID."=[^?|&]*/", $self_url) && $image_id) {
    $self_url .= "?".URL_IMAGE_ID."=".$image_id;
  }
  elseif (preg_match("/categories.php/", $self_url) && !preg_match("/[?|&]".URL_CAT_ID."=[^?|&]*/", $self_url)) {
    $self_url .= "?".URL_CAT_ID."=".$cat_id;
  }
  if (isset($show_result) && $show_result) {
    $self_url .= preg_match("/\?/", $self_url) ? "&" : "?";
    $self_url .= "show_result=1";
  }
  if ($page && $page != 1) {
    $self_url .= preg_match("/\?/", $self_url) ? "&" : "?";
    $self_url .= URL_PAGE."=".$page;
  }
//}


It should look like this:

Quote
if (getenv("QUERY_STRING")) {
  $self_url .= "?".getenv("QUERY_STRING");
  $self_url = preg_replace(array("/([?|&])action=[^?|&]*/", "/([?|&])mode=[^?|&]*/", "/([?|&])phpinfo=[^?|&]*/", "/([?|&])printstats=[^?|&]*/", "/[?|&]".URL_ID."=[^?|&]*/", "/[?|&]l=[^?|&]*/", "/[&?]+$/"), array("", "", "", "", "", "", ""), $self_url);
}
else {
  if (preg_match("/details/", $self_url) && !preg_match("/[?|&]".URL_IMAGE_ID."=[^?|&]*/", $self_url) && $image_id) {
    $self_url .= "?".URL_IMAGE_ID."=".$image_id;
  }
  elseif (preg_match("/categories/", $self_url) && !preg_match("/[?|&]".URL_CAT_ID."=[^?|&]*/", $self_url)) {
    $self_url .= "?".URL_CAT_ID."=".$cat_id;
  }
  if (isset($show_result) && $show_result) {
    $self_url .= preg_match("/\?/", $self_url) ? "&" : "?";
    $self_url .= "show_result=1";
  }
  if ($page && $page != 1) {
   $self_url .= preg_match("/\?/", $self_url) ? "&" : "?";
    $self_url .= URL_PAGE."=".$page;
  }
}


Let me know if that does it.

Gustave


It's Work !!!!!!!!! Thank Gustave !! Add this fixe to your tutorial !!
The comments don't work with your nuked theme but work with the original theme !!! Check this !!!

Offline s16

  • Pre-Newbie
  • Posts: 1
    • View Profile
[MOD] PHPNuke Module
« Reply #18 on: May 13, 2003, 11:48:31 AM »
Accoring to the tutorial,I've modified all listed .php files.And I also modified the modules/4images/global.php as the following.

if (getenv("QUERY_STRING")) {
$self_url .= "?".getenv("QUERY_STRING");
$self_url = preg_replace(array("/([?|&])action=[^?|&]*/", "/([?|&])mode=[^?|&]*/", "/([?|&])phpinfo=[^?|&]*/", "/([?|&])printstats=[^?|&]*/", "/[?|&]".URL_ID."=[^?|&]*/", "/[?|&]l=[^?|&]*/", "/[&?]+$/"), array("", "", "", "", "", "", ""), $self_url);
}
else {
if (preg_match("/details/", $self_url) && !preg_match("/[?|&]".URL_IMAGE_ID."=[^?|&]*/", $self_url) && $image_id) {
$self_url .= "?".URL_IMAGE_ID."=".$image_id;
}
elseif (preg_match("/categories/", $self_url) && !preg_match("/[?|&]".URL_CAT_ID."=[^?|&]*/", $self_url)) {
$self_url .= "?".URL_CAT_ID."=".$cat_id;
}
if (isset($show_result) && $show_result) {
$self_url .= preg_match("/\?/", $self_url) ? "&" : "?";
$self_url .= "show_result=1";
}
if ($page && $page != 1) {
$self_url .= preg_match("/\?/", $self_url) ? "&" : "?";
$self_url .= URL_PAGE."=".$page;
}
}

One thing different to the tutorial is that I make a directory below the modules named 4images not gallery.But when use browser to view my 4images,the 4images index and control panel page could be reached.But I tried to access the catagories page the error message appeared.
Warning: Failed opening 'modules/4images/global.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/nuke/modules/4images/categories.php on line 30

Fatal error: Failed opening required 'modules/4images/includes/sessions.php' (include_path='.:/usr/share/pear') in /var/www/html/nuke/modules/4images/categories.php on line 31

Any assitance will be highly appreciated.

Offline Mal55

  • Pre-Newbie
  • Posts: 5
    • View Profile
So far, so good .... THANKS !!!!
« Reply #19 on: May 17, 2003, 08:49:30 PM »
it works also with postnuke, thanks for your tutorial! (btw correct the pdf)

Have you already done the user integration with *nuke?

Offline Shard

  • Pre-Newbie
  • Posts: 5
    • View Profile
[MOD] PHPNuke Module
« Reply #20 on: May 22, 2003, 02:40:28 AM »
I'm very anxious to see this project completed too. User integration with PHPNuke would be awesome. There's no way I could convince my users to register twice. If there's anything I can do to help test or anything, I'm only an E-mail away.

Offline n2972s

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://www.dahlfamily.net
[MOD] PHPNuke Module
« Reply #21 on: May 22, 2003, 03:42:54 PM »
I have not done much on the computer the last week or so and probably won't for a few days.  

I do have mine working with user integration just don't have anything written up for it.

I  will post it here when I am done.

Gustave
Simply Hosting, Affordable hosting with great support.
http://www.simplyhosting.net

Offline Shard

  • Pre-Newbie
  • Posts: 5
    • View Profile
[MOD] PHPNuke Module
« Reply #22 on: May 25, 2003, 11:04:45 PM »
<Bump> I tried takin' on integrating the user tables myself but haven't had any success yet. Come on Gustave, point us in the right direction.

Offline Maxxx

  • Newbie
  • *
  • Posts: 21
    • View Profile
Another little trouble..
« Reply #23 on: June 03, 2003, 07:42:33 PM »
..

n2972s , or anybody can help me.

Sure i'm forgot to modify something...
My problem is about the activation & postcards e-mail links , don't work properly. I receive a link like this :


Quote
test (pippo@pippo.com) has sent you an eCard!
Please proceed to the following URL:
Code: [Select]
http://www.faithhill.it/portal/postcards&postcard_id=3ae15945bf0abd532d8b4e401bb36b87

Your eCard has been sent on  03.06.2003 18:56 and will be stored in our database for 10 days.


Harg!!! What is wrong ??

The correct url should be like this way :
Quote
Code: [Select]
http://www.faithhill.it/portal/modules.php&file=postcards&postcard_id=3ae15945bf0abd532d8b4e401bb36b87


 I believe the problem is due to the definition of the script_url  parameter ...  but I don't succeed about  understanding where...

Help me please!

Offline Maxxx

  • Newbie
  • *
  • Posts: 21
    • View Profile
[MOD] PHPNuke Module
« Reply #24 on: June 05, 2003, 11:17:40 PM »
... :cry: unbelievable, nobody can help me ... :?

Offline Mal55

  • Pre-Newbie
  • Posts: 5
    • View Profile
user integration
« Reply #25 on: June 12, 2003, 08:26:37 AM »
@n2972s

please post your tutorial for the user integration, i tried myself, but with no success ...   :cry:

Offline IamShawn

  • Pre-Newbie
  • Posts: 1
    • View Profile
[MOD] PHPNuke Module
« Reply #26 on: June 12, 2003, 11:14:12 AM »
Seems to have probs with PHP 4.30

Code: [Select]
Warning: main(modules/Gallery/global.php) [function.main]: failed to create stream: No such file or directory in /home/virtual/site13/fst/var/www/html/modules/Gallery/index.php on line 31

Warning: main() [function.main]: Failed opening 'modules/Gallery/global.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site13/fst/var/www/html/modules/Gallery/index.php on line 31

Warning: main(modules/Gallery/includes/sessions.php) [function.main]: failed to create stream: No such file or directory in /home/virtual/site13/fst/var/www/html/modules/Gallery/index.php on line 32

Fatal error: main() [function.main]: Failed opening required 'modules/Gallery/includes/sessions.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site13/fst/var/www/html/modules/Gallery/index.php on line 32


http://www.voicesofxpression.net/modules.php?name=Gallery

few links are still pointing to

http://www.voicesofxpression.net/modules/Gallery/index.php

Offline Maxxx

  • Newbie
  • *
  • Posts: 21
    • View Profile
[MOD] PHPNuke Module
« Reply #27 on: June 12, 2003, 11:54:46 AM »
@ IamShawn :

If you have correctly performed how much n2972s has has said in the tutorial,  you bushels now the same problem that I have had . n2972s  has forgotten some things in his tutorial. You have to modify some calls to index.php in the includes/functions.php , includes/page_header.php and global.php

Offline n2972s

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://www.dahlfamily.net
Continuation of module...
« Reply #28 on: June 27, 2003, 01:13:38 AM »
I have not had time to anything more with this module.  I run other businesses online that require my attention and I can not devote my efforts to this free venture.  

I apologize for this but what I have here should get you started.

I do not intend on going any further with this, I hope somebody else may take if from here.

Gustave Dahl
Simply Hosting, Affordable hosting with great support.
http://www.simplyhosting.net

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: [MOD] PHPNuke Module
« Reply #29 on: March 11, 2005, 12:09:18 PM »
Hmm wow damm hackers , seems there is alot missing here , well i was asking before if anyone has got the points system in phpnuke to work with 4images ? contact me if any has or can thanks !