WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 23.11.2015 19:25:23

webbird
Administrator

Colorbox

Maybe this is a "known bug" but I didn't find anything here....

Just installed WBCE 1.0 and bs_naturak Template and have a strange issue with colorbox:

<script type="text/javascript" src="function URL() {
    [native code]
}/modules/colorbox/js/jquery.colorbox-min.js"></script>

?????


Ich habe eine Amazon-Wishlist. wink Oder spende an das Projekt.
Ich kann, wenn ich will, aber wer will, dass ich muss, kann mich mal

Offline

#2 23.11.2015 20:15:52

norhei
Developer

Re: Colorbox

No Idea right now

Offline

#3 23.11.2015 20:16:43

florian
Administrator

Re: Colorbox

bs_naturak is a bootstrap template and loads its own jquery. The colorbox snippet does not work with this, I can confirm; but I can't reproduce the described error - do you mean, inside the generated code pops up "[native code]" or do I misunderstand you?

Offline

#4 27.11.2015 22:13:48

marmot
Mitglied

Re: Colorbox

webbird schrieb:

Just installed WBCE 1.0 and bs_naturak Template and have a strange issue with colorbox:
....?????

bs_naturak Template does not use "register_frontend_modfiles('jquery');" for loading jquery. When calling this function a js variable URL is set. So as this function is not used URL is not set.
To get around this define

[== HTML ==]
<script var URL ="<?php echo WB_URL;>"</script> 

somewhere before the frontend.js files are loaded

Offline

#5 18.04.2018 20:58:56

losttrip
Mitglied

Re: Colorbox

1.3.1 site
Google Webmaster tools, Google can only fetch pages "partial"
Report shows:

Googlebot couldn't get all resources for this page. Here's a list:
URL     Type     Reason     Severity     
http://www.mysite.com/function URL() { [native code] }/modules/colorbox/1/colorbox.css
    Style Sheet     Not found     --     
http://www.mysite.com/function URL() { [native code] }/modules/colorbox/js/jquery.colorbox-min.js
Script     Not found

I tried adding the suggested code:

<script var URL ="<?php echo WB_URL;>"</script> 

But no matter where I place it, my site is a white screen - no output.

Online

#6 18.04.2018 21:10:46

florian
Administrator

Re: Colorbox

The code example has an error, try

<script> 
var URL ="<?php echo WB_URL; ?>";
</script> 

Beitrag geändert von florian (18.04.2018 21:11:22)

Offline

#7 18.04.2018 21:15:30

losttrip
Mitglied

Re: Colorbox

That works perfectly.
Thank you so much!

Online

Liked by:

florian

Fußzeile des Forums

up