Drupal is up and running but how do I ...?

Best advertising integration using keywords or PPC-style ads

Hello,
I've just recently installed Drupal, but I must admit I wish I'd done it a long time ago. Great CMS and very easy to use IMO.

My question(s) involve the best way to integrate advertising on a website using Drupal by having ads display by keyword AND the ads must be displayed within the "content" portion of the page right above the body or product content and below the main content/page navigation, like where Home > Shopping > Dvd Players, would appear on each page for example.

The goal is to simply have PPC looking ads much like the green block "sponsored ads" section like MSN displays at the top of any search results page.

So, what I need some help with would be:

1) Do I use an app. like PhpAdsNew, where we create all the ads, set up ads to display by keyword(s), and go with PhpAdsNew use code from this app. to populate each of the page ads (if an ad exists for that keyword)?

2) I'm using the Pushbutton theme, and unfortunately am not a php programmer. So, what would the PHP code look like and where do I insert the code within the Pushbutton theme to display the PhpAdsNew ads (if that's the best method).

3) Lastly, can I also include the same code for the Search function/results by keyword? So, if someone types in "Dvd player" and clicks search, then the most relevant ads would display at the top of the search results page - much like MSN search results pages do.

one false move....blankness

i seem to be getting quite a lot of blank screens when using 4.7 now. the last thing i attempted, was to take a php snippet from a block in my 4.6 site and place it in the header of my 4.7 site...bam! a blank page for all areas of the site.

heres what i placed in a block in the header region:

//Default Value for Select
$t_description[] = 'Jump To Company';
//Get Taxonomy Terms in Vocab State
$result = db_query("SELECT term_data.description, term_data.tid FROM term_data WHERE term_data.vid=10 ORDER BY description");
//Populate array with descriptions and links. The key of the array will be our URL.
while ($term = db_fetch_object($result)) {
  $t_description['http://www.mywebsite.com/taxonomy/term/'.$term->description] = $term->description;
}
//Build the select list using Drupal's 'form_select' function.
$category_select = form_select('', 'category', '', $t_description, $description = NULL, 'on Change="top.location.href=document.getElementById(\'edit-category\').options[document.getElementById(\'edit-category\').selectedIndex].value"', $multiple = FALSE, $required = FALSE);
//Give our subsequent form a name we can grab with the Javascript
$form_attributes[description] = 'state_jump';
//Build our form with Drupal's 'form' function.
return form($category_select, $method = 'get', '', $form_attributes);

now i cant seem to access any areas of the site and have no idea what pages i would remove this code from. any help here?

Where are module titles??

I want to change titles of all modules, but it doesn't working.
To be more specific, most modules have an array in which title is stored, eg. (in case of members.module):

$items[] = array('path' => 'members',
'title' => t("members"),
'callback' => "members_page",
'access' => user_access("access members list"),
'type' => MENU_MODIFIABLE_BY_ADMIN );
}

Asked and answered: altering autocomplete forms with javascript after they're rendered

[This took me a while to figure out, so I'm offering it as a tip for future reference. If someone has any suggestions to alter this node title to make it more findable in search, please suggest away and I'll edit it.]

Scenario:

Let's take the one I'm working on as our example because it's easier to explain. http://dev.vocalvoter.com

I have a search form which looks up street addresses for anywhere in the country. In order to help get a perfect DB match, the 'street' field autocompletes.

However, as we add more and more counties to the database, especially in a country like Ireland, the autocomplete results get progressively less useful. For example, you may find a 'St Patrick's Street' in almost every medium-sized town in Ireland, but you probably won't find more than ten in any given county.

So I altered the autocomplete handler. It takes a first argument - the numeric ID of a county - and now returns only search queries from within that area.

Altering the form with Javascript

Next we change the output of the form_api renderer. I add a <select> box containing the names and IDs of the counties (which are held in an array called $counties), and attach an onChange attribute to the field. That onChange alters the value of the hidden field called 'edit-search-autocomplete', which holds the autocomplete URL path for this form. Critically, I need to refer to both these fields by new JS variables, because Drupal's form element IDs contain dashes and in javascript that's problematic because it's a 'minus' operator. Adding the Javascript handler looks like this:

using Acidfree in 4.7b4?

I'm not sure how I should be installing and using acidfree 4.7 with the drupal 4.7 beta 4. acidfree require filemanager module and it requires attachment module. However, the 4.7 versions of those 2 modules aren't posted yet.

How should I be approaching this for test purposes? I'm just wanting to experiment with 4.7 and test the same modules I use on my real site and report any errors I see.

Jim A

adding post topic links to forums

Hi there,
I'm mid way through setting up drupal at www.defendiran.org and am struggling a bit with the forums...

I've set up the containers/topics but so post anything to the forums atm you need to go through Add Content - not very intuitive for non-drupal people.

How do I make the forum more like this one - i.e. add post topic/reply links and make it look a bit more forum like?

Thanks
- Angie

Pages

Subscribe with RSS Subscribe to RSS - Post installation