Author Topic: How to get bs_verflox template to run correctly?  (Read 894 times)

Offline zirzy

  • Posts: 164
How to get bs_verflox template to run correctly?
« on: June 06, 2016, 01:54:03 PM »
Hi all!

I'm testin bs_verflox template on my test site. Template doesn't include snippets: slider, 2col-intro and parallax, why is that?

I got CMS Version 2.8.3+SP6


Offline jacobi22

  • Global Moderator
  • *****
  • Posts: 4678
  • Gender: Male
    • Jacobi22
Re: How to get bs_verflox template to run correctly?
« Reply #1 on: June 06, 2016, 02:20:49 PM »
there is a switch for it in index.php of this template
Line 14:  $isstartpage
its set to FALSE as standard and to TRUE, if the condition in line 27 is correct, so that the snippets only works on the start page

index.php of this template // Line 27 - must have the page_id from your startpage
Originalcode
Code:
Only registered users can see contents. Please click here to Register or Login.
if you need it also on other pages, use a code like this with your wished page_id's
Code:
Only registered users can see contents. Please click here to Register or Login.
in my example, my startpage has the ID = 159
Code:
Only registered users can see contents. Please click here to Register or Login.
front.php // line 75
here the page_id's from your wished slider-pages like my example
Code:
Only registered users can see contents. Please click here to Register or Login.

front.php // line 79
Code:
Only registered users can see contents. Please click here to Register or Login.this line produceed a white screen in my test installation, if i use it together with the responsive slider, dont know, why and didnt understand

if you have the same problem, deactivate this line with a // or # in the front of this line or include another snippet, to see the effects
« Last Edit: June 06, 2016, 02:29:02 PM by jacobi22 »
Es bist immer nur Du, auch wenn du mich vergisst, es gibt niemanden, der mir näher ist
Immer nur du, die mich wach hält
(*miss you*)

Offline zirzy

  • Posts: 164
Re: How to get bs_verflox template to run correctly?
« Reply #2 on: June 08, 2016, 12:47:26 PM »
there is a switch for it in index.php of this template
Line 14:  $isstartpage
its set to FALSE as standard and to TRUE, if the condition in line 27 is correct, so that the snippets only works on the start page

index.php of this template // Line 27 - must have the page_id from your startpage
Originalcode
Code:
Only registered users can see contents. Please click here to Register or Login.
if you need it also on other pages, use a code like this with your wished page_id's
Code:
Only registered users can see contents. Please click here to Register or Login.
in my example, my startpage has the ID = 159
Code:
Only registered users can see contents. Please click here to Register or Login.
front.php // line 75
here the page_id's from your wished slider-pages like my example
Code:
Only registered users can see contents. Please click here to Register or Login.

front.php // line 79
Code:
Only registered users can see contents. Please click here to Register or Login.this line produceed a white screen in my test installation, if i use it together with the responsive slider, dont know, why and didnt understand

if you have the same problem, deactivate this line with a // or # in the front of this line or include another snippet, to see the effects


Thanks again jacobi22 for your kind help, you are my saviour!

Slider and parallax seems to work fine now. One more thing: I added two extra blocks in info.php file (content 4 and content 5)  if I insert <?php $page_content_4; ?> and <?php $page_content_5; ?> to the 2col-content snippet, it comes out with nothing.. Why? And what if I wanna modify the text of 2col-intro snippet? Yes I can do it from addon file editor, but if I want it to be editable from page wysiwyq, how can I fix it?






Offline jacobi22

  • Global Moderator
  • *****
  • Posts: 4678
  • Gender: Male
    • Jacobi22
Re: How to get bs_verflox template to run correctly?
« Reply #3 on: June 08, 2016, 01:46:45 PM »
Quote
One more thing: I added two extra blocks in info.php file (content 4 and content 5)

some basics....
everytime, when you change something in the info.php of a module or template, you have to reload the addons (Addons -> Advanced -> activate Checkboxes -> Reload)

after the reload, you see the new sections in your section administration like this pic
here Block 4 + Block 5



Quote
if I insert <?php $page_content_4; ?> and <?php $page_content_5; ?> to the 2col-content snippet, it comes out with nothing.. Why?

two methodes to show the content from the new section
1.  simple call with
Code:
Only registered users can see contents. Please click here to Register or Login.
2. use a buffer (i add this code in the top of my front.php)
Code:
Only registered users can see contents. Please click here to Register or Login.
now you can use the Variable $page_content_5 somewhere in the snippets, otherwhise its empty like
Code:
Only registered users can see contents. Please click here to Register or Login.
i use here a "little helper", the hardcoded Content 5<br> to show me the block, empty or not

P.S.: you see this block only on page's with a defined section for page_content(4) or page_content(5)



Es bist immer nur Du, auch wenn du mich vergisst, es gibt niemanden, der mir näher ist
Immer nur du, die mich wach hält
(*miss you*)

 

postern-length