- Total Members: 263,721
- Threads: 453,984
- Posts: 1,062,335
Great community. Great ideas.
Welcome to SEOChat, a community dedicated to helping beginners and professionals alike in improving their Search Engine Optimization knowledge. Sign up today to gain access to the combined insight of tens of thousands of members.
-
May 16th, 2013
- Views:
-
575
-
Nov 21st, 2012, 10:39 AM
#1
Coding dilemma please help
First click over to my site at www.godsfellowship.org. Notice that it is a blogger site hosted by our beloved Google. On my site , upfront and center, is the Chat box which I moved there per Google helper suggestion, because they said that at first glance, the purpose of my site was not evident.
So I moved it from its own page onto the Home page.
But my site is not JUST a chat site, it's also a blog site and a forum.
Now if you would, click through the menu and notice that the chat box now shows up on every page just like all the other gadget boxes on the page.
I need a code that I can use that is html, that will work with the flash applet chat code, and limit that chat box gadget from showing up on every single page.
I only want it to show up on the Home/main page.
I trust that there is a method of making that Gadget only show up on the main page, and keep the iframed chat code still working.
Can anyone with expert coding experience, help me to come up with an answer to my dilemma?
DS
-
Nov 21st, 2012, 11:03 AM
#2
unfortunately i dont have time to be going through all of your site looking for the problem.
What i would suggest upon an initial glance is using php so that you can get the current path used by that page.
For example
$path = $_SERVER['PHP_SELF'];
$file = basename($path, ".php");
if ($file == 'index') {
*Include chat box here* }
else {
*continue without chat box*}
That will break down the filename and if the home page is called index.php it will display the chat box when that page is called. for any other page it will just skip that command.
hope this can be migrated to your example
-
Nov 21st, 2012, 11:17 AM
#3

Originally Posted by
ChillDot
unfortunately i dont have time to be going through all of your site looking for the problem.
What i would suggest upon an initial glance is using php so that you can get the current path used by that page.
For example
$path = $_SERVER['PHP_SELF'];
$file = basename($path, ".php");
if ($file == 'index') {
*Include chat box here* }
else {
*continue without chat box*}
That will break down the filename and if the home page is called index.php it will display the chat box when that page is called. for any other page it will just skip that command.
hope this can be migrated to your example
Thank you for your swift reply to my issue. I will try anything.
DS
-
Nov 21st, 2012, 11:24 AM
#4

Originally Posted by
DeeperStill
Thank you for your swift reply to my issue. I will try anything.
DS
Sadly, that did not work. Thanks for trying though.
Kind Regards
DS
Similar Threads
-
By zahir in forum Google Optimization
Replies: 2
Last Post: Jan 16th, 2007, 03:38 AM
-
By Jef Patat in forum BING/Yahoo Search Optimization
Replies: 25
Last Post: Mar 6th, 2005, 02:17 PM
-
By ravenbo in forum Web Design, Coding and Programming
Replies: 2
Last Post: Oct 14th, 2004, 01:07 AM
-
By ravenbo in forum SEO Help (General Chat)
Replies: 1
Last Post: Oct 11th, 2004, 11:51 AM