Re: BizBuzz - New Template

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
ciacho
New Member
New Member
Posts: 3
Joined: Mon Jun 06, 2011 7:37 pm

Re: BizBuzz - New Template

Post by ciacho »

Wow, thank You for amazing reply.
I was find Slider template in gallery and remove '5' images limits.

Now all works great :)

Thank You for great project and very good support.
piere123
Forum Members
Forum Members
Posts: 20
Joined: Tue Aug 17, 2010 2:18 pm

Re: BizBuzz - New Template

Post by piere123 »

Hi, firstly just wanted to say what a great theme. Well done!

Can you please help. I am using V2 and I am trying to get the slider that uses the gallery module to enable the link to different URL's depending on the pic. An example of what I am trying to do is in your example. On the slider you have a link to Facebook when the appropriate pic comes around.

Thanks for any help,

Mark
uniqu3

Re: BizBuzz - New Template

Post by uniqu3 »

Gallery module offers "extra fields" simply create an extra field for example "link" (mark it as public, use textfield and select from dropdown images instead of galleries) where you will add your url, then in BizBuzz slider template where <img> (or {supersizer} tag is located you could do something like:

{if !empty($fields.link.value}<a href="{$fields.link.value}"><img src=.... /></a>
{else}
<img src.... />
{/if}
piere123
Forum Members
Forum Members
Posts: 20
Joined: Tue Aug 17, 2010 2:18 pm

Re: BizBuzz - New Template

Post by piere123 »

Hi,

I followed your instructions and when I now run the website I come up with a 500 error.

I created the text input link field, public and image.

Changed the template

The original code was:

Code: Select all

<!-- start pageTeaser -->{if $slider == "+"}                           
      <div id="pageTeaserWrapper">                               
        <div id="pageTeaser">
{Gallery template='Slider' dir=$galleryfolder}
          <!-- end pageTeaser -->                                                      
        </div>       
      </div>{/if}       



I replaced it with this:

Code: Select all

<!-- start pageTeaser -->{if $slider == "+"}                           
      <div id="pageTeaserWrapper">                               
        <div id="pageTeaser">
{if !empty($fields.link.value}<a href="{$fields.link.value}">{Gallery template='Slider' dir=$galleryfolder}</a>
{else}
{Gallery template='Slider' dir=$galleryfolder}
{/if}
          <!-- end pageTeaser -->                                                      
        </div>       
      </div>{/if}       
uniqu3

Re: BizBuzz - New Template

Post by uniqu3 »

I was refering to Gallery template and not page Template.
piere123
Forum Members
Forum Members
Posts: 20
Joined: Tue Aug 17, 2010 2:18 pm

Re: BizBuzz - New Template

Post by piere123 »

Excellent, that worked. Do you know how to make the link also cover the comment? At the moment the comments aren't part of the link
juncster
New Member
New Member
Posts: 5
Joined: Tue Sep 16, 2008 2:11 pm

Re: BizBuzz - New Template

Post by juncster »

Hi,

I've seen references to this error and I can't see what I've done wrong.

I get these two errors:

string(80) "Smarty error: unable to read resource: "module_db_tpl:News;summarynewsFrontpage""

and

string(77) "Smarty error: unable to read resource: "module_db_tpl:News;summarynewsFooter""


I have followed the instructions on the install page listed below to the letter.

http://www.i-arts.eu/bizbuzz/news/7/15/ ... ersion-2-0

Particularly I have created the news templates as instructed:

i.e: Summary templates:
newsSummarypage (set to default),
summarynewsFooter,
summarynewsFrontpage.

Detail template:
newsDetail (set to default).

Thanks,
Rick


Running 1.9.4.2
rab
Forum Members
Forum Members
Posts: 120
Joined: Wed Sep 05, 2007 8:35 pm

Re: BizBuzz - New Template

Post by rab »

Juncster -

Go to page 2 of this topic to see the fix.
Novadragon
New Member
New Member
Posts: 3
Joined: Fri Apr 15, 2011 9:25 am

HI having problems with the template on cms 1.10.3

Post by Novadragon »

Hey i did follow the instructions by the letter and i am getting these errors how to fix please

Code: Select all

/home/forumesq/public_html/lib/smarty/Smarty.class.php:1593 - trigger_error
/home/forumesq/public_html/lib/smarty/Smarty.class.php:1415 - _fetch_resource_info
/home/forumesq/public_html/lib/smarty/Smarty.class.php:1261 - _compile_resource
/home/forumesq/public_html/lib/classes/module_support/modtemplates.inc.php:242 - fetch
/home/forumesq/public_html/lib/classes/class.CMSModule.php:2438 - cms_module_ProcessTemplateFromDatabase
/home/forumesq/public_html/modules/News/action.default.php:423 - ProcessTemplateFromDatabase
/home/forumesq/public_html/lib/classes/class.CMSModule.php:1583 - include
/home/forumesq/public_html/lib/classes/class.CMSModule.php:1628 - DoAction
/home/forumesq/public_html/lib/module.functions.php:122 - DoActionBase
/home/forumesq/public_html/plugins/function.news.php:22 - cms_module_plugin
/home/forumesq/public_html/tmp/templates_c/%%1F^1F4^1F40F87E%%tpl_body%3A37.php:80 - smarty_cms_function_news
/home/forumesq/public_html/lib/smarty/Smarty.class.php:1263 - include
/home/forumesq/public_html/index.php:272 - fetch
string(80) "Smarty error: unable to read resource: "module_db_tpl:News;summarynewsFrontpage"" 
Please help
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

Hi,

First of all, thanks for making such a great theme! I absolutely love it :D

I followed all the instructions for BizBuzzV2 and got this error on the index/every page when I set the template to 'Set All Pages':

Code: Select all

Syntax Error in template "tpl_body:25"  on line 3 "{capture assign=galleryfolder value=$entry->gallery}{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use'  page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}" unexpected "value" attribute

#0 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_compilebase.php(113): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unexpected "val...', 3)
#1 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_compile_capture.php(45): Smarty_Internal_CompileBase->getAttributes(Object(Smarty_Internal_SmartyTemplateCompiler), Array)
#2 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(527): Smarty_Internal_Compile_Capture->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#3 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(259): Smarty_Internal_TemplateCompilerBase->callTagCompiler('capture', Array, Array)
#4 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('capture', Array)
#5 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36()
#6 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36)
#7 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(16, '{')
#8 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(206): Smarty_Internal_SmartyTemplateCompiler->doCompile('           ??  ...')
#9 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template))
#10 /home/parukian/public_html/lib/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()
#11 /home/parukian/public_html/lib/classes/class.Smarty_CMS.php(326): Smarty_Internal_TemplateBase->fetch('tpl_body:25', 'p15', NULL, NULL, false, false, false)
#12 /home/parukian/public_html/index.php(240): Smarty_CMS->fetch('tpl_body:25')
#13 {main}
Not sure what I did wrong, as I followed all the instructions as specified in the README_FIRST.txt file.
Last edited by Gary29 on Wed Oct 09, 2013 1:24 pm, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: BizBuzz - New Template

Post by velden »

As far as I know the capture tag does not have a 'value' attribute. It is meant to capture the output of things between {capture}{/capture} tags.

It does require a name attribute though.

So I would suggest to remove the value thing and test again:

Code: Select all

{capture name="whateveryoulike" assign="galleryfolder"}{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}
I would expect the '$galleryfolder' variable to be used later on in the/some template.
chandra

Re: BizBuzz - New Template

Post by chandra »

You dont need the capture tag ;) . content tag has his own assign param. Try this

Code: Select all

{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true' assign='galleryfolder'}
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

Sorry, I am still a little inexperienced with where to edit what code on CMSMS. chandra, the code that you mentioned, where would I add that to/replace the code at?
Gary29
Forum Members
Forum Members
Posts: 14
Joined: Fri Oct 04, 2013 6:09 pm

Re: BizBuzz - New Template

Post by Gary29 »

If someone could tell me where to place the code mentioned above and if it replaces any other code, I'd appreciate it.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: BizBuzz - New Template

Post by velden »

Find

Code: Select all

{capture assign=galleryfolder value=$entry->gallery}{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use'  page_tab='Header Options' wysiwyg='false' oneline='true'}{/capture}
and replace with

Code: Select all

{content block="Gallery Folder" description='Enter the name of the Gallery folder you wish to use' page_tab='Header Options' wysiwyg='false' oneline='true' assign='galleryfolder'}
Of course you make a backup of the original first!
Post Reply

Return to “Layout and Design (CSS & HTML)”