• Page 1 of 3
  • 1
  • 2
  • 3
  • »
Forum moderator: bigblog  
uCoz Community » For Webmasters » Design Customization » Import of Remote Code (For Users who know our system and HTML)
Import of Remote Code
Sunny
Posts: 9296
Reputation: 456

Message # 1 | 11:24 AM
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 active on the forum anymore. Please contact other forum staff.
gidf
Posts: 4
Reputation: -2

Message # 2 | 3:50 AM
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?

Post edited by gidf - Tuesday, 2008-11-04, 3:54 AM
Kron_old
Posts: 117
Reputation: 52

Message # 3 | 10:47 AM
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
Posts: 4
Reputation: -2

Message # 4 | 11:10 AM
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!

1590
Posts: 3
Reputation: 0

Message # 5 | 4:11 AM
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
Posts: 9296
Reputation: 456

Message # 6 | 10:55 AM
1590, you can do this by means of Quick replacement.
I'm not active on the forum anymore. Please contact other forum staff.
richermorris
Posts: 1
Reputation: 0

Message # 7 | 6:05 PM
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
Anubis
Posts: 10
Reputation: 0

Message # 8 | 9:56 PM
Hi, I was wondering where I can ask my HTML code question since most of the topics are in trash now.

When I go to Control Panel - Users - User Groups - Admin - Edit and then check "Allow HTML tags in posts" box in Forum section and save, nothing happens. When I check it again it remains unchecked. Same thing happens for other groups like Moderators.

Is HTML supported in forum posts and if so why can't I set it in CP?

Thanks for the response

BraziluCoz
Posts: 84
Reputation: 1

Message # 9 | 0:35 AM
with import remot code, can I import a php page?
-
I use resources miarroba.com (Language: Spanish) in php3

Hello! I am Ennio Sousa
Sunny
Posts: 9296
Reputation: 456

Message # 10 | 10:44 AM
Anubis, your question is about user permissions, please post in the following thread - http://forum.ucoz.com/forum/7-5305-1

BraziluCoz, I doubt it will be possible but you can have a try.


I'm not active on the forum anymore. Please contact other forum staff.
BraziluCoz
Posts: 84
Reputation: 1

Message # 11 | 10:38 PM
Sunny, I will try.

Added (2010-04-30, 4:38 PM)
---------------------------------------------
I tried to use import remote code, I managed, but only one page then it is not useful, I created a chat in php and did not pay.
-=-
test import of remote code on the page: arq1.ucoz.com
-=-
if you want to see the chat is = http://u.to/ZScU


Hello! I am Ennio Sousa
zaheerafzal
Posts: 12
Reputation: 0

Message # 12 | 1:42 AM
how i use import of remote code in my own website ???
can u have any demo plz
Sunny
Posts: 9296
Reputation: 456

Message # 13 | 12:34 PM
zaheerafzal, we do not have a tutorial. This feature is intended for advanced users. In general the steps will be as follows:

1. Go to Control Panel -> Customize Design -> Import of remote code.
2. Click "Add import of remote code".
3. Fill in the fields that will appear: the URL of the page you want to import and its update interval.
4. Click "Add".
5. Copy the code, e.g. $RCODE_1$, and paste it into the place where you want the remote page to be displayed.


I'm not active on the forum anymore. Please contact other forum staff.
zaheerafzal
Posts: 12
Reputation: 0

Message # 14 | 6:36 PM
this information is also available in forum for this link http://forum.ucoz.com/forum/5-2512-1
its ok but
no example is available there.....how to use
plz having any example of "IMPORT REMOTE CODE"
with text or graphics

plz
plz

REGARDS:
ZAHEER

Sunny
Posts: 9296
Reputation: 456

Message # 15 | 8:57 AM
zaheerafzal, just follow the steps I described above and you will see the result. If you have any problems in the process, I will try to help.

Here is an example: http://bridog.co.cc/index/0-11 I imported this forum page to my test website. It looks ugly because the designs and colors are completely different and the page requires customization. But I think you will get the idea.


I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » For Webmasters » Design Customization » Import of Remote Code (For Users who know our system and HTML)
  • Page 1 of 3
  • 1
  • 2
  • 3
  • »
Search: