JohnMck93 Posted January 24, 2010 Report Share Posted January 24, 2010 How do i get stuff to only show on the home page such as if the left side shows say who is online and the the user goes to login well on the left side it still shows who is online, how can i remove that? Thanks! Quote Link to comment Share on other sites More sharing options...
TennShadow Posted January 24, 2010 Report Share Posted January 24, 2010 Look at Nabeel's first skinning video in the Tutorials section. He uses the code you are wanting. Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 24, 2010 Author Report Share Posted January 24, 2010 i tried and i could not understand the code, i asked on here a while back but got no answers Quote Link to comment Share on other sites More sharing options...
TennShadow Posted January 24, 2010 Report Share Posted January 24, 2010 <?php if($_GET['module'] == 'frontpage') { ?> Content to hide <?php } ?> I pulled this off my header.tpl which hides a my latest pilots and latest pireps if it is on any other page than my frontpage. I'm no coder so if that isn't 100% correct I'm sure one of my PHP gurus will step in and correct it. ;D Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 24, 2010 Author Report Share Posted January 24, 2010 Thank you for that, im getting a Parse error: syntax error, unexpected T_IF Im sure a phpwhiz will come a long. But once again I would like to thank you for the help.. PS Sorry for posting in wrong thread somehow i knew it would get moved Quote Link to comment Share on other sites More sharing options...
TennShadow Posted January 24, 2010 Report Share Posted January 24, 2010 Sorry, I forgot the closing tags. ??? Try it again. Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 24, 2010 Author Report Share Posted January 24, 2010 Parse error: syntax error, unexpected T_IF error still :? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 24, 2010 Administrators Report Share Posted January 24, 2010 Can you patebin the code for the page and give us the link... Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 24, 2010 Author Report Share Posted January 24, 2010 http://pastebin.com/d1cf09faa Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 25, 2010 Administrators Report Share Posted January 25, 2010 hmmm... what line is the error telling you the error is on? I do not see anything obvious. Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 25, 2010 Author Report Share Posted January 25, 2010 line 95 here is the entire errorParse error: syntax error, unexpected T_IF in /www/zzl.org/s/u/n/sunsetva/htdocs/lib/skins/SSVA/header.tpl on line 95 Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted January 25, 2010 Report Share Posted January 25, 2010 I wanted to confirm or deny this error and so I tried it on my test site. It did work as planned, I just put it in the wrong place I guess and jacked up the layout some. But all in all, it worked out fine on my end. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 25, 2010 Administrators Report Share Posted January 25, 2010 Means you've got an extra } lying around Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 26, 2010 Author Report Share Posted January 26, 2010 after further review the code works on Crystal skin unedited but the SSVA skin it does not work on Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 26, 2010 Author Report Share Posted January 26, 2010 my webhost fixed it, for some reason the code was adding a bunch of characters to the script, he deleted it the site works now....... Thank you for all the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.