Author |
Message |
GenZC
New Member


Joined: Oct 06, 2004
Posts: 9
|
Posted:
Sat Jul 08, 2006 2:13 pm |
|
OK i'm an idiot and i figured it out i didn't have it as index.php i had it as roster.php. but i left it as a qupote so you ppl can get a good luagh, since i can't delete my post.
|
|
|
|
 |
GenZC

|
Posted:
Sat Jul 08, 2006 2:44 pm |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sat Jul 08, 2006 2:57 pm |
|
That should be do-able. Depending on your theme there may be a very quick and dirty method.........
We know that left blocks are called in the theme.php so open theme.php and search for
Just before that we can add an if/else loop to determine whether or not the left blocks should display depending on the active module.
Code:// code to stop left blocks displaying depending on active module
if ($name=='Roster') {}
else {
blocks(left);
}
|
|
|
|
|
 |
GenZC

|
Posted:
Sat Jul 08, 2006 4:16 pm |
|
|
|
 |
Guardian2003

|
Posted:
Sat Jul 08, 2006 9:45 pm |
|
Check for errors with Firefox, I see around 78 of them but the most significant is an undefined '&op' somewhere on the page. |
|
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Sat Jul 08, 2006 10:04 pm |
|
Can you paste the code located in the index.php of your module? |
_________________ For those who stand shall NEVER fall and those who fall shall RISE once more!! |
|
 |
 |
GenZC

|
Posted:
Sun Jul 09, 2006 1:29 am |
|
it work for 2 or 3hr then all of a sudden poof the page didn't show no more. the other one i did works still.
Code:<?
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
if(!IsSet($mainfile)) { include ("mainfile.php"); }
$index=0;
$theme="DeepBlue";
$go_to_address1="http://www.genzc-online.com/roster";
$go_to_address=rawurldecode($go_to_address1);
include("header.php");
OpenTable();
echo "<center><h4><a href=\"index.php\">Click to close.</a></h4></center>";
echo "<iframe SRC=\"".$go_to_address."\" width=\"200%\" height=\"600\"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";
echo "<br><center>NB. Using iframes!</center><br>";
CloseTable();
include("footer.php");
die;
?>
|
|
|
|
|
 |
gregexp

|
Posted:
Sun Jul 09, 2006 11:05 am |
|
If it were me, id drop the mainfile reference and the $theme reference.
Rest of the code looks good.
Reason I asked was when I view source, I didnt see iframe tag at all in ie. Firefox pretty much disables what it doesnt like, so we need to figure out what it doesnt like, and the mainfile reference, I just dont see a reason to include that. |
|
|
|
 |
GenZC

|
Posted:
Sun Jul 09, 2006 2:33 pm |
|
But the wierd thing is that the DKP site thats in iframe still works with ie. http://www.genzc-online.com/nuke/modules.php?name=DKP
darklord wrote: | If it were me, id drop the mainfile reference and the $theme reference.
Rest of the code looks good.
Reason I asked was when I view source, I didnt see iframe tag at all in ie. Firefox pretty much disables what it doesnt like, so we need to figure out what it doesnt like, and the mainfile reference, I just dont see a reason to include that. |
ok i took out if(!IsSet($mainfile)) { include ("mainfile.php"); }
and it still don't like me. do you think it could be that the roster is on my server and my host don't liek it ... i say this b/c the DKP is hosted on a diff server and host and that still works.
Code:<?
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
if(!IsSet($mainfile)) { include ("mainfile.php"); }
$index=0;
$theme="DeepBlue";
$go_to_address1="http://www.genzc-online.com/roster";
$go_to_address=rawurldecode($go_to_address1);
include("header.php");
OpenTable();
echo "<center><h4><a href=\"index.php\">Click to close.</a></h4></center>";
echo "<iframe SRC=\"".$go_to_address."\" width=\"200%\" height=\"600\"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";
echo "<br><center>NB. Using iframes!</center><br>";
CloseTable();
include("footer.php");
die;
?>
|
|
|
|
|
 |
gregexp

|
Posted:
Sun Jul 09, 2006 8:33 pm |
|
What i am trying to say is that something is making it so the iframe is not showing at all, not even in the source, but now it shows, are the changes still made? |
|
|
|
 |
GenZC

|
Posted:
Sun Jul 09, 2006 8:34 pm |
|
yeah i havn't done anything since i changed that. i'm a total noob when it comes to codign i can't rememeber what site i found that code on now. |
|
|
|
 |
gregexp

|
Posted:
Sun Jul 09, 2006 10:18 pm |
|
I've actually tried this on mysite, with everything I can think of, only thing I can think of is how firefox disables javascript, Im thinking that there is javascript colission on you site. other then that, I'm outta ideas. |
|
|
|
 |
GenZC

|
Posted:
Sun Jul 09, 2006 10:57 pm |
|
well ty for ya help i'll try and see if i can get the actual roster that goes into php nuke to work, that way i wont have to use Iframes. |
|
|
|
 |
kchappy
New Member


Joined: Jul 18, 2006
Posts: 2
|
Posted:
Tue Jul 18, 2006 2:30 pm |
|
okay guys.. i play video games.. and my clan has a website (www.transcontinentalsquad.com) and well we have a TeamSpeak server and we want to put a block in our website that shows whose on the TeamSpeak.. and well the code we recieved from a website with a viewer contains an Iframe and our website runs PHP how can i put
<iframe name="tsviewer" allowtransparency="true" src="http://www.tsviewer.com/ts_viewer_pur.php?ID=9998&bg=transparent&type=c9cac8&type_size=11&type_family=1" width="160" height="250" frameborder="0" style="width: 160px; height: 250px; border:0px solid #c9cac8;"></iframe>
this script into PHP so i can put it in a block on our main page? |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Wed Jul 19, 2006 12:28 am |
|
|
|
 |
kchappy

|
Posted:
Wed Jul 19, 2006 1:02 am |
|
|
|
 |
|