Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
Muffin
Client



Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Mon Jan 03, 2005 4:47 pm Reply with quote

Does anyone know of or know how to make a center block for putting your webring j ava s c ript in please?

I've tried and failed miserably lol

_________________
Classic Mini rules the bends & bends the rules!
[img] 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Jan 03, 2005 6:32 pm Reply with quote

Code:
<?

if (eregi("block-Muffin.php", $PHP_SELF)) {
    Header("Location: index.php");
    die();
}

$content = <<<_MUFFIN_
<scr ipt>
  function muffin() {
    alert('Hi There!');
}
</scr ipt>
<input type='button' value='Click Me' onClick='muffin()'>
_MUFFIN_;
?>


Make sure when you copy this code to test it that there are NO spaces after _MUFFIN_ or _MUFFIN_; and that the code is left aligned.

That should do it.
 
View user's profile Send private message
Muffin







PostPosted: Mon Jan 03, 2005 7:12 pm Reply with quote

thank you Raven but is that for the Nuke webring?

Sorry I meant the normal webring that people have on their sites.

I'll find the code and post it in here


Webring Code:

Quote:

<s cript type="text/java s cript"
src="http://ss.webring.com/navbar?f=j;y=minicitymag;u=10132526">
</s c ript><no s cript><center>
<table bgcolor=gray cellspacing=0 border=2 bordercolor=red><tr>
<td><table cellpadding=2 cellspacing=0 border=0><tr><td align=center>
<font face=arial size=-1>This site is a member of WebRing.
<br>To browse visit <a href="http://ss.webring.com/navbar?f=l;y=minicitymag;u=10132526">
Here</a>.</font></td></tr></table></td></tr></table>
</center></no s c ript>
 
Raven







PostPosted: Mon Jan 03, 2005 8:36 pm Reply with quote

I was trying to show you the model to use. Just replace your javascript code where my example is.
 
Muffin







PostPosted: Tue Jan 04, 2005 6:56 pm Reply with quote

Doh! Sorry Raven must have had another blonde moment. lol

Well uploaded the block file, it didnt show in the drop down list in create new blocks so turned off the scripting in Sentinel and tried again, but it just came up with html tags not allowed ..............sob
 
Raven







PostPosted: Tue Jan 04, 2005 7:31 pm Reply with quote

Use the is_admin($admin) logic that has been talked about in several other threads in mainfile.php.
 
Muffin







PostPosted: Wed Jan 12, 2005 2:54 pm Reply with quote

thanks Raven
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

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 ©