Ravens PHP Scripts: Forums
 

 

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



Joined: Dec 24, 2004
Posts: 56

PostPosted: Thu Jul 21, 2005 6:06 pm Reply with quote

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
 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Thu Jul 21, 2005 6:19 pm Reply with quote

well the search works fine...
no redirect your account..
 
View user's profile Send private message
lukamar
New Member
New Member



Joined: Jul 21, 2005
Posts: 14

PostPosted: Thu Jul 21, 2005 7:00 pm Reply with quote

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
 
View user's profile Send private message
link







PostPosted: Thu Jul 21, 2005 7:15 pm Reply with quote

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







PostPosted: Thu Jul 21, 2005 7:39 pm Reply with quote

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







PostPosted: Thu Jul 21, 2005 8:52 pm Reply with quote

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.. Bang Head 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







PostPosted: Fri Jul 22, 2005 9:51 am Reply with quote

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







PostPosted: Fri Jul 22, 2005 11:48 am Reply with quote

Yeah.. thanks hitwalker...

by the way.. i check out your site... amazing..

Wave
 
indio
New Member
New Member



Joined: Dec 12, 2005
Posts: 1

PostPosted: Mon Dec 12, 2005 11:23 am Reply with quote

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.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

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 ©