Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
?id=1 or other id's https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4428 |
Page 1 of 1 |
Author: | wo88les [ 11. Sep 2017, 14:24 ] |
Post subject: | ?id=1 or other id's |
Hi, Sorry if this has been answered already, but im having a little issue with the plugin I want to have 1 frame showing which has selection menus (which works great by the way) The place i want to link to for example is calc.php each item i want to link to would be calc.php?id=1, calc.php?id=2, calc.php?id=3...... How can i make one iframe which i can point to a certain item within the iframe, without having to make loads of pages linking to each iframe, If you understand what i mean Thanks |
Author: | TinyWebGallery [ 11. Sep 2017, 15:20 ] |
Post subject: | Re: ?id=1 or other id's |
So you only have 1 iframe where the links are and where is the content? Or is calc.php also in an iframe? So you have e.g. 3 links? calc.php?id=1, calc.php?id=2, calc.php?id=3 and then an iframe with calc.php? and inside 3 elements with id=1 2 and 3? then the iframe url should be actually calc.php#1 (which would be an ancor) ? Best, Michael |
Author: | wo88les [ 11. Sep 2017, 15:42 ] |
Post subject: | Re: ?id=1 or other id's |
Basically pulling a calculator from a folder in the website, to integrate it into the site while keeping the header and footer The iframe is in the middle for example www.xxx.co.uk/newcalc/ = calculator iframe page embedded on a wordpress page which pulls from www.xxx.co.uk/calc/calc.php if i navigate to ....co.uk/calc.php?id=1 that will take me to the first item in the calculator if i navigate to the ....co.uk/newcalc/ there is no way i can see to add the indexes to force the iframe to load from that specific item in the menu |
Author: | TinyWebGallery [ 11. Sep 2017, 17:05 ] |
Post subject: | Re: ?id=1 or other id's |
I don't understand what you mean with newcalc. You have a menu with n entries and the target is the iframe? Best, Michael |
Author: | wo88les [ 11. Sep 2017, 19:09 ] |
Post subject: | Re: ?id=1 or other id's |
Ok it's really hard for me to explain but Www.flavour-boss.co.uk/calc/calc.php is the calc Www.flavour-boss.co.uk/calc/calc.php?id=1 shows the first boss shot Www.flavour-boss.co.uk/calc/calc.php?id=2 shows second I'm implementing through Www.flavour-boss.co.uk/bosscalc But how can i make it so I can choose whether it selects shot 1,2,3 by through that iframe page Multiple Iframes just fill the page up I hope that helps Feel free to remove the links from this post after you take a look Thanks |
Author: | TinyWebGallery [ 11. Sep 2017, 22:46 ] |
Post subject: | Re: ?id=1 or other id's |
Where is the menu you want to select from? Because I think you simply have to define the iframe as the target. Best, Michael |
Author: | wo88les [ 12. Sep 2017, 12:15 ] | ||||
Post subject: | Re: ?id=1 or other id's | ||||
Hopefully that should help As you can see it changes the first drop down I want that implementation into https://flavour-boss.co.uk/bosscalc Thanks
|
Author: | TinyWebGallery [ 12. Sep 2017, 20:24 ] |
Post subject: | Re: ?id=1 or other id's |
I see this. But where should the links be that open this? in the menu? Because as I have written. set the target of the link to the id of the iframe and this should work already. Best, Michael |
Author: | wo88les [ 13. Sep 2017, 10:19 ] |
Post subject: | Re: ?id=1 or other id's |
Sorry i still don't think you understand I can set the target link with the ID no problem, however it only works with 1 single ID, I don't want to create multiple iframes on multiple pages. I was wondering if there was a way to change to a different id "on the fly" so to speak I'm bad at explaining things sorry Luckily you seem to have lots of patience |
Author: | TinyWebGallery [ 13. Sep 2017, 11:35 ] |
Post subject: | Re: ?id=1 or other id's |
you are right. I still don't understand. Where are the different links? like Www.flavour-boss.co.uk/calc/calc.php?id=1 Because if you 5 of them on the page you have 5 links. and all have the iframe as target... Best, Michael |
Author: | wo88les [ 14. Sep 2017, 11:16 ] |
Post subject: | Re: ?id=1 or other id's |
i don't have 5 links, flavour-boss.co.uk/calc/calc.php is the link within the php file itself i have allowed linking using the ?id= (it pulls the id you select from the select your boss shot dropdown) The iframe is located at flavour-boss.co.uk/bosscalc ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ That iframe only shows the default setup, and the wordpress page content was [advanced_iframe securitykey="****" src="https:/flavour-boss.co.uk/calc/calc.php" id="iframe1" name="iframe1" width="100%"] i cant add ?id=2 at the end of the website url as it does nothing (for example flavour-boss.co.uk/bosscalc/?id=2) wordpress adds the / as its a page with an iframe, not a static page like where im pulling the iframe content from again the iframe content pulls from flavour-boss.co.uk/calc/calc.php We have 40 different shots in the calculator, so making 1 page containing 1 iframe for each shot selection would be too 'bulky' So i want to be able to make the page and frame focus on a certain point depending how the page with the iframe is loaded do i need to create a second iframe with all the id's in, and then point my main iframe to the second iframe, but then how do i make it select the exact frame i want by only having one showing i have no idea how to use the ID/name option inside a frame for example i tried making another iframe page [advanced_iframe securitykey="****" src="https:/flavour-boss.co.uk/calc/calc.php?id=1" id="iframe1" name="iframe1" width="100%"] [advanced_iframe securitykey="****" src="https://flavour-boss.co.uk/calc/calc.php?id=2" id="iframe2" name="iframe2" width="100%"] [advanced_iframe securitykey="****" src="https://flavour-boss.co.uk/calc/calc.php?id=3" id="iframe3" name="iframe3" width="100%"] [advanced_iframe securitykey=****" src="https://flavour-boss.co.uk/calc/calc.php?id=4" id="iframe4" name="iframe4" width="100%"] i see it has ID tags for each one, however it shows all 4 iframes on 1 page, i don't want that, i want each part to be shown only when asked to pull that option i really don't know the best way to explain it, i hope that is a bit more clearer |
Author: | TinyWebGallery [ 14. Sep 2017, 11:25 ] |
Post subject: | Re: ?id=1 or other id's |
This is what I mean. You need a selector somewhere! Not even in an iframe. You simply e.g. have a list of links. "depending how the page is loaded" is important. is is loaded differently? Because e.g. if you have a parameter in the url this can be forwarded to the iframe. Best, Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |