1
makakazo
Re: Issue with tables and CSS
  • 2007/3/8 21:21

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


Dude Stefan it worked! I mean, now I can add the css to my module, but the most important thing is... how did you learn about that? I don't know how to find the template file used for the header, where "xoops_module_header" should be. Using templates suck when you have no documentation about it...



2
makakazo
Issue with tables and CSS
  • 2007/3/8 18:53

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


Hi, I have a little big problem with my module.

The basic output my module prints are tables with player standings and the like, but in the default theme css, tables are set to width:100% which totally screws my desired presentation.

As my idea is to provide a module so it can be installed in any XOOPS site I don't like the idea of changing the default css, and I don't know how it would affect all the other modules.

So I'd like to know if there's a way to override that 100% width setting somehow, like creating my own css with just table specifications and forcing my module to use it or any other way that wouldn't imply messing with code used by the rest of the site.

Any help?



3
makakazo
Re: More documentaion and support
  • 2007/3/8 13:31

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


Thanks for your answer. I'm using google now which is in its own way a pain. Is there a place where I can learn how to use templates so all the output by my module pass through a template file?



4
makakazo
More documentaion and support
  • 2007/3/8 10:54

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


I'm trying to develop a XOOPS module for my team webpage. It is "working" fine so far, but I've come to the point that I'm asking myself "is it worth the effort?", and it's not caused because of the time spent in the coding, but the uncommfortability caused by spending more time trying to find documentation about anything than coding the module itself.

It is absolutely amazing how there is so little documentation about module developing.

I'm not the brightest programmer ever, I would say I'm not even an experienced programmer, but I know my module would be over by now if I'd had documentation about how to use templates, use smarty and the basic XOOPS API documentation.

Should I start convincing my mates to switch over to another CMS only two months before starting using xoops?

What is the point in having and all-free open source extremely scalable CMS if you don't give your users the proper tools to work on it?



5
makakazo
Re: Issue with file upload
  • 2007/2/20 13:44

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


OK, I found the problem. I was missing this line

$parseForm -> setExtra('enctype="multipart/form-data"');


I guess this is a common thing when you have poor HTML knowledge and it's your first time building a form to submit files.



6
makakazo
Issue with file upload
  • 2007/2/20 11:44

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


Hi, I'm trying to upload a file for my module but I'm not getting past through the basics.

This is the code I have:

<?php

include_once ('admin_header.php');

if(!isset(
$_POST['pulsacion'])){
    
$parseForm = new XoopsThemeForm('Enviar archivo de estadísticas''parse_form''prueba_parse.php');
    
$parseForm->AddElement(new XoopsFormFile('Enviar fichero','envio'1000000));
    
$parseForm->AddElement(new XoopsFormButton('''pulsacion''Enviar''submit'));
    
$parseForm->display();
}
else{
    
print_r($_POST);
    echo 
"<br><br>";
    
print_r($_FILES);
}

xoops_cp_footer();

?>


And this is the output I get when I try to upload a file:
Array ( [MAX_FILE_SIZE] => 1000000 [envio] => 2007-02-19_23.46.39_results_race.zip [xoops_upload_file] => Array ( [0] => envio ) [pulsacion] => Enviar )

Array ( )


I've tried different mime types but it won't work with any. Maybe this is just a basic php mistake I'm having, but I don't know where is the problem. I think the $_FILES array should have the file info after I submit the form.

Can anyone help me?



7
makakazo
Re: How to set foreign keys when installing a module
  • 2007/2/15 16:51

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


Yes Bandit-X, that sure helps, it was what I was looking for

EDIT: OK, it's working fine now.

Anyway, I think that the parsing system used when executing the sql file specified in

$modversion['sqlfile']['mysql'] = "sqlfile.sql";

should allow to introduce constraints as well. You can have "create table" and "insert into" sentences and it adds the DB prefix to all table names right, but constraints are not supported in this way, so you have to use alter table afterwards using "oninstall"



8
makakazo
Re: How to set foreign keys when installing a module
  • 2007/2/15 14:17

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


I think I can get the oninstall to work.

The point is that I can add constraints fo the foreign keys in the sql file so they are executed when the tables are created, but they only work if I add the prefix that my XOOPS site uses for tables, so the module wouldn't install on any other site.

I think the only way is with the fuction called in the file specified by "$modversion['onInstall'] = 'include/install.php';", connecting to the DB to run an alter table query.

Am I wrong?



9
makakazo
How to set foreign keys when installing a module
  • 2007/2/15 11:56

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


Hi, I'm coding my first XOOPS module from scratch, and I'd like to know how to set foreign keys to my DBs tables at the time of installation. I can insert data directly in the sql file where I create my tables, but haven't found a way to assign foreign keys.

I guess I'll have to use 'oninstall' in xoops_version but but I can't find out how to use that 'oninstall' functionaluty :S



10
makakazo
Re: CBB 232 Questions
  • 2007/1/11 11:54

  • makakazo

  • Just popping in

  • Posts: 10

  • Since: 2007/1/11


Quote:
kwaltman wrote:
Is there anyway to have CBB 232 jump to the first new post in a thread when user rereads that thread?

Currently if a thread lets say has 8 old posts and 2 new posts (relative to the specific user checking), the user has to scroll down to find the new Posts. Is there any type of cookie or database setting that can be set to remember the last read post in each thread and jump to first new post down the page?


I'm using CBB 3.04 and I have the exact same question. We have a forum with a lot of activity so it's a must have if you want to quickly get to where you left the conversations. We have just moved from a phpbb forum to a full XOOPS site, including the CBB/newbb forum, and it is a feature that almost all boards have, so we are a bit confused now. I've tried looking into the code, but I don't have enough php knowledge to figure out where everything comes from...

I have also noticed that there's an automatic "quote" button in this forum that doesn't exist un CBB 3.04. Was it custom programmed or is it going to be an addition in a future release?




TopTop



Login

Who's Online

141 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 141


more...

Donat-O-Meter

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

Latest GitHub Commits