Forum Replies Created

Viewing 15 replies - 16 through 30 (of 35 total)
  • I’ve got the same problem, and when I click on the support tab, I get the following message: “Fatal error: Call to undefined function get_user_by() in /home4/sleepama/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 1238”.

    Thread Starter InterTrade

    (@intertrade)

    Wow, you know, after I posted my last post, I began to see some serious problems with my approach with the $_SESSION superglobal. It seems that the superglobal just didn’t act the way I expected. It took me some time to find the right approach that would resolve all the issues and consistently give me the popups and the “Access Denied” pages as I originally intended, so I will post my solution here for all the world to see just in case there is anyone else out there looking for a similar solution.

    My final solution involved using a form, a link and some javascript. I had to use a fake submit button in order to invoke the onsubmit event handler. The solution is as follows:

    In the popup template:

    <?php
    /**
     * @package WordPress
     * @subpackage Your_Theme
     */
    /*
    Template Name: Popup
    */
    if ($_POST['popup'] != "true") {
    	header( 'Location: http://your.url/?page_id=yourpageid');
    // Place your "Access Denied" page in the your.url info above.
    } else {
    ?>
    	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    	<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <!-- The rest of your popup template goes here.  Don't forget to close out the PHP if statement.

    In the javascript file (don’t forget to include your reference to this file in the header.php file):

    function get_popup(popup_window, form_name, height, width) {
    	window.open(popup_window, 'popup_window', 'width=' + width + ', height=' + height + ', resizable=yes, scrollbars=yes, toolbar=no, menubar=no, left=0, top=0').focus();
    	eval('document.' + form_name + '.target = "popup_window"');
    	return true;
    }
    
    function submitform(form_name) {
    	eval('document.' + form_name + '.fakeSubmitButton.click()');
    }

    And finally at the link:

    <form name="yourformname" action="yourtemplateurl" method="post" onSubmit="return get_popup('yourtemplateurl', 'yourformname', yourwindowheight, yourwindowwidth)"><input type="hidden" name ="popup" value="true">
            <div class="yourlink"><a href="javascript:submitform('yourformname');">Your Link</a></div><input type="submit" name="fakeSubmitButton" style="display: none"/>
    </form>

    This code works like a charm for me. I hope it helps someone else.

    Have a great day!

    Thread Starter InterTrade

    (@intertrade)

    Cool, BigDaddy00! You helped me see a solution I didn’t see before.

    As a matter of fact, I was just about to register my solution by utilizing the $_SESSION superglobal to pass popup status to the template and thereby blocking a direct access. But I like your solution very much!

    Thanks again for your help!

    Forum: Fixing WordPress
    In reply to: Index.html

    Sorry thedvl, the only real solution I found (that is the one that actually took care of the problems instead of creating new ones) was to separate my WordPress files into a subdirectory with the index.html in the root directory. There were just too many factors for me to deal with in my website all of which seemed to have problems in distinguishing between the two files.

    Thread Starter InterTrade

    (@intertrade)

    Well, I found a solution, but I don’t know if it’s the proper way of doing things. I went ahead and placed the statement $full_title = ''; on line 23 of wp-e-commerce/widgets/category_widget.php. If anyone knows of a better way, I would appreciate any comments.

    InterTrade

    (@intertrade)

    All functions are found within the WordPress working files. You can find the function by typing function <function name> within the Find and Replace dialog in Dreamweaver. However, I do want to emphasize that if you did not physically do a full download from your server, but just did a visual check, odds are you missed the file that contains your problem. The only way of ensuring you are searching through every file on the server is to do the full download. The full download should take you quite a while to do.

    InterTrade

    (@intertrade)

    You need to download all the files from your server and then do your search.

    Forum: Fixing WordPress
    In reply to: root problem
    InterTrade

    (@intertrade)

    You need to call your webhosting company and ask them which directory your root resides on. Once you find that out, you can upload your Favicon there.

    InterTrade

    (@intertrade)

    You may need to do like I have to do. For some reason sometimes added files are generated on the server that I did not have within the files I was working on. So, to be absolutely sure that everything on the server is in agreement with my working files, I will, from time to time, get all the files from the server and download them into my working files. I then conduct a search of the strings I want to change and upload those files back to the server. That seems to be the only solution that works for me.

    Thread Starter InterTrade

    (@intertrade)

    Oh wow! That’s what those things are called. Hey thanks a million asechrest, you are great!

    Thread Starter InterTrade

    (@intertrade)

    I found the workaround!!! Just use the html code &quot; instead of the double quotes, and when you save it, viola! Double quotes where they should be!

    Thread Starter InterTrade

    (@intertrade)

    PolkaMax, thanks a lot! I followed the instructions in the post you listed and it worked! You made my day!

    Thread Starter InterTrade

    (@intertrade)

    Thank you, thank you, thank you!!! You know I have posted several different issues in these forums and it is a rare treat that someone comes up with a solution. I truly appreciate it!

    Forum: Fixing WordPress
    In reply to: Index.html

    Hey, I just noticed something though, and I was wondering if anyone else has experienced the problem with ChrisThomson’s solution: on the initial visit to the website, the index.html page is displayed which has a link to the index.php page. When I click on the link, it goes to the index.php just fine, but when I click on any link on the index.php page it goes back to the index.html page. For anyone interested in seeing it, it’s located on omniunlimited.com. You’ll be able to see what I mean until I find a fix for this.

    Forum: Fixing WordPress
    In reply to: Index.html

    ChrisThomson, you are a genius! Your solution worked for me too!

    Thanks a million!

Viewing 15 replies - 16 through 30 (of 35 total)