Joining pages - نوشته شده در (1426 Views)
Average Member
Andy Humm
مطلب: 908
908
I have been revamping the way the forum looks with a view to come away from pop-up pages. Current when you are in the pop_profile and you click 'Click to send me an email' it opens pop_mail.asp in a new window. I have removed the javascript tag at the fron of the link so that the email form opens in the same window.
What I have done so far is changed the way the pop_mail.asp looks with a header and expanded the table area out to look similar to other forum pages, but what I am stuck on is trying to ensure there is the forum header and footer on the page. Also I would like to see the navigation directory tree on the form too.

Is there an easy way to join the pop_mail.asp to a page with header, directory and footer or simply add the code to pop_mail.asp.. Something like this:
Thank you
Andy<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Senior Member
MarkJH
مطلب: 1722
1722
It's because it uses inc_header_short.asp and WriteFooterShort. Have you tried replacing these lines of code within pop_mail.asp to inc_header.asp and WriteFooter? The former is near the top and the latter is at the bottom.<
Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
نوشته شده در
Average Member
Andy Humm
مطلب: 908
908
Thank you! - with a little more fiddling I established the tree structure at the top..<
نوشته شده در
Senior Member
MarkJH
مطلب: 1722
1722
Cool! Is it how you want it yet?<
Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
نوشته شده در
Average Member
Andy Humm
مطلب: 908
908
yes thanks..The only niggling bit is when the page opens there is a gap between the top line of the directory tree and the live chat link, which does not appear on all other pages. <
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
Post a link to a txt version and we'll fix your gap issue.<
نوشته شده در
Senior Member
bobby131313
مطلب: 1163
1163
Hmmmmm... I think I might like this idea....<
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
The simplest way, after you've changed the javascript routine, is to eliminate the response.clear line above the confirmation "Email has been sent" code.
Then you should add a meta-refresh back to default.asp following the confirmation.
Something like this:
Code:

%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
Response.Write " <p><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>E-mail has been sent</font></p>" & vbNewLine & _
"<meta http-equiv=""Refresh"" content=""2; URL=default.asp"">" & vbNewLine
else

That way it doesn't clear the screen but keeps your header/footer from pop_mail; then eliminates the Email table itself, adds the confirmation below the "Send an EMail Message ..." bit; pauses for two seconds, and returns to your main forum.<
نوشته شده در
Average Member
Andy Humm
مطلب: 908
908
bobby131313 re "Hmmmmm... I think I might like this idea...." have a butchers and see what you think, you will note that an email will not be sent as there is a spammer routine in the code to stop emails until a certain amount of genuine posts have been approved on the forum..

Personally, I prefer this method of pop_mail.asp as it gets away from pop ups..

Demo link here login/pwd: demo/demo


Carefree: pop_mail.asp text file as requested..
Edit demo link amended<
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
Here you go, Andy. See if this is what you want:
https://24.168.209.249/pop_mail.txt<
نوشته شده در
Average Member
Andy Humm
مطلب: 908
908
carefree I can not open the txt file: error message
There is a problem with this website's security certificate.<
شما باید یک متن وارد کنید