Results 1 to 2 of 2

Thread: I'm begging you PLEASE HELP with embedding full page script in blog!

  1. #1

    Exclamation I'm begging you PLEASE HELP with embedding full page script in blog!

    Hey I've been working on this for 4 days and I'm going nuts trying to figure this out.
    I'm using concrete5 with Pro Blog for my blog site. I am trying to embed a full script page code into my main blog list page.

    I went to the concrete5 support forums and they said I needed to change the code in the pro_blog "list" template. And I have No Idea where to put in the code. Here is the code:
    <script type="text/javascript" src="http://www.tnabucks.com/Webservices/jsParseLinks.aspx?id=6b01c69b"></script>


    And here is my view.php for the pro blog list:

    <?php
    defined('C5_EXECUTE') or die(_("Access Denied."));
    extract($blog_settings);
    if (count($cArray) > 0) { ?>
    <div class="ccm-page-list">

    <?php
    for ($i = 0; $i < count($cArray); $i++ ) {
    $cobj = $cArray[$i];
    $title = $cobj->getCollectionName();
    $comment_count = blogify::getNewCommentCount($cobj->getCollectionID());
    $date = $cobj->getCollectionDatePublic();
    $imgHelper = Loader::helper('image');
    $imageF = $cobj->getAttribute('thumbnail');
    if($imageF){
    $image = $imgHelper->getThumbnail($imageF, $thumb_width,$thumb_height)->src;
    }
    $content = false;
    if($use_content > 0){
    $block = $cobj->getBlocks('Main');
    foreach($block as $bi) {
    if($bi->getBlockTypeHandle()=='content' || $bi->getBlockTypeHandle()=='sb_blog_post'){
    $content = $bi->getInstance()->getContent();
    }
    }
    }else{
    $content = $cobj->getCollectionDescription();
    }
    ?>
    <div class="content-sbBlog-wrap">
    <div class="addthis_toolbox addthis_default_style">
    <?php
    if($tweet>0){
    ?>
    <span class="st_twitter" st_url="<?php echo BASE_URL.$nh->getLinkToCollection($cobj)?>" st_title="<?php echo $title?>"></span>
    <?php }
    if($fb_like==1){
    ?>
    <span class="st_facebook" st_url="<?php echo BASE_URL.$nh->getLinkToCollection($cobj)?>" st_title="<?php echo $title?>"></span>

    <?php
    }
    if($google==1){
    ?>
    <span class="st_plusone" st_url="<?php echo BASE_URL.$nh->getLinkToCollection($cobj)?>" st_title="<?php echo $title?>"></span>
    <?php
    }
    ?>
    </div>
    <script type="text/javascript">var switchTo5x=true;</script>
    <script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>
    <?php if($sharethis){ ?>
    <script type="text/javascript">stLight.options({publisher:'<?php echo $sharethis;?>'});</script>
    <?php } ?>
    <?php if($comments){ ?>
    <div class="content-sbBlog-commentcount"><?php echo $comment_count;?></div>
    <?php } ?>
    <div class="content-sbBlog-contain">
    <div id="content-sbBlog-title">
    <h3 class="ccm-page-list-title"><a href="<?php echo $nh->getLinkToCollection($cobj)?>"><?php echo $title?></a></h3>
    <div id="content-sbBlog-date">
    <?php echo date('M d, Y',strtotime($date)); ?>
    </div>
    </div>
    <div>
    <?php
    $ak_g = CollectionAttributeKey::getByHandle('blog_category ');
    $cat = $cobj->getCollectionAttributeValue($ak_g);
    echo t('Category').': '.'<a href="'.BASE_URL.$search.'categories/'.str_replace(' ','_',$cat).'/">'.$cat.'</a>';;
    ?>
    <br/><br/>
    </div>
    <div class="content-sbBlog-post">
    <?php
    if($imageF!=''){
    echo '<div class="thumbnail">';
    echo '<img src="'.$image.'"/>';
    echo '</div>';
    }
    ?>
    <?php
    if(!$controller->truncateSummaries){
    echo $content;
    }else{
    echo $texthelper->shorten($content,$controller->truncateChars);
    }
    ?>
    </div>
    </div>
    <a class="readmore" href="<?php echo $nh->getLinkToCollection($cobj)?>"><?php echo t('Read More')?></a>
    <div id="tags">
    <b><?php echo t('Tags')?> : </b>
    <?php
    $ak_t = CollectionAttributeKey::getByHandle('tags');
    $tag_list = $cobj->getCollectionAttributeValue($ak_t);
    $akc = $ak_t->getController();
    //$tags == $tag_list->getOptions();
    if(!empty($tag_list)){
    $x = 0;
    foreach($tag_list as $akct){
    if($x){echo ', ';}
    echo '<a href="'.BASE_URL.$search.str_replace(' ','_',$akct->getSelectAttributeOptionValue()).'/">'.$akct->getSelectAttributeOptionValue().'</a>';
    $x++;

    }
    }
    ?>
    </div>
    </div>
    <br class="clearfloat" />
    <?php
    }
    if(!$previewMode && $controller->rss) {
    $rssUrl = $controller->getRssUrl($b);
    ?>
    <div class="rssIcon">
    <?php echo t('Get this feed')?> &nbsp;<a href="<?php echo $rssUrl?>" target="_blank"><img src="<?php echo $uh->getBlockTypeAssetsURL($bt, 'images/rss.png')?>" width="14" height="14" /></a>
    </div>
    <link href="<?php echo $rssUrl?>" rel="alternate" type="application/rss+xml" title="<?php echo $controller->rssTitle?>" />
    <?php
    }
    ?>
    </div>
    <?php }

    if ($paginate && $num > 0 && is_object($pl)) {
    $pl->displayPaging();
    }

    ?>
    <script type="text/javascript">
    /*<![CDATA[*/
    $(document).ready(function(){
    prettyPrint();
    });
    /*]]>*/
    </script>

  2. #2

    Default

    Herve Leger, sometimes deliberately written as Herve Leger is a French fashion house founded by the designer Herve Peugnet, also known as Herve L. Leroux Herve Leger Dresses was founded in 1985 by the designer Herve Peugnet (1957–2017). The same year Karl Lagerfeld advised Peugnet that his surname Peugnet would be too difficult for Americans, the target market, to pronounce, and instead suggested the surname Leger. Having lost the rights to the Herve Leger name, Peugnet later took a third "brand" name as Religious Clothing Herve Leger in 2000.A model walking the runway at Herve Leger Bandage Dresses Fall/Winter 2014 show at New York Fashion Week, February 2014.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •