If anyone has any HTML problems or just want the code to soemthing than post it here, I will probrably be able to help you.
HTML Guru Here
Collapse
X
-
Tags: None
-
Here's a braintester
Let's say you have vBulletin setup on a website which uses frames (frameset rows="*,400,*"):
- topframe contains navigation
- middleframe contains vBulletin
- bottomframe contains a banner
Here's the problem: when a user discovers a cool topic which he wants to email to someone else, that 'someone else' will get the url from the middle frame.
As a board admin, I want ofcourse the top & bottom frame to be displayed as well, cause they contain valuable information & navigation.
Is there any way to do this? I know the easiest way is not to work with frames, but with headers|footers|layers or whatever, but WE WANT FRAMES
Any solutions for this guys. Maybe some kind of script that tells certain pages to be placed automaticle in a frametemplate???Comment
-
The redirect or reference URL must point to a file that takes that information and writes the new framing out to the browser.
I don't know how vBulletin works - but it is very simple to do. I'd imagine you just need to change the reference URL in the email to one of your own that configures the browser frames.
let me know how you get on.Comment
-
no I don't!
but I'll give you the basic skeleton.
this is the current URL that gets sent:-
change it to:-
the "framehandler.asp" file simply:-
* picks up the querystring information
* stores it
* writes out the FRAMES format of your window
The middle frame has dynamic content referencing the "SHOWTHREAD" file with this query information.
I'm an ASP expert, not cgi!
<%
Dim myThread
myThread = request.querystring("threadid")
%>
<html>
<head>
</head>
<frameset frameborder=no border=0 rows='*,400,*' framespacing=0 framecolor="#000000">
<frame src="navigation.asp" border=0 marginwidth=0 marginheight=0 noresize scrolling="no">
<frame src='http://www.yoursite.com/forum/showthread.php?threadid=<%=myThread%>'> noresize scrolling="auto">
<frame src="clickbanners.asp" border=0 marginwidth=0 marginheight=0 noresize scrolling="no">
</frameset>
<noframes>Sorry, this site uses frames! If your browser does not support them click <a href='/noframesfilehandler.asp'>here</a></noframes>
</html>
note: this has not been tested, but should be pretty close to what you need.
Comment
-
well, just simply replace the ASP part with the UNIX equivalent, whatever it is. I don't use UNIX so I don't know., but it must be pretty simple.
Dr.Dollarz should be able to complete the simple conversion of the request.querystring format for you, and you've practically got the rest already.
good luck.Comment
-
php is simpler
create showframes.php:
------
<html>
<head>
</head>
<frameset frameborder=no border=0 rows='*,400,*' framespacing=0 framecolor="#000000">
<frame src="navigation.asp" border=0 marginwidth=0 marginheight=0 noresize scrolling="no">
<frame src='http://www.yoursite.com/forum/showthread.php?threadid=<? echo threadid; ?>'> noresize scrolling="auto">
<frame src="clickbanners.asp" border=0 marginwidth=0 marginheight=0 noresize scrolling="no">
</frameset>
<noframes>Sorry, this site uses frames! If your browser does not support them click <a href='/noframesfilehandler.asp'>here</a></noframes>
</html>
------
Just call it via showframes.php3?threadid=255
There's also another option where you can force your forums page to open up with the frame set around it...but that involves JavaScript.Comment
-
Thanks a lot for the help guys....
I have found a javascript solution as well here:
Comment
-
Re: php is simpler
Originally posted by Stallion
create showframes.php:
<frame src='http://www.yoursite.com/forum/showthread.php?threadid=<? echo threadid; ?>'> noresize scrolling="auto">
I just tested it out, but it looks like this part of the code doesn't return the treadID#, in fact this is what I get when I run the script:
<frame src='http://www.yoursite.com/forum/showthread.php?threadid=treadid' noresize scrolling="auto">
WHat do I have to do to fix this script?
Comment
-
Related Topics
Collapse
-
by DemOnstarHello there. I am about to embark on another aspect of this massive learning curve and I need your help. I have given up on permissions for the time being because I am not getting very far there.
...-
Channel: Support Issues & Questions
-
-
by cdogngeorgeI've embedded a survey into a Static HTML module and it works fine on PC but won't work on iPad (either Safari or Chrome). Any workarounds?
Here is the code:
<script>(function(t,e,n,o){var...-
Channel: vB Cloud Support & Troubleshooting.
-
Comment