TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 211
  • Total: 212
  • @rjen

Add Wikipedia To Your Site.

Started by Xarcell, April 26, 2006, 12:19:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Xarcell

#40
Hrmmmm... I dunno what I'm doing wrong. I get: Unable to open remote file.n

I did edit the urls from: index.php?page=30; to index.php?page=4; in teh search & a.php

Xarcell

I deleted my articles and started over. I'm still doing it wrong I guess. I copied and pasted what you had into php articles. One named "Search Wiki" and "Result Wiki". I changed the url's accordlying in "search wiki" and "a.php". The a.php I uploaded to my smf root directory.

Xarcell

Does the a.php need to be named "a.php" or can we call it "redirect_wiki.php"?

bloc

No, it needs to be named a.php, because the wiki site puts that in the links. Your site will then append your site url in front of it.

Xarcell

I hate to be a pain, but this just doesn't work for me.

bloc

Hm, how does your "search" page look? and your "result" page + the a.php file?

Xarcell

#46
Quote from: Xarcell on April 30, 2006, 11:21:35 PM
I deleted my articles and started over. I'm still doing it wrong I guess. I copied and pasted what you had into 2 php articles. One named "Search Wiki" and the other "Result Wiki". I changed the url's accordlying in "search wiki" and "a.php". The a.php I uploaded to my smf root directory.

Search page = great.
Result page = Unable to open remote file.n

a.php file:

<?php

$title
=$_GET['title'];



echo 
'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Bloc Zone</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location=\'"+args[i+1]+"\'");
}
//-->
</script>
</head>

<body onLoad="MM_goToURL(\'parent\',\'http://xarchology.com/smf/index.php?page=6;title='
.$title.'\');return document.MM_returnValue">

</body>
</html>'
;

bloc

hm, seems the problem is the server not being able to open the remote file then?

Xarcell

I thought that at first, but it seems it only happens when I try to do as you suggested. It makes no sense to me. Maybe it has something to do with "my" server settings, is that possiable?

Xarcell

It works on yours, but not mine.

This website is proudly hosted on Crocweb Cloud Website Hosting.