The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
CMS Widget in Article Only
Hi,
Wonder if anyone can advise. I'd like to create an article in vB4 CMS that contains a widget within the article. I don't want this widget to appear on any other CMS pages, ie the side-bars etc. Is it possible to do this with the standard vB4? Or is there a mod that would allow me to do this? Really appreciate any help. Thanks. |
#2
|
||||
|
||||
I do not believe that is currently available as a modification and/or default functionality. This would require the permission to run raw PHP scripts within an article. What is your final goal?
|
#3
|
|||
|
|||
Hi the reason I was considering this is that I'm trying to run a KML (Google Earth) viewer in a CMS article. The problem that I have, is that if I just embed the code in the CMS, the viewer does not display properly. Wierdly, if I create a widget using exactly the same code, the KML viewer works absolutely fine. The problem is, I don't want the Google Earth viewer to appear on every CMS page, as it would do with a widget at the moment, I only want it to appear on one page.
I hope that answer isn't too confusing! Do you have any idea why a widget would handle the embed code any differently to the CMS? Thanks |
#4
|
||||
|
||||
Is the code HTML? How does it show? Providing screenshots would be helpful. If it is HTML, it could be as simple as enabling your usergroup (hoping only Administrators) to post HTML within Articles. Although, I find this highly inadvisable.
|
#5
|
|||
|
|||
Hi, this is the code:
HTML Code:
<script src="http://www.gmodules.com/ig/ifr?url=http://code.google.com/apis/kml/embed/embedkmlgadget.xml&up_kml_url=http%3A%2F%2Fwww.surftalk.co.uk%2FWorld_Tides.kmz&up_view_mode=earth&up_earth_2d_fallback=0&up_earth_fly_from_space=1&up_earth_show_nav_controls=1&up_earth_show_buildings=1&up_earth_show_terrain=1&up_earth_show_roads=1&up_earth_show_borders=1&up_earth_sphere=earth&up_maps_zoom_out=0&up_maps_default_type=map&synd=open&w=600&h=600&title=Embedded+KML+Viewer&border=%23ffffff%7C0px%2C1px+solid+%2382CAFA%7C0px%2C2px+solid+%23BDEDFF%7C0px%2C3px+solid+%23E0FFFF&output=js"></script> If I take exactly the same code, and embed it on for example my blog, it works fine - all the placemark data is there (the green pins). The placemark data is pulled from the KMZ file which is held on my server. As it's exactly the same code, i don't understand why it's handled differently within the vB CMS? been puzzling this for weeks! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|