61
kalamata
How to make a 'pick-and-mix' XOOPS page?
  • 2006/6/27 18:14

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I want to make a page consisting of various XOOPS modules, but be able to select what I get from them. For example, I want a page with three out of the five left block modules, a custom text block in the center and the poll with id 12 on the right.

I came across a technique for displaying all right (left) blocks in a custom page (show_rblocks for right blocks), but not any pick and mix one.

What files would I need to edit to achieve that (any pseudocode would be extremely helpful)?

I look forward to hearing from you soon.

Thanks in advance.

George



62
kalamata
Re: Database error of zero
  • 2006/6/27 18:06

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Many thanks Dave - you answered it. I thought that the HTTP protocol does not restrict the type of query you can run but just defines two different ways of passing information to the server.

George



63
kalamata
Re: Database error of zero
  • 2006/6/27 16:16

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Quote:

Dave_L wrote:
It's a XOOPS security feature.


Can you give me some pointers where I can find out more about this feature?

Thanks,
George



64
kalamata
Custom made page
  • 2006/6/22 11:44

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I want to make a page consisting of various XOOPS modules, but be able to select what I get from them. For example, I want a page with three out of the five left block modules, a custom text block in the center and the poll with id 12 on the right.

I came across a technique for displaying all right (left) blocks in a custom, but not any pick and mix one.

What files would I need to edit to achieve that (any pseudocode would be extremely helpful)?

I look forward to hearing from you soon.

Thanks in advance.

George



65
kalamata
Re: Database error of zero
  • 2006/6/21 16:15

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


ok, will try. But, what is the problem with the query method?

George



66
kalamata
Database error of zero
  • 2006/6/21 10:41

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I made a small modification to the code for the xfguestbook module (will post it as soon as I am sure that it works) and run into the following problem that I can not understand:

I want to delete all modules waiting for validation, so I created a duplicate of the delete routine and call it from the main menu. What is happening is that if I use the code in delete

if (!$result = $this->db->query($sql)) {
echo "Problem with deletion!", mysql_errno();
return false;
}
to perform the deletion it will return an error number of zero, whilst if I run it the traditional way:

mysql_query($sql)

this works fine without any problems at all.

I should note here that when I use the code of delete in XOOPS then this error is not coming up.

From a search online, I found that an error number of zero means that either the database is down or that it reached its connection limit. Neither of these is true in my case.
Any offeres for explaining this behaviour?

Thanks,
George



67
kalamata
Can someone explain this?
  • 2006/6/13 12:22

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I made a small modification to the code for the xfguestbook module (will post it as soon as I am sure that it works) and run into the following problem that I can not understand:

I want to delete all modules waiting for validation, so I created a duplicate of the delete routine and call it from the main menu. What is happening is that if I use the code in delete

if (!$result = $this->db->query($sql)) {
echo "Problem with deletion!", mysql_errno();
return false;
}
to perform the deletion it will return an error number of zero, whilst if I run it the traditional way:

mysql_query($sql)

this works fine without any problems at all.

I should note here that when I use the code of delete in XOOPS then this error is not coming up.

From a search online, I found that an error number of zero means that either the database is down or that it reached its connection limit. Neither of these is true in my case.
Any offeres for explaining this behaviour?

Thanks,
George



68
kalamata
Re: Inserting a user in the XOOPS database
  • 2006/6/7 11:58

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Quote:

xuser wrote:
kernel/user.php, u must learn about how XOOPS core run at first


Sounds good. Any pointers for tutorials regarding the core?

George



69
kalamata
Re: Inserting a user in the XOOPS database
  • 2006/6/7 11:57

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Hi gtp00,

I am already a member of XOOPS Greece and trying to find some time so that I can help with the documentation project.

Cheers,
George



70
kalamata
Re: Inserting a user in the XOOPS database
  • 2006/6/3 18:40

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Hi Quest,

Thanks for your reply. I didn't exactly mean that - what I want to know is once the user hits the register button of the registration form what are the XOOPS file involved in the process of registering the user, not how you can do it through the interface.

Thanks,
George




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 12 »



Login

Who's Online

196 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 196


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