41
dejadingo
Re: Please help
  • 2006/1/29 2:28

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


Here's an explanation from PHP Documentation that shows what is going on.

My provider seems to have just upgraded to PHP 4.4.1 and my test site, which runs with debug turned on, now sports a flood of these "Warnings". Is there any hope we can get some of this cleaned up soon so that the real errors and warnings are visible again?

- Thanks



42
dejadingo
Re: Session hijacked?
  • 2005/12/20 1:55

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


Sorry for the *bump* but ..
Can anyone help me with session issues?

- How could an anonymous user send a ContactUs message with my Webmaster user and email?
- Why are there multiple records with the same IP in the xoops_session table?

Thanks.



43
dejadingo
Session hijacked?
  • 2005/12/19 21:04

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


I'm still using XOOPS 2.0.9.3 (pressed for time at the moment) and Saturday I had two ContactUs emails that seem to have assumed my Webmaster user ID -- my email is in the From header on the primary email and the confirmation email was addressed to my webmaster user name and sent to my webmaster email!

This makes me very nervous. Is this a session hijack issue? I can't see anything in the code that might lead to this result.

Thanks.



44
dejadingo
Block for my module
  • 2005/4/8 4:20

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


I created a simple module and now I want to add a block.
I copied/modified the necessary pieces from a system block to create
1) xoops_version.php
$modversion['blocks'][1]['file'] =
$modversion['blocks'][1]['name'] =
$modversion['blocks'][1]['description'] =
$modversion['blocks'][1]['show_func'] =
$modversion['blocks'][1]['template'] =
2) templates/blocks/mymod_block_stuff.html
contains the html to display block content
3) blocks/mymod_blocks.php
contains the show_func function

The module update succeeded, but after configuring Groups and Blocks for it to be visible as a R-Block, nothing displayed. Echo tracing revealed that the show_func function was being called but <{$block.content}> was empty in my theme.html.

I found the original problem - I spelled the template file wrong in xoops_version.php. But after correcting this misspelling, now the module will not update. The page rendering of the module update process stops with the line
<div class='content'><br />

Even with just a hard coded unordered list in the block template file, the update still fails. Neither PHP Debug nor Smarty Template Debug show any errors.

Where should I look for the problem?
[Xoops 2.0.7.3]

Thanks.



45
dejadingo
Have to login twice to my closed site
  • 2005/1/30 4:57

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


Can anyone think of a reason why I would need to login twice when my site is closed (XOOPS 2.0.7.3)?

Strangely, this is only the case with the (nearly) production server (UNIX) and not with my test server (WIN2K). I get past the first login and to the home page (it's the "home" module), but selecting any menu item on the page brings back the site closed login page.

If I log in again at this point, everything is fine. Or if I back the browser out to the first site closed login screen and login there again, it also works.

I have double-checked (as best I can) that the files are the same on both servers. The only real difference I can see is that the test server has the XOOPS code in a sub-directory (public_html/xoops_html : where the virtual host name points to public_html) whereas the hosted production server has the XOOPS code in public_html, which is the target of my domain name on the server.

Thanks.



46
dejadingo
Koivi and Firefox
  • 2004/12/17 20:31

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


Can someone explain the issues which prevent Mozilla browsers (namely Firefox on the mac) from doing cut/copy/paste in the Koivi WYSIWYG editor?

I'm totally frustrated with the mac browsers.
thanks ...



47
dejadingo
Re: Smarty tag brackets -vs- curly braces in string
  • 2004/12/3 0:54

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


I also commonly see it in header() function calls. And now I understand...
It _is_ a PHP thing I don't know about. I found this at
http://us2.php.net/language.types.string
Hope it helps someone else trying to wade into this.

-------------

Complex (curly) syntax

This isn't called complex because the syntax is complex, but because you can include complex expressions this way.

In fact, you can include any value that is in the namespace in strings with this syntax. You simply write the expression the same way as you would outside the string, and then include it in { and }. Since you can't escape '{', this syntax will only be recognised when the $ is immediately following the {. (Use "{\$" or "\{$" to get a literal "{$"). Some examples to make it clear:
<?php
// Let's show all errors
error_reporting(E_ALL);

$great 'fantastic';

// Won't work, outputs: This is { fantastic}
echo "This is { $great}";

// Works, outputs: This is fantastic
echo "This is {$great}";
echo 
"This is ${great}";

// Works
echo "This square is {$square->width}00 centimeters broad."

// Works
echo "This works: {$arr[4][3]}";

// This is wrong for the same reason as $foo[bar] is wrong 
// outside a string.  In other words, it will still work but
// because PHP first looks for a constant named foo, it will
// throw an error of level E_NOTICE (undefined constant).
echo "This is wrong: {$arr[foo][3]}"

// Works.  When using multi-dimensional arrays, always use
// braces around arrays when inside of strings
echo "This works: {$arr['foo'][3]}";

// Works.
echo "This works: " $arr['foo'][3];

echo 
"You can even write {$obj->values[3]->name}";

echo 
"This is the value of the var named $name{${$name}}";
?>



48
dejadingo
Smarty tag brackets -vs- curly braces in string
  • 2004/12/2 17:42

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


Can someone please explain the difference between these two constructs?

I understand the Smarty tag brackets "<{ $some_value }>"

But I also see a number of strings that appear to be used as a kind of dynamic Smarty template, which contain PHP variables simply enclosed in curly braces. I even think I came across some more complex PHP code inside curly braces.

Is this a PHP feature I don't yet know about?
When and how can this be used?

Thanks.



49
dejadingo
Re: User Profile form (junk at bottom?)
  • 2004/12/1 22:28

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


OK - Thanks, I guessed as much.

So ...
1) Is there some way to turn off the search list at the bottom of the user profile?
2) Is the search based on the madule you are in when you open the user profile?

BTW - I'm glad it showed up at least once cuz I was wondering how I was going to test the search for my newly developed module.



50
dejadingo
User Profile form (junk at bottom?)
  • 2004/12/1 18:53

  • dejadingo

  • Just popping in

  • Posts: 71

  • Since: 2004/10/22


What's supposed to be below the User Profile form?

I'm getting there because the user I am testing with has no permissions for the admin function I select. But there is some stuff below the form, and an error listed below the page. It looks like it is trying to execute the search function for the module set as my home page (I have no idea why), but it's getting the following error
Notice [PHP]: Undefined indextime in file i:testsitestestdejadingopublic_htmlxoops_htmluserinfo.php line 179

I don't understand this part of the code well enough to figure out what's happening. Is this a bug?

Thanks.




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



Login

Who's Online

227 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 227


more...

Donat-O-Meter

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

Latest GitHub Commits