Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse adslight AntiHarvesting AntiMalUser AntiSpam API Australia Ban banner Beats billige black Blocks blue Captcha cell Christmas chronolabs content Conversion database demo docek download Dresses editor evden eve facebook Federated floor free Gateway herre Honeypot Human IP jQuery kantor lamps Legal log logger mobile module modules Monster MyAlbum-p Networks newbb news Notices online PageRank pdf Permissions pink Plugin portal Prevention profile project Protector publisher release Rights rmcommon Room sale security SERIAL Server site Smarty Spam statistics stem Studio tag tags tdmcreate template Theme themes userlog website Whitepaper XML XooLaT xoops Xoopspoll Xortify xthemes Yolande ZendFramework

New Users

Registering user

# 136015

handrick12

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post

« 1 2 3 (4) 5 »


#31 Posted on: 2009/8/8 21:30 Re: PHP-Debugging without XOOPS
Hi, I have made a logger pack with default, pqp and firephp.
http://www.xuups.com/loggerpack.rar

You need to install it over XOOPS 2.4 to take advantage of the query time logging. You can download the beta from SVN:
http://xoops.svn.sourceforge.net/view ... ore/trunk.tar.gz?view=tar

This is done with minimal hack, only class xoopslogger is overwritten. You can choose the logger you want to use in xoops_data/configs.php

Firephp is not fully implemented but, maybe you can merge your smarty work using this new interface. Thanks.

Top

trabis
Core Developer
Core Developer
Joined:
2006/9/1 13:10
From Portugal
Group:
Registered Users
Webmaster
Posts: 2198
(Show More) (Show Less)


#32 Posted on: 2009/8/8 22:18 Re: PHP-Debugging without XOOPS
wow pqp is fantastic, tnx Trabis

Top

urbanspacema
Quite a regular
Quite a regular
Joined:
2004/9/19 15:25
From Italy
Group:
Registered Users
Posts: 265
(Show More) (Show Less)


#33 Posted on: 2009/8/9 1:40 Re: PHP-Debugging without XOOPS
Excellent! So rapidly my litte project started so rapidly it came to an end.

In fact if you need smarty debugging just log $xoopsTpl. Only thing which COULD be added is making a switch for selecting the groups e.g. like I did for all, regs only or admins only.

Thx Trabis

Top

frankblack
Just can't stay away
Just can't stay away
Joined:
2005/6/13 3:03
From D-Schiefbahn
Group:
Registered Users
Posts: 785
(Show More) (Show Less)


#34 Posted on: 2009/8/9 6:35 Re: PHP-Debugging without XOOPS
Quote:

frankblack wrote:
Feels like an accolade to hear this from you. Really! I admire your whole work, so this compliment makes me feel proud.

You should not, you are much more better than me.
Working with good tools is still more pleasant and with this tool it's a real pleasure.

I have always wanted to do a such work for FirePhp and FireBug but never took the time to do it.

I will just permit myself to modify your example like this :
require_once XOOPS_ROOT_PATH.'/Frameworks/FirePHPCore/FirePHP.class.php';
FirePHP::getInstance(true)->log($yourvariable);

it is less readable but it avoid to declare a variable
It's only for the case where you want to see one variable's content.

If the different methods of the XOOPS kernel and classes could chain like this, it will be very useful.


Top

hervet
Friend of XOOPS
Friend of XOOPS
Joined:
2003/11/4 7:49
From France
Group:
Registered Users
Posts: 1948
(Show More) (Show Less)


#35 Posted on: 2009/8/10 4:51 Re: PHP-Debugging without XOOPS
Hi frankblack. I understand your frustation with xajax. I used xajax in my modules in the past also.
I've since switched to jquery. It's so much easier to make ajax calls (and so much more)! You will be amazed how much time and effort you can save.
Want to include a php file in a certain <div> when a link is pressed? Here's the jquery code:
<class="ajaxify" href="example.php" target="#container">Click here</a>

So now, when a link with the class (could also be an ID) "ajaxify" is pressed it will load file "example.php" into a target <div> (could be ul,table, etc) with id "container". It's really that simple.
In case your interested, here's the jquery plugin I'm using:
http://maxblog.me/ajaxify/demo.php


Top

kaotik
Just can't stay away
Just can't stay away
Joined:
2004/2/18 21:32
Group:
Registered Users
Posts: 751
(Show More) (Show Less)


#36 Posted on: 2009/8/10 4:53 Re: PHP-Debugging without XOOPS
trabis: nice work with your module. I'm going to try it. I was familiar with pqp but seeing it in XOOPS should very interesting

Top

kaotik
Just can't stay away
Just can't stay away
Joined:
2004/2/18 21:32
Group:
Registered Users
Posts: 751
(Show More) (Show Less)


#37 Posted on: 2009/8/10 4:57 Re: PHP-Debugging without XOOPS
frankblack: another advantage that xajax can't do: history and bookmarking. When a user clicks on the browser back button, he's taken to the previous ajax call. The same with bookmarking.

Top

kaotik
Just can't stay away
Just can't stay away
Joined:
2004/2/18 21:32
Group:
Registered Users
Posts: 751
(Show More) (Show Less)


#38 Posted on: 2009/8/10 5:28 Re: PHP-Debugging without XOOPS
@kaotik: of course I could use jquery, but this would mean to rewrite a lot of functions in my module. So maybe later. Besides when XOOPS becomes XHTML strict in a day far in the future (still even not XHTML transitional), we have to remove the target attribute which is now used with ajaxify.

About history and bookmarking: there are workarounds for that if I remember correctly.

Top

frankblack
Just can't stay away
Just can't stay away
Joined:
2005/6/13 3:03
From D-Schiefbahn
Group:
Registered Users
Posts: 785
(Show More) (Show Less)


#39 Posted on: 2009/8/10 13:28 Re: PHP-Debugging without XOOPS
be careful because this hack stop jQuery in the new Oxygen control panel. (tested on FF)

Top

urbanspacema
Quite a regular
Quite a regular
Joined:
2004/9/19 15:25
From Italy
Group:
Registered Users
Posts: 265
(Show More) (Show Less)


#40 Posted on: 2009/8/11 4:57 Re: PHP-Debugging without XOOPS
Thanks for the heads up. Have you identified the conflict?
I'll investigate. If it still doesn't work I'll just do my ajax calls directly from jquery

Top

kaotik
Just can't stay away
Just can't stay away
Joined:
2004/2/18 21:32
Group:
Registered Users
Posts: 751
(Show More) (Show Less)




« 1 2 3 (4) 5 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]