Advertisement:

Author Topic: Where to select boardnews?  (Read 1838 times)

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Where to select boardnews?
« on: February 06, 2010, 08:23:45 PM »
Im going out of my mind,..... i cannot find where in admin to select what board should be "boardnews".

Where is it? :-\

Offline Kays

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,675
  • Gender: Male
    • Kayssplace
Re: Where to select boardnews?
« Reply #1 on: February 06, 2010, 08:27:53 PM »
Is this ssi_BoardNews?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Re: Where to select boardnews?
« Reply #2 on: February 06, 2010, 08:31:15 PM »

Offline Kays

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,675
  • Gender: Male
    • Kayssplace
Re: Where to select boardnews?
« Reply #3 on: February 06, 2010, 08:34:46 PM »
Where or how are you displaying it?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Re: Where to select boardnews?
« Reply #4 on: February 06, 2010, 08:41:14 PM »
Im testing things out to learn more about the ssi function.


I created a test page:
http://www.chevyavalancheclub.com/av_registry.php

..and it has this in it but i want to show a different board.

Code: [Select]
<?php require("/home/*******/public_html/SSI.php"); ?>
<?php template_header(); ?>

<?php ssi_boardNews(); ?>

<?php template_footer(); ?>


...also, is not grabbin' the meta tags.  The page has no title.
« Last Edit: February 08, 2010, 01:22:31 PM by BlueDevil »

Offline Kays

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,675
  • Gender: Male
    • Kayssplace
Re: Where to select boardnews?
« Reply #5 on: February 06, 2010, 09:05:01 PM »
OK, so you're just messing around with it. Cool.

ssi_BoardNews, like most ssi functions has a number of parameters which can be passed to change to output.

Code: [Select]
ssi_boardNews($board = null, $limit = null, $start = null, $length = null, $output_method = 'echo')
If you output it as an array then you gain more flexibility in how it's displayed.

For the page title $context['page_title_html_safe'] = 'My Fantastic Site';

Also there's no need to use multiple php tags. One </php at the top of the page and ?> at the bottom to close it is enough.


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Re: Where to select boardnews?
« Reply #6 on: February 06, 2010, 09:19:12 PM »
Excellent.  The title so far worked.  Im messing with the ssi now.

Offline Kays

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,675
  • Gender: Male
    • Kayssplace
Re: Where to select boardnews?
« Reply #7 on: February 06, 2010, 09:28:50 PM »
Good, Here's some info on outputting as an array.

http://www.simplemachines.org/community/index.php?topic=13016.0

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Re: Where to select boardnews?
« Reply #8 on: February 06, 2010, 09:41:06 PM »
Good, Here's some info on outputting as an array.

http://www.simplemachines.org/community/index.php?topic=13016.0


Oooooooooo, thank you.  Great link.

Offline Kays

  • Customizer
  • SMF Hero
  • *
  • Posts: 8,675
  • Gender: Male
    • Kayssplace
Re: Where to select boardnews?
« Reply #9 on: February 06, 2010, 09:54:48 PM »
Looks like that will keep you busy for a while. :)

I'll move this into SMF Coding Discussion as that's where this belongs.

(Was in 2.0 Support)

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Re: Where to select boardnews?
« Reply #10 on: February 06, 2010, 10:04:20 PM »
Looks like that will keep you busy for a while. :)

I'll move this into SMF Coding Discussion as that's where this belongs.

(Was in 2.0 Support)

Thank you.

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Re: Where to select boardnews?
« Reply #11 on: February 08, 2010, 01:20:19 PM »
Just wondering how do i go by adding search engine meta tags.

Will it be like this?

Code: [Select]
$context['meta_keywords']
or perhaps i dont need it?


Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,883
    • wedgebook on Facebook
Re: Where to select boardnews?
« Reply #12 on: February 08, 2010, 03:16:23 PM »
Are you using template_header()?

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Re: Where to select boardnews?
« Reply #13 on: February 08, 2010, 03:23:06 PM »
Are you using template_header()?

Yep.

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,883
    • wedgebook on Facebook
Re: Where to select boardnews?
« Reply #14 on: February 08, 2010, 03:24:18 PM »
Then set $context['meta_keywords'] after including SSI.php but before calling template_header().

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,236
  • Gender: Male
  • SMF Themes & Design.
    • idesign360 on Facebook
    • @idesign360 on Twitter
    • idesign360.com/
Re: Where to select boardnews?
« Reply #15 on: February 08, 2010, 03:25:26 PM »
Then set $context['meta_keywords'] after including SSI.php but before calling template_header().

ah,.. thank you.  Thanx for clarifying.