Edit this page as code snippet module

Stefek

Hello Ruud.

Thank you. It's easer to implement as the whole snippet.

BTW. I like the way the single droplets are presentet on the library right now.
Looks good with the built in editor and those additional fields.
:-)

Kindly Regards,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Ruud

[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

Stefek

Quote from: solbu on March 13, 2009, 02:34:22 PMLogged in users Do Not get the Edit image on the search page.

Hello.
That's because a "searchpage" is not editable, I guess.

BTW.
If you are trying different things, have a look at Droplets.
There is also a droplet for this snippet (edit this page).
However I can't seem to find it on the official Droplets Library:
http://www.websitebakers.com/pages/droplets/official-library.php

Regards and happy baking,
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

solbu

#25
Quote from: solbu on March 12, 2009, 09:46:53 PMOn every page on the site, guest users do not see the image. However if the guest user use the search function, the edit image appears also for guests.

This happens Only on the /search/index.php page, where the search results also apears.
I have just noticed another problem, that might help in debugging. Logged in users Do Not get the Edit image on the search page. The site owner noticed it.

We are in the process of launching a new design, using WebsiteBaker for the first time, and are trying various things. :) This is the last remaning bug we need to resolve before we can launch the new CMS.

solbu

Quote from: mr-fan on March 12, 2009, 09:29:47 PM
mean guest in your case - no login or no access to edit a site??
Correct. The user is not logged in.
On every page on the site, guest users do not see the image. However if the guest user use the search function, the edit image appears also for guests.

This happens Only on the /search/index.php page, where the search results also apears.

mr-fan

QuoteI have a bug report.
If one use the Search function to search the portal as guest and is not logged in, the Edit link, with the image, shows up regardless of whether one is loged in or not. Clicking the Edit link results in one having to login thou, but still, it should not be displayed.

This only happens on the search page. (websitebakerurl/search/index.php)

i just have a short try - i don't can confirm this on my site! we have a site with the maincontent is for unregistered/unlogged in users and a short part is for spezial users with login!

i've the frontedit placed in the site - with your report i've tryed out imediatly but no such manner in my case!

mean guest in your case - no login or no access to edit a site??

because if you logged in and have no access to edit site - the fronteditbutton will display anyway...

rgds martin

solbu

Quote from: RolfP on December 23, 2007, 12:06:27 PM
This module adds an image in template where ever you put the code
<?php frontend_edit(); ?> if the logged in account is allowed to edit the page.
I have a bug report.
If one use the Search function to search the portal as guest and is not logged in, the Edit link, with the image, shows up regardless of whether one is loged in or not. Clicking the Edit link results in one having to login thou, but still, it should not be displayed.

This only happens on the search page. (websitebakerurl/search/index.php)


I have tried to locate why it show up there as guest, but I am unable to figure it out.

jrast

#21
If i want to add a new group, i get this error:
Parse error: syntax error, unexpected T_VARIABLE in /home/opentopo/public_html/wb/modules/frontedit2.7/info.php on line 1

So, why do i get a error from a snippet if i want to add a new group in the WB backend? for me a strange thing...

@edit:
ok, Problem found.
the info.php file was in a wrong format and there was no white space betwen the <?php tag and the first variable.
- If life turns bad, just hang on! -

mr-fan

ups.... sry i only used the big red one  :-D

my brain is jumping to fast to think..... :roll:

greets

erpe0812

A click to the button and he turns to the frontend  in new tab (see image)

rgds

erpe

[gelöscht durch Administrator]

mr-fan

i have a question about the frontedit...

is it possible to make it easyer for a simple editor, after he made changes to his site, that he can with one click back to frontend.... or is this to complex in the backend....

or is there a other option that makes a sucess from a user to only one site to edit...save and look changes....in the frontend?

mfg mr-fan

Stefek

[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

doc

#16
Hi,

like done for the register_frontend_modfiles function called in the index.php of the most templates out there, so:

<?php
if (function_exists('frontend_edit')) {
  
frontend_edit();
} else {
  echo 
'Sorry, to use this function, you need to install the code snippet xxx first.';
}
?>


Regards Christian

Stefek

#15
Hello!
This is a great upgrade!

I only have one question:
How can I modify the <?php frontend_edit(); ?> 
so I get a message when this snippet is not installed.

Thanks in advance.
Stefek
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

TN

Quote from: JonH on January 25, 2008, 03:16:48 PM
I swear it wasn't there before!  :-D

You can see the attachment only if you are logged in, if you have cookies allowed und if you have javascript allowed.

I think: not everybody should gets the code   :evil:

fsuk

Yup it works fine, although i had to remore /n from the end of the Edit Page line as it wasnt starting a new line just printing '/n'
You say deviant like its a bad thing...

aldus

But please test it before  :-D
I've made mass. changes ...

Regards
Aldus

fsuk

Thanks ill add it to the zip in my previous post
You say deviant like its a bad thing...

aldus

#10
Sorry for the german:
so:
I cleaned it a little bit up ... e.g. no nessesay new database() needed,
and collecting the data before echo.

where are two variables left
- $old_admin_users und
- $admin_users.

both of them are only used one time - and never more; so they can be left/removed.

Regards
Aldus

[gelöscht durch Administrator]

fsuk

#9
I have updated the module for WB 2.7 for multiple groups.

Theres probably some redundant code in there.

The updated module is attatched.

[gelöscht durch Administrator]
You say deviant like its a bad thing...

fsuk

Needs to be updated for 2.7, only works with the default group_id and not the group_ids field. i might give it ago if i have time, that is of couse unless theres a feature like this already built into 2.7??
You say deviant like its a bad thing...

JonH


ruebenwurzel



diodak

You didnt notice that front login must be enabled. Good module.
Buchsbaum