31
kalamata
Block Refreshing
  • 2007/2/26 19:20

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I want to put a form in a custom block and every time the user clicks on the Submit button, the content of the block will change according to the user input. One way of doing that is pointing the action to PHP_SELF and use $_GET to get the values of parameters. However, this seems to be bad practice as the whole page is reloaded and takes time and frustrates the user.

Is there any way that I can ask only the particular block to refresh its contents (in a way similar, say, to shoutbox)?

I look forward to hearing from you soon.

Thanks in advance.

George



32
kalamata
Re: Cloning Modules
  • 2007/2/4 18:36

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


I am talking about vlweather. What do you mean adjusting the templates? As they are in different folders, they count as different ones even if they have the same name, do they not?

George



33
kalamata
Cloning Modules
  • 2007/2/2 19:26

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am trying to clone a module so that I can use it for testing purposes. I made the changes in the xoops_version.php file and also the amendments in the sql file. I, then, opened up all files and changed the old names of tables in SQL queries to the new ones.

When I load up the page, if both blocks are visible, then I get a blank page (PHP debugging reports nothing)and if one of them is visible then the page works fine.

What do I need to change to have both modules active?

Thanks,
George



34
kalamata
Re: PHP variables in templates?
  • 2007/1/12 14:28

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Works like a charm - many thanks!!!

George



35
kalamata
PHP variables in templates?
  • 2007/1/12 13:21

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

Would it be possible to use PHP variables in block templates? The problem I am having is as follows: I want to give my users the option of switching between themes - however the template as it stands at the moment changes the template but takes you back to the index page. So, if the user was looking at the guestbook module he has to navigate back to it after changing the theme.

To solve that, I tried to replace index.php with <?php echo $PHP_SELF ?>, but the template simply refused to work. The action file does not have to be index.php as any file you replace it with (e.g. www.mysite.com/modules/xfguestbook) will work as well - my understanding is that theme selection happens in header.php and all files import it in one or another way.

How can I resolve this?

I look forward to hearing from you soon.

Thanks in advance.

George



36
kalamata
Re: What does the level attribute in xoops_users table represent?
  • 2006/12/13 13:05

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Is that documented somewhere? What code should I look at to check these values? Surely, users can not have level values assigned randomly to them as long as they are not zero or minus one.

George



37
kalamata
Re: What does the level attribute in xoops_users table represent?
  • 2006/12/12 15:13

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Some of my users have their level attribute set to 5 or 2. What would these values represent?

Thanks,
George



38
kalamata
XOOPS Themes Block
  • 2006/12/12 15:05

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

My idea of how the themes block is that you select a theme and then the page will reload and the theme variable should be set to the value you choose. However, no matter what I select the page reloads with the same theme applied to it. I have made all installed themes selectable and the option of whether to update the template files has been set to yes.

What might be wrong?

Thanks,
George



39
kalamata
What does the level attribute in xoops_users table represent?
  • 2006/12/12 11:29

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am not very clear about what the level attribute in the xoops_user table represents and where it is used. I had a look at the XOOPS documentation and run a search on the site, but no luck.

Could anybody please help?

Thanks,
George



40
kalamata
Level attribute of the xoops_user table
  • 2006/12/5 21:22

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am not very clear about what the level attribute in the xoops_user table represents and where it is used. I had a look at the XOOPS documentation and run a search on the site, but no luck.

Could anybody please help?

Thanks,
George




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



Login

Who's Online

189 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 189


more...

Donat-O-Meter

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

Latest GitHub Commits