I am working on my own module and I have a simple question about XOOPS datetime function. When using XOOPS formloader the date/time is stored as "1159210227" which is just fine. What I am having troubles with is how to display that in my code/tempalte as a readable date and time.
I love the way XOOPS has their news setup on the front page. I was wondering if that is a custom template and or script? I have news 1.44 installed and the only options I have for blocks are "top news" "recent news" ect..
Is there anyone that can tell me how XOOPS has thier news frontpage block set up?
This hack allows users to edit their own events with out having to be an admin of the Extcal module.
This code works in conjuction with Extcal, so there is really no hacking, just copy the file into Extcal's directory.
Known problems:
(1) The edit button will always show up even if you are not allowed to edit the event.
(2)If auto approve is turned off for a group, re-editing an event by a user in that group will not set the event back to zero requiring the admin to reapprove.
(3) Users can not delete their own event
Add this line of code somewhere in (extcal_event.html) Do not replace the original edit button!
Save this file as (event_edit.php) in Extcal's main folder
include "../../mainfile.php"; include '../../class/xoopsformloader.php'; include_once 'class/perm.php';
$extcalPerm = ExtcalPerm::getHandler(); // If the user is allowed to submit an event in this category then pass on to next statment if(count($extcalPerm->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) {
// At the moment this is the only way I know how to grab the events submitter ID $event_ID = $_REQUEST['event_id']; $sql = 'SELECT event_submitter FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$event_ID; $query = mysql_query($sql); while ($row = mysql_fetch_array($query)) { $event_submitter = $row['event_submitter']; }
// Does the user editing event = the events submitter? If so then move on $user_uid = $xoopsUser->getVar('uid'); if ($event_submitter == $user_uid){
} } // Does the user editing event = the events submitter? If no, then redirect else {redirect_header('index.php', 3, 'Sorry, you can not edit this event'." ".implode(' ', $GLOBALS['xoopsSecurity']->getErrors()));} } else {redirect_header('index.php', 3, _NOPERM." ".implode(' ', $GLOBALS['xoopsSecurity']->getErrors()));} ?>
Extcal is missing two major features that other calendar programs have. First one is repeating events and the other is to allow users who submitted an event to edit their own events with out being admin of the module.
What I am wondering is, has anyone created a hack for Extcal to allow users to edit their own event? If so can you point me in the right direction, if not I will try to finish up my own hack for it.
I just have my 2003 Server to tinker around with. I host my own XOOPS 2.0 on IIS 6. My question is for the LDAP Authentication Hack 0.6 do I need openLDAP or what do I need to get started so that I can have my room mates log in to our XOOPS home page with their windows login name?
I've been looking around and am just so confused dont know what I need to do?
I upgraded to XOOPS 2.2 and I am loving it! Just a quick question. It use to be "before it was turned into its own moduel" When I recieved new PMs my Inbox menu would be highlighted but now its not.. Is that normal? Or do I need to do alittle modification to have it highlighted again when I have new PMs?