31
Antoine
Re: language file to new module
  • 2005/8/26 9:12

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Hmm sounds you aren't including cp_header.php then. cp_header contains:
// include the default language file for the admin interface
if ( file_exists"../language/" $xoopsConfig['language'] . "/admin.php" ) ) {
    include 
"../language/" $xoopsConfig['language'] . "/admin.php";
}
elseif ( 
file_exists"../language/english/admin.php" ) ) {
    include 
"../language/english/admin.php";

Which should do the trick.
Do you have something like
include '../../../include/cp_header.php';
at the start of your admin pages? .



32
Antoine
Re: language file to new module
  • 2005/8/26 8:55

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


For the admin area you just add a file named admin.php instead of main.php. However, it often happens that you have to define a lot of constants twice that you have defined in main.php before. If you would like to have access to the main file from your admin pages I would add the following code to them:
if ( file_exists(XOOPS_ROOT_PATH."/modules/<your_module>/language/".$xoopsConfig['language']."/main.php") ) {
    include_once 
XOOPS_ROOT_PATH."/modules/<your_module>/language/".$xoopsConfig['language']."/main.php";
} else {
    include_once 
XOOPS_ROOT_PATH."/modules/<your_module>/language/english/main.php";
}



33
Antoine
Re: Making a living building sites with Xoops ?
  • 2005/8/25 12:57

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


I have also built a real-eastate site using XOOPS for a company. This involved writing a custom module. This site is allmost finished, link will be posted when it is.
Since this was my first custom XOOPS work I do not charge them for this site. Any future maintenance I will charge them for however. They are a profit making organisation.

Right now I am building a medical survey system based on XOOPS for my current employer so basically I am getting payed for that since he is the one that hands me my paycheck.

The going rate should be really dependent on how much custom work has gone into the site and how much time it has cost to make it. If you have to rewrite half the kernel and all modules used are to be custom then one could imagine it'd take a lot more time and expertise (and therefore be more expensive) than an 'out of the box' XOOPS solution.

As for the going rate? For developing a custom module for a commercial organisation I would charge something close to 500 euros a day.



34
Antoine
Re: convert NEWS to FORUM topics ?
  • 2005/8/25 12:00

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


As far as I know that isn't possible without some serious modification of the News module.



35
Antoine
Re: User Confusion
  • 2005/8/25 11:58

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Quote:

topgod6 wrote:
Is there any way to make the options appear in the page so that its not in the menu?


Change (or have someone change) the downloads template to include a hard link to the submit-page.



36
Antoine
Re: Module Administration not working
  • 2005/8/25 11:51

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Quote:
The debug mode only displays few warnings nd no errors. the problem is still there.


My suggestion of turning on Debugging was not to solve the problem but to get a more detailed report as to what the problem might be. So could you please post these warnings you are talking about?

Quote:
Its just a guess, but since you are not running it on a public site, turning Register Globals ON might fix it.


XOOPS and all half decent modules don't require register_globals to be On and personally I would advise anyone to keep it turned Off at all times.



37
Antoine
Re: Problem installing XOOPS 2.2 from scratch
  • 2005/8/25 11:38

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Yes, well, first of all Notices aren't errors. If all you get is Notices everything is pretty much allright except for the fact that you should disable the displaying of notices/errors.
As far as I've seen, these type of Notices usually come up when you are using PHP 4.4+, due to the different (more logical imho) approach to object instance references.
If you do not write any modulers yourself then I suggest trying to disable debugging mode in the admin console.
Or set error reporting in your PHP config file or run, error_reporting(E_ERROR | E_WARNING | E_PARSE), in your code or whatever.



38
Antoine
Re: Problem with mailing users
  • 2005/8/25 10:03

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Must be the proverbial drop that floods the bucket then.
Well, I guess setting the maximum script memory to just one or two megs more should likely fix it.
Still seems to me that using the mailer shouldn't normaly use over 8M of memory (looking at the Core Developers here).



39
Antoine
Re: Changing registered user to Admin from database??
  • 2005/8/25 9:58

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Well normaly you would delete users from the Admin Panel->Edit Users. Select the user there, set the dropdown to delete and hit 'Go!'.
Should you feel the need to do this in the DB directly somehow you just look up the uid of the users you want to delete, remove the rows in groups_users_link that contain that uid and lastly delete that user from the users table.



40
Antoine
Re: Changing registered user to Admin from database??
  • 2005/8/25 9:33

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Can you edit the groups_users_link table directly somehow? If that is the case just add a new row setting groupid to 1 and uid to the uid of the user you'd like to make admin.




TopTop
« 1 2 3 (4) 5 6 7 ... 11 »



Login

Who's Online

54 user(s) are online (29 user(s) are browsing Support Forums)


Members: 0


Guests: 54


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits