![]() |
How to add 2 custom fields to New Thread?
I am wanting to add two custom fields to new threads:
latitude longitude I want these stored in the thread table in VB What I have tried: 1. Modified newthread template to include: Code:
<!-- GOOGLE MAP COORDINATES START HERE --> 3. Created hooks in: threadfpdata_start Code:
$this->validfields['latitude'] = array(TYPE_INT, REQ_NO); Code:
$this->validfields['latitude'] = array(TYPE_INT, REQ_NO); Code:
$vbulletin->input->clean_array_gpc('p', array('latitude' => TYPE_INT, 'longitude', TYPE_INT)); Thanks very much Ok, I'm getting there. There is a typo in newpost_process it now reads: Code:
if ($type == 'thread') I've change the variable names from 'latitude' to 'thread_dec_lat' and 'longitude' to 'thread_dec_long' by the way :) Now to figure out why it is only writing one of the variables into the database ... |
All times are GMT. The time now is 02:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|