TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 273
  • Total: 273

Adding a custom block holder... thing - Azure Theme

Started by americangothic, March 21, 2009, 04:55:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Post your code. Not just the code that you want to put in. Post the part you are trying to put it into so we can show you what you're doing wrong.

americangothic

#11
This is right after the body tag: <body>';


// TEST BLOCK
   global $txt,$context,$boarddir;
{
      echo '<!-- ++Begin Dynamic Feed Wizard Generated Code++ -->
  <!--
  // Created with a Google AJAX Search and Feed Wizard
  // http://code.google.com/apis/ajaxsearch/wizards.html
  -->

  <!--
  // The Following div element will end up holding the actual feed control.
  // You can place this anywhere on your page.
  -->
  <div id="feed-control">
    <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
  </div>

  <!-- Google Ajax Api
  -->
  <script src="http://www.google.com/jsapi?key=notsupplied-wizard"
    type="text/javascript"></script>

  <!-- Dynamic Feed Control and Stylesheet -->
  <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"
    type="text/javascript"></script>
  <style type="text/css">
    @import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
  </style>

  <script type="text/javascript">
    function LoadDynamicFeedControl() {
      var feeds = [
{title: 'Worldnet Daily',
url: 'http://feeds.huffingtonpost.com/huffingtonpost/raw_feed'
}];
      var options = {
        stacked : false,
        horizontal : true,
        title : ""
      }

      new GFdynamicFeedControl(feeds, 'feed-control', options);
    }
    // Load the feeds API and set the onload callback.
    google.load('feeds', '1');
    google.setOnLoadCallback(LoadDynamicFeedControl);
  </script>
<!-- ++End Dynamic Feed Control Wizard Generated Code++ -->';
}
// TEST BLOCK END

IchBin

Well, since you won't post the code I asked, I'm going to have to take a guess. You don't need this first part from the looks of it.

   global $txt,$context,$boarddir;
{

americangothic

What code are you asking for then?
You want me to post the whole index.template.php?
This is going into Azure index.template.php right after the body tag.

G6Cad

20 lines before and after your code so we can see the whole part

IchBin

Quote from: americangothic on March 21, 2009, 07:30:13 PM
What code are you asking for then?

Quote from: IchBinâ„¢ on March 21, 2009, 04:45:43 PM
Post your code. Not just the code that you want to put in. Post the part you are trying to put it into so we can show you what you're doing wrong.


What G6 said is fine as well. I asked you to post the code you're trying to put it into. So I can see if there is something wrong with the code where you are putting your code into it.

Did you try my suggestion though?

americangothic

Yeah, I get the same error:

syntax error, unexpected T_STRING, expecting ',' or ';'


This website is proudly hosted on Crocweb Cloud Website Hosting.