PDA

View Full Version : BB Code Enhancements - Neighborhood Demographics


benstillman
02-10-2010, 10:00 PM
This will change any City/State, Zip, etc to a link to Yahoo Real Estate's Neighborhood Demographics page. This was originally written by TimberFloorAu for use in Australia. It's been modified to be more universal.

For example, Perrysburg, OH will return: Perrysburg, OH (http://realestate.yahoo.com/Ohio/Perrysburg/neighborhoods?p=Perrysburg,%20OH&redir=1)

Admin CP --> Custom BB Codes --> Add New BB Code


Title: City Demographic

BB Code Tag Name: citydemo

Replacement: <a href="http://realestate.yahoo.com/neighborhoods?p={param}" target="_blank">{param} Demographics</a>

Example: Perrysburg, OH

Description: This will change any City/State, Zip, etc to a link to Yahoo Real Estate's Neighborhood Demographics page.

Use {option}: No

Button Image (Optional): whatever image you want, example attached below

Remove Tag If Empty: Yes

Disable BB Code Within This BB Code: No

Disable Smilies Within This BB Code: No

Disable Word Wrapping Within This BB Code: No

TimberFloorAu
02-11-2010, 07:37 PM
example:

buckhead

Gives this result

BirdOPrey5
08-08-2010, 01:12 AM
ehhh... I installed it, what the heck...

Made a little change though... I downloaded the little house icon as demohouse.png and put it in my /forums/images/misc/ directory... then I used the following modified replacement to put an image next to the link:

<a href="http://realestate.yahoo.com/neighborhoods?p={param}" target="_blank"><img src="/forums/images/misc/demohouse.png" border="0" alt="Demographics" align="absmiddle">{param}</a>

Demo: http://www.juot.net/forums/showthread.php?p=845343#post845343

DAMINK
08-08-2010, 04:02 AM
So this is not limited by country etc?
I could use an Australian postcode for example or would i need to edit the code a bit?

benstillman
11-17-2010, 02:43 PM
So this is not limited by country etc?
I could use an Australian postcode for example or would i need to edit the code a bit?

You should be able to use Australian postcodes. Try it and let us know.