11
stpamx
Is it possible to check for a pagetype within my theme
  • 2003/12/4 19:57

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


Insert this around the top of your theme file:
<{php}>
$module $GLOBALS['xoopsModule'];
if ( isset(
$module) ) {
    
$module $module->getVar('dirname');
} else {
    
$module 'system';
}
$GLOBALS['xoopsTpl']->assign('modname'$module);
<{/
php}>


All the lines below this block will then be able to acces the new variable "modname" (that's why I told you to put this around the top).
Example:
<link rel="stylesheet" href="<{$xoops_imageurl}><{$modname}>.css" />

or

<
body class="<{$modname}>">
...


Skalpa.>



12
stpamx
Re: Unable to Update NEW fields in Users
  • 2003/11/6 16:09

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


I cannot really help you as I am new in xoops.
However when I added new fields in users file I changed approximately 7-8 php's.

If you send me your email with a private message, I will send you all the code I changed to make it work,



13
stpamx
Re: Unable to Update NEW fields in Users
  • 2003/11/5 8:11

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14



NO PROBLEM I FIXED IT



14
stpamx
Unable to Update NEW fields in Users
  • 2003/11/5 0:34

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14




NO PROBLEM I FIXED IT

I need to add a few fields in users Table.

first I created these fields directly with MySQL in Users Table.

Then I changed all related program to display/Update/Create these fields.
Display so far is perfect.

However when I try to register a new user, or try to Edit a users profile, I get an SQL error.
Also Php debug, gives the following error.

Warning: sprintf(): too few arguments in
c:\xoops\easyphp\www\cb\html\kernel\user.php on line 541
whivh refers to statements

$sql = sprintf("INSERT INTO %s (a, b etc) to register

OR

$sql = sprintf("UPDATE %s SET a = %s, b = %s, etc) to edit the user profile


Of course this happens only when I am adding my fields in the SPRINTF statement.

I guess that I am trying to invoke a function with incorrect number of parameters. Where are these sql function so I can change them. I looked Everywhere.



15
stpamx
Re: SOS --- gethostbyname failed
  • 2003/10/24 7:29

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


Thanks I tried it and works.

Thanks a lot



16
stpamx
Re: SOS --- gethostbyname failed
  • 2003/10/22 14:39

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


I really don't know how to do all these.
However I back up my previous project and after i delete it.
I did the same for the second project, and then I installed XOOPS from the beginning. Now I have only one project.

When I tested it and tried to login, the login was succesfull but tried to redirect me to the old project,and I got a page unavailable on the browser.

This indicates to me thar somewhere the system(apachi,or xoops) keeps the path of the old project and that is what I am trying to find.



17
stpamx
Re: SOS --- gethostbyname failed
  • 2003/10/22 12:01

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


Yes. It os offline as I am working locally.

In admin.php
Http://www.xoops.org/backend.php is on line 98 it is XOOPS 2,0,3

all the paths in mainfile,php are correct and are indicating the current project.

apparently after the gethostbyname failed arror the next error is
WARNING:fopen("https://xoops.org/backend,php", "r" - no such file or directory in c:/easyphp/www/aaa/html/admin.php on line 119.

on line 119 in admin,php is where the $rssfile is checked i,e
https://xoops.org/backend,php
any help will be appreciated.



18
stpamx
SOS --- gethostbyname failed
  • 2003/10/22 11:05

  • stpamx

  • Just popping in

  • Posts: 19

  • Since: 2003/9/14


I am working with XOOPS for about a month.
I have installed XOOPS 2.0.3 twice as I am doing two different projects(not themes).
The last 2 days I am getting the error

WARNING: php_network_getaddresse: gethostbyname failed in C:/easyphp/www/aaa/html/admin,php on line 119

followd by other errors.

This happens mainly when I try to sign in (re-direct).
Actully, it redirects it my the other project.

So, I believe that there is some kind of cookie, that keeps data im memory. I clear cache, templates-c, end even I deleted the project, re-installed XOOPS anf retried. At login time it redirects me to the old project. Apparently it brings me back to an old theme of another project.

Any one knows why?




TopTop
« 1 (2)



Login

Who's Online

111 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 111


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