The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I am trying to create a cmps module but I am looking for the module to display the information associated with a specific ID # that I want to encode in the url.
So if a user clicked on /blah.php?page=botw&babe=10 the module would do a search for ID 10 and pull up that information. I figure I could use this but how do I define x as the # in the url? PHP Code:
this is actually what I have so far. PHP Code:
|
|
#2
|
||||
|
||||
|
perhaps this way?
Code:
if (empty($_REQUEST['babe']))
{
$_REQUEST['babe'] = '1';
}
$babeqry = $DB_site->query("SELECT id, name, bio, month, links FROM " . TABLE_PREFIX . "botw WHERE id = $_REQUEST[babe]");
$botwid = $babeqry["id"];
$botwname = $babeqry["name"];
$botwbio = $babeqry["bio"];
$botwmonth = $babeqry["month"];
$botwlinks = $babeqry["links"];
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('botw_featured') . '";');
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|