PDA

View Full Version : IFrame Redirect Plugin


DirectAdmin Support
09-19-2005, 12:57 PM
Hello,

A few people were asking for Iframe redirects, so I thought this would be a good opportunity to test out the plugin system.

I've created an iframe.tar.gz plugin, available here:
http://www.directadmin.com/iframe.tar.gz

You can install it from Admin Level -> Plugin Manager.

It's very basic and is a good example application for the plugin system. Feel free to use it/modify it as a base for your own User plugins. (There is no Admin/Reseller Level, as they are not needed in this case)

John

getUP
09-19-2005, 01:03 PM
Amazing. Thanks a lot!

edit:
By the way, I will ask our coder to implement some other functions to it, like listing redirects, changing current ones. Will get back to this shortly.

netswitch
10-12-2005, 03:01 AM
not tested yet but thanks a lot for this most wanted feature :)

Chrysalis
10-12-2005, 05:07 PM
thanks

sullise
10-12-2005, 08:58 PM
Hmm...looking further, for some reason it's not substitute the |DOMAIN| in the user_txt.html file

<a href="/CMD_PLUGINS/iframe/index.html?domain=|DOMAIN|">IFrame Redirect</a>

Wierd.

I've even gone as far as deleting the entire plugins directory and reinstalling it. Still same thing. I'm stumped.

Aha..figured it out. Doesn't work under the "default" skin, but works fine under the Enhanced and Power User...

Bug. :)

sander815
10-27-2005, 11:27 AM
how do i remove a iframe redirect? just delete the inex.html i assume?

theres no delete option in the controlpanel

sullise
10-27-2005, 11:35 AM
Just delete the html file it creates.

@how@
11-02-2005, 10:59 AM
nice plugin, keep going:D

zabulus
05-11-2006, 06:28 AM
yes!

i was looking for this kind of plugin

very nice!

empowering
05-11-2006, 08:52 AM
Why would a customer/user want this feature?

Alrik
05-11-2006, 08:57 AM
for a redirect doamin, without showing the actual hosted url.

bambipower
06-04-2006, 01:39 AM
thank you :)

jlasman
06-04-2006, 10:32 AM
We've been doing redirects for years with a zero-size frame in the html, inserted manually. Is there a difference between that and the way this plugin works?

Jeff

Jeffreybr
11-27-2006, 09:29 AM
Hi,

i get the following error:
Unable to execute your request

Details

That plugin does not exist for the specified User Level


logged in as:
Admin
Reseller
User

Jeffreybr
12-08-2006, 03:32 AM
Originally posted by Jeffreybr
Hi,

i get the following error:
Unable to execute your request

Details

That plugin does not exist for the specified User Level


logged in as:
Admin
Reseller
User
Someone with a solution for this?

Kod
04-18-2007, 09:19 AM
Hello,

The plugin doesn't work anymore suddenly.

Creating a Redirect to http://www.site.tn/ in file /home/admin/domains/domain.tn/public_html/index.html...
Unable to open /home/admin/domains/domain.tn/public_html/index.html for writing. Check your permissions.


Do you have any ideas ?

sullise
04-18-2007, 09:49 AM
Works for me..just create one here:

http://www.platinumvibes.com/index.html redirects to http://www.capitalwebhost.net just fine.

Check the index.html file in the domain you're creating the redirect and make sure it's writable. Error is pretty obvious. The plugin wouldn't simply STOP working for no reason.

cyberneticos
04-19-2007, 05:42 PM
Exellent guys !!

This is something that is asked for very often ! Haven't tested yet, but the iniciative is fantastic.

I also like how you included the domain that they are creating the Iframe redirect for, and the / as default so they can see exactly what's being redirect. It would be nice if the site redirection also showed the domain as well (and slash) hehehe

Great job !

:D

Kod
04-20-2007, 03:40 PM
Hi there Sullise,

Since the error is obvious I wouldn't have made this post if I didn't chmod accordingly first.

I'm getting this error on 2 different servers.

Thanks for your help anyway.

sullise
04-20-2007, 07:08 PM
Hi there Sullise,

Since the error is obvious I wouldn't have made this post if I didn't chmod accordingly first.

I'm getting this error on 2 different servers.

Thanks for your help anyway.


Ok...not so obvious..php.ini. Is fopen, etc being disabled?

zbahadir
04-27-2007, 04:04 PM
Thanks for IFrame Redirect Plugin. :)

jazzy
02-28-2008, 09:52 PM
No error msg, just snippets of php code:
$to in file $fullfile...
\n"; $fp = @fopen($fullfile, "w"); if (!$fp) die("Unable to open $fullfile for writing. Check your permissions."); fwrite($fp, "\n"); fwrite($fp, "\n\n"); fclose($fp); echo "writing done.
\n"; ?>

A bug?
Files have 777 permissions, so I honestly don't know what I'm doing wrong. I need to get this up and working since I'm moving from an old Win server to a "real" server today, with 40 domains using the same codebase + some 1300 "no-domain" member sites. Yes, this is a CMS-project.

I could use jlasman's solution with hardcoding a zero-sized frameset, but it would be sooo much smoother with a plugin that dealt with this. Any help/idea is highly appreciated. :)

Erik

hklcf
06-26-2008, 11:06 PM
Thanks :o)