Forum Replies Created

Viewing 15 replies - 1 through 15 (of 52 total)
  • Thread Starter IamMarvin

    (@wp-marvin261)

    Hi Mario Valney. Folder exclusion from the tree is what I am looking for. Right now I see many files from JQuery. I want to exclude or hide them from the tree of files in plugin editor.

    But I do not know how to use these code. Can you give me an example code how to use this?

    Thread Starter IamMarvin

    (@wp-marvin261)

    I think this might help. My question is something like this wordpress DISALLOW_FILE_EDIT
    but I need to disallow specific file not all files in plugin/theme directory.

    Thread Starter IamMarvin

    (@wp-marvin261)

    May I know how can I quickly find my answer on this plugin documentation base on my question. I cannot see/read what I am looking.

    • This reply was modified 7 years, 1 month ago by IamMarvin.
    Thread Starter IamMarvin

    (@wp-marvin261)

    May I know how to quickly get what I am looking for on this link:. https://developer.www.ads-software.com/plugins/
    <br><br><br>

    How to hide specific files in wordpress plugin file so that I do not see the file in screen monitor on plugin editor page.

    Thread Starter IamMarvin

    (@wp-marvin261)

    there are lots of files I see in the plugin editor page. I want to hide some of the files inside the plugin folder so that I do not see those file in the screen monitor.

    Thread Starter IamMarvin

    (@wp-marvin261)

    I want to know if there is a way or code to hide specific file in wordpress plugin files where I see in the plugin editor page via admin page

    Thread Starter IamMarvin

    (@wp-marvin261)

    I will close this topic. I say thanks to the person who help me share codes for web development.

    • This reply was modified 7 years, 2 months ago by IamMarvin.
    Thread Starter IamMarvin

    (@wp-marvin261)

    Right now I visited jQuery UI’s Datepicker website and visited the jQuery UI’s Datepicker API Documentation. There are lots options and methods in DatePicker widget but I cannot find what I am looking for.

    I am looking for this kind of calendar(with Start Date/End Date Selection) if possible.

    https://iammarvin261.x10host.com/wphottel1a/single-bed-2/

    If not I will use the old version of user signing/choosing a date form which is easy to code if you do not know how to make(no source code) a Calendar with Start Date/End Date Selection.

    If I am not mistaken, JavaScript/HTML also has datepicker input type but this input type can only be use in Chrome Browser.

    • This reply was modified 7 years, 5 months ago by IamMarvin.
    Thread Starter IamMarvin

    (@wp-marvin261)

    Thanks Jacob. You are always replying to my questions. I will try jQuery UI’s Datepicker. I will try to use this source code late because right now I am doing home maintenance. I am repainting my roof and repairing/removing corrosion on my roof.

    I dot not know why my topic question is in “Fixing WordPress Category”. It suppose to be with “Developing WordPress” section category.

    Right now I am building a hotel website with its own online booking/reservation web application.

    I do not have a job right now. I am currently looking for a job. I make my own website/web application if I have free time/no job.

    • This reply was modified 7 years, 5 months ago by IamMarvin.
    Thread Starter IamMarvin

    (@wp-marvin261)

    I already look and read the open source code for CP Reservation Calendar plugin php file…
    But I am having trouble in getting what I need. What I need is the Calendar with Start Date and End Date. I will use this to remodel my current check-in/check-out form. I will use the Calendar with Stat Date and End Date Selection to get what the user selected on check-in/check out. I will also give you an example images of what I need on CP Reservation Calendar plugin.

    Here is the link:
    https://iammarvin261.x10host.com/wphottel1a/single-bed-2/

    What I need is the code for Calendar with Start/End Date Selection.

    • This reply was modified 7 years, 5 months ago by IamMarvin.
    • This reply was modified 7 years, 5 months ago by IamMarvin.
    Thread Starter IamMarvin

    (@wp-marvin261)

    Some user on the other programming forum said a user can create their own referer header (or any other header, for that matter), but they cannot create their own session.

    This is a good information about using? PHP SUPERGLOBALS $_SERVER[‘HTTP_REFERER’]; and PHP Session code $_SESSION[“session_name”];?

    I will now use?PHP Session code $_SESSION[“session_name”]

    I will end this topic and mark this topic closed/solved.

    Thank you.

    Thread Starter IamMarvin

    (@wp-marvin261)

    Hi to all. Sorry for late reply. It took me 4 days to choose how block unauthorized access to my WordPress php plugin file using JQUERY AJAX.

    I tried to to use wordpress is_user_logged_in() function but you can only use this function if the php file is included on WordPress plugin main php file.

    I decided to choose PHP SUPERGLOBALS $_SERVER[‘HTTP_REFERER’]; over PHP Session code $_SESSION[“session_name”];

    I will add sample code:

    
    /** javascript JQuery AJAX code of my php file which can copy/get through a browser by any user */
    
    $(document).ready(function(){
            		$.post("/wp-content/plugins/SLMS/UserRecord.php", 
    			{
    			saveUserBtn: "Save", FName: fname, LName: lname, UNumber: unumber, address: address, contact: contact, email: email
       			},
    			function(data, status){
     			document.getElementById('userr-page-notice').innerHTML = data;
    				if(data.includes("New record saved.")) {
    					document.getElementById("userRecord").reset();
    				}
            		});
    		});
    /** Here is the code to my other php file that contains database access and saving data to databse */
    
    <?php
    if($_SERVER['HTTP_REFERER'] == "https://iammarviin26.000webhostapp.com/user-record/") {
        if(isset($_POST['saveUserBtn']) and $_SERVER['REQUEST_METHOD'] == "POST") { 
            insertRecord();
    	/**
    	insertRecord();
    	echo "working" ;
    	*/
    	
    	}
    
    	elseif(isset($_POST['searchUNBtn']) and $_SERVER['REQUEST_METHOD'] == "POST") {
    	    searchUNRecord();
    	
    	/**
    	searchUNRecord();
    	echo $_POST['searchUN'];
    	echo "Success";*/
    	}
    
    	elseif(isset($_POST['updateUserBtn']) and $_SERVER['REQUEST_METHOD'] == "POST") {
        	updateRecord();
    	/**
    	updateRecord();
    	echo $_POST['ID'];
    	echo "Update Status";*/
        }
    }
    /** Other php code/script that contains database credentials/sql script */
    ?>

    While using PHP SUPERGLOBALS $_SERVER[‘HTTP_REFERER’]; any users cannot access my php file without the correct http referrer and actively login to my web application.

    In case you cannot use wordpress is_user_logged_in() you can use SUPERGLOBALS $_SERVER[‘HTTP_REFERER’]; or PHP Session code $_SESSION[“session_name”];

    Any suggestion or comment
    Thanks

    • This reply was modified 7 years, 5 months ago by IamMarvin. Reason: message correction
    • This reply was modified 7 years, 5 months ago by IamMarvin. Reason: message correction
    Thread Starter IamMarvin

    (@wp-marvin261)

    Hi Zagreus. Thanks for reply. Yes, a user will see my javascript code. That is why I am asking if there is a way to block unauthorized access to php file. I will also mention web host CPANEL File Permission if this can help.

    I also read the article for nonce. I am not fully understand the article and I do not how to use nonce. Can you give me an example code base on the JQuery AJAX/ PHP code I gave in the post.

    • This reply was modified 7 years, 5 months ago by IamMarvin.
    Thread Starter IamMarvin

    (@wp-marvin261)

    Thanks Jacob Peattie. I understand your explanation how to use WordPress . I will not ask an example code how to use this is_user_logged_in() function. Some Web Developer will also ask this kind of questions and post a question to this forum and they want to know what is the example code how to use this is_user_logged_in() .

    I will mark this Post Question solve.

    Thank you.

    • This reply was modified 7 years, 5 months ago by IamMarvin. Reason: easily understand
    • This reply was modified 7 years, 5 months ago by IamMarvin. Reason: easily understand

    I have the same problem. I cannot upload and use the images in the media library. I tried to uninstalled all my plugins. Then I can now see the images in the media library. I can now upload my logo directly on theme site identity. Thanks.

Viewing 15 replies - 1 through 15 (of 52 total)