1
kaabaal
Re: News 1.3.11 and Xoops 2.2 bugs
  • 2005/8/6 19:21

  • kaabaal

  • Just popping in

  • Posts: 6

  • Since: 2005/5/14


You are right. News 1.3.11 wants to use the login name in place where it should use the display name (it is new feature in XOOPS 2.2 to have a separate login and displayname). That doesn't work, so it gets an empty string in return, so it fall back on real name.

BUT:

I fixed it , in news/class/class.newsstory.php replace

Quote:
switch($option) {
case 1: // Username
$tblusers[$uid]=XoopsUser::getUnameFromId($uid);
return $tblusers[$uid];


by this:

Quote:
switch($option) {
case 1: // Displayname
$member_handler =& xoops_gethandler('member');
$thisuser = $member_handler->getUser($uid);
$return=$thisuser->getVar('uname');
$tblusers[$uid]=$return;
return $tblusers[$uid];


You can find it around line 680



2
kaabaal
Re: xcgal + xoops 2.2
  • 2005/8/5 0:55

  • kaabaal

  • Just popping in

  • Posts: 6

  • Since: 2005/5/14


If you can read german, see this thread here

And if you can't read German:
Download the xcgal package from 'mcleines' (on page 4 in the above mentioned thread) here

Still one problem you have to solve: Using this patched version you notice double menus when viewing intermediate photos (in other words: When calling displayimage.php).

Edit by hand: displayimage.php of the patched version.
delete or comment out (// in front of the line) line 363
" include XOOPS_ROOT_PATH."/header.php";"

... but for my "xoopssite-to-be" myalbums-p fits better too, i'm adding a "link to unresized original pic" hack to it because I need this. xcgal has that advantage over myalbum-p, but myalbum-p supports the XOOPS notification system and is clonable up 4 instances, I do need those two options too.

So finally I ended up patching/hacking myalbums-p after patching/hacking xcgal and not being satisfied with is in the first place after reviewing it...

Well, anyways, I hope I have helped you.



3
kaabaal
Can't get "notify by mail" to work with news1.2 and newer or AMS2.41, but it DOES work with news1.1
  • 2005/5/31 15:54

  • kaabaal

  • Just popping in

  • Posts: 6

  • Since: 2005/5/14


OK, I've set up AMS2.41 on xoops2.0.10 on debian sarge (kernel 2.6, apache2,mysql,php4.3,exim4).

I configured AMS to allow registered users to submit articles, an admin has to approve it before it's viewable by the public (anonymous, registered users and admins, but that's irrelevant to my question).

Now, everything works as it should exept one thing:

When the registered user selects "notify by mail when published", he gets no notify at all, not by mail nor by PM, when an admin aproves the article. Note that my mailserver IS working, when I do the same with the standard news1.1 module it works fine, when users register they get the activation e-mail etc.

But: The problem is not only wth AMS, it also occurs with newsv1.2 and newsv1.3 and 1.3.1 etc, but since AMS is based on news1.2 maybe a bug slipped in here...

Another strange thing I noticed is that when I want to approve a submitted article I still see the "notify by mail when published" checkbox. I think this is strange because when a registered user selects that he wants to be notified an admin has no right to overrule this.

I searched the AMS related forums onhttp://www.it-hq.org/ and the forums here and I used google, but it seems like I'm the only one having this problem. What am I doing wrong ?
Thanks in advance and keep up the good work!




TopTop



Login

Who's Online

163 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 163


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