| Import of Remote Code |
| Sunny | Date: Thursday, 2008-10-30, 5:24 Am | Message # 1 |
Haunter
Group: Administrators
Messages: 2017
Awards: 121
Reputation: 139
Status: Online
| Import of remote code is intended for advanced users who know our system and HTML. You can find this feature in Control Panel -> Customize Design -> Templates builder | Global blocks | Templates backup | Quick replacement | Import of remote code This feature is used to get a code from "remote" pages and to display it in the code of your site. Remote means that the pages may be located not only within your site but also at any other site. You can get a code of any pages (both static and dynamic). You’ll be able to display the code of these pages in any template of the system (except the templates of entries appearance) by means of the special template variables $RCODE_id$. The system will cache the received code and everything will work fast, without constant delays (especially if a remote server works slowly). You can define yourself how often the cache must be refreshed, usual refresh interval is 5 hours and more. If you want to urgently refresh the cache just edit the entry (and change nothing there).
I'm not "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| gidf | Date: Monday, 2008-11-03, 9:50 Pm | Message # 2 |
|
Newbie
Group: Users
Messages: 4
Awards: 0
Reputation: -2
Status: Offline
| does this mean that if i enter something to the effect of: $RCODE_id$ <% Response.Write("Hello World!") %> that my page would in fact parse the ASP and write "Hello World!"? if so, would this also parse advanced code such as mathematics and other dynamic elements, i.e content rotation, etc.? if we wanted to parse "remote" code, how would you code the method for including it? in ASP there are include files, is there anything like that in the ucoz system?
p.s. how come when we edit our messages, we lose our [ br ] tags?
Message edited by gidf - Monday, 2008-11-03, 9:54 Pm |
|
| |
|
| ccb | Date: Tuesday, 2008-11-04, 0:51 Am | Message # 3 |
Regular
Group: Checked
Messages: 52
Awards: 0
Reputation: 6
Status: Offline
| gidf, I guess ucoz just get the output of remote page and then display what it received. in another word, if you open remote page in broswer, what you see is what ucoz will display. if this is the case, that means ucoz won't parse any code in the remote page. if you or anyone put the page in a server that support ASP, then that server will parse the page and pass the output to ucoz. and I also guess ucoz support PHP, and not support ASP. Why I'm think so? because ucoz not allow us to write our own scripts, for security reason, and it shouldn't allow to parse remote script.
CyberCowBoy From China CyberCowBoy From China(new)
Message edited by ccb - Tuesday, 2008-11-04, 0:55 Am |
|
| |
|
| Kron | Date: Tuesday, 2008-11-04, 4:47 Am | Message # 4 |
uCoz Admin
Group: Administrators
Messages: 170
Awards: 6
Reputation: 45
Status: Offline
| Quote (ccb) in another word, if you open remote page in broswer, what you see is what ucoz will display. you are absolutely right!!! Quote (ccb) Why I'm think so? because ucoz not allow us to write our own scripts, for security reason, and it shouldn't allow to parse remote script. perfect!!!
|
|
| |
|
| gidf | Date: Tuesday, 2008-11-04, 5:10 Am | Message # 5 |
|
Newbie
Group: Users
Messages: 4
Awards: 0
Reputation: -2
Status: Offline
| ok, so how do i code a page snippet to import code from http://www. variable site here.com ? because i really dont understand the entire purpose of this command yet at this point, and id like to know how to use it, and how it is used correctly. are there any links to demos of this code in action? thanks for the good reply, ccb!
|
|
| |
|
| ccb | Date: Tuesday, 2008-11-04, 7:49 Am | Message # 6 |
Regular
Group: Checked
Messages: 52
Awards: 0
Reputation: 6
Status: Offline
| gidf, I'm also not sure for what Import of remote code can do, but I think, because we can not write our own scripts in ucoz, so ucoz make this way for alternative. something we can not do at ucoz directly, we can write a script in other site( ofcause the site can execute script), and use the output of that script in ucoz. thought we can use something like ifreme to do that, but use import of remote code that can intergrated the output of remote scripts and your ucoz page seamless. this is what I think about it.
CyberCowBoy From China CyberCowBoy From China(new)
|
|
| |
|
| 1590 | Date: Saturday, 2008-11-08, 10:11 Pm | Message # 7 |
|
Newbie
Group: Users
Messages: 3
Awards: 0
Reputation: 0
Status: Offline
| Ok i've seen this done before. How do you replace the default site logo, or what you've designated as the name of the site, in my case 'forum-fifteen-ninety' with a marquee code or a script that can be viewed on all pages?
|
|
| |
|
| Sunny | Date: Monday, 2008-11-10, 4:55 Am | Message # 8 |
Haunter
Group: Administrators
Messages: 2017
Awards: 121
Reputation: 139
Status: Online
| 1590, you can do this by means of Quick replacement.
I'm not "man", "sir" or whatever. I'm female! About signatures, screenshots etc...
|
|
| |
|
| richermorris | Date: Thursday, 2008-11-27, 12:05 Pm | Message # 9 |
Newbie
Group: Users
Messages: 1
Awards: 0
Reputation: 0
Status: Offline
| I used the remote code to import an image display from another website, but it won't display correctly, what could be the problem? here is the the url of the page: http://www.bumpauctions.com/*************/bump_display.php The text shows up on my ucoz page, but the images won't display.
www.bumpauctions.com www.articlesbysearch.com
|
|
| |