Welcome, Guest. Please Login or Register.
September 30, 2024, 01:32:49 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Only on index page « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Only on index page  (Read 352 times)
Boy M
Jr. Member
**
Posts: 57


****Sensor****

WWW
Only on index page
« on: May 10, 2003, 06:28:02 PM »
Reply with quote

I want a table with affiliates that is only shown at the index page (like the Info Center)

Look at http://members.lycos.co.uk/boym/yabbse/ and see what I mean.. That affiliates table at the bottom is not only on the index page but it is everywhere you go..

So: Who knows how to put it only on the index?
Logged

Before posting please search
Oh, and a simple "thank you" goes a long way.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Only on index page
« Reply #1 on: May 10, 2003, 06:55:28 PM »
Reply with quote

You can do this by putting it into Boardindex.php.
Logged

Boy M
Jr. Member
**
Posts: 57


****Sensor****

WWW
Re:Only on index page
« Reply #2 on: May 10, 2003, 06:57:59 PM »
Reply with quote

Damn...all that codes :o

What exactly do I have to add and where?
Logged

Before posting please search
Oh, and a simple "thank you" goes a long way.
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Only on index page
« Reply #3 on: May 10, 2003, 07:07:38 PM »
Reply with quote

easier way, edit forum template and put:
<?php
if (!isset($action) && !isset($board))
{
?>

HTML CODES GOES HERE
<?php
}
?>

havent been tested, but should work
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Boy M
Jr. Member
**
Posts: 57


****Sensor****

WWW
Re:Only on index page
« Reply #4 on: May 10, 2003, 07:57:41 PM »
Reply with quote

Don't work.. Check it yourself..
Logged

Before posting please search
Oh, and a simple "thank you" goes a long way.
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Only on index page
« Reply #5 on: May 11, 2003, 12:36:52 AM »
Reply with quote

ok, replace the first 2 lines with this code:<?php
global $action$board;
if (
$action == '' && $board == '')
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Only on index page
« Reply #6 on: May 11, 2003, 01:01:40 AM »
Reply with quote

And then replace those lines with:


<?php
global $action$board;
if (
$action == '' && $board == '')
{


-[Unknown]
Logged
Boy M
Jr. Member
**
Posts: 57


****Sensor****

WWW
Re:Only on index page
« Reply #7 on: May 11, 2003, 08:19:59 AM »
Reply with quote

Thanks for the help guys, Unknown's code worked!
Logged

Before posting please search
Oh, and a simple "thank you" goes a long way.
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Only on index page
« Reply #8 on: May 11, 2003, 05:47:33 PM »
Reply with quote

Quote from: [Unknown] on May 11, 2003, 01:01:40 AM
And then replace those lines with:


<?php
global $action$board;
if (
$action == '' && $board == '')
{


-[Unknown]
i don't see any difference ::), except for the extra braces, which isn't needed because i said replace the first two lines...
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Only on index page « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.088 seconds with 21 queries.