WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • WebsiteBaker Website Showcase »
  • My website
  • Print
Pages: [1]   Go Down

Author Topic: My website  (Read 6106 times)

caz1963

  • Guest
My website
« on: February 10, 2009, 04:45:23 PM »
I have just finished building my site using website baker and a modified GT1 template. This is my first attempt at building a site using a cms and I would welcome feedback from people who understand these things... I am a graphic designer not a developer so any comments would be much appreciated :-D

Thanks

Caroline

www.oakley-media.co.uk
Logged

mr-fan

  • Guest
Re: My website
« Reply #1 on: February 10, 2009, 04:53:53 PM »
hi,

nice header - clear navigation....

only thing for my oppinion is the to large latest news-block..... try it with a more adapted color/text or +a graphic and

only the short news...

on every page i never see the footer - this block enlarge the wohle page - the last latest news will never be read (to much scrolling -with withe maincontent on short sites)

regards martin
Logged

caz1963

  • Guest
Re: My website
« Reply #2 on: February 10, 2009, 05:09:55 PM »
Thank you - I agree about the news but am struggling to work out how to change this - doing it by trial and error at the moment!

Caroline
Logged

mr-fan

  • Guest
Re: My website
« Reply #3 on: February 10, 2009, 06:45:46 PM »
can you post the code of your php-call for the news (did you use the anynewssnippet??

Logged

caz1963

  • Guest
Re: My website
« Reply #4 on: February 10, 2009, 06:59:35 PM »
No it's just the way the news is set up on the template and I'm not sure which bit to change so it just show the latest news and not other posts from the site. The relevant bit of code I think is....

<div class="Last">
            <?php ob_start();     // start output buffer
            global $database;
            $query = "SELECT post_id,title,content_short,group_id,link FROM ".TABLE_PREFIX."mod_news_posts ORDER BY position DESC LIMIT 0,3";
            $error = mysql_error();
            if (!$result = mysql_query($query)) {
                print "$error";
                exit;
            }
            while($data = mysql_fetch_object($result)){
                $title = $data->title;
                $id = $data->post_id;
                $link = $data->link;
                $short = $data->content_short;
                echo '<p><a href="'.WB_URL.'/pages/'.$link.PAGE_EXTENSION.'">'.$title.'</a><br />'.$short.'</p>';
            }
            $foo=ob_get_contents();    // put outputbuffer in $foo
            ob_end_clean();             // clear outputbuffer
            if ($foo<>"") {  // some code to execute cause there is some block
                echo '<h1>Latest News</h1>';
                echo $foo;
            } else { // some code for no info
                echo '<h1>No New News</h1>';
            }
            ?>
        </div>
Logged

mr-fan

  • Guest
Re: My website
« Reply #5 on: February 10, 2009, 07:13:21 PM »
ok no problem... you will get it qiuck and and have a better solution!

you shoult look at this codesnippet:
http://www.websitebakers.com/pages/code-snippets/listings/anynews.php

this is the ultimate anynewssnippet.... 8-)
you can modify everything and can use this snippet in your template instead of this code

Code: [Select]
<?php ob_start();     // start output buffer
         
global $database;
         
$query = "SELECT post_id,title,content_short,group_id,link FROM ".TABLE_PREFIX."mod_news_posts ORDER BY position DESC LIMIT 0,3";
         
$error = mysql_error();
         if (!
$result = mysql_query($query)) {
            print 
"$error";
            exit;
         }
         while(
$data = mysql_fetch_object($result)){
            
$title = $data->title;
            
$id = $data->post_id;
            
$link = $data->link;
            
$short = $data->content_short;
            echo &
#39;<p><a href="&#39;.WB_URL.&#39;/pages/&#39;.$link.PAGE_EXTENSION.&#39;">&#39;.$title.&#39;</a><br />&#39;.$short.&#39;</p>&#39;;
         
}
         
$foo=ob_get_contents();    // put outputbuffer in $foo
         
ob_end_clean();             // clear outputbuffer
         
if ($foo<>"") {  // some code to execute cause there is some block
            
echo &#39;<h1>Latest News</h1>&#39;;
            
echo $foo;
         } else { 
// some code for no info
            
echo &#39;<h1>No New News</h1>&#39;;
         
}
         
?>
use the # button next time...

install the module and replace with something like this...

Code: [Select]
<?php display_news_items(0, 5, 50, 2, 
  &
#39;The latest news&#39;, &#39;show full news text&#39;, &#39;uups, no news available&#39;,
  
true, &#39;<a><img>&#39;, true, &#39; (h:i, d.m.Y)&#39;, 1, 1); ?>


the setting of the snippet you can read there:

http://addons.WebsiteBaker.org/modules/anynews/help/help_en.html

you can set the newsgroup if you have some - or you can set the leght of the shortnews or if you don't like the short news you can set it up that you will get only the headers...

if you have different newsgroups (maby webdesign/print....) also you can play with the blogmenu (its a little modified anynewsnippet that shows up a newsgroup overview...)

this snippet you will find here:
http://www.websitebakers.com/pages/code-snippets/listings/blog-menu.php

so it's time to play if you have problems i will help!

regards martin


Logged

Offline albatros

  • Posts: 696
  • Gender: Male
    • http://www.willingen-ferienhaus.de
Re: My website
« Reply #6 on: February 10, 2009, 11:02:27 PM »
Hi,

the first thing I saw was "hgpgroup.jpg" (2592px × 3888px scaled to 100px × 150px, 428.29 KB). That's not really so very good looking.

Apart from that I like it very much.

Best regards

Uwe
« Last Edit: February 10, 2009, 11:08:40 PM by albatros »
Logged
أنا لست إرهابيا. ليس لدى أي ورشة عمل القنبلة في الطابق السفلي. ليس لدى أي مرض الجمرة الخبيثة أيضا. أريد شراء لا مادة الريسين. أنا سوف ابدأ السفر إلى الولايات المتحدة الأمريكية

Argos

  • Guest
Re: My website
« Reply #7 on: February 11, 2009, 10:44:34 AM »
Took a quick glance at it. Nice fresh design, clear layout. Nice job!
Logged

caz1963

  • Guest
Re: My website
« Reply #8 on: February 12, 2009, 10:41:44 AM »
Thank you all for your nice comments. Martin I will try out the news snippets and let you know how I get on. Thank you so much for your help! Much appreciated.

Caroline
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • WebsiteBaker Website Showcase »
  • My website
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2