contact form 7 wordpress [closed] - wordpress

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
http://localhost/ahalia/contact-us/#wpcf7-f606-o1
I am using a contact form 7 plugin. when I am clicking the submit button, the url goes like given above. what is this #wpcf7-f606-o1? Can anyone tell me?

It's an anchor. It makes the browser jump directly to the contact form after the page is loaded. This is useful when you have the form below a long page, so the user doesn't have to scroll down to see potential error messages regarding the form.

Your submit button might be an anchor tag with href="#wpcf7-f606-o1", that is why your url goes like given above.
EDIT
If your form looks like
<form action="/contact-us/#wpcf7-f606-o1" method="get" class="wpcf7-form" >
Then wpcf7-f606-o1 is your form's reference id.
If you don't want this in your url then change the method from get to post .

It's a unit-tag of the form. Actually, from the contact-form.php of the plugin, you may find the get_unit_tag function that generate the tag.
You may get rid of the tag in the url by customize the plugin, but if you are not familiar with PHP or not aware of what you are doing, I suggest you not do that.

This could be a configuration issue. Please check whether you have called wp_head() and wp_footer() in header.php and footer.php respectively.

Related

How easy is to checkout the plugins being used by a wordpress website [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I was going through a site and saw that site is developed in wordpress. However, when i land on below page. I am unable to understand whether they have used a wordpress plugin or api to develop functionality:
https://legaldesk.com/affidavits/affidavit-for-change-of-name
Above link shows me a form when I select any city and click on create agreement. It asks for my details and on the right it shows preview.
Please answer . If this question should not be asked here, please do let me know the right site on which I can ask this. I like learning new technologies.
The forms themselves seem to be from "TemplatesForm" sourceforge.net/projects/kobject/files/kobject-java/tests/tests/…
Generally, the process of finding which plugins and scripts is one of a kind of forensic detection using, on the one hand, direct links to scripts' sources, which lead to the publisher's url and on the other, class names and other names or function calls, for example, found in the HTML.
Apart from obvious signs like "Powered by WordPress" or similar lines which some sites will have clearly displayed on them, you can find out a lot from the HTML page source.
Right click your page, select "view source" and search for, for example, "plugins" in the paths you find. One plugin used here is http://codecanyon.net/item/mega-main-menu-wordpress-menu-plugin/6135125 MegaMainMenu also Woocommerce, LayerSlider http://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin-/1362246 and FlexSlider https://www.woothemes.com/flexslider/
In this case, this is the theme - http://themeforest.net/item/envor-fully-multipurpose-wordpress-theme/9251688
They are also using Visual composer WYSIWIG plugin to help build it. codecanyon.net/item/visual-composer-page-builder-for-wordpress/…
You can launch scripts in browser windows as text by clicking on links to them in the HTML itself (at your own risk but it usually pops up in the browser as text) and you will often find the licence agreement texts at the top of the script.
You can see what national language the script has traces of to establish nationality (for example the forms scripts have traces of French in their variable names, which match with those on this site) This will help to confirm if you have discovered a script which was produced in the country you expect.
You can also see what programming language is involved, to help in your search and understanding of how the site works.
Website traffic in this case is monitored by Data Sumo Me https://sumome.com/ and Google Analytics. Also the Yoast WordPress SEO plugin is used. The URLs and names here are fairly obvious in the page's HTML and in HTML comments.
The part that pops up the overlays wordpress.stackexchange.com/questions/95661/… myModalLabel is BootStrap Modal - More on Modal Popups from http://www.tutorialspoint.com/bootstrap/bootstrap_modal_plugin.htm which seemed a very clear tutorial and explained the application of modal popups well.
More on Modal dialogue boxes - there is plenty you can do with those and they have been used extensively on this site en-gb.wordpress.org/plugins/modal-dialog modal-dialog for popup dialog boxes - you may find other bits on this site, including the usual jquery, bootstrap and fonts/css.
Another script called "imageareaselect odyniec.net/projects/imgareaselect is used for selecting image areas.
As this question is a little "off topic" for Stack Overflow you should probably try on Wordpress StackExchange, wordpress.stackexchange.com though they don't actually recommend any specific plugins as a matter of policy. I am also not recommending any here, only answering your question as to what has been used here and hope that the focus on what actually makes it work will be of use and interest to programmers who read this answer.
I can't see any other ones indicated in your webpage example - there may be some I have not noticed, but this answer is also intended partly as an example of the forensic analysis processes involved in working out what powers a site, which is at least partly within the scope of StackOverflow and I hope you will be able to use it to help you complete the discovery of any I missed. This started out as a collection of comments but seemed to develop a life of its own.

The frame is getting repeated in Classic ASP application [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am supporting an old classic asp application which is built on VB6.The problem is when I click the submit for approval button in the below
The frame is getting repeated as below...
But when I click on any option of leftmost menulist(For ex: Leave and Attendance Management in the left most menu list) or when I refresh the whole page, The page is displayed finely as below.
As the code is in classic ASP I was unable to debug the code.I am attaching the .asp code of Leave application form page (i.e., the code of first screen shot ) below.
Due to lack of space I am giving you a shared link : Click here...
Code is bit big.Kindly help me.Thanks in advance
Based on your screenshots and the code it looks like the leave application form is being loaded within an iframe on the page of your first screenshot, so when you submit you are loading the posted page into the same iframe. The code (in your shared link) at line 50 seems to target one frame over another depending on a querystring. I would debug the parent page to ensure you have the correct name or target _top to ensure the posted page takes over the whole screen

Wordpress: Redirect user after commenting [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm trying to redirect users after commenting on my Wordpress blog, can anyone steer me into the right direct? I just want it to redirect them once.
There are a few ways that you can do this. The first and simplest is just to write a little function for yourself to do it. You could put this into your functions.php file, in whatever theme you are using.
add_action('comment_post_redirect', 'your_redirect_function');
// A function that redirects your users after they have commented.
function your_redirect_function ($location, $comment) {
// Here all you need to do is return the url of your target page.
$page = 'http://www.stackoverflow.com';
return $page;
}
Sometimes it's better to use Wordpress plugins rather than adding functions to your theme's functions.php file, because if your theme has an update then you'll lose your function! There are some plugins available to do this - the most popular one is Yoast's (he has a plugin for everything doesn't he?) You can download it at http://wordpress.org/plugins/comment-redirect/
I've found Yoast's plugin to be a little limited though, because the redirect will only work once for each of your users. This is a good and bad thing - say you want to thank your user for a comment, then you can only do it once. But it's good if you're asking them to sign up to a service, say. The other popular comment redirect plugin that has more features (but it's not free unfortunately) is Comment Redirect.
Again, it's probably better to go for a plugin, because it will have more features - like limiting the number of times each user gets redirected - and it will also survive the updates to your theme.
Use the below filter hook
comment_post_redirect
For more details
http://codex.wordpress.org/Plugin_API/Filter_Reference
More samples below:
http://wordpress.org/support/topic/a-simple-redirect-using-comment_post_redirect-in-functionsphp
http://wordpress.org/support/topic/redirect-after-posting-a-comment

multiple frontpages in multiple languages [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a Drupal 7 multi-language(3) website. I have installed the Internationalization (7.x-1.0-beta2) module.
I have created for each language a page, and translate it into two others languages.
Now here is what I want to do: to set a kind of intelligent "front-page" to know what language is selected and set the front page (which I choose) in that language.
How can I do this? I know that in Internationalization module, there is no such kind of thing, am I right? If I set the front page to nothing I get this message: “No front page content has been created yet.” which is normal because Drupal is asking me for one front-page to be set, however I want to have for each language a front-page.
Might be late to the party with this answer, but after many hours spent trying to solve this myself, I've the following solution.
For Drupal 7:
1- Make sure you have the modules Variable and Variable Translations switched on.
2- Goto admin/config/regional/i18n/variable
3- Select the 'Site information' list tab and check 'Default front page', save settings.
4- Goto admin/config/system/site-information, you'll notice a block of text there saying something about some of your settings being multilingual variables and a list of links for the languages you are running which allow you to set the settings for each language.
Now, this is where the real GOTCHA comes up... clicking those links and changing the settings does nothing. Your left with the same settings still for all languages. The way around this?
Check the URL you are currently on, the entire thing, so something like: http://www.example.com/en/admin/config/system/site-information/
Notice the language prefix there before /admin?? To change the settings for the other languages you want to use, switch the prefix in the URL and then make your changes. And now, as if by magic, multiple front pages, properly changing based on language.
This must be a bug in Drupal, I should get around to opening a ticket. But for now, if someone else comes across this, I hope it solves your problem too.
I've been searching for the same. I 'd like to recommend Drupal 7 - multi-lingual front page node which is complete and works perfectly for Drupal 7 projects.
After continuing to rip my hair out over this, I found out that this feature is incompatible with anonymous page caching!
Go to /admin/config/development/performance and turn off page caching for anonymous users.
May be there is a better way but finally he is how I did.
I have added in template.php the following code:
/**
* Implements hook_preprocess_page().
*/
function aelius_preprocess_page(&$vars) {
if ($vars['is_front']) {
$langcode = $GLOBALS['language']->language;
if ($langcode == "en") {
drupal_goto('home');
} elseif ($langcode == "fr") {
drupal_goto('accueil');
}
}
}
I haven't worked with Drupal 7 i18n yet, but in Drupal 6 you would add a site_frontpage variable to $conf['i18n_variables'] in settings.php and then switch to each language in turn and set the frontpage on the site information page.
Alternatively, you can specify a condition in your theme front-page.tpl.php like so

Remove header & footer from published Google Docs Spreadsheet [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
I found javascript solution for removing gridlines on Google docs spreadsheets (using "download as HTML" and then past javascript in Web Address Bar): works great !!
javascript:var v="none",e="defaultView",o="border",m="Color",w=function(a,b){if(document[e]){if(document[e].getComputedStyle(a,null)[o+b+m]=="rgb(204, 204, 204)")a.style[o+b]=v}else if(a.currentStyle[o+b+m]=="#ccc")a.style[o+b]="none"},q=function(a){a=window.document.getElementsByTagName(a);for(var b=0;b<a.length;b++){var c=a[b];w(c,"Left");w(c,"Right");w(c,"Bottom");w(c,"Top")}};q("td");q("table");
Was wondering if it is possible to make a comparable javascript to remove the header and footer for docs "publised" to the web?!
Published spreadsheets have a
-> header: filename + sheetname;
-> footer: "Edit this page (if you have permission) – Published by Google Docs – Report Abuse – Updated automatically every 5 minutes"
-> example: TEST (I already added "&gridlines=false" to the url to remove gridlines).
Why is previous solution not sufficient ?!
I want some people to view and print the result of a spreadsheet (via publish to web) without giving them access (view) to the spreadsheet itself. Therefore they can't use "download as HTML" + your javascript, but want to provide a url to view a published site and be able to make a neat print without the Google header and footer.
Would be great if anyone could help out!
Regards,
Thankfully the layout on this page is super simple.
<div id="header">...</div>
<div id="content">...</div>
<div id="footer">...</div>
You could write a function like this to hide the header and footer.
var f = function(id)
{
document.getElementById(id).style.display = "none";
};
f("header");
f("footer");
Or the copy paste version:
javascript:var f=function(id){document.getElementById(id).style.display="none";};f("header");f("footer");
I built an app that does just this + improves the default layout. Check it out: http://gdoc.pub
You can use the range parameter to get rid of the headers and footers, as described here.

Resources