We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Modue: LG Quarantine: The user powered comment and weblog entry monitoring system!

Development and Programming

Rob Quigley's avatar
Rob Quigley
236 posts
17 years ago
Rob Quigley's avatar Rob Quigley

Doh! FYI - I made the form submit an image and it does not indeed seem to be working for me in IE browsers.

I’ll google if there’s any way to get around this issue but if anyone knows of a solution, post here!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Hey man. Everything looks good to me. Only thing is, only because it’s coming up blank, I assume we have to create a /quarantine/success page? What do you suggest it entail?

Yep you will need to create a quarantine success page if you are not submitting using ajax. The reason for this is when a post is quarantined it will be closed so you cannot refresh to it anymore. I suggest your page explain why th post has been quaraninted and offer alternative content.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
This looks almost perfect for a site update that I’m in the middle of. Any chance you could add another field in the table for users which explains why the entry/comment should be guaranteed? For example, Digg allows users to flag content as stuff like Lame, Duplicate Story, Spam, and a few other things.

Hey Jim,

Yep the release version has this feature.

Cheers

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Doh! FYI - I made the form submit an image and it does not indeed seem to be working for me in IE browsers. I’ll google if there’s any way to get around this issue but if anyone knows of a solution, post here!

Hmmm seems like a weird issue. As long as the form is being submitted than the module should work.

       
grantmx's avatar
grantmx
1,439 posts
17 years ago
grantmx's avatar grantmx
Doh! FYI - I made the form submit an image and it does not indeed seem to be working for me in IE browsers.

You mean your submit button was an image?

<input type="image" value="submit"... />
       
grantmx's avatar
grantmx
1,439 posts
17 years ago
grantmx's avatar grantmx

If so then the PHP code would have to be modified a bit to accommodate IE’s issue with POST. Apparently when the submit form POSTs to PHP (or something like that) and the button is an image, IE makes your cursor do some sort of X and Y coordinate thing.

One way I found to work around this is to add _x to the “variable”? I’m not very good with PHP (but I can design a mean site!)

so, for example, I did something like this on a project:

if (isset($_POST['CodeSubmit_x'])) {
            $code = $_POST['Code'];
....blah...

and my image submit button was like so:

<input type="image" src="{site_url}assets/login-bnt.jpg" name="CodeSubmit" value="CodeSubmit" />
       
Rob Quigley's avatar
Rob Quigley
236 posts
17 years ago
Rob Quigley's avatar Rob Quigley

I got around the IE image as submit button issue using CSS and the image used as a background image similar to how its done in the link below. However, I did find that in IE 7 the text-indent did not work for me with my coding so I used a period as submit text and font-size 1px - not a very good solution but it works until I find something more substantial. I’ll look into the php solution for this as posted.

http://www.ampsoft.net/webdesign-l/image-button.html

       
grantmx's avatar
grantmx
1,439 posts
17 years ago
grantmx's avatar grantmx

Only problem is if you have a name attribute associated with the submit button, this method wont work. Not sure how Leevi set it up.

Internet Explorer doesn’t process properly the name attribute of a submit button. This is usually irrelevant unless you rely on its value for some script processing.
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Only problem is if you have a name attribute associated with the submit button, this method wont work. Not sure how Leevi set it up.
Internet Explorer doesn’t process properly the name attribute of a submit button. This is usually irrelevant unless you rely on its value for some script processing. Here is an article about the problem of the submit button in IE (thanks to Malcolm Campbell for the tip).

LG Quarantine just submits the form to a normal EE ACT url, nothing special. If there is an issue it would be with EE but from what I have seen in their code everything seems to be fine.

I have submitted forms using an image button and freeform before without any issues so I don’t see why LG Quarantine would be any different. I’ll try and get some time to test out the dev version and see if I can confirm the issues you guys are having.

Cheers

       
DEA's avatar
DEA
257 posts
17 years ago
DEA's avatar DEA

Hey Leevi, Strikes me you could use this for other purposes too. For example, by changing the parameter from ‘closed’ to, say, ‘spectacular’, you’ve just made a super-favoriter of sorts. If there’s a running count that continues of the flags, you almost have Digg-like functionality to boot…. My .02 cents.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham
Hey Leevi, Strikes me you could use this for other purposes too. For example, by changing the parameter from ‘closed’ to, say, ‘spectacular’, you’ve just made a super-favoriter of sorts. If there’s a running count that continues of the flags, you almost have Digg-like functionality to boot…. My .02 cents.

Well yeah I guess you could… Comments would still be set to closed tho as they can only have one status.

       
Rob Quigley's avatar
Rob Quigley
236 posts
about 17 years ago
Rob Quigley's avatar Rob Quigley

I’m hoping to use this with the MSM (multiple site manager) and I noticed that this module creates an error on the additional site. This appears on the CP home page

Notice: Undefined index: 2 in /domain-path/public_html/system/extensions/ext.lg_quarantine_ext.php on line 140

and does not record the flagged entries for the additional site as well.

       
Ric's avatar
Ric
49 posts
about 17 years ago
Ric's avatar Ric

Leevi, you da Man! Amazing. When I get some time i’d love to test this.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham
Leevi, you da Man! Amazing. When I get some time i’d love to test this.

This module is actually completed on my dev machine… I’m just finishing an update to LG Polls and then I will relaunch all of my popular extensions / modules. If you want to keep updated check back in the forum of follow me on twitter

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham
I’m hoping to use this with the MSM (multiple site manager) and I noticed that this module creates an error on the additional site. This appears on the CP home page
Notice: Undefined index: 2 in /domain-path/public_html/system/extensions/ext.lg_quarantine_ext.php on line 140
and does not record the flagged entries for the additional site as well.

Hey Rob,

Thanks for the report. Can I send you the latest version to test before I release it to the public?

Cheers

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.