41
ejuden01
Re: My own module
  • 2005/1/13 21:29

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


Instead of calling $xoopsDB->query(), call $xoopsDB->queryF()



42
ejuden01
Re: Need help on tables: Converting e-xoops 1.05 to Xoops
  • 2005/1/12 18:41

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


Give this a try:
    $a='';
    
    
$fp fopen("test.sql"'r');
    
    while (!
feof($fp)) {
        
$char fgetc($fp);
        while (
$char != ',') {
            
$a .= $char;
            
$char fgetc($fp);
        }
        print 
"$a,
"
;
    }
?>


Basically, the inside while loop needs to move to the next character. Otherwise, the condition is never true and a never-ending loop occurs.



43
ejuden01
Re: My own module
  • 2005/1/12 15:47

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


When I do mine, I use sprintf:
$sql sprintf("INSERT INTO %s VALUES (%s, %u)"$xoopsDB->prefix("cervex_config"), 'config'1);
$xoopsDB->query($sql);



44
ejuden01
Re: Trying to modify a Module - just a quick question
  • 2004/12/14 17:34

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


Make sure the the only folders inside of your modules directory are modules. If you have a folder called "Modules" inside of your modules directory, it will give that message.



45
ejuden01
Re: Remove redirection within Xoops
  • 2004/12/10 21:18

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


The line you want to replace should look something like:
redirect_header("index.php"3_NOPERM);


Replace that with:
header("Location: index.php");



46
ejuden01
Re: Maybe off topic
  • 2004/12/10 16:37

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


We have the PHP Anthology books at work. They are pretty nice.



47
ejuden01
Re: Center Block won't show when user not logged in
  • 2004/12/10 16:31

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


To fix this, you need to go into the admin panel, and click "System"->"Groups". Once inside there, you need to modify the Anonymous users group and change the block access rights for the center. That should fix your site!



48
ejuden01
Re: Help Desk Module with Reports
  • 2004/12/8 17:07

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


I believe we already have this feature request to take care of that.



49
ejuden01
Re: Help Desk Module with Reports
  • 2004/12/8 16:58

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


Can you explain in more detail about copying a ticket? What would it be used for?



50
ejuden01
Re: some dev/mod question
  • 2004/11/30 21:47

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


Can you paste in the line that you tried and didn't work? Its kind of hard to understand fully without an example.




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



Login

Who's Online

203 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits