Go back to previous page
Forum URL: http://www.dombom.com/cgi-bin/dcforum/dcboard.cgi
Forum Name: FatBomb
Topic ID: 47
Message ID: 6
#6, RE: Are you getting traffic yet? No styles folder
Posted by mmurtha on Dec-05-06 at 03:57 AM
In response to message #5
Can someone help me with some code...

I have installed a translator script and added the 1 line of code in skin 6 right below the form for the search box.

The read me file says to upload the translator folder into my root directory and add this line of code on the page I want the flags to show:

<?php include($_SERVER<'DOCUMENT_ROOT'>."/Translate/Languages.php"); ?>

The RM file also states that I might have to add 1 of these two lines in my .ataccess file:

AddType application/x-httpd-php .php .html .htm
AddHandler application/x-httpd-php .php .html .htm

This is part of the skin code .... I've bolded the code that I entered:

<form action="<% config.script_url as html %>/" method="POST">
<input name="skin" type="hidden" value="<% form.skin as html %>">
<input name="length" type="hidden" value="<% form.length as html %>">
Keywords:
<input name="keywords" type="text" value="<% form.keywords as html %>" size="35">
<input type="submit" value="Search">
</form>
 <br>
<tr>
<td>
<?php include($_SERVER<'DOCUMENT_ROOT'>."/Translate/Languages.php");?>
</td>
</tr>
 <br>

<% if search.results %>
<h4>Results <% sum(search.start, 1) %>-<% sum(search.start, len(search.results)) %> of <% search.total %>.</h4>
<ol start="<% sum(search.start, 1) %>">
<% for result in search.results %>
<li>
<a href="<% result.click %>"><B><% result.title %></B></a><br>
<% result.description %><br>
<em><% result.link %></em><br>
Sources:


Now I did try top add both lines of code to the .ataccess file at different times to see if it help to display the flags....but it didn't work.

Can a script like this be used in the skins? If so, what am I doing wrong?

Btw I doid get it to show on the index page, but that is an html home page. I'd like to get it to work on the serch query pages too.

The site I want to use it on is in my sig.


Mary