Block Visibility Based on Search Results

I was wondering if it were possible to have a block become visible based on search result.

Say I was on my site and I search california, all the articles that contain the word california come up as, I also want a block with an image of california to appear on the side bar. And if I search nevada, then a block with an image of Nevada would appear (The california block would not appear).

Is there anyway I could do that?

Where has my black line D7 dashboard gone???

I am following JOHAN FALK's videos and I have being doing great with views.

I installed module called reference ... for node references ... and after installation it removed the black line at the top that has dashboard, content, structure ...

Where has it gone???

Now for admin I have to manually type in at the top /admin to get to my admin stuff.

Where is my black dash board line???

Thanks

Fatal Error Updating Drupal Core to 7.2

Hi, I've just updated Drupal core from 7.1 to 7.2 and all looked fine until I tried to edit a node, or create a new page or article, I get the following error:

Fatal error: Class name must be a valid object or a string in /home/gbchamps/public_html/includes/common.inc on line 7475

Can anybody point me in the right direction on this one please?

Thanks in advance.

Passing sticky class to nodes when using Display Suite

$30 bounty for anyone who can deliver a working solution in the next 24hrs. I can send payment via paypal.

#1196216: DS Panels and getting stickies to work
The functionality I need is for a .sticky class to be passed to the node's wrapper div when using Display Suite (7.x-1.x-dev) for node teasers.

PHP Code for Contextual Filter to grab NID

Hello, I'm looking for the php code to use as a default argument for grabbing the content:nid in a contextual filter in D7/Views 7.

My view is outputting a block (not a page, so I can't grab the nid from the url) and I need the NID to be available to a regular filter (using the geolocation proximity filter module). I've posted the question there but with no luck, and since the specific question is more of a general php question, I'm hoping that the general forum can come up with an answer.

Thanks in advance for any help.

user object

i was wondering if its position to add additional data to the user object and if so how would i go about doing so?
for example
when i declare global $user, i would to able to store my own data so i can access it like $user->mydata.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x