Appending User ID to all links

Hello,
I have searched through and through, but haven't found a simple way to add the current user's id to the end of all my links. Ideally I would like to do an auto find and replace function appending the needed user id to all of my links, whether in blocks or just in a blog entry. Having a place holder in my link's url, like www.outboundsite.com/landingpage/member=[uid]. I basically need to be able to put the user id into different parts of links in a flexible manner.

Profile2 - User selects which profile to use with registration

On our site we have 6 categories of users. Each user category has their own set of registration questions. When a new user comes to the site they select 1 of the 6 links that identify a user category, then their registration process includes the questions for that category. With Profile2 http://drupal.org/project/profile2 we can create 6 different profile types, but
1. A user clicks one of the 6 category links how can we automatically select the correct profile/registration questions?

SA-CONTRIB-2011-021 - Webform - Multiple Vulnerabilities

  • Advisory ID: DRUPAL-SA-CONTRIB-2011-021
  • Project: Webform (third-party module)
  • Version: 6.x, 7.x
  • Date: 2011-May-18
  • Security risk: Moderately critical
  • Exploitable from: Remote
  • Vulnerability: Cross Site Scripting, Multiple vulnerabilities

Trying to add an icon based on content type to each node link on the taxonomy term pages

I am trying to add an icon next to each node link on the taxonomy term pages only. I have created a separate page--taxonomy--term.tpl.php file that my site is rendering based on the modifications I made to the mytheme_preprocess_page method in the template.php file. So far so good, I have the template I need to make modifications to. However, I now need changes done to the nodes array itself. The standard way to grab all the data on these pages is to use:

Theme a content-type view from a module (only add/edit works)

Hi, I searched on forums and google, and fight with this for a long time.... still no luck. So any help greatly appreciated.

I defined a content-type ("nony") from the backend and was able to modify the themeing of the form from a module with the following code:

nony.module:

function nony_theme($existing, $type, $theme, $path) {
return = array(
    'nony_node_form' => array(
      'render element' => 'form',
      'path' => drupal_get_path('module', 'nony'),
      'template' => 'nony-node-form'
    ),
    'nony_node' => array(
      'render element' => 'form',
      'path' => drupal_get_path('module', 'nony'),
      'template' => 'nony-node-view'
    )
  );
}

function template_preprocess_nony_node_form(&$variables) {
    drupal_add_js(drupal_get_path('module', 'nony') . '/nony.js', 'file');
}

function template_preprocess_nony_node_view(&$variables) {
 kpr($variables);
}

Then I got two files with the templates:
promise-node-form.tpl.php
promise-node-view.tpl.php

If I add or edit a "nony" node template_preprocess_nony_node_form gets called, the nony.js loaded, and the promise-node-form.tpl.php is rendered fine.

The problem is when I want to view a "nony" node, I can't get template_preprocess_nony_node_view function called, or even the view template rendered.

backup problem - Can't create database database as it already exists

Hi there!

I have a big problem as somehow I damaged my site, and now I need to use a backup to restore it to its previous state.

I use phpMyAdmin and I have selected all tables from database X, then dropped the tables, then tried to import the SQL file BUT.. I get a message saying "Can't create database database X - it already exists"..

Please help!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x