Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

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.

#1 26-09-2007 14:12:30

wescollins
Members
Registered: 26-09-2007
Posts: 1

Event Adding

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

#2 27-09-2007 05:48:38

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Event Adding

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.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 03-01-2009 18:13:16

TAZ1958
Members
Registered: 03-01-2009
Posts: 2

Re: Event Adding

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

#4 03-01-2009 19:03:36

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Event Adding

v2 is the latest version. The log in check is the 'isWebmasterLoggedIn()' function in the 'admin/inc/functions.php' file.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#5 11-01-2009 17:12:29

TAZ1958
Members
Registered: 03-01-2009
Posts: 2

Re: Event Adding

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

#6 17-01-2009 09:03:01

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Event Adding

I take it you didn`t read my last post?

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy