Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: IOS Reservations online hotel booking system for Elxis CMS.
 
Pages: [1] 2 3 ... 6
  Print  
Author Topic: eForum Questions  (Read 11293 times)
rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« on: May 18, 2010, 12:50:38 »

I'm starting this topic for the new eForum component.

So, let's gather some questions over here.

What should i change, so that the "Notify me on replies" option to be by default active, for anyone starting a new topic or replying.

Thanks
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7592



WWW
« Reply #1 on: May 18, 2010, 19:20:42 »

I have set this by default to NO as sending too many e-mails is something any site/server administrator would like to avoid. So only if the user selects to get new replies notifications he gets them. There is also an other issue here. Not all users are allowed to receive notifications as they are only allowed if you have given them this permission. So, the general enable of this option is not correct without first checking the user's permissions.

eForum's user permissions are accessible via $eforum->fuser object.

To enable receiving notifications for replies by default for users that are allowed to get notifications do the following:

Open file components/com_eforum/eforum.php

For new topics:
Go to line 771.
Change this:
$board->notify = 0;
to this:
$board->notify = ($eforum->fuser->p_notif_setreplies == 1) ? 1 : 0;

For replies
It is not good to do that as the user might have selected not to receive replies and by doing that you force him to receive notification while he does nt want to... But as you asked for that here is the answer:
Go to line 843.
Remove this:
$database->setQuery("SELECT COUNT(nid) FROM #__eforum_notify WHERE uid=".$my->id." AND pid=".$board->id);
$board->notify = (intval($database->loadResult()) > 0) ? 1 : 0;

Add this:
$board->notify =  ($eforum->fuser->p_notif_setreplies == 1) ? 1 : 0;


For quote posts
It is not good to do that as the user might have selected not to receive replies and by doing that you force him to receive notification while he does nt want to... But as you asked for that here is the answer:
Go to line 940.
Remove this:
$database->setQuery("SELECT COUNT(nid) FROM #__eforum_notify WHERE uid=".$my->id." AND pid=".$board->id);
$board->notify = (intval($database->loadResult()) > 0) ? 1 : 0;

Add this:
$board->notify =  ($eforum->fuser->p_notif_setreplies == 1) ? 1 : 0;
Logged

rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #2 on: May 19, 2010, 07:25:47 »



Thanks Gianni. My thought is that someone who starts a topic or answers to another, surely would like to be notified for any reply.

...and on the test forum we worked, i always forgot to tick that box  Cool
Logged

rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #3 on: May 23, 2010, 15:36:30 »


A member's email is visible through the member's profile  Shocked

How can this be hidden from all?

this is a must
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7592



WWW
« Reply #4 on: May 23, 2010, 18:49:00 »

Elxis Administration -> components -> softdisk -> section "User profile"
Logged

rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #5 on: May 23, 2010, 19:03:24 »


Thankssss  Wink

it was global!
Logged

rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #6 on: May 23, 2010, 19:39:21 »


Here i am with another question  Smiley  In the Forum's statistics it says (Greek):  Ημέρες λειτουργίας φόρουμ

That's surely is not how many days is the Forum up and running. Maybe it's the site-age.  see attachment

Can this display only the forum's age only, or should i change the expression?



* Untitled-2.jpg (11.85 KB, 701x129 - viewed 156 times.)
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7592



WWW
« Reply #7 on: May 24, 2010, 11:17:00 »

When I was developing eForum I was wondering how to calculate this number. Based on the forum age or on the site age?
I decided to use a formula that in 99,9% of the times is equal to the site age. The number of days you see there is actually the number of days passed since the registration date of the eldest site user (normally equal to the elxis installation date).

I did it that way because the forum age is a question. Which is the forum age?
The date the forum installed someone would say. OK, and where you can find this date? If you take it from the files last modification date this is wrong as the files might be modified by the administrator. If you get it from the date of the latest post this is also wrong as posts can be deleted (so the date will change). A solution would be to save this date during installation at database (softdisk for example). But what if someone move the forum from one site to an other without copying this information?

There is also an other issue. If I used the forum installation date then what will happen with all the pre-existing users? For example pame.gr has about 2200 users. After install eForum would inform you that 2200 users get registered in one day! This number is used to calculate other statistics for users that pre-existed before eForum installation. So, I believe the most stable option is to use the eldest user registration date as I did.
« Last Edit: May 24, 2010, 11:22:06 by datahell » Logged

rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #8 on: May 24, 2010, 13:13:48 »


So, i will only change the expression. Thanks. I think im under an eforum crash test.  Grin

In the member's (lets say) badge... the signature is also showing.

How can that be removed, and instead of that... how can i show one of the member's extra fields  particularly the city/location data.

thnx!!!


* badge.jpg (11.95 KB, 130x362 - viewed 174 times.)
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7592



WWW
« Reply #9 on: May 24, 2010, 13:57:25 »

The signature hook (hook type: authorbox) is a sample hook on how to create hooks for eForum. Dont use it as you dont need it. Signature is visible bellow each post.

To remove it either disable completely authorbox hooks in eForum configuration or delete* the signature.php hook file.
http://wiki.elxis.org/wiki/Eforum_Hooks

* If you dont want to delete the hook file you can give it an extension different than php. Example: signature.php.txt This will stop the hook running.

To display other info there (such as location) you have to create an authorbox hook providing the functionality you need.
« Last Edit: May 24, 2010, 14:05:40 by datahell » Logged

rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #10 on: May 24, 2010, 14:01:18 »


Righttttttttt!  Cheesy That's a hook

Thanks Gianni
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7592



WWW
« Reply #11 on: May 24, 2010, 14:04:25 »

I saw that you have created custom user fields for location and web site. Why? Elxis has already these user fields.
Logged

rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #12 on: May 24, 2010, 14:06:35 »

I did that loooong time ago. When i started the site and i left it, as it is...  Roll Eyes Undecided


edit: did u see the problem with the HELP function on my forum?
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7592



WWW
« Reply #13 on: May 24, 2010, 14:10:45 »

Yes, check your error.log file to find out what causes this error.

Most probably you have erroneous modified the help daemon file (components/com_eforum/daemons/help.daemon.php)
Logged

rentasite
Elxis Community
Hero Member
*****
Offline Offline

Posts: 3137


Web Services


WWW
« Reply #14 on: May 24, 2010, 14:17:24 »

Most probably you have erroneous modified the help daemon file (components/com_eforum/daemons/help.daemon.php)

Guess what! It was totaly missing from that location. I uploaded it manually and now its ok. I must have deleted it before... cause i remember i saw the Help page working some days ago  Cool

eForum component ΤΑ ΣΠΑΕΙ!

Thanks!
Logged

Pages: [1] 2 3 ... 6
  Print  
 
Jump to: