This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Calculator Programming subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. General Coding and Design => Calculator Programming
Author Message
DJ Omnimaga
http://i-lost-the-ga.me


Calc Guru


Joined: 14 Nov 2003
Posts: 1196

Posted: 20 Nov 2005 08:53:03 pm    Post subject:

ok I installed a invisionfree mod on my forum that make http://omnimaga.dyndns.org or http://omnimaga.dyndns.org/index.php redirect to http://omnimaga.dyndns.org/index.php?act=site . however it doesnt seems to work fine. When I click the two first link it redirect to the board index instead, at least in Firefox, IE and Opera. It's a premade code
Code:
<script language="Javascript" type="text/javascript>
/*
Front Page as Portal v2.1
By Webworldx

*/
if(location.href.match(/\?\w+/) == null && document.referrer.match(location.pathname) == null){
if (location.href.match("index.php") == null && location.href.lastIndexOf("/") + 1 != location.href.length){
location.href += "/index.php?act=site"
} else {
location.href="index.php?act=site"
}
}
</script>
I am wondering how this code could be modified so when you type in address bar or click http://omnimaga.dyndns.org , http://omnimaga.dyndns.org/ , http://omnimaga.dyndns.org/index.php it redirect to http://omnimaga.dyndns.org/index.php?act=site , kinda like when you type http://www.unitedti.org which goes to the portal instead of the forums. I hope this is possible. Thanks in advance for your help
Back to top
AlienCC
Creative Receptacle!


Know-It-All


Joined: 24 May 2003
Posts: 1927

Posted: 21 Nov 2005 06:27:16 am    Post subject:

IPB (2.x) actually ships with a lite portal, and a script to utilize that as well, however this script expects your forum to be in a subdirectory from where you want the portal to show up.

What you're asking to do requires actually modifying the php code in your index.php file and changing the logic for the default option to load the mod, rather then when act=site. The mod should include those kind of instructions for installation purposes.

--AlienCC
Back to top
DJ Omnimaga
http://i-lost-the-ga.me


Calc Guru


Joined: 14 Nov 2003
Posts: 1196

Posted: 21 Nov 2005 08:13:55 am    Post subject:

oh I see, so I guess this is impossible to do this in javascript? Oh well, then I'll have to use omnimaga.unitedti.org as the main URL forever until Invisionfree upgrade to their own CMS
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement