DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 19, 2013, 04:34:01 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: Petition Extension  (Read 1774 times)
0 Members and 1 Guest are viewing this topic.
Nightborn
Guest
« on: July 17, 2006, 02:13:45 AM »

http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1046

I had 50 petitions with 35 badnavs in there as I had a little memory problem tonight... so... what should I do? go through every guy and click? make a short php program that fixes all navs for all petitioners today?

NO

I enhanced the viewpetition.php via module and added

a) fix navs
b) close + goto next
c) fix navs + close + goto next

to the viewer when you have 1 petition open

additionally:
-if you fix a user nav, he gets a YOM, no need to mail him again (translatable)
-if you fix or close, the petition commentary field will get an entry you did so -> transparency

ideas for other things here please, yet this was one that nagged me for month until I had this today that beat me up making it.

Attention: If the petition was from the OUTSIDE nothing will happen if you fix the navs...
Logged
Cory2
Militia
**
Offline Offline

Posts: 59



View Profile WWW
« Reply #1 on: November 15, 2009, 11:21:30 AM »

i was wondering if anyone had a copy of this module working on 1.1.2?
the download link in this thread points to the 1.1.1 module wich doesnt seem to work on 1.1.2
and by doesnt work i mean i upload it to my server and i get this at the top of my uninstalled modules page.

Code:
PHP Warning: "file_get_contents(modules/petitionfixnavs.php) [function.file-get-contents]: failed to open stream: Permission denied"
in /usr/local/home/dmech/public_html/modules.php at 228.
Call Stack:
2: file_get_contents("modules/petitionfixnavs.p...") called from /usr/local/home/dmech/public_html/modules.php on line 228
Logged

Owner of Dragonmachine.com
Human by nature, Programmer by choice
Stephen Kise
Codemeister
****
Offline Offline

Posts: 372



View Profile WWW
« Reply #2 on: November 15, 2009, 05:09:54 PM »

O.o I do not understand. I am sporting 1.1.2 and I have the same module. However, I do not have those errors.. Are those errors being displayed as you view the petition? After you fix a player's navs? In the village? Etc?
Logged
Cory2
Militia
**
Offline Offline

Posts: 59



View Profile WWW
« Reply #3 on: November 16, 2009, 04:02:16 AM »

I get this at the top of my uninstalled modules page.

i find it really odd.
i cant see anything wrong with the code. but then im not an expert coder.
and im deffinatley uploading it to the right place. etc
Logged

Owner of Dragonmachine.com
Human by nature, Programmer by choice
Boris735
Mod God
*****
Offline Offline

Posts: 532


View Profile
« Reply #4 on: November 16, 2009, 05:58:59 AM »

The error message is saying that it can't open that file.  Perhaps the permissions are not set to make it readable?
Logged
Stephen Kise
Codemeister
****
Offline Offline

Posts: 372



View Profile WWW
« Reply #5 on: November 16, 2009, 07:46:49 AM »

I apologize... I did not see that >.>
Logged
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #6 on: July 27, 2012, 06:33:20 AM »

So, when I use this module on my live server, it white pages on me.. But when I use it on my test server, it works brilliantly, as it's meant to.

Any clues..? Is it the host, perhaps?
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #7 on: July 27, 2012, 08:40:27 AM »

A lot of modules are doing that for you, have you edited the core or have modules that have not been tested on your live server?
Logged
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #8 on: July 27, 2012, 08:44:43 AM »

A lot of modules are doing that for you

I agree. D: The last one was a security issue with the host.

have you edited the core or have modules that have not been tested on your live server?

I've edited the core, but only for minor things, of which I know exactly what they do. And I test each of my modules thoroughly on my test server before I transfer them to my live server. But even in this case, testing it on my test server wouldn't help, as it works on there fine.
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #9 on: July 31, 2012, 08:36:35 PM »

So, I may have figured out the problem.. When I comment out the line:

Code:
<?php
pt_insert
(translate_inline("/me has fixed this users navs"));
?>

The module works brilliantly. It just doesn't add the link of commentary. And the function pt_insert is:

Code:
<?php
function pt_insert($text) {
$id=httpget('id');
require_once("lib/commentary.php");
injectcommentary("pet-$id","",$text);
return;
}
?>

Anyone know what's going wrong here? Because I don't.. xD
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Srch
Captain of the Guard
***
Offline Offline

Posts: 133

Hi, I'm Ver!


View Profile
« Reply #10 on: July 31, 2012, 11:48:04 PM »

So, I may have figured out the problem.. When I comment out the line:

Code:
<?php
pt_insert
(translate_inline("/me has fixed this users navs"));
?>

The module works brilliantly. It just doesn't add the link of commentary. And the function pt_insert is:

Code:
<?php
function pt_insert($text) {
$id=httpget('id');
require_once("lib/commentary.php");
injectcommentary("pet-$id","",$text);
return;
}
?>

Anyone know what's going wrong here? Because I don't.. xD

I would imagine changing the translate_inline and the return inside the function, since there is no data to return. What build is this code being ran on?

Code:
pt_insert("/me has fixed this user's navs!");

Code:
function pt_insert($text) {
$id=httpget('id');
require_once("lib/commentary.php");
injectcommentary("pet-$id","",$text);
}
Logged

Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #11 on: August 01, 2012, 12:06:53 AM »

I would imagine changing the translate_inline and the return inside the function, since there is no data to return.

I change the mentioned lines to the ones you posted up there ( ^ somewhere), and it still white-pages on me.

What build is this code being ran on?

Build..? o.o Elaborate?
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Srch
Captain of the Guard
***
Offline Offline

Posts: 133

Hi, I'm Ver!


View Profile
« Reply #12 on: August 01, 2012, 12:21:44 AM »

Build being the core you run on. Is the white page being a badnav, or a broken page entirely? What is the page that you are directed to after fixing a player's navs?
Logged

Aeo
Mod God
*****
Offline Offline

Posts: 1077


Doctor.. Who?


View Profile WWW
« Reply #13 on: August 01, 2012, 12:43:46 AM »

Build being the core you run on.

The latest one, 1.1.2.

Is the white page being a badnav, or a broken page entirely?

I believe that it's the second one, a broken page.

What is the page that you are directed to after fixing a player's navs?

http://www.evolutionathens.net/runmodule.php?module=petitionfixnavs&op=fixnav&id=84&c=524-024202. That's when I'm fixing a players nav, which is the correct URL for the nav itself, though it's meant to immediately post in the petition chat, then redirect back to said petition.
Logged


Time Lords Online - A Doctor Who RPG! Open Now!
~ My Modules: PM me if you'd like me to code something! Smiley ~
Srch
Captain of the Guard
***
Offline Offline

Posts: 133

Hi, I'm Ver!


View Profile
« Reply #14 on: August 01, 2012, 12:55:23 AM »

Build being the core you run on.

The latest one, 1.1.2.

Is the white page being a badnav, or a broken page entirely?

I believe that it's the second one, a broken page.

What is the page that you are directed to after fixing a player's navs?

http://www.evolutionathens.net/runmodule.php?module=petitionfixnavs&op=fixnav&id=84&c=524-024202. That's when I'm fixing a players nav, which is the correct URL for the nav itself, though it's meant to immediately post in the petition chat, then redirect back to said petition.

Well you have a very different function, from the original module. Considering that you do not have runmodule.php?module=petitionfixnavs&id=$id.. Did you mofiy it this way on purpose? Is there any op labeled for fixnav?
Logged

Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
24 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search