-
Send autoresponder to users who have not updated their details, interspire email marketer
Nobody has any ideas? It doesn't necessarily have to use Interspire, that's just what we are currently using. But we need more control over our autoresponders
-
Send autoresponder to users who have not updated their details, interspire email marketer
Hi, I currently have interspire set up as following: We have a contact list that has several custom fields. Half are filled in by us, the other half are survey questions to be filled out by a client. We fill in a (subscription) form which includes the clients email address and a few in office details (the survey fields are not included in this form) 2 weeks later that client gets an autoresponder email asking them to provide some feedback about our service The link in the above email links to a form where the client fill answers some feedback questions. (This form is a 'Modify Details' form with only the survey question fields are visible to edit ) We would like to send further reminders to our clients that have not yet filled out the form, but not to the clients who have submitted feedback (modified their details) I have tried setting up filters for this, but selecting 'None' matches all contacts on the list, including those that have filled it out. See here: https://www.diigo.com/item/image/3ctdm/2yjh Does anyone know how I might set this up? Or even if there is a better system out there that would do what I want? Thanks all
-
Trying to get a long running function to run in background using cakephp and bash shell script
I've added this to the relevant controller: function beforeFilter(){ parent::beforeFilter(); $this->Auth->allow('updatealluserlinksinternal'); } Which I believe will fix the issue. But I've just noticed a really strange problem. The exec call seems to call the script hundreds of times. I've added the following to my bash script: echo "Bash running" >> bash.txt after running the function once, I get thousands of "Bash running" entries in bash.txt. Now I imagine some of you will probably think there is a loop somewhere, and I'm 99.999% certain there isn't, but I'll try and add as much of the process as possible. First of all in the web browser I am looking at the 'Links' view. This displays all links for a given user. There is a link on this page called 'Update all Links'. The href for this points to /~linkmoni/links/updateAllUserLinks which is a function in the 'LinksController' this function is exactly this: function updateAllUserLinks(){ //call external script which allows us to run the update in the background $result = exec("sh update_links.sh > update2.txt 2> update2.err"); Debugger::log($result); $this->Session->setFlash(__('The links have been set to update. Their associated data will be refreshed within the next 30 minutes.', true)); $this->redirect(array('action' => 'index')); } This is the 'update_links.sh' script which is located in the webroot folder: #!/bin/bash echo "Bash running" >> bash.txt /home/linkmoni/public_html/cake/console/cake -app /home/linkmoni/public_html/app updateuserlinks 30 > update3.txt 2> update3.err This calls a cake shell called updateuserlinks.php which resides in /vendors/shells (not /app/vendors/shells). Here are the contents: <?php class UpdateUserLinksShell extends Shell { var $uses = array('Link', 'User', 'Website'); function main() { Debugger::log("Entered Shell"); $id = $this->args[0]; $this->requestAction("/links/updatealluserlinksinternal/$id"); } } ?> This calls a function within the 'Links' controller called updateAllUserLinksInternal($id) function updateAllUserLinksInternal($id){ $this->Link->recursive = 0; //gets all the website ids for the current user $websites = $this->Website->find('all', array('conditions' => array('Website.user_id' => $id))); $websiteids = array(); $websiteUrls = array(); $i = 0; foreach($websites as $website){ $websiteids[$i] = $website['Website']['id']; $i++; } $links = $this->Link->find('all', array('conditions' => array('Link.website_id' => $websiteids))); foreach($links as $link){ $this->updateLink($link['Link']['id'], false); sleep(5); // give 5 seconds to update each link to ensure no mySQL limit reached errors } } And that's it. Like I said before this works when calling the script from the command line, but not from php's exec function. So I think the problem might be there, but I really can't figure it out. Thanks all! EDIT It appears that the cake shell is running forever. This command is listed in my process maanger: php -q /home/linkmoni/public_html/cake/console/cake.php -working /home/linkmoni/public_html/app/webroot -app /home/linkmoni/public_html/app updateuserlinks 30 I also have over 25,000 "Bash running" entries in bash.txt. What I find strange is the above command doesn't call the bash script, it's actually the other way round so you would expect lots of entries in the process manager if that command was called multiple times
-
Trying to get a long running function to run in background using cakephp and bash shell script
I have a function in a controller in cakephp which could potentially run for thousands of seconds. The function basically has a list of links and contacts several API's to get various SEO data from them. So each link can take a few seconds each. I've been trying to get a cake shell set up to do this for me but with no luck. The closest I have come is to have this bash script which runs the required shell with a parameter (30 in this case which is the id of a user on the system.) /home/linkmoni/public_html/cake/console/cake -app /home/linkmoni/public_html/app updateuserlinks 30 > update3.txt 2> update3.err & then call this script from within my controller $result = exec("sh update_links.sh > update2.txt 2> update2.txt"); Now, the bash script works if I ssh into my server and run it directly from there. All the links update correctly and everything is fine. When running from php exec there seems to be a problem. As far as I can tell it's to do with a requirement for a user to be logged in. After running the above code the only text is found in update3.txt Status: 302 Moved Temporarily X-Powered-By: PHP/5.2.17 P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM" Location: http://linkmoni.com/~linkmoni/links Content-type: text/html Before I got to this point I tried messing around with wget and session cookies which worked to some extent but required a particular users login credentials. This worked in that it bypassed the systems login, but I couldn't get it to access any of the models data. Does anyone know how I can get this to work? Basically all I want to do is run this long function in the background, whilst having access to the cakephp models. Thanks everyone!
-
Tabbed interface that has different heights per tab, but doesn't fully collapse when changing tabs?
For anyone who stumbles on this, here is the solution: http://stackoverflow.com/questions/243794/jquery-ui-tabs-causing-screen-to-jump
-
Tabbed interface that has different heights per tab, but doesn't fully collapse when changing tabs?
Nobody can help? Do I need to explain it more perhaps?
-
Tabbed interface that has different heights per tab, but doesn't fully collapse when changing tabs?
Hi there! I'm currently setting up a little tabbed interface using jquery ui. Works great but the transition between tabs looks horrible because the page starts scrolling erratically. Check the link below to see what I mean. http://kdwebdesign.co.uk/projects/andy_croft/new.php What I would like to happen is when a new tab is selected its height is set before the content changes. For example if the newly selected tab is shorter than the current tab I only want the height to change to the new height and not go to zero first. If the height of the new tab is larger than the current tab I don't want it to shrink at all, only grow to the new height. Is this possible? How would I go about it? Thanks all!
-
Loading content with ajax causes images and layout to flicker
Hi there. I'm currently trying to have my site navigate by using ajax from jquery to load in a file from the server and replace the contents of the current page. The problem I'm having is that the layout of the newly retrieved html has yet to be formatted correctly by the browser before the user can see it. This is especially troublesome when images are concerned because before the image is loaded the browser doesn't know it's size and the content gets all shifted around once it has loaded. Is there a way to load html content (including all images that it references) before displaying it? Here is the website, the only 2 links that work are 'home' and 'new'. Pay attention to the flicker when you FIRST click 'new'. After it has loaded the first time it ends up looking really good, but this first time is horrible. http://kdwebdesign.co.uk/projects/andy_croft/ Any idea how I can solve this issue? Thanks all!
-
Displaying long list of references as main content
Hi there. So I'm building a new website where most of the content comes in the form of references to literary works. For example a long list of items similar to this: ‘The Best of Corporals: the Italian Campaign in the Poetry of Randall Swingler’, London Magazine October/November 1998 This would form the main content for that particular page so I want it to be more engaging than just a long list. Does anyone know of a good way I could display this content? Or maybe even an example of something similar to get my creative juices flowing? Thanks all!
-
Feedback on Website Design
I've made a few small changes. I'm really not sure about the design of the headers 'Welcome To My Website' and 'Recent Photos' any suggestions? http://imgur.com/WkABT
-
Feedback on Website Design
I kind of like the logo, but I definitely agree about the contact form, might tone that down a bit. Thanks for the input. You're not the first person to be doubtful of the yellow background. I'll look into it. Thanks for having a look.
-
Feedback on Website Design
Hi there! This is my third design, I'm more of a developer than a designer so go easy. I've had some feedback that says the colour scheme is a bit weird. What do you guys think? It's for a client who does poetry readings, writing seminars, tv and radio broadcasts etc. This is just the first page, trying to get a feel for how I want the site to be. Anyway let me know what you think and how I can improve. http://imgur.com/DHPNQ Thanks all!
-
@font-face not working in ie7-ie8 but works in ie9, firefox and chrome
Thanks, that thread was really useful. Although I was already doing what they said, it did help me notice a bug in my php/css file. foreach($fontNames as $fontName){ echo "@font-face {\n"; echo "font-family: '" . $fontName . "';\n"; echo "src: url('../assets/fonts/extracted/" . $fontName . ".eot'); \n"; echo "src: url('../assets/fonts/extracted/" . $fontName . "HERE.eotHERE?#iefix') format('embedded-opentype'),\n"; echo "url('../assets/fonts/extracted/" . $fontName . ".woff') format('woff'), \n"; echo "url('../assets/fonts/extracted/" . $fontName . ".ttf') format('truetype'); \n"; echo "font-weight: normal;\n"; echo "font-style: normal;\n"; echo "}\n"; }?> I had forgotten to put the '.eot' extension into the second eot declaration, where it says HERE..HERE in the code. I guess it just takes a second pair of eyes sometimes. Thanks for the reply. Thanks all!
-
@font-face not working in ie7-ie8 but works in ie9, firefox and chrome
Hi there! I'm having an issue with @font-face in ie7 and ie8, basically it's not working. If you have a look at the below url for a t-shirt designer I'm working on (ignore the fact that it's a bit rubbish). If you type something in the 'Text' box and try changing the font to one of either RAPSCALL-webfont or gooddog-webfont the font changes correctly except in ie7 and ie8. http://scottishghostwriter.com/testing/designer/ The @font-face declaration in the css file is generated with some php jiggery pokery but it generates correct css as far as I can tell. Does anyone have any idea as to why it isn't working? I'm starting to pull my hair out a bit with to be honest. Thanks all!
-
Multi table sql query
I've been reading up on joins but can't find a suitable solution. Can anybody else help?