Customizing SMF > SMF Coding Discussion

is it ok to use smf within frames?

(1/2) > >>

poda19:
hi
i have created an index.html page for first page of my site. it's contents are two frames:
1.src="myforum/index.php?action=myaction
2.src="myforum?index.php
what i want is the user to be able to navigate through myaction pages and my forum pages without needing to reload the other one.
is it ok to do like this? isn't there a security risk or functionality problem?

thanks

Yoshi:
Hi poda19, welcome to SMF!

I'm not totally sure what you would do with those frames. Could you please explain your idea, so we can have a better overview of the functionality and point out possibe risks?

And how do you mean "without reloading the other one"?

Arantor:
Well, sessions don't work necessarily work properly between frames (or iframes) and you will have issues with search engines in using frames.

poda19:
thank for your responses
the idea is that i want to have a forum and some other pages. those pages are not a forum however i used ?action=blabla and edited the templates so that myaction page is a blank page and i can put whatever i want in it.  i want the user to be able to navigate through the forum and my pages simultaneously.

to sum it up: i have two frames in an html page that show different pages of my forum, will there be session problems as you pointed Arnator?

Arantor:
Yes, there quite probably will be problems. It might be better to use a portal mod to create the side area instead for navigation.

Navigation

[0] Message Index

[#] Next page

Go to full version