DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • June 18, 2013, 01:49:19 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: HTML in PHP Doc  (Read 2460 times)
0 Members and 1 Guest are viewing this topic.
MidnightShadow
Captain of the Guard
***
Offline Offline

Posts: 149


I Await The Full Moon


View Profile
« on: October 29, 2009, 07:43:47 PM »

I am attempting some modifications to the home.php file, now I know core edits aren't advised however I keep record of what I change on the hompage.  Now I am trying to add some HTML to the home.php doc and I can't seem to get it to work.  I have tried different functions and even the rawoutput but it won't work.  Any advice?
Code:
<marquee behavior=\"scroll\" direction=\"left\" onmouseover=\"this.stop();\" onmouseout=\"this.start();\">BlahBlahBlah</marquee>

Logged

R.I.P otB
White Knight
Mod God
*****
Offline Offline

Posts: 1030

For the truth!


View Profile
« Reply #1 on: October 29, 2009, 11:27:10 PM »

I don't know where you're sticking that code, but it won't work just anywhere. Location matters, you know.

In any case, what stops you from creating a simple module for this? Are you using a GPL'd version of the game?
Logged

Helping you help yourself.
MidnightShadow
Captain of the Guard
***
Offline Offline

Posts: 149


I Await The Full Moon


View Profile
« Reply #2 on: October 30, 2009, 04:07:25 AM »

I got it working Smiley Just sloppy code Tongue

I was planning to but I couldn't find the right hooks to postion it at the very top of a page, I took a look at Random Quotes but i just couldn't get it right.
My Dev site is currently here
Logged

R.I.P otB
jerry
Captain of the Guard
***
Offline Offline

Posts: 159



View Profile
« Reply #3 on: October 30, 2009, 06:04:20 PM »

heh heh, i edit my home.php not a big deal.....
i think it's an easier thing to do.


MidnightShadow...
Code:
rawoutput("<marquee behavior=\"scroll\" direction=\"left\">");
output("Marquee Text");
rawoutput("</marquee>");

doesn't work?
as white knight said, you cannot stick the code where ever... check that.
Logged
Astarael|Jack
Codemeister
****
Offline Offline

Posts: 442


Lord Procrastinator and King of Cheap


View Profile
« Reply #4 on: December 15, 2009, 07:05:16 PM »

*^^Bumps this up^^*
more help Smiley

So to insert HTML into, lets say, a module, I use rawoutput. I want to use

Quote
<a href="http://www.cornify.com" onclick="cornify_add();return false;"><img src="http://www.cornify.com/assets/cornify.gif" width="61" height="16" border="0" alt="Cornify" /></a><script type="text/javascript" src="http://www.cornify.com/js/cornify.js"></script>

^this^
Logged

kickme
Global Moderator
Mod God
*****
Offline Offline

Posts: 1588


Yay for elephants!


View Profile WWW
« Reply #5 on: December 15, 2009, 07:06:50 PM »

So just stick it in a rawoutput() call, like:
Code:
rawoutput('<a href="http://www.cornify.com" onclick="cornify_add();return false;"><img src="http://www.cornify.com/assets/cornify.gif" width="61" height="16" border="0" alt="Cornify" /></a><script type="text/javascript" src="http://www.cornify.com/js/cornify.js"></script>');
Logged

Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka
Astarael|Jack
Codemeister
****
Offline Offline

Posts: 442


Lord Procrastinator and King of Cheap


View Profile
« Reply #6 on: December 15, 2009, 07:11:19 PM »

So just stick it in a rawoutput() call, like:
sorry
So to insert HTML into, lets say, a module, I use rawoutput. I want to use
there was meant to be a questionmark after 'rawoutput'. Thanks
Logged

Stephen Kise
Codemeister
****
Offline Offline

Posts: 372



View Profile WWW
« Reply #7 on: December 16, 2009, 11:43:40 AM »

Also ouptuput("",true); should work too. =]
Logged
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #8 on: December 16, 2009, 11:47:30 AM »

Ouptuput?
Logged
Stephen Kise
Codemeister
****
Offline Offline

Posts: 372



View Profile WWW
« Reply #9 on: December 16, 2009, 11:53:19 AM »

My bad.. Output("",true); ... I was in a rush.  Grin
Logged
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 823


View Profile
« Reply #10 on: December 16, 2009, 11:55:15 AM »

Oh  Tongue
Logged
JollyGG
Mod God
*****
Offline Offline

Posts: 559


Jolly Good!


View Profile WWW
« Reply #11 on: December 16, 2009, 05:05:04 PM »

I've had no issues putting HTML in a PHP doc, but I've discovered that Java Script hates me D:
* JollyGG blames Edward
Logged

Owner of: Hogwarts Now
Supporter of: LotGD4Adults2, Storm Valley, and Dragons of Myth
Released Modules: Here
Edward
Mod God
*****
Offline Offline

Posts: 592

Now... Who's a Llama?


View Profile
« Reply #12 on: December 18, 2009, 12:16:04 PM »

I've had no issues putting HTML in a PHP doc, but I've discovered that Java Script hates me D:
* JollyGG blames Edward

PHP in an HTML doc is a new 'can of worms', as far as LoTGD is concerned. :/.
Me. D:
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
32 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search