Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Location: Mexico City
Occupation: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer
Hello there, I'm currently working in a big proyect to sell lots of properties and I need to develop a INFO PANEL which shows some data about them (Cost, details, area, etc). Right now my idea is to create separated .png images of the panel for each site but it would be much much better to get KRPANO to read them from a DATABASE, specially if I need to update the panel.
I guess this must be a common need so, ¿Anyone has an idea of how to do it? specifically how to comunicate KRPANO whith the DATABASE and which format for the database is the best (excel chart, plain text, etc) I've read that whith PHP some of this can be done but I'm not a very skilled programmer and I don't have an idea of how to start. Your help is quite valuable!! Thanx in advance![]()
Cheers!!
Luis
Location: Mexico City
Occupation: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer
Location: Mexico City
Occupation: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer
-----> Sam
Ok, I haven't thought about wordpress but right now it's not an option for me because I want to manage all the content inside the interfase, I would also develop an interactive map to navigate panos and I'd also love to manage everything in fullscreen. As far as I can see Wordpress works fine to manage panos alone, but, I'm not sure if it's the best way for my needs right now, are you?
Even though I'll take your advice for a future, do you have any example of real state krpano aplication in WP, by now I haven't seen that and it sounds really good, if you could give me some example I'll appreciate it very much. Thanx!
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<krpano> <map> <?php $con = mysql_connect("localhost","peter","abc123"); if ($con) { mysql_select_db("my_db", $con); $result = mysql_query("SELECT * FROM Maps"); while($row = mysql_fetch_array($result)) { echo '<spot id='".$row['id']."' />'; } mysql_close($con); } ?> </map> </krpano> |
Quoted
"One would be generating an xml with php (or serverside language of your choice) and let krpano include that. This is the fastest way for krpano to parse content. Downside is, you will run into caching, krpano will load an old xml from its cache instead of the latest from the database, there are hacks though to prevent this (time/version stamping it for example). "
![]() |
Source code |
1 2 3 4 5 6 |
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header('Content-Type: text/xml'); header("Pragma: no-cache"); |
![]() |
Source code |
1 2 3 4 5 |
<script> var viewer = createPanoViewer({swf:"krpano.swf", xml:"tour.xml", target:"pano"}); viewer.addVariable("version", '<?= VERSION ?>'); viewer.embed(); </script> |
![]() |
Source code |
1 |
<include url="file.xml?v=%$version%" /> |
Location: Mexico City
Occupation: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
![]() |
Source code |
1 |
echo "<hotspot name="$row[0]" url="$row[1]" ath="$row[2]" atv="$row[3]" edge="$row[4]" visible="$row[5]" />"; |
![]() |
Source code |
1 |
echo '<hotspot name='".$row['name']." ' url='".$row['url']." 'ath='".$row['ath']." 'atv='".$row['atv']." 'edge='".$row['edge']." 'visible='".$row['visible']." ' />'; |
![]() |
Source code |
1 |
echo '<hotspot name='.$row['name']. ' url='.$row['url']..... |