231
nachenko
Re: newBB forum: threads dissapear
  • 2007/2/16 14:43

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


OK, in this version the value seems there is a selection box, but not a config option. It uses 1000 days as "all" (woa, less than three years is "all")

Just hardcoded it to show all.



232
nachenko
newBB forum: threads dissapear
  • 2007/2/15 16:50

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hi!

An old customer noticed this: Threads seem to dissapear from time to time.

Look at the forum:

http://www.marruecosdigital.net/xoops/modules/newbb/

Look the table, look any row. First number is number of threads, second is number of posts. Open any forum and look there are always less than expected.

No-one is deleting threads. In fact, when querying the database the threads are all there, stored. It's just like the system is not showing some threads (old threads?).

What's happening? I don't want to update, the forum works fine, it's just that. I'd prefer to hack the code. I'm sure it's just one or two lines, but I can't find the problem.

Thank you.



233
nachenko
Re: Problem with form of news module
  • 2007/2/8 10:28

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Same problem here, I fixed it this way: removing the "if" statement on "submit.inc.php". It's an odd behavior, and it's nonsense. Only approvers have the right to write extended text and write metadata? Why can anonymous users send titles and scoops but not extended text even if we allow them to send via permissions? What's the point on that?
Quote:
// if ($approveprivilege) {
$sform->addElement(new XoopsFormDhtmlTextArea( _AM_EXTEXT, 'bodytext', $bodytext, '25', '',''), false);

if(getmoduleoption('metadata')) {
$sform->addElement(new xoopsFormText(_NW_META_DESCRIPTION, 'description', 50, 255, $description), false);
$sform->addElement(new xoopsFormText(_NW_META_KEYWORDS, 'keywords', 50, 255, $keywords), false);
}
// }



234
nachenko
Re: update user permissions on the fly, without login out
  • 2007/2/7 13:14

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Ooopa, fixed.

But in a very dirty way:

Quote:

// add to group 15 for this session
array_push ($_SESSION['xoopsUserGroups'], "15");


Any cleaner one?



235
nachenko
Re: update user permissions on the fly, without login out
  • 2007/2/7 13:06

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


OOpa, I see $_SESSION data is not updating.

$xoopsUser->setGroups($grupos) is not working as I expected, it updates the $xoopsUser object but not the session.



236
nachenko
update user permissions on the fly, without login out
  • 2007/2/7 13:00

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hi!

I just wrote a script that checks whether a user fulfilled a form (created using Formulaire module). If it is the case, it checks whether this user belongs to a group we could name "special registered users", so to say.

IF the user belongs to this group, then it goes to a "special news category".

If it doesn't, the script adds this user to this user group and then goes to the "special news category".

And here's the problem: the user is added to the groups database succesfully, but it has to log out and then login for the changes to take effect. It seems like the $xoopsUser object not updating until login on again.

After lots of tries I now this is exactly the problem: the new groups and permissions of this user don't apply until he/she logs out and in again. $xoopsUser object doesn't update while in a session.

What can I do?

Thanks.



237
nachenko
Re: Include block by hand in theme
  • 2006/11/22 13:14

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


uh, fixed.

Should replace XOOPS_URL by XOOPS_ROOT_PATH.

That was all. Anyway, BOOX is a simple and great idea.



238
nachenko
Re: Include block by hand in theme
  • 2006/11/22 12:15

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Man, thanks a lot. This fix the problem, but I still have the curiosity. What's wrong in my script?



239
nachenko
Include block by hand in theme
  • 2006/11/22 12:00

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hi!

I'm trying to include the system menu in a theme. Instead of locating it on one of the predefined places i'm trying to call it from the theme.html file, doing this:

Quote:

<{php}>
// Show main menu in top of the page
require_once (XOOPS_URL."/modules/system/blocks/system_blocks.php");
$mainmenu = b_system_main_show();

etc...


Is you see, I include the file that defines the block. Then call teh function that generates the PHP data that I later use to build the menu.

Everything goes fine until i remove the mainmenu conventional block, then I receive a 'fatal error: call to undefined funcion "b_system_main_show"'

What's wrong? I require the file that contains that function, so I'm sure it has been properly loaded. The functions scoop is suposed to be global. What am I doing wrong?



240
nachenko
Xlanguage and mails
  • 2006/10/24 9:50

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hi!

I'm using xLanguage 2.04 and works fine except for mails. It simply doesn't clean them, so when it takes the title of the site as "From Name" it writes:

[es]Segundo congreso internacional `Sinestesia, ciencia y arte´[/es][en]Second international Congress `Synaesthesia, Science & art´[/en]

I need to call the xLanguage module to clean the "From Name" field before sending the mails, but I can't find any documentation about that. In fact, there's very little documentation about the module itself.

Ideas?




TopTop
« 1 ... 21 22 23 (24) 25 26 27 »



Login

Who's Online

153 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

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

Latest GitHub Commits