You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees
when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.
IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.
You are not logged in.
Pages: 1
Hello David,
Thanks for the script. It's great and I will be donating soon. Is there anyway I can add the menu that allows you to add events to the main page? I want anyone that comes to the page be able to add events. Another thing I thought I could do was just add the part of the script of the page that you add events on, if that makes any sense? Either way you get the point, I need anyone to be able to add events with out going thru the trouble of logging in.
Thanks for your help,
Wes
Offline
Hi Wes,
Thanks for your kind words, glad you like Maian Events.
You can remove the login check in the admin/index.php file. Around line 90 you will see:
if (!isset($_COOKIE['event_cookie']) && !isset($_SESSION['event_user']))
{
updated($login9,'index.php?cmd=login',$script4,$sc ript6,$charset);
}
Just remove that, then use 'admin/index.php?cmd=add' on your main page. You would need to write your own code if you wanted to adapt it better.
David.
Offline
I like this Ideal but cant find :
if (!isset($_COOKIE['event_cookie']) && !isset($_SESSION['event_user']))
{
updated($login9,'index.php?cmd=login',$scrip t4,$sc ript6,$charset);
}
I may be running a newer version, This post is old!
Im using Maian Events v2.0
I would also want to remove the ability for them to use HTML
Offline
v2 is the latest version. The log in check is the 'isWebmasterLoggedIn()' function in the 'admin/inc/functions.php' file.
David.
Offline
Ok it may be I'm lost.
This is what I have from line 87 to 112
// Add New Event
case 'add':
// Check login..
isWebmasterLoggedIn();
// Add event..
if (isset($_POST['process'])) {
// Use callback mechanism to trim post array vars..
$_POST = array_map('trim',$_POST);
if ($_POST['title'] && $_POST['fromDate'] && $_POST['toDate'] && $_POST['comments']) {
$MEV_EVENT->add($_POST);
$OK = true;
unset($_POST);
} else {
$count = 1;
}
}
$pageTitle = $header6;
include(FOLDER_PATH.'inc/header.php');
include(FOLDER_PATH.'data_files/add.php');
include(FOLDER_PATH.'inc/footer.php');
break;
I see no $_COOKIE['event_cookie']
Offline
I take it you didn`t read my last post?
David.
Offline
Pages: 1