Suggest Entries Plugin

Creating and modifying plugins.
daw
Regular
Posts: 11
Joined: Thu Nov 16, 2006 6:59 pm

Suggest Entries Plugin

Post by daw »

Just installed the "Suggest Entries" plug-in

It does not show up on the Web Log (or rather where are the visitors supposed to go to enter their suggestions)?

Could someone please help?!?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Suggest Entries Plugin

Post by garvinhicking »

Hi!

Have a look at the config of the suggest entries plugin; there you enter the URL under which you can access the SuggesEntries page.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
daw
Regular
Posts: 11
Joined: Thu Nov 16, 2006 6:59 pm

Suggested Entries

Post by daw »

Hi Garvin and thank you for the reply. The plugin that I downloaded di not have a suggest.html file in it. Do we have to create our own, or did the plug-in not download properly.

Also, do we have to create our own link to the suggest page or does it set a nugget on the side bar that allows the visitors to post suggestions?

Regards,

Dave
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Suggested Entries

Post by garvinhicking »

Hi!

There is no suggest.html filerequired for the plugin! Why do you think that? The plugin emits all required HTML when the permalink you configured is called, like "index.php?serendipity[subpage]=suggest" or "index.php?/pages/suggest.html" or what you configured in theplugin-

And yes, you need to create your own link to thatpage with eithera html nugget or an entry,or a templatemodification.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
daw
Regular
Posts: 11
Joined: Thu Nov 16, 2006 6:59 pm

Help?!?

Post by daw »

Hi Garvin,

I am wondering if you could help me a little bit further.

I am very "green" when it comes to html language. I use front page as I need the wsywig to do the work for me.

I am still confused about the "Suggest Entries" plug-in. The web site that is hosting our blog is http://www.homesinguelph.ca/blog and I have set the "Suggested Entries" settings to;
http://www.homesinguelph.ca/blog/index. ... ggest.html

The question is; do I have to set up a link in an html nugget to the suggest page and if I do, what would the link be?

Sorry, this probably sounds trivial to you, but it is very difficult to me.

Thanks in advance.

Dave
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Help?!?

Post by garvinhicking »

Hi!

The permalink needs to be the string only containing the HTTP path, not the full host.

So instead of

http://www.homesinguelph.ca/blog/index. ... ggest.html

you would need to use

/blog/index.php?/pages/suggest.html


Also, you can access your suggest entry via:

http://www.homesinguelph.ca/blog/index. ... e]=suggest

That link you could then use in your HTML nugget as well!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
daw
Regular
Posts: 11
Joined: Thu Nov 16, 2006 6:59 pm

Thank You

Post by daw »

Garvin,

Thank you very much for your assistance.

All is working well!

Regards,

Dave
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Help?!?

Post by ed587 »

garvinhicking wrote:Hi!

The permalink needs to be the string only containing the HTTP path, not the full host.

So instead of

http://www.homesinguelph.ca/blog/index. ... ggest.html

you would need to use

/blog/index.php?/pages/suggest.html


Also, you can access your suggest entry via:

http://www.homesinguelph.ca/blog/index. ... e]=suggest

That link you could then use in your HTML nugget as well!

Best regards,
Garvin
Hello Garvin,

I've searched and searched for an answer on my own with no luck so here goes.
My suggest_event plugin html nugget in my sidebar only brings up the default p1.html page when I click the link.

In the plugin itself and in the html nugget, the path I am using is:
http://www.mydomainname.com/serendipity ... ggest.html
I have upgraded to 1.4.1, brought the suggest event plugin to the top of the list and created a folder named page to hold the suggest.html file.

Any suggestions? Also I see my User Self Registration plugin has not been working.
The best,

~Ed
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Suggest Entries Plugin

Post by ed587 »

Yiiiiiiiiiiii! Okay, I see my path in the suggest event plugin is too long, I shortened it to /serendipity/index.php?/pages/suggest.html and that didn't work. It still just brings up the blog. I'm going to change the nugget path and see what happens.
The best,

~Ed
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Suggest Entries Plugin

Post by ed587 »

ed587 wrote:Yiiiiiiiiiiii! Okay, I see my path in the suggest event plugin is too long, I shortened it to /serendipity/index.php?/pages/suggest.html and that didn't work. It still just brings up the blog. I'm going to change the nugget path and see what happens.
No luck, I've changed these paths at least 20 times, checked permissions, I don't get it.
The best,

~Ed
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Suggest Entries Plugin

Post by Don Chambers »

=Don=
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Suggest Entries Plugin

Post by ed587 »

Don Chambers wrote:Does it work with http://yoursite.com/path-to-s9y-if-any/ ... e]=suggest
Thanks for the reply Don. No, it just keeps reloading the main page. I edited the suggest event plugin as you wrote above (with my domain name) and also a short version which looked like this:
serendipity/index.php?serendipity[subpage]=suggest
The best,

~Ed
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Suggest Entries Plugin

Post by Don Chambers »

Um... I missed this earlier:
....and created a folder named page to hold the suggest.html file.
/pages/ is not a real folder - it should not physically exist, nor should there be a physical suggest.html file. Both the folder /pages/ and the file suggest.html are rendered dynamically.

Returning to your home page is probably an indication of a 404 page not found because it literally looked for the html file in what is a real folder. Rename/delete the folder and try it again.
=Don=
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Suggest Entries Plugin

Post by ed587 »

Don Chambers wrote:Um... I missed this earlier:
....and created a folder named page to hold the suggest.html file.
/pages/ is not a real folder - it should not physically exist, nor should there be a physical suggest.html file. Both the folder /pages/ and the file suggest.html are rendered dynamically.

Returning to your home page is probably an indication of a 404 page not found because it literally looked for the html file in what is a real folder. Rename/delete the folder and try it again.
Thanks again Don. I deleted the folder and replaced the paths a few more times. Nothing worked so I deleted the suggest event plugin and reinstalled it. It worked.

I think the Serendipity software is a fine combination of features which can be edited to suite. I think though that the suggest event form which comes up will intimidate 98% of the users with the big B an URL buttons. I remember another post discussing putting a different editor into the form. I'm going to read everything I can here and see if I can do that. Thanks for all the replies.

The best,
~Ed587
The best,

~Ed
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Suggest Entries Plugin

Post by Don Chambers »

Glad to hear your problem is resolved. The plugin and/or your browser may have cached files, so that's probably why it didn't work until reinstalled. The issue with you having created a /pages/ folder may also be why you had another plugin not behaving properly.

I know of no way to insert a different browser into the suggest entries plugin, so if there is one, that is news to me. I see the plugin uses javascript to generate those buttons:

Code: Select all

<script type="text/javascript">
    document.write('<div class="toolbar">');
    document.write('<input type="button" class="serendipityPrettyButton" name="insB"   value="B"   accesskey="b" style="font-weight: bold" onclick="wrapSelection(document.getElementById(\'serendipity_suggest_article\'), \'<strong>\', \'</strong>\')" />');
    document.write('<input type="button" class="serendipityPrettyButton" name="insURL" value="URL" accesskey="l" onclick="wrapSelectionWithLink(document.getElementById(\'serendipity_suggest_article\'))" />');
    document.write('</div>');
</script>
I think you could safely delete those lines in the file plugin_suggest.tpl, OR place a copy of that file in your template folder and delete the lines in that copy.
=Don=
Post Reply