Give visitor page edit access
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.quickandeasywebbuilder.com/f ... =12&t=1901
MUST READ:
http://www.quickandeasywebbuilder.com/g ... arted.html
Quick 'n Easy Web Builder FAQ
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.quickandeasywebbuilder.com/f ... =12&t=1901
MUST READ:
http://www.quickandeasywebbuilder.com/g ... arted.html
Quick 'n Easy Web Builder FAQ
Give visitor page edit access
I want to give the Administrator of the club rights to modify a page data
How can I do that with existing QEW?
Cheers
How can I do that with existing QEW?
Cheers
Re: Give visitor page edit access
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
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
Re: Give visitor page edit access
The admin page can be anywhere in your project.
If you do not include it in your navigation then normal users will see it.
If you do not include it in your navigation then normal users will see it.
Re: Give visitor page edit access
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
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
Re: Give visitor page edit access
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
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
Re: Give visitor page edit access
The tools were not designed to edit CSV file, you will need a custom script for this.1) Can I edit just a text / csv file or is this only for actual web pages?
This is documented here (step 6)2) What is "Editor Settings"?
http://www.quickandeasywebbuilder.com/cms_tools.html
You will need to install one of the editor to add headings.3) Where in the admin module can I change the headings and which file to open?
The club admin can only edit the content of the Editablecontent object, so you can only put a table in that object.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 summernote editor support tables.
Re: Give visitor page edit access
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
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
Re: Give visitor page edit access
Yes, this is an online HTML editor (via third party scripts).This is a html editor?
Please see this tutorial:
http://www.quickandeasywebbuilder.com/e ... ntent.html
YesSo it should be able to edit a nominated part of a page?
Please see the tutorial for an example.Any chance I can see a sample project?
Re: Give visitor page edit access
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?
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?
Re: Give visitor page edit access
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.
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.
Re: Give visitor page edit access
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
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
Re: Give visitor page edit access
Based on the code, it does not look like have installed one of the editors.
Then it will look like this:
Then it will look like this:
Re: Give visitor page edit access
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
But, still get the same result : https://nmaa-rc.org.au/adminedit.php - No change, passord is president
Why?
Thanks
Re: Give visitor page edit access
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
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