51
jordi_rc
undefined index errors in header.php
  • 2006/10/13 14:17

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Salute to all XOOPS friends.

I am trying to remove bugs from modules.

I've noticed many modules throw errors like this:

Undefined index: ... in file /header.php line ...

Where I put the ... there is a number.
The lines where the errors are produced in header.php usually go from 88 to 98.

What are this errors? How to fix them?

I suppose they have to do with something that is not done following all XOOPS protocols. Maybe something that has to deal with templates or some declaration.

What is?
Please help to fix.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



52
jordi_rc
Re: Where should I post the bugs solved for a module ?
  • 2006/10/12 18:34

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello davidl2

Sorry I mean where to upload the bugfixed module, not download.

For example Contact_plus module had a syntax error and some others have constants already defined for XOOPS 2.0.15 that throw errors.

I also found some errors in online_members, and fixed them. Many people use online_members (membros_online.


Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



53
jordi_rc
Buddyfriends module vs directfriends
  • 2006/10/12 13:42

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello.

I was trying to make DirectFriends module work in XOOPS 2.0.15, wich is impossible due to the big number of bugs.
I suggest you remove it from the module repository, or explain that it only works in some old releases of xoops.

Instead of using that, I tested BUDDYFRIENDS module and at least it works. It has some bugs, but I will try to fix them.

There are some variables not defined, like $p, that seem not to have sense, and some variables not defined that need to, and some already defined constants that throw errors, BUT WORKS OK!

I would need to know if someone has done some improvements over buddyfriends module (wich is based on directfriends) and may help me to fix the bugs.

I also will be happy if someone can help me to fix the bugs, maybe we can work together by email or msn, yim, or jabber, and when we finish fixing the bug, post the module as Buddyfriends 2.4 or something, GPL, to contribute continue developing it by XOOPS community.

Someone wants?

Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



54
jordi_rc
Where should I post the bugs solved for a module ?
  • 2006/10/12 13:35

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello!

I am fixing bugs in the modules I installed in my server, and I wonder where should I post the module as is now, without the bugs that I found.
This may be a way to help people developing it, or help to improve them.

WHere do I download the bugfixed versions of modules?

Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



55
jordi_rc
Re: Direct Friends Problem
  • 2006/10/11 16:16

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello! I am building my XOOPS site and want to have something like this module.
I tried to make it work, removed some bug but I didn't manage it to run on XOOPS 2.0.15. Many problems with header.php and others...

Since I removed the bugs of some other modules, I don't know why this is so hard to fix.

robbhammack could you please email me if you got something that works with this module, and I will try to work from that and if I got all working, I will paste a link here to download the work. Maybe if we all try together we have it working ok, since there is nothing as this module, it seems, and many of us need it.

I thought to make a module from the beginnig for this.
I suppose it would work this way:

1) make a db that stores 2 fields: username and list of uids of friends. Or maybe alter the xoops_users db and add a field that stores uid of friends.
2) a block for adding a friend
3) a block of showing friends on line possibly based in membros_online (online_members) module.

Please email me your work if you like.

Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



56
jordi_rc
Re: Random Member ... ?
  • 2006/10/10 20:46

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello.

I just have read this some minutes ago, tested in my site and find the code great, but I can contribute with some improvements:


Quote:


$random_member = mysql_fetch_assoc(mysql_query("SELECT uid, uname, user_avatar FROM xoops_users ORDER BY RAND() LIMIT 1"));

echo "<div align='center'>";
echo "<strong>Random member:</strong><br />";
echo "<a href='userinfo.php?uid=$random_member[uid]'>$random_member[uname]</a><br />";
echo "<img src='./uploads/$random_member[user_avatar]' alt='avatar' />";
echo "</div>";




This way, it will work perfect for any XOOPS version and template. Using div instead of p, and using echo instead of print, it will use the XOOPS theme perfectly.
It also has a syntax error, at least if you use it on Linux, in img src, you must add a . before the /.
src='./uploads/
and not
src='/uploads/
or it won't load the image.

And after this, please tell me how to display the last member joined, and how to add 2 links to roll from one member to the precedent or the following, under the image.
This is to make a block showing the last member that joined.

Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



57
jordi_rc
Re: How to change a user profile length of a field
  • 2006/10/10 18:57

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Yes m0nty I did it but after modifying it and changing the database it still says that it is too long.

What a weird thing!

By the way, nice hack m0nty!

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



58
jordi_rc
How to change a user profile length of a field
  • 2006/10/10 17:25

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello!

I am hacking the hacks and modules of my XOOPS site, and I changed all the user profiles estructure, but I have a varchar(60) field that I named "quote" to display the prefered quote of a member and now I would need to make it a bit longer, for example varchar (150) .

But unfurtunelly I tried it from PHPmyAdmin but when the user inserts a data longer than 60 he gots a message saying it is too long.

Is the lenght of user's input hard coded somewhere so it don't works even if I alter the database?

I proceeded hacking from profiles+photo hack, and changed almost all to make it fit to my personal purposes.

Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



59
jordi_rc
Re: module xoops stats
  • 2006/10/9 9:26

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Yes it says that, missed an s.

Now, what is the bug? Any ideas?


Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR



60
jordi_rc
module xoops stats
  • 2006/10/8 19:05

  • jordi_rc

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/8/21


Hello

I was trying to eliminate all the bugs I have in my XOOPS modules, and I have one in module statistics that I don't know how to fix.

It says:

"Notice: unserialize () [function.unserialize]: Error at offset 0 of 6 bytes in file /modules/statistics/include/hitcounter.php line 383"

If I go to hitcounter.php and read line 383 I have this:

$options = unserialize( striplashes( $optionsret[0] ) );

Someone knows why is this module doing such a bug?
I use XOOPS 2.0.15 and this module is Site Statistics v 0.6 by IBDeeming, also named XOOPS stats.

Thanks.

Jordi
"Battles are fought by those with the courage to believe. They are won by those who find the heart to share." -MANOWAR




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



Login

Who's Online

241 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 241


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