1
rebenta
How do custom blocks to show users? Xoops 2.2.3 and profile module
  • 2005/12/15 11:55

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


I want to know about php scripts to include in custom blocks to show users by criterias, like as: city, country, group, age... The block must search users in the profile module fields (i created the custom fields city, age, ... before) and show users with your avatar and one link to send pm message and one link to profile user. The block must have max number of users to show.

Example:
------------------------------
|Users of Example City |
| avatar avatar avatar |
|Matthew Mary John|
| pm pm pm|
| see more users|
------------------------------

OBS: The underlined fileds are hyperlinks. The "see more users" link must go to the result search of users (profile module) showing users from "Example City".



2
rebenta
Re: Xoops Modules Troubleshot - Questions about compatibility with PHP 5.0.5
  • 2005/11/10 17:28

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


I´ve fix the problem to see topics of cbb. In the page to view topics, you must change the function assign_by_ref by assign:

Before change:
Quote:
$xoopsTpl->assign_by_ref('viewmode_options', $viewmode_options);
unset($viewmode_options);


Final:
Quote:
$xoopsTpl->assign('viewmode_options', $viewmode_options);
unset($viewmode_options);


In the viewtopic.php page.

But to see cbb blocks and news blocks, the page come blank. I´ve search the block page and i didn´t find any error at first look...



3
rebenta
Re: Xoops Modules Troubleshot - Questions about compatibility with PHP 5.0.5
  • 2005/11/9 19:28

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


I´ve found another problem with cbb, to see topics, cbb show:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14109 bytes) in /home/users/r/rebenta/www/rebenta.com.br/class/smarty/Smarty_Compiler.class.php on line 1235



4
rebenta
Re: Xoops Modules Troubleshot - Questions about compatibility with PHP 5.0.5
  • 2005/11/9 11:01

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


The soapbox module 1.5 is having troubles too.



5
rebenta
Re: Xoops Modules Troubleshot - Questions about compatibility with PHP 5.0.5
  • 2005/11/8 15:12

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


Well, i´ve solved the problem with myalbum. The index page have be modified to pass value only (don´t pass by reference)
I´ll comunicate the myalbum developer website.
I´ve installed the cbb and it works corretly!
The piCal module have problems when i go create new category (piCal/admin/categories.php)
But the news module have problems when i will create blocks (latest news) in the index page of Xoops.
The php debug show:
Quote:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 58368 bytes) in /home/users/r/rebenta/www/rebenta.com.br/templates_c/%%D0^D05^D05DAAB4%%db%3Aarts_spot.html.php on line 62
Warning [PHP]: xoops_load_lang_file() [function.xoops-load-lang-file]: Unable to access /home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/language/portuguese/modinfo.php in file include/functions.php line 152
Warning [PHP]: xoops_load_lang_file(/home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/language/portuguese/modinfo.php) [function.xoops-load-lang-file]: failed to open stream: No such file or directory in file include/functions.php line 152
Warning [PHP]: xoops_load_lang_file() [function.include]: Failed opening '/home/users/r/rebenta/www/rebenta.com.br/modules/myalbum/language/portuguese/modinfo.php' for inclusion (include_path='.:/home/servers/php/lib/php') in file include/functions.php line 152
Warning [PHP]: main() [function.main]: open_basedir restriction in effect. File(/home/servers/php/lib/php/include/get_perms.php) is not within the allowed path(s): (/home/users/r/rebenta) in file modules/myalbum2/xoops_version.php line 112
Warning [PHP]: main(include/get_perms.php) [function.main]: failed to open stream: Operation not permitted in file modules/myalbum2/xoops_version.php line 112
Warning [PHP]: main() [function.include]: Failed opening 'include/get_perms.php' for inclusion (include_path='.:/home/servers/php/lib/php') in file modules/myalbum2/xoops_version.php line 112
Notice [PHP]: Undefined variable: global_perms in file modules/myalbum2/xoops_version.php line 113
Notice [PHP]: Undefined variable: global_perms in file modules/myalbum2/xoops_version.php line 121
Notice [PHP]: Constant _MI_TEXT already defined in file modules/xoopspartners/language/portuguese/modinfo.php line 38



6
rebenta
Re: Extend profile don´t show all fields - Xoops 2.2.3
  • 2005/11/7 17:04

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


Everything is ok now.
The problem is with portuguese translate. There is showing options to turn fields to be invisible (oculto) when put it to turn visible (visível) is the right!



7
rebenta
Re: Extend profile don´t show all fields - Xoops 2.2.3
  • 2005/11/7 16:09

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


It´s ok.

There is the content of tables: xoops_user_profile_field (http://www.rebenta.com.br/webmaster/xoops_user_profile_field.htm), xoops_user_profile (http://www.rebenta.com.br/webmaster/xoops_user_profile.htm) and xoops_profile_fieldcategory(http://www.rebenta.com.br/webmaster/xoops_profile_fieldcategory.htm). Maybe it´s possible check for any problem in tables.



8
rebenta
Extend profile don´t show all fields - Xoops 2.2.3
  • 2005/11/7 15:06

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


My website have this problem where only webmaster group users can see all fields of profile users page.
The users group cannot see all your own fields and can´t see complete profile of anothers users.
The permissions are ok. The profile module is the version with XOOPS 2.2. I´ve upgrade XOOPS to 2.2.3 and the problem continue.

You can see the problem in my webpage: http://www.rebenta.com.br

I´ve create a test user for who want see the problem:
user: teste
password: 123456

My website is in portuguese. Check the "menu pessoal" (user menu) and click in "minhas informações" (view account).



9
rebenta
Re: xoops 2.2.3 final extended profile ordering problem
  • 2005/11/7 14:20

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


My problem with extended profile is: the group of users can´´t see your profile complete (including profiles of anothers users) and the group of webmasters can see profile complete.
The permissions are ok. How can i solve this problem?



10
rebenta
Re: Xoops Modules Troubleshot - Questions about compatibility with PHP 5.0.5
  • 2005/11/7 13:25

  • rebenta

  • Just popping in

  • Posts: 30

  • Since: 2005/8/23


The modules who i have found error are:
myalbum 2.86 (in the index page)
news 1.4 (when i open a news to see all)
newbb 2.01 (in some pages of admin and anothers pages)




TopTop
(1) 2 3 »



Login

Who's Online

248 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 248


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