-
Posts
223 -
Joined
-
Last visited
Posts posted by JeevanisM
-
-
can I follow the OP steps in 2020 ? or any thing altered now ?
-
On 6/20/2015 at 7:05 PM, LostKobrakai said:
Is there a field datefield named "date" in that page? If not you either need to create it or use one of these, depending on your usecase: "created" or "modified".
thanks, got useful now.
-
14 minutes ago, flydev ?? said:
You might copied the wrong folder. See my ./site/modules folder :
(again, what @adrian said in his last comment, sorry for insisting too ?)
is this correct folder ? my folder screenshot below
- 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 :
After a click on "InputfieldCommentsAdmin" link :
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 ?
-
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 ? -
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..
-
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
-
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
-
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 :
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 ?
-
@psy have you taken the video down from the youtube ? not able to view it now
-
On 5/24/2020 at 1:21 PM, kongondo said:
An alternative you could consider, if you have the time and want to pick up a new skill is to create your android app using Flutter ?
Yes, I got confused whether to choose Android SDK Dev or Flutter ? which one is a better investment ?
-
I subscribed this like yesterday ?
-
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.
-
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...
-
On 3/27/2018 at 6:29 AM, cstevensjr said:
The Comments Fieldtype is explained at the following link:
http://processwire.com/api/fieldtypes/comments/
I believe you need to go to your Comment field and enter an email address. The last 2 images show what a Comment field looks like
I added the email to this field, but still the error persists ....
-
On 10/12/2019 at 2:05 AM, adrian said:
In my version of this module I have changed so many things that it is almost unrecognizable, but I do see that I added:
if($user)
to the beginning on line 394 which should fix what you are seeing.
Confirmed, this fixed the issue.. thanx for the lifeboat ?
-
Once the logout happens, the pahge redirects to http://localhost/pw/admin/ ( to the admin url ) . How do I change this > I want to redirect the page to some other custom page.
-
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.
-
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.
- 1
-
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 !
- 1
-
1 minute ago, flydev ?? said:
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
-
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 ?
-
I figured this out.. thank you for the responses.
Please add your site(s) to our directory (in addition to here)
in Showcase
Posted
Some client dont let to keep the credits, some do but however, you can see the source code - Meta author - Jeevanism@processwire
http://bhimonlineclassroom.in/
http://onnippu.com/
http://www.kasitabusiness.com/
http://pkrosifoundation.org/