Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
viper155
Regular
Regular


Joined: Feb 18, 2006
Posts: 99

PostPosted: Fri May 19, 2006 5:12 pm Reply with quote

I use a few html codes to add a translation tool to one of my sites. It was easy to add it to the first site bc the theme used header.html but my second site only has theme.php. Any help would be great.

First of all I would like to add the following code to my theme.php

Code:
<select onchange="window.location.href=this.options[this.selectedIndex].value">

<option value="">----Select----</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_zh&url=http%3A%2F%2Fwww.crazycade.com">Chinese-simp</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_zt&url=http%3A%2F%2Fwww.crazycade.com">Chinese-trad</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_nl&url=http%3A%2F%2Fwww.crazycade.com">Dutch</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_fr&url=http%3A%2F%2Fwww.crazycade.com">French</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_de&url=http%3A%2F%2Fwww.crazycade.com">German</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_el&url=http%3A%2F%2Fwww.crazycade.com">Greek</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_it&url=http%3A%2F%2Fwww.crazycade.com">Italian</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_ja&url=http%3A%2F%2Fwww.crazycade.com">Japanese</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_ko&url=http%3A%2F%2Fwww.crazycade.com">Korean</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_pt&url=http%3A%2F%2Fwww.crazycade.com">Portuguese</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_ru&url=http%3A%2F%2Fwww.crazycade.com">Russian</option>
<option value="http://babelfish.altavista.com/babelfish/trurl_load?lp=en_es&url=http%3A%2F%2Fwww.crazycade.com">Spanish</option>
</select>


Could anyone tell me what that needs to look like so it would go into theme.php without errors.

You can see the way it looks on my first site Only registered users can see links on this board! Get registered or login! *top left*
 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Fri May 19, 2006 5:18 pm Reply with quote

You would need to locate the part in theme.php where the header is generated and place your code in there.
You could either convert your current code so it is echo's via PHP or simply drop out of PHP using ?> then put your code in then restart php with <?php
 
View user's profile Send private message Send e-mail
viper155
PostPosted: Fri May 19, 2006 8:53 pm Reply with quote

Thank you Guardian2003.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©