Page 9 of 11

Re: BizBuzz - New Template

Posted: Tue Jun 07, 2011 12:41 pm
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.

Re: BizBuzz - New Template

Posted: Sat Jun 11, 2011 8:53 am
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

Re: BizBuzz - New Template

Posted: Mon Jun 13, 2011 3:26 pm
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}

Re: BizBuzz - New Template

Posted: Mon Jun 13, 2011 5:20 pm
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}       

Re: BizBuzz - New Template

Posted: Mon Jun 13, 2011 5:47 pm
by uniqu3
I was refering to Gallery template and not page Template.

Re: BizBuzz - New Template

Posted: Tue Jun 14, 2011 12:01 pm
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

Re: BizBuzz - New Template

Posted: Sun Aug 21, 2011 8:39 pm
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

Re: BizBuzz - New Template

Posted: Mon Sep 12, 2011 6:02 pm
by rab
Juncster -

Go to page 2 of this topic to see the fix.

HI having problems with the template on cms 1.10.3

Posted: Mon May 14, 2012 8:56 am
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

Re: BizBuzz - New Template

Posted: Tue Oct 08, 2013 11:46 pm
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.

Re: BizBuzz - New Template

Posted: Wed Oct 09, 2013 6:39 am
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.

Re: BizBuzz - New Template

Posted: Wed Oct 09, 2013 9:57 am
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'}

Re: BizBuzz - New Template

Posted: Wed Oct 09, 2013 1:53 pm
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?

Re: BizBuzz - New Template

Posted: Fri Oct 11, 2013 5:04 pm
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.

Re: BizBuzz - New Template

Posted: Fri Oct 11, 2013 9:29 pm
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!