DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • April 19, 2019, 07:18:30 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Experimenting with the ` key  (Read 3526 times)
0 Members and 1 Guest are viewing this topic.
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« on: September 01, 2005, 11:40:39 AM »

Okay, I've found some interesting little things...

`H causes text to be underlined and in green

`w causes the user's current weapon to be outputted

`i and `t both cause the text to be placed in italics

However, I can not quite figure out what the following do:

`< and `>

they both do something strange with justification

Has anyone experimented with them before?
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Nightborn
Guest
« Reply #1 on: September 01, 2005, 11:46:26 AM »

Smiley yes, what is done by ` is in the lib/output.php

line 114 starts the switch, just take a look what it replaces. Look at 'case "H":' if you want to know what '`H' is doing.

Logged
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« Reply #2 on: September 01, 2005, 12:15:23 PM »

Aha!  very good...

so is there any other way to underline than to use "`H"?
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Nightborn
Guest
« Reply #3 on: September 01, 2005, 12:23:50 PM »



Quote
<U>underlined text</U>

is the html for underlined text (I just looked that up)

I don't see any in output.php

so might want to add this and try it... why not Smiley

just take a look how that works ... you just need another case witha letter you define. look at the case "b" for bold. I think it works similarly.
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5483



View Profile WWW
« Reply #4 on: September 01, 2005, 12:33:47 PM »

HTML codes will not work in posted comments.

If you're using HTML code in output statements, you must state 'true' at the end of the statement:
Code:
output("<u>This will be underlined</u>",true);

Logged

Play the latest beta version here on DragonPrime
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« Reply #5 on: September 01, 2005, 06:45:37 PM »

Instead of editing my mispoken statement, i will just admit that I MEANT to say `H is the code for underlining green navigation... and it has nothing to do with Html as i somewhat stupidly stated.
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #6 on: September 20, 2005, 02:44:42 AM »

Code:
<?php
function forum_taglist() {
   
$tags=array("0"=>"Color Tag Resetting","1"=>"Dark Blue","2"=>"Dark Green","3"=>"Dark Cyan","4"=>"Dark Red","5"=>"Dark Magenta","6"=>"Dark Yellow","7"=>"Dark White","q"=>"Dark Orange","!"=>"Light Blue","@"=>"Light Green","#"=>"Light Cyan","\$"=>"Light Red","%"=>"Light Magenta","^"=>"Light Yellow","&"=>"Light White","Q"=>"Light Orange",")"=>"Light Black","n"=>"For inserting a New Line","`"=>"For typing an ``");
   
$ctags=array("b"=>"Bold","H"=>"Hilighted","i"=>"Italicized","t"=>"Emphasized","c"=>"Centre Aligned","<"=>"Left Aligned",">"=>"Right Aligned");
   
rawoutput("<table border='0'><tr class='trhead'><td colspan='3'>");
   
output("`&`iNormal Tags`i");
   
rawoutput("</td></tr><tr class='trhead'><td>");
   
output("`^Example");
   
rawoutput("</td><td>");
   
output("`^Combination");
   
rawoutput("</td><td>");
   
output("`^Name");
   
rawoutput("</td></tr>");
   
$p=translate_inline("Preview");
   
$x=0;
   foreach (
$tags as $tag=>$exp) {
      
$x++;
      
$exp=translate_inline($exp);
      
output_notl("<tr class='".($x%2?"trlight":"trdark")."'><td>`$tag",true);
      if (
$tag!="`"&&$tag!='n'output_notl($p);
      
output_notl("`0</td><td>`@`b ``$tag `b</td><td>`&$exp</td></tr>",true);
   }
   
rawoutput("<tr class='trhead'><td colspan='3'>");
   
output_notl("`&`i%s`i`n`#<small>%s</small>",translate_inline("Close Tags"),translate_inline("these tags should normally be closed, although the forum will fix them for you"),true);
   
rawoutput("</td></tr><tr class='trhead'><td>");
   
output("`^Example");
   
rawoutput("</td><td>");
   
output("`^Combination");
   
rawoutput("</td><td>");
   
output("`^Name");
   
rawoutput("</td></tr>");
   
$p="`&".$p;
   
$x=0;
   foreach (
$ctags as $tag=>$exp) {
      
$x++;
      
$exp=translate_inline($exp);
      
output_notl("<tr class='".($x%2?"trlight":"trdark")."'><td>`$tag$p`$tag</td><td>`@`b``$tag`b `i<small>%s</small>`i `b``$tag`b</td><td>`&$exp</td></tr>",translate_inline("Some Text"),true);
   }
   
rawoutput("</table>");
}
?>
Yup. I experimented with em before.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
75 Guests, 1 User
tnyguy
Home Forums News Downloads Login Register Advanced Search