Give visitor page edit access

All Quick 'n Easy Web Builder support issues that are not covered in the forums below.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Give visitor page edit access

Post by alex4orly »

I want to give the Administrator of the club rights to modify a page data
How can I do that with existing QEW?

Cheers
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Give visitor page edit access

Post by alex4orly »

Looks like the simple option of CMS Editable content will be suitable for what I need.
Please see this link : https://nmaa-rc.org.au/nmaafees.jpg

This data is the combined club membership fees, This will be on a separate html page, loaded into an iFrame on the live website.
I am not clear - do I need to add the admin object to the same page, if so - how will the admin object NOT show up to visitors?

Thanks
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Give visitor page edit access

Post by Pablo »

The admin page can be anywhere in your project.
If you do not include it in your navigation then normal users will see it.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Give visitor page edit access

Post by alex4orly »

OK, I created the admin page here : https://nmaa-rc.org.au/adminedit.php - password for testing is "president" all lower case
What I want to be able to edit is actually NOT a html page, but a csv file

1) Can I edit just a text / csv file or is this only for actual web pages?
2) What is "Editor Settings"?
3) Where in the admin module can I chane the headings and which file to open?

Thanks again
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Give visitor page edit access

Post by alex4orly »

Thought about it again, maybe there is a better way. Here is my html / php page:
https://nmaa-rc.org.au/renew21.php

This is a form, for club members to renew membership. The table with numbers in it is currently an iFrame, that loads the data from a csv file.
Instead of doing that, I can make the same page / form and enter the numbers into it as part of the page, then - allow the club Admin to EDIT only that part of the page to enter the annual fees as they change.

So, usin the Editablecontentadmin object - how can I do that?

Thanks again
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Give visitor page edit access

Post by Pablo »

1) Can I edit just a text / csv file or is this only for actual web pages?
The tools were not designed to edit CSV file, you will need a custom script for this.
2) What is "Editor Settings"?
This is documented here (step 6)
http://www.quickandeasywebbuilder.com/cms_tools.html
3) Where in the admin module can I change the headings and which file to open?
You will need to install one of the editor to add headings.
Instead of doing that, I can make the same page / form and enter the numbers into it as part of the page, then - allow the club Admin to EDIT only that part of the page to enter the annual fees as they change.
The club admin can only edit the content of the Editablecontent object, so you can only put a table in that object.
The summernote editor support tables.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Give visitor page edit access

Post by alex4orly »

I looked through the documentation and am still confused...

This is a html editor?
So it should be able to edit a nominated part of a page?
Any chance I can see a sample project?

Thanks
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Give visitor page edit access

Post by Pablo »

This is a html editor?
Yes, this is an online HTML editor (via third party scripts).

Please see this tutorial:
http://www.quickandeasywebbuilder.com/e ... ntent.html
So it should be able to edit a nominated part of a page?
Yes
Any chance I can see a sample project?
Please see the tutorial for an example.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Give visitor page edit access

Post by alex4orly »

OK, here is the content page : https://nmaa-rc.org.au/memberfees.html
Here is the admin page - password president

When I go into edit mode, it shows the entire HTML tags, not just the data, like this: https://nmaa-rc.org.au/adminedit.php

<div style="font-family:Arial;font-size:13px;color:#000000;">
<div>This is the area to show membership fees</div>
<div> </div>
<div>100 222 333 433</div>
<div>150 250 350 450</div>
</div>

Is there a way to avoid it and show only the data itself?
betwixt
Posts: 101
Joined: Mon Nov 25, 2013 3:49 pm

Re: Give visitor page edit access

Post by betwixt »

It is HTML so you see all the markup tags.

I would suggest a different method - set up a database, read the values from the database into the page the user sees. Then allow administrator access to modify the database. Doing it that way also gives you flexibility to use the values in other ways.

Brian.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Give visitor page edit access

Post by alex4orly »

Hi Brian,

Yes, I already started to go that way. Created a new page with a form
I will load the csv data into the fields in the form, let the admin modify and save the data back to the same csv.

Thanks
Alex
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Give visitor page edit access

Post by Pablo »

Based on the code, it does not look like have installed one of the editors.

Then it will look like this:
Image
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Give visitor page edit access

Post by alex4orly »

I have just installed Summernote, placed the folder into the home folder where my adminedit.php is located
But, still get the same result : https://nmaa-rc.org.au/adminedit.php - No change, passord is president

Why?
Thanks
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Give visitor page edit access

Post by alex4orly »

I KNOW it is NOT a weqwb question, Just hope someone here can help me out:

Please visit the page : https://nmaa-rc.org.au/nmaafees.php
The numbers and data showing first is data retrieved from a csv file. The file has 5 records, each with 6 columns

I echoed the data collected in the php script, but when I try to load it into the page fields, those remain empty.
Here is my php code:

$file = fopen('memberfees.csv', 'r');
$x = 1;
while (($line = fgetcsv($file)) !== FALSE)
{
for ($i=0; $i<6; $i++)
{
$db_boxname = '';
$db_boxname = 'db_box' . $x ;
$db_boxname = $line[$i];
echo $db_boxname;
echo "<br>";
$x = $x + 1;
}
}
fclose($file);

The variable names are $db_box1, $db_box2 ..... $db_box30 and in each filed I use : <?php echo $db_box1; ?>
I suspect that it has something to do with the fact that PHP is server side, and populating data into the fields is a browser side, but how to resolve this?

Cheers
Post Reply