Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.220
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Help creating an advanced search block.
Help creating an advanced search block.

4 Replies / 2980 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Blocks

View previous topic :: View next topic


trancidix
Reputation: 461.6 Add RepSubtract Rep
Local time: 11:49 PM


Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 14, 2007
Last Visit: 02 May 2007
Posts: 15
Points: 305 

Post Help creating an advanced search block. Posted: Wed Apr 18, 2007 7:11 pm

and another post, i know u must get sick of me asking for all this help constantly *sigh* but here it goes. im trying to make a sideblock thats like the search block that comes with nuke except i want it to beable to search more than one thing, way i want it layed out is to have a text input box, a search button under it and then on top of the text input a drop down box with the various selections that u can search. is their an easy way to go about doing this? im not asking someone to do all the work and build it for me, but just give me some pointers and tell me how i would go about doing this. i managed to create a block that searches another site, but i havnt been able to have it do multiple things.
 

 
View user's profileSend private message Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 1:49 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Posted: Wed Apr 18, 2007 7:47 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

This is kinda easy, in concept. So lets work on that.

First you have an input box lets call it the query. (from now own it will be know as $query or $_POST['query'];)

Then you have a drop down list lets just use some simple idea's here
google
yahoo
msn

Last an submit button

The following isn't actual code, but it should give you an idea of how this done.

Code:
if($mysearch == "google"){
header ("location: http://www.google.com/page=search&query=$_POST[query]");
}elseif($mysearch == "yahoo"){
header ("location: http://www.yahoo.com/page=search&query=$_POST[query]");
}else{
header ("location: http://www.msn.com/page=search&query=$_POST[query]");
}


Using header would forward them to that page. Some other techniques could be used to keep them actually on your site, but like I said thats simply concept thought.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 7:49 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 25 May 2012
Posts: 3675
Points: 191987 

Post Posted: Wed Apr 18, 2007 8:04 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

how come floppy you can post code alike that and i cant !!

Code:
if($mysearch == "google"){
header ("location: http://www.google.com/page=search&query=$_POST[query]");
}elseif($mysearch == "yahoo"){
header ("location: http://www.yahoo.com/page=search&query=$_POST[query]");
}else{
header ("location: http://www.msn.com/page=search&query=$_POST[query]");
}
 

 
View user's profileSend private messageSend e-mail Reply with quote


floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 1:49 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Posted: Wed Apr 18, 2007 8:09 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

OMG Ped, I am limited to one hard question a day. Ask me again tomorrow.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

trancidix
Reputation: 461.6 Add RepSubtract Rep
Local time: 11:49 PM


Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 14, 2007
Last Visit: 02 May 2007
Posts: 15
Points: 305 

Post Posted: Tue May 01, 2007 9:05 am

ok my frustration has reached its limit, my extremly limited knowledge of php has driven me into a brick wall in trying to make this myself, how much would someone charge me to make side block for me? simple drop down box to select what search engine to search an input box and a search button should be simple enough.
 

 
View user's profileSend private message Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Blocks


 
4 Replies / 2980 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum