Author |
Message |
link
Regular


Joined: Dec 24, 2004
Posts: 56
|
Posted:
Thu Jul 21, 2005 6:06 pm |
|
This is a quote from a user on my site.. im sending him over here.. but i wanted to post his question in quotes.
I created the GoogleIt Module... just simple google search included. It works fine, but on this certian persons site.. a search redirects them to the Your_account module..only when a user is logged in.. not an admin mind you.. just a user. The only difference i see on his site is that he also has a search on the top of his page. Only registered users can see links on this board! Get registered or login!
Here is his message..
Quote: | I'm not very good with PHP and I'm new to PHP Nuke, maybe that says it all . I have wanted a search to put on our site and I installed Google It, did 90% of what I wanted.
Anyway the problem I have is very strange, and well beyond my limited knowledge. When I am logged in as the admin (always) everything works fine, when you are not logged in at all (anonymous) everything works 100%. When a member is logged in and trys a search it ends up redirected to their Your_Account module. I've tried with IE6, firefox and Advanced browsers and different computers. The exact same problem with each.
The only changes to any of the code is to enter my domain name and to change the Google adscense ID.
Any suggestions would be most welcome. I really would like this module to work somehow. |
Any help would be much appreciated.
To see error log in as
user: test
pass: tester |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Thu Jul 21, 2005 6:19 pm |
|
well the search works fine...
no redirect your account.. |
|
|
|
 |
lukamar
New Member


Joined: Jul 21, 2005
Posts: 14
|
Posted:
Thu Jul 21, 2005 7:00 pm |
|
I'm the guy with the problem..
Just so everyone knows. It's not the search in the header but Google It the module in the Menu. The header search was added last night to check and see if you could run a search from the site. The header search works fine.
I will remove the Header stuff so that I know it does not interfere.
Marty |
|
|
|
 |
link

|
Posted:
Thu Jul 21, 2005 7:15 pm |
|
I didnt know that you addded the header last night.
Ive got the module on my own account and i dont get there error.
Maybe it has something to do with how you typed your domain... or where the nuke site is in relation to the domain.
Here is the code that is in the search.inc file
Code:<?php
///Replace the www.yourwebsite.com below with your web site.
$domain = ('www.yourwebsite.com');
////////////////////////////////////////////////////////////////////////
///Dont Edit Anything Below Unless You Know what you are doing...lol////
////////////////////////////////////////////////////////////////////////
echo("Harness the power of google!");
echo("<br>");
echo("<form method='get' action='http://www.google.com/custom' target='_blank'>");
echo("<table border='0' bgcolor='#cccccc'>");
echo("<tr><td nowrap='nowrap' valign='top' align='left' height='32'>");
echo("<a href='http://www.google.com/'>");
echo("<img src='http://www.google.com/logos/Logo_25gry.gif' border='0' alt='Google'></img></a>");
echo("<input type='hidden' name='domains' value='$domain'></input>");
echo("<input type='text' name='q' size='31' maxlength='255' value=''></input></td></tr>");
echo("<tr>");
echo("<td nowrap='nowrap'>");
echo("<table>");
echo("<tr>");
echo("<td>");
echo("<input type='radio' name='sitesearch' value=''></input>");
echo("<font size='-1' color='#000000'>Web</font>");
echo("</td>");
echo("<td>");
echo("<input type='radio' name='sitesearch' value='$domain' checked='checked'></input>");
echo("<font size='-1' color='#000000'>$domain</font>");
echo("</td>");
echo("</tr>");
echo("</table>");
echo("<input type='submit' name='sa' value='Search'></input>");
echo("<input type='hidden' name='client' value='pub-2166939542547603'></input>");
echo("<input type='hidden' name='forid' value='1'></input>");
echo("<input type='hidden' name='channel' value='4548317752'></input>");
echo("<input type='hidden' name='ie' value='ISO-8859-1'></input>");
echo("<input type='hidden' name='oe' value='ISO-8859-1'></input>");
echo("<input type='hidden' name='cof'"); echo("value='GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:000");echo("0FF;GIMP:0000FF;FORID:1;'></input>");
echo("<input type='hidden' name='hl' value='en'></input>");
echo("</td></tr></table>");
echo("</form>");
echo("<br>");
echo("<br>");
echo("GoogleIt Module by <a href='http://yourcodes.com/index/'>www.YourCodes.com</a>");
?>
|
Anyone see anything that may confuse php-nuke |
|
|
|
 |
hitwalker

|
Posted:
Thu Jul 21, 2005 7:39 pm |
|
I tried it myself by installing it and it works ok.
my guess would be the form that has a conflict with something else on your site..
Sometimes it can simply be solved by moving a block.
Just to try,put your login block on the right... |
|
|
|
 |
lukamar

|
Posted:
Thu Jul 21, 2005 8:52 pm |
|
Thanks.... I tried that and now it does the same in admin mode as for the members. It must be a conflict of some sort with something. Lucky I'm bald or I'd be pulling my hair our.. I guess it's just a matter of playing around or giving up. I basically wanted a search function on the site and the one in the header works fine but is not as slick.
Thanks all for the input and if I figure it out I'll post what caused the problem I'm having.
Marty |
|
|
|
 |
lukamar

|
Posted:
Fri Jul 22, 2005 9:51 am |
|
Thanks for pointing me in the right direction.
It turned out to be a conflict between 2 blocks. I'm not sure what ones caused the problem. I deleted all the blocks that were inactive and it started to work.
Thanks again.... |
|
|
|
 |
link

|
Posted:
Fri Jul 22, 2005 11:48 am |
|
Yeah.. thanks hitwalker...
by the way.. i check out your site... amazing..
 |
|
|
|
 |
indio
New Member


Joined: Dec 12, 2005
Posts: 1
|
Posted:
Mon Dec 12, 2005 11:23 am |
|
Help
Google
Error
Forbidden
Your client does not have permission to get URL /custom?domains=www.tmsinformatica.es&q=ABSERVER&sitesearch=&sa=Search&client=pub-2166939542547603&forid=1&channel=4548317752&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1%3B&hl=en from this server. (Client IP address: 80.58.46.107)
The website you've just visited has tried to provide you with search results from Google. Unfortunately, the site violates our terms of service so your search could not be completed. If you would like to continue with your search, please click the link below, which will take you directly to Google and the results you've requested. We apologize for the inconvenience and encourage you to conduct future searches directly from google.com or through the Google Toolbar, which can be downloaded for free from this address: http://toolbar.google.com.
Click here to continue your search on Google. |
|
|
|
 |
|