Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
GenZC
New Member
New Member



Joined: Oct 06, 2004
Posts: 9

PostPosted: Sat Jul 08, 2006 2:13 pm Reply with quote

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.


Quote:
How did this person do this...??
i know with iframes but what is it and hows it work id linke to do the same thing on my site.

he put [ Only registered users can see links on this board! Get registered or login! ]
into [ Only registered users can see links on this board! Get registered or login! ]

id like to put my [ Only registered users can see links on this board! Get registered or login! ]
into my nuke site like that. if i figure that out i can also do it with other stuff also. please help and ty in advance.
 
View user's profile Send private message
GenZC







PostPosted: Sat Jul 08, 2006 2:44 pm Reply with quote

ok now that i have that working is there away to get the left blocks not to show when the iframes link is opened [ Only registered users can see links on this board! Get registered or login! ]
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Jul 08, 2006 2:57 pm Reply with quote

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
Code:
blocks(left);

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);
}
 
View user's profile Send private message Send e-mail
GenZC







PostPosted: Sat Jul 08, 2006 4:16 pm Reply with quote

ok any idea why the roster one isn't showing up in IE but does in Firefox. i havn't done anything with the above thing to modify themes.
[ Only registered users can see links on this board! Get registered or login! ]
 
Guardian2003







PostPosted: Sat Jul 08, 2006 9:45 pm Reply with quote

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

PostPosted: Sat Jul 08, 2006 10:04 pm Reply with quote

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!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
GenZC







PostPosted: Sun Jul 09, 2006 1:29 am Reply with quote

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







PostPosted: Sun Jul 09, 2006 11:05 am Reply with quote

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







PostPosted: Sun Jul 09, 2006 2:33 pm Reply with quote

But the wierd thing is that the DKP site thats in iframe still works with ie. [ Only registered users can see links on this board! Get registered or login! ]

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







PostPosted: Sun Jul 09, 2006 8:33 pm Reply with quote

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







PostPosted: Sun Jul 09, 2006 8:34 pm Reply with quote

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







PostPosted: Sun Jul 09, 2006 10:18 pm Reply with quote

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







PostPosted: Sun Jul 09, 2006 10:57 pm Reply with quote

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
New Member



Joined: Jul 18, 2006
Posts: 2

PostPosted: Tue Jul 18, 2006 2:30 pm Reply with quote

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?
 
View user's profile Send private message Send e-mail
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Jul 19, 2006 12:28 am Reply with quote

Start here: Creating Blocks [ Only registered users can see links on this board! Get registered or login! ]

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
kchappy







PostPosted: Wed Jul 19, 2006 1:02 am Reply with quote

thanks mate
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©