Put somethings just in My Index.php Put somethings just in My Index.php
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Put somethings just in My Index.php

Started by synx, November 05, 2005, 07:16:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

synx

I want to put somethings just in My Index.php , i mean just show at index.php
Not a block , i have create {HEADER_2} At theme.php
And Put some of my tables on it - How can i fix it

if ($cat == 0) {
return <<<EOT
<table width="100%" border="0" cellpadding="0" cellspacing="0">
......
} else {
return <<<EOT
<ANOTHER table width="100%" border="0" cellpadding="0" cellspacing="0">
.......


It's work but - in all of pages shows - if ($cat == 0)   << I think it's not a right way ?

Can you help me plz ?


Joachim Müller



synx

Oh , i find it !
Sorry - But i think it's a simple !
But , ok

I will visit another time
Thanks

synx

 :\'( Guys i really need this !
If you give me a solution , i mean trick or tip i will try to make it myself

Thanks at all

NevilleX

After hours and hours of experimenting, reading PHP manual and studing coop files I have found this soulution.

if ((defined('INDEX_PHP')) && (empty($cat)) && (empty($_GET['album'])))

I don't know php very well and maybe there is a better solution, but this works for me.
Hope it helps somebody.