Jump to content

JeevanisM

Members
  • Posts

    223
  • Joined

  • Last visited

Posts posted by JeevanisM

  1. 4 minutes ago, flydev ?? said:

    Yes, exactly what you did, copying the module from Wire to Site/modules then refresh and select the new module when asked.

     

    After a refresh :

    Capture.thumb.PNG.10cb012b0d4f7385ba26618a830f1d08.PNG

     

    After a click on "InputfieldCommentsAdmin" link :

    Capture2.PNG.16d8c049757cc87c2113e49d558251b5.PNG

    Same thing for "FieldtypeComments" and the CSS should now load correctly.

     

    --------

    Anyway, I suggest you to avoid this technique and to copy the CSS from the module and to paste it on your own principal main CSS file and tweak the CSS comments there.

    Once that done, you won't have to worry about keeping the module up-to-date.

     

    well thats my issue.  I am not seeing such  message notifications once I refresh  module page in admin ?  I double checked if I copied files, yes but not showing any message info ?  

  2. 3 minutes ago, adrian said:

    Ok, but overriding CSS doesn't require creating a new copy of the module. Just inject the CSS you want into the PW admin - I use AdminOnSteroids for this, but there are other ways. 

    I am not sure about steroids.. but when I was using Concrete 5 CMS< they have this overriding method of modules, just copy the modules from the core DIR to the  theme DIR, then it will honor the priority ... Does PW have some thing like that ?

    today its just css, what if I want to make changes in php files  in module ?

  3. On 5/26/2020 at 9:34 PM, flydev ?? said:

    You might can explain what you are trying to achieve ? Maybe it's copying/editing the module is not required ?

    yes I want to make changes in the site/modules files but my problems is the change I made in the css file in site/module is not in effect, still the css is loading from the core location..

  4. and No, I dont want to ov

    On 5/27/2020 at 5:11 PM, Ivan Gretsky said:

    Hey @JeevanisM! You probably shouldn't override the core module, as all the good men stated above. But it's nice to know you can (and I actually did this before exactly with Comments field - hope it is easier to customize it now).

    I dont want to edit the core module but I want to override the style used in the core module. In bootstrap we can override the default styles by writing our own params with same css class name used in BS and BS honor it if we call the custom css after the BS load.

    Same as that, I want to override the style used in the comments module but I dont want to edit the core files..

    Hence I copied the module to site/modules directory as mentioned here

    But when I change the css file in the site/module - the css is again loading from the core module location. Any idea why this happens ? I will update to the latest dev branch and will try again

  5. On 5/26/2020 at 8:25 PM, adrian said:

    Firstly, are you sure you need to modify the module for "style editing"? In case you haven't read already: https://processwire.com/docs/modules/guides/comments/

    Secondly, if you do find you need to modify, I would consider upgrading to the very latest dev as there have been some major changes to the comments field and an important bug fix.

    Consider those before worrying about why the approach you are taking isn't working yet.

    ok, I will try the  latest dev.. I am using the Master branch now

  6. Hello All,

    I need to make some style editing in the core module - FieldtypeComments

    But I dont want to edit in the Core itself, since it may got overwritten for the next update or so. so I searched form and found this option :

    204711072_Screenshot_2020-05-26ProcessWirecoreupdates(2514).png.8efc8d20a4bdced7590a67fcd0893a4c.png

     

    But in my Admin, I dont see any notification as per the 4th step above. The debug option is true and I am using ProcessWire 3.0.148 © 2020

    Any idea why its not happening  ?

  7. Hey All,

    This may sound dumb but just wanted to ask this question. I have this website running ( http://bhimonlineclassroom.in/demo1/ ) 

    This is a simple website to show the educational videos in a categorical way. Now there is a situation, that the students who are geographically disabled on Internet access, to use this application. Since this is a website, they cannot browse it. I know the next option is to create an android mobile app which can access video files locally without internet. But I want to ask whether there is any kind of possibility we can use with web technologies, to access / display local files( in this case videos) stored in an android phone ? I have google a lot and read about the Progressive Web Apps and all, but I am not able to figure it out yet.

     

    any ideas ?

    thanks in advance.

  8. On 4/17/2020 at 3:57 PM, patricktsg said:

    Can you post your code for rendering the form. I have the js and css in place but I still only see the name email and message field, never shows the website or stars if I enable them

    Same effect here.... 

    I confirmed that the css / js files are working fine.

    still the star section is NOT  showing...

     

    2020-05-16_10-37_1.png

    2020-05-16_10-37.png

    2020-05-16_10-38.png

  9. I am somehow made bypass  for this purpose 

     

    protected function createConfirmationCode() {
    		$pw = new Password();
    		//$code = $pw->randomBase64String(40);// to by pass the email validation send step
    		$code = 426;
    		$this->wire('session')->setFor($this, 'confirm_code', $code); 
    		return $code; 
    	}

    just added a fixed static value as code, instead sending this to email 

    protected function ___processConfirmation() {
    		
    		$input = $this->wire('input');
    		$session = $this->wire('session');
    		$users = $this->wire('users');
    		/// $code = $input->get('register_confirm');/// to bypass the send confirmation code to email step 
    		$code = 414; // a static number to verify 

    I know this is ugly and defeat the security purpose but for the purview of the project, this is ok. 

     

  10. 21 hours ago, EyeDentify said:

    It would benefit the forum if you could tell the others how you actually solved your problem instead of just leaving a message.

    yes, sorry for being very vague about the reply. 

    I solved this issue as below mentioned method 

    If the target page (new parent) doesn't have already children you need to mark (click) it before moving the other page.

    • Like 1
  11. Hi,

    I have fixed with a small piece fo code as below

        $url = "$videourl";
                  $shortUrlRegex = '/youtu.be\/([a-zA-Z0-9_]+)\??/i';
                  $longUrlRegex = '/youtube.com\/((?:embed)|(?:watch))((?:\?v\=)|(?:\/))(\w+)/i';
    
                  if (preg_match($longUrlRegex, $url, $matches)) {
                      $youtube_id = $matches[count($matches) - 1];
                  }
    
                  if (preg_match($shortUrlRegex, $url, $matches)) {
                      $youtube_id = $matches[count($matches) - 1];
                  }
                $fullEmbedUrl = 'https://www.youtube.com/embed/' . $youtube_id ;

    and its working now  ! the thread is closed ! 

    • Like 1
  12. 1 minute ago, flydev ?? said:

    @JeevanisM

    Look like you use the wrong youtube URL.

    Try to see how is composed your URL and then be sure that you link youtube's video with the /embed endpoint as it allow cross origin request.

     

    Check :

    bad: https://www.youtube.com/watch?v=kSLhay7msTI

    gud: https://www.youtube.com/embed/kSLhay7msTI

     

    yes I got it now, my bad. This is not a PHP issue, working on a function to conver the normal youtube URL to emebded URL.. 

    thanks for the reply 

  13. Hello,

    I am a simple code to display an emebedded youtube video in a page. the code is below 

    <div class="card-body">
        <h3 class="card-title">
            <?php echo $vidoename;?>
        </h3>
        <div class="embed-responsive embed-responsive-16by9">
            <iframe class="embed-responsive-item" src="<?php echo $videourl;?>" frameborder="0" allowfullscreen></iframe>
            <p class="card-text">
                <?php echo $videosummary;?>
            </p>
            <p class="card-text">Uploaded Date:
                <?php echo $videolastupdated;?>
            </p>
            <p class="card-text">Teacher Name:
                <?php echo $videocreatedby;?>
            </p>
    
        </div>
    </div>

    Now, when I run the page I get this error  Blocked by X-Frame-Options Policy in firefox . Any idea how to solve this. 

     

    <iframe class="embed-responsive-item" src="<?php echo $videourl;?>" frameborder="0" allowfullscreen></iframe>

    is this simply wrong way of the feeding a youtube URL dynamically ? 

     

     

    Screenshot_2020-05-04 Bhim Online Class Room.png

×
×
  • Create New...