![]() |
Quote:
my searchresults.php reads as follows : Code:
<?php please tell me what should i write in searchresults.php ???? kindly help :( Regards |
For example, somewhat edited, here is mine:
chdir('/home/xxxxxxx/christianboards/forums/'); This is my /path/to/my/forums/ since searchresults.php is located at forums/searchresults.php You will never use a file in a path (a path is a directory). In your case, try taking out searchresults.php from your path. chdir('/home/public_html/'); It has to be the full path to your searchresults.php, but don't include the file itself. Hope that helps :) |
Quote:
i tried these : chdir('/home/projects/public_html/'); chdir('/home/public_html/'); btw in your case u've written chdir('/home/xxxxxxx/christianboards/forums/'); what to write at xxxxxxx please can tell me in my case what do i write?? my forum is located in main public_html directory please have a look here www.projectsplanet.com please tell me what do i write after /home/ :confused: also when i try to search it gives me server not found error... |
Each website is going to be different. If you have vbadvanced, there is a tool in the Extras (do not upload) folder called forumpath.php that you can upload to your forums directory that will tell you your exact forum path. If you use that tool, remove it after you use it. The path in the chdir must begin and end with a slash "/".
Also, for my site I edited it in at least two places, but just wanted to show that as an example. |
Quote:
in other words u must have seen the error like that chdir("/home/ur_root_name_/public_html") ur_root_name = here u should see root name when u get error just put it there. @david Thanks alot mate , My Problem has been fixed. |
Quote:
u rox david!!:D thanks again!! here is test : http://www.projectsplanet.com/search...sa=Search#1270 |
It shows to be working for me :)
|
One question please.
Can i place it on Forumhome somewhere ? it would be good if users can see it on the page instead going to search list? I thought i should ask you before trying anywhere :D Cheers |
Feel free to modify it to your forums needs. I won't be able to support it being modified for displaying results on the forumhome, but you are welcome to put it there. As for the search box itself, you can add that easily by using $google_siteadsearch and modifying that slightly.
|
Thank you davidw! It works great!
http://www.mafia-mp.com |
All times are GMT. The time now is 04:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|