1331
trabis
Re: How can I show the Avatar in another Module??
  • 2008/10/23 20:19

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


You can change userpage_list.php and replace the foreach loop by this one:
foreach($pages as $page) {
    
$page->setVar('dohtml',$allowhtml);
    
$page_user = new XoopsUser($page->getVar('up_uid'));
    
$xoopsTpl->append('pages',array(
        
'up_pageid' => $page->getVar('up_pageid'),
        
'up_uid' => $page->getVar('up_uid'),
        
'user_name' => $page->uname(),
        
'user_avatar' => XOOPS_UPLOAD_URL.'/'.$page_user->getVar('user_avatar'),
        
'up_title' => $page->getVar('up_title'),
        
'up_text' => $page->getVar('up_text'),
        
'up_created' => formatTimestamp($page->getVar('up_created'),userpage_getmoduleoption('dateformat')),
        
'up_hits' => $page->getVar('up_hits')
    ));
}


Not tested.
Please, include the image html tags. The above is just for the picture source.






1332
trabis
Re: xoops not functioning
  • 2008/10/23 17:44

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


There is not much that index.php does and user.php does not so, I think you may have your index.php file broken. My sugestion is to replace index.php with the original one.



1333
trabis
Re: Problem with many modules
  • 2008/10/23 13:11

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

McDonald wrote:

Best is to comment out these lines in all files of X23 when having probs with mods.


Are you really sure, McDonald?

Functions exists to maintain backward compatibility, and messages are there to remind you that your modules are needing some update (or not).



1334
trabis
Re: Problem with many modules
  • 2008/10/23 13:02

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Search and replace old php vars such as $HTTP_POST_VARS by $_POST, $HTTP_GET_VARS by $_GET, etc...



1335
trabis
Re: Can't access Site
  • 2008/10/22 18:09

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


laughoften, delete the theme from your host and upload it again. Sometimes the ftp client does not replace the files as it should. Double check if you are really uploading the original files. Maybe you could download them again from the author site. Good luck!



1336
trabis
Re: Can't access Site
  • 2008/10/22 13:08

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


http://www.sellersarena.com/?xoops_theme_select=default

Go there, then enter administration and change your theme to default. THis will give you time to look better into your theme.



1337
trabis
Re: Problems with cloning of modules - redeclaration of function. in two different modules.
  • 2008/10/21 12:58

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:
Why do I get this problem, It doesn't helps to rename the function in one of the modules together with where it is called from. så that i calls the right function.


You really need to change your functions name, especially if:
You want to use blocks of both clones in the same page
You have a module that is using functions from both modules
xoops_version.php is using any function inside it.

If you want you can email me the original module and I will try to make it clonable.



1338
trabis
Re: 2.3.1 - Administrator username changed to Administra
  • 2008/10/19 16:32

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


If I remember well, that happened to me, but your step 3 is incorrect:

"
3. he edited his profile, but he did NOT change his username or want to change his username."

When your friend edited his profile his username was truncated to 10 (but he probably did not noticed)
So he did acepted the changes made to username when he hit the submit button.

I do not know if this logic is correct. I would prefer that the system kept the current username in the form and did not force the user to change to a shorter username.



1339
trabis
Re: Error debug in
  • 2008/10/19 16:03

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

lapsa2000 wrote:
Thanks for the answer ...

Can tell as fix this?


Undefined index: tag in file /modules/xlanguage/include/functions.php line 258

THK


You have to look in the code.
If you find something like:
If ($somevar['tag'] == 'something')

You should do

If (isset($somevar['tag']) && $somevar['tag'] == 'something')









1340
trabis
Re: Xoops is over loading the server
  • 2008/10/17 12:55

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

young wrote:
this is not only happened to xoops, i has discuss with the hosting company, even using others scripts or cms, shared hosting is not suitable for high traffic sites.


True, my site is around 200 users online and shared hosting is not suitable anymore.

Atention, your XOOPS is taking to much time to load. I believe that the problem is in a bad query. Perhaps you have a table with thousands of entries like a news module or something and you have a select statement without any limit. This has happened to me with the news module when using 'previous and next article' option The query was selecting 15000 news and the more news I had, the more slow my site become. This was a slow death, a killing me softly bug. Ask your hosting company if they know what is the file that is consuming resources. Probably it is in the module most used in your website.




TopTop
« 1 ... 131 132 133 (134) 135 136 137 ... 190 »



Login

Who's Online

87 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 87


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