luckdragon
Forum Replies Created
-
Forum: Hacks
In reply to: Manual Redirectok, then in the plugin, in the file:
wsi/wsi/front/splasy/content.inc.phpyou will find:
<?php echo stripslashes($siBean->getWsi_html()); ?>change it to:
<?php echo stripslashes(str_replace("%%uri%%",$_SERVER['REQUEST_URI'],$siBean->getWsi_html())); ?>Forum: Fixing WordPress
In reply to: insering database into a siteresent
Forum: Hacks
In reply to: Manual Redirectare you using the html option or the iframe option?
Forum: Hacks
In reply to: Manual Redirectno, the filter that I gave you works on post/page content… if the plugin you are using for the splash page doesn’t have post/page content, then we need to do it a different way.
Forum: Fixing WordPress
In reply to: search function in Posts doesn't workworks fine for me
Forum: Hacks
In reply to: Manual Redirectis the page you’re displaying part of the plugin, or is it actually a page ?
Forum: Hacks
In reply to: How to a hide plugin from specific usernames?put this in functions.php of your theme, adjust the array to be whatever one/ones you want to hide. NOTE: the values in the array are the path and name of the main file from the plugin.
function mytest() { global $wp_list_table; $hidearr = array('hello.php'); $myplugins = $wp_list_table->items; foreach ($myplugins as $key => $val) { if (in_array($key,$hidearr) { unset($wp_list_table->items[$key]); } } } add_action( 'pre_current_active_plugins', 'mytest' )Forum: Fixing WordPress
In reply to: insering database into a siteI replied to it shortly after you sent it.
Forum: Hacks
In reply to: Manual Redirectyes, but it is still wp, which means that it’s a script, you could add a filter to functions.php that parses out variables
so you could do like:
<a href='mainsite.com/%%uri%%'>Main Site</a> | <a href='mobilesite.com/%%uri%%'>Mobile Site</a>then in functions.php for your theme:
add_filter( 'the_content', 'my_the_content_filter' ); function my_the_content_filter($content) { $content = str_replace("%%uri%%",$_SERVER['REQUEST_URI'],$content); return $content; }Forum: Hacks
In reply to: Manual Redirectwhy does it have to be html? you can’t create a .php file?
Forum: Hacks
In reply to: Comment validation: Data disappears after clicking "back" buttonsame host/server? could be the way the server is configured, or something similar.. can’t really answer that..
Forum: Hacks
In reply to: Comment validation: Data disappears after clicking "back" buttonI stand corrected, looking through some search results, it is possible, but if all you are trying to do is add captcha to a comment form, my recommendation would be to get a plugin already designed to do so..
http://wordpressapi.com/2010/08/04/wordpress-comments-captcha-plugin/
there’s a url with a list of plugins to do what you want 🙂
Forum: Hacks
In reply to: Comment validation: Data disappears after clicking "back" buttonI don’t know that there’s any way once the comment form has been submitted to test against the captcha and make the function stop, however, you could use ajax to test the captcha before submitting the comment form to test if the captcha is right, if it is, then submit the form, if it isn’t return an error (or make an error div visible) and change the captcha
Forum: Hacks
In reply to: Comment validation: Data disappears after clicking "back" buttonif it is running wp_die, then it’s ending there, so it’s never returning anything
Forum: Hacks
In reply to: Manual Redirectwhy can’t you just hardcode the link? i.e.
<a href='mobilesite.com/whatever/whatever'>Mobile Site</a> | <a href='mainsite.com/whatever/whatever'>Main Site</a>also, I would recommend the use of subdomains..
i.e. mainsite.com just has the “choice” page which directs them to either mobile.mainsite.com or desktop.mainsite.comyou could easily create an index.php file for “mainsite.com” that does:
Please Choose Your Destination: <a href='mobile.mainsite.com<?=$_SERVER['REQUEST_URI']?>'>Mobile Site</a> | <a href='desktop.mainsite.com<?=$_SERVER['REQUEST_URI']?>'>Desktop Site</a><?