The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Live website doesn't update when I change code - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.4 (https://userspice.com/forums/forumdisplay.php?fid=27)
+--- Thread: Live website doesn't update when I change code (/showthread.php?tid=1181)



Live website doesn't update when I change code - mitchw - 10-19-2018

Hi there, 

Firstly I would like to say what an amazing product you have. However, I am experiencing some issues. Whenever I update any code e.g I remeoved <a class="" href="<?=$us_url_root?>"><img class="img-responsive" src="<?=$us_url_root?>users/images/logo.png" alt="" /></a> from navigation.php and uploaded it to remove the logo entirely the code that has been uploaded in the CPannel editor shows this line gone but the live site still has a logo and shows the reference to logo.png as still being there.

Any help would be greatly appreciated.

Thanks


RE: Live website doesn't update when I change code - mudmin - 10-19-2018

It's your browser cache. Try hitting shift-f5. Browsers seem to think that logos never change and leave them there forever.


RE: Live website doesn't update when I change code - Brandin - 10-19-2018

It may be Control F5 (thats the combination I use)


RE: Live website doesn't update when I change code - MarcE - 11-23-2018

Hello!

I, too, am having this issue. For example css code from custom.css doesn't apply to the element at all, even though I can see that the custom.css is being included in the document, and the element in question has the appropriate class-name. Also, things like adding a id="element_id" to the navbar doesn't apply either. (Even though it is there if I look at the code in my editor.)

Any inputs on this?

Thanks!

Edit: Forgot to mention that I have cleared cookies/cache a couple of times and it doesn't help.


RE: Live website doesn't update when I change code - Brandin - 11-23-2018

This is a CSS issue-and not a UserSpice issue. You more than likely are changing attributes of an element that are already defined, or defined after the custom css, and you need to mark those important to override the other. Unfortunately, Dan and I both are not CSS gurus so won't be able to aid much help here.


RE: Live website doesn't update when I change code - MarcE - 11-23-2018

(11-23-2018, 01:09 PM)Brandin Wrote: This is a CSS issue-and not a UserSpice issue. You more than likely are changing attributes of an element that are already defined, or defined after the custom css, and you need to mark those important to override the other. Unfortunately, Dan and I both are not CSS gurus so won't be able to aid much help here.

I have tried marking them as !important as well, so that's not the issue.

1: My css has been added to custom.css (both in users/css and usersc/css, even though that shouldn't be necessary.)
2: I have made sure that custom.css is set in the CSS Settings (Admin Dashboard).
3: I have made sure the css code is correct, and the element has the correct class-name.
4: I can clearly see that the custom.css document is linked, when I view the source-code of the page.
5: I can clearly see that the code isn't beeing overwritten, in the developer-tool. The code is simply not "being loaded", for lack of a better explanation.

At this point I feel like this is indeed a UserSpice issue, but I can't be sure. I am, however, sure that the issue is not css-based.

That was only part of the issue though.

I have tried adding my own id to the navigation div, in users/includes/navigation.php. The part I have added simply will not show up in the source-code, even though I can see the code in my editor. It's like the navigation.php doesn't output anything except the original code.


RE: Live website doesn't update when I change code - Brandin - 11-23-2018

Unfortunately, I can assure you, that on my fresh and existing installs of UserSpice, my users/css/custom.css file is included without making any modifications and changes I enter in here are able to be used elsewhere within the project.

Navigation.php is for file-based nav, the default nav is database driven (which can be checked on the admin dashboard) and this is controlled from database-navigation.php.


RE: Live website doesn't update when I change code - MarcE - 11-23-2018

(11-23-2018, 01:31 PM)Brandin Wrote: Unfortunately, I can assure you, that on my fresh and existing installs of UserSpice, my users/css/custom.css file is included without making any modifications and changes I enter in here are able to be used elsewhere within the project.

Navigation.php is for file-based nav, the default nav is database driven (which can be checked on the admin dashboard) and this is controlled from database-navigation.php.

That solved the navigation problem atleast, thanks!