476

(4 replies, posted in Programming)

yes, you can..

1. Locate And Use The Font

Finding fonts is easy. Open your favorite search engine or directory and search on terms like "free fonts" or "downloadable fonts." A recent search on Google under the term "free fonts" returned 112,000 hits. Once you've found the perfect font, you're ready to download it to your computer and use it in your page design.

Do some research first though: some designers don't allow their fonts to be embedded. TrueType fonts have embedding permissions encoded within them. Please respect the designer's wishes to avoid any potential copyright problems!

2. Create An Embedded Font File

You have to use a third-party application that creates an embedded font file using the font you installed locally on your hard drive. This task may be time-consuming because Netscape and Explorer both use different formats.

Recently though, Netscape updated its method to support Explorer browsers. Microsoft continues to use a proprietary technology.

Create embedded fonts using one of 2 available formats:

   1. Portable Font Resources (.pfr): TrueDoc technology was developed by Bitstream and licensed by Netscape. It can be viewed by Navigator 4.0+ and Explorer 4.0+ on Windows, Mac, and Unix platforms.
   2. Embeddable Open Type (.eot): Compatible only with Explorer 4.0+ on the Windows platform. Create .eot files using Microsoft's free Web Embedding Font Tool (WEFT). 

After you've created the embedded font file, you're ready to attach it to a CSS.

3. Attach To Your Style Sheet

Instructions for this step depend on the type of file you created in step 2:

    Attaching A TrueDoc File

Insert a LINK tag between the opening and closing HEAD tags to attach a TrueDoc font:

<LINK rel = "fontdef" src="url/YourFontName.pfr">

If you want this to work in Explorer 4.0 and above, you need to add a pointer to an ActiveX control immediately after the LINK tag. TrueDoc.com has a tutorial on their web site that discusses this process. Otherwise, you can create an OpenType file for Explorer and refer to both on your page.

TrueDoc fonts stay within the browser: you can't download them to your system to use for other applications. This security feature protects visitors from inadvertently downloading malicious code and also protects the developer who may have designed the font or paid to use it.

     Attaching An OpenType File

Attach an OpenType file inside your style sheet:

<STYLE TYPE="text/css">
<--!
@font-face {
  font-family: Arial;
  font-style:   normal;
  font-weight: normal;
  src:url(http://www.SiteAddress.htm/EOTfileName.eot);
}
-->
</STYLE>

Unlike TrueDoc, OpenType files are accessed by the user's operating system. This means that users have the ability to download and use fonts on their own systems. This is a problem only if you're using a proprietary font.

Consider The Downsides

Embedded fonts may seem like the answer to a Web designer's dreams, but some visitors might not agree. There are two significant issues you need to consider before including embedded fonts:

    * Download Time: You could lose visitors because now they have to wait for the font to download before the page displays. For example, some sample .eot files we downloaded had an average size of 20-25k. That can significantly affect your page download time.

      Minimize this problem by only embedding unusual or obscure fonts, not common fonts that users probably already have installed.

    * Security Warnings: Depending on their individual browser settings, visitors may receive a security warning every time a page accesses an embedded font. Besides being disruptive, the warnings may scare visitors away from your site.

i want to change my fonts on my site to a font i downloaded but to make sure that everyone see what it should be. how can i add my font file to my website and get the css to load it ?


Q

478

(15 replies, posted in PunBB 1.2 troubleshooting)

you can alway just take that line out of the functions.php.....
that will do it also..

Q

how to let the user  register and pick a group when registering?

i want to create two different groups  and when someone registers they can pick which group to be in... both have the same rights !


username block

drop down menu ---> group1
                                group2


Q

480

(9 replies, posted in PunBB 1.2 show off)

Scripter wrote:

Mods Installed:
- Affiliate Mod
- Cash Mod
- Shop Mod
- Chatbox
- Arcade
- Private Messaging

Stats At The Moment:
Number of registered users: 50
Number of topics: 131
Number of posts: 1040

Link:
http://openwings.co.nr

Any feedback & comments will be appreciated.

looks good. i modded the affiliates mod and added a banner rotation system for all banners.
and u can link it to other sites.

now the banners dont showup on the menu bar in your portal page.

example : http://nalan.org
and the page i created that shows all the banners is http://nalan.org/advertise.php

u can download my mod at
http://punlancer.com  just over right the files that all u got to do......
i made a simple readme file in the rar ..
email me a banner location http://yoursite.com/banner.gif and i will add you...

Q

very sweet site...

Q

change

<td colspan="3" id="navigation" style="background-image: url('images/navigation.gif')">
<a href="index.htm">Link 1</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 2</a> 

<font color="#FFFFFF">|</font> <a href="index.htm#">Link 3</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 
4</a> <font color="#FFFFFF">|</font> <a href="index.htm#">Link 5</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 6</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 
7</a> 

<font color="#FFFFFF">|</font> <a href="index.htm#">Link 8</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 9</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 
10</a></td>

to


<td colspan="3" id="navigation" style="background-image: url('images/navigation.gif')">
<pun_navlinks> 
</td>


to this!

hey take the <pun_navlinks> and replace it with all the link1 etc. that should put the links in the nav bar.

Q

try this one out for size....
name this file as main.tpl but first rename the main.tpl to main1.tpl (backup)

<html>
<head>
<title>SimplyCoding :: Index</title>
<link rel="stylesheet" type="text/css" href="css/css.css" />
<style type="text/css">
#brdtitle { display: none; }
#brdmenu  { padding-top: 0; }
#punwrap { padding: 0; padding-top: 20px; margin: 0px auto; width: auto; }
DIV.box {BORDER-COLOR: #0066B9; }
.pun H2 {BACKGROUND-COLOR: #0066B9; COLOR: #FFF; }
DIV.blockpost H2 {BACKGROUND-COLOR: #0066B9; }
#punwrap * { font-family: Verdana, Arial, Sans-Serif; }
DIV.blockpost DIV.box {BORDER-COLOR: #0066B9; }
.pun { font-size: 11px !important; }
</style>
</head>
<body>
<div align="center">
<table cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" id="header" height="103" valign="middle"><div align="left"><a href="index.html"><img border="0" alt="SimplyCoding" src="images/name.gif" /></a></div><div align="right"><img src="images/slogan.gif" border="0" /></div></td>
</tr>
<tr>
<td colspan="3" id="navigation" style="background-image: url('images/navigation.gif')">
<a href="index.htm">Link 1</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 2</a> 

<font color="#FFFFFF">|</font> <a href="index.htm#">Link 3</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 
4</a> <font color="#FFFFFF">|</font> <a href="index.htm#">Link 5</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 6</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 
7</a> 

<font color="#FFFFFF">|</font> <a href="index.htm#">Link 8</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 9</a> 
<font color="#FFFFFF">|</font> <a href="index.htm#">Link 
10</a></td>
</tr>
<tr><td colspan="3" id="decoration" width="100%" height="48"></td></tr>
<tr><td width="15%" valign="top" height="325" bgcolor="#FFFFFF">This needs to be here</td>
<td width="70%" valign="top" height="100%" bgcolor="#FFFFFF"><blockquote><div> </div>
<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>
</blockquote></td>
<td width="15" valign="top" height="325" bgcolor="#FFFFFF">This should be here</td>
</tr>
<tr>

<td colspan="3" id="footer"><center>Layout and Coding is Copyright © 2007-2008 Simply Coding <em>All Rights Reserved</em><br />All submissions are Copyrighted to their respective authors</center></td>
</tr>
</table>
</div>
</body>
</html>

485

(124 replies, posted in News)

Can't we all get along? Really we will have to wait and see what going to happen.... free or not... im here to support any choice that is made I know that Rickard and the team will make the right  choice for all of us..


free beer and chips at Elbekko house next weekend.. I'll bring the strippers...
hehe..
Q

i agree.. im just trying gto get my site going .....

mad props to the dev team and great support of punbb community!!

Q

th jurm, we at punlancer can help you if you need anything let us know..

http://punlancer.com
Q

this is a good starting point

read how to use the main.tpl and standard css template.
download the main.tpl and paste you code around the pun tags...

http://www.almosteffortless.com/2005/09 … and-punbb/

if you need help visit http://punlancer.com
Q

489

(10 replies, posted in Programming)

also in the post.php there a list with the message goes
rows="20" does that not set the height of the message box?

<textarea name="req_message" rows="20" cols="95" tabindex="<?php echo $cur_index++ ?>"><?php echo isset($_POST['req_message']) ? pun_htmlspecialchars($message) : (isset($quote) ? $quote : ''); ?></textarea>

490

(10 replies, posted in Programming)

Dr J. im looking at the base.css and it has some control over that area.

could it be in this?

/****************************************************************/
/* 7. VIEWTOPIC SETUP */
/****************************************************************/

/* 7.1 This is the basic structure. */

DIV.postleft, DIV.postfootleft {
    FLOAT:left;
    WIDTH: 18em;
    OVERFLOW: hidden;
    POSITION: relative;
}
    
DIV.postright, DIV.postfootright {
    BORDER-LEFT-WIDTH: 18em;
    BORDER-LEFT-STYLE: solid
}

DIV.postfootright, P.multidelete {TEXT-ALIGN: right}

DIV.blockpost>DIV>DIV.inbox {PADDING-BOTTOM: 1px}

/* 7.3 This is the div which actually contains the post and is inside .postright */

DIV.postmsg {WIDTH:100%}

/* 7.4 These items control overflow and scrolling within posts. */

DIV.incqbox {WIDTH: 100%; OVERFLOW: hidden}
DIV.scrollbox {WIDTH: 100%; OVERFLOW: auto}
IMG.postimg {max-width: 100%}
A .postimg {max-width: 100%}

/* 7.5 Turn off the poster information column for preview */

#postpreview DIV.postright {BORDER-LEFT: none}

/* 7.6 Create the horizontal line above signatures */

DIV.postsignature HR {
    MARGIN-LEFT: 0px;
    WIDTH: 200px;
    TEXT-ALIGN: left;
    HEIGHT: 1px;
    BORDER:none
}

491

(10 replies, posted in Programming)

could you not assign it a style in the css to handle that?

492

(25 replies, posted in General discussion)

not ure yet.. im looking at all the mods i got installed .
and im going to recreate it on my localhost and see if i get the same error...


Q

open the extern.php file up and read the part about rss....


Q

494

(25 replies, posted in General discussion)

i got it working...

ill have to see what up with my codes...


thanks for all the help!!
Q

495

(25 replies, posted in General discussion)

does it have anything to do with the admin mod for the verification mod?



ok i went into maintenance mod came out and now it works... hummmmmm....
it might be a mod that i have added that effecting stuff..



thanks again!

Q

496

(25 replies, posted in General discussion)

still nothing...
blank screen
http://punlancer.com/forum/contact1.php

bing.. msn me... let work this out...hehe..


Q

498

(25 replies, posted in General discussion)

i dont see $usecaptcha = '0'; in the script!

499

(25 replies, posted in General discussion)

here the code

<?php
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).'contact form';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'include/email.php';
require PUN_ROOT.'include/parser.php';

$checkrbl = '1';

if ($checkrbl == '0')
{
    $rblserver = array();
    $rblserver[] = 'sbl-xbl.spamhaus.org';

    $fip = get_remote_address();
    $rip = implode('.', array_reverse(explode('.', $fip)));

    foreach ($rblserver as $xrbl)
    {
        $rblcheck = $rip.'.'.$xrbl;

        if ($rblcheck != gethostbyname($rblcheck))
        {
            require_once PUN_ROOT.'header.php';
            message("Your I.P address: ($fip) is blocked due to it being listed
                in the following database: <br/><br/>[ $xrbl ]<br/><br/>");
            require PUN_ROOT.'footer.php';
        }
    }
}
else if ($_POST['form_sent'] == 1)
{

    if (trim($_POST['name']) == '')
    {
        require_once PUN_ROOT.'header.php';
        message("You must enter your name.");
    }

    $email = strtolower(trim($_POST['email']));
    $cemail = strtolower(trim($_POST['cemail']));

    if ($email == '')
    {
        require_once PUN_ROOT.'header.php';
        message("You must enter your e-mail address.");
    }
    else if (!is_valid_email($email))
    {
        require_once PUN_ROOT.'header.php';
        message("The e-mail address syntax entered is invalid.");
    }
    else if ($email != $cemail)
    {
        require_once PUN_ROOT.'header.php';
        message("The e-mail addresses you entered do not match.");
    }

    if (trim($_POST['subject']) == '')
    {
        require_once PUN_ROOT.'header.php';
        message("You must enter a subject.");
    }

    if (trim($_POST['message']) == '')
    {
        require_once PUN_ROOT.'header.php';
        message("You must enter a message.");
    }

    session_start();
    if (isset($_POST['req_image']) && trim(strtolower($_POST['req_image'])) != '' && trim(strtolower($_POST['req_image'])) == $_SESSION['text'])
    {
        session_unset();
        session_destroy();
    }
    else
    {
        session_unset();
        session_destroy();
        require_once PUN_ROOT.'header.php';
        message("Image and text mismatch.");
    }

    $sender = trim(preg_replace('#[\n\r:]+#s', '', $_POST['name'].' <'.$email.'>'));
    $recipient = 'Forum Admin <'.$pun_config['o_admin_email'].'>';
    $subject = '[ Admin Contact Form ] '.trim(preg_replace('#[\n\r]+#s', '', $_POST['subject']));
    $message = str_replace(array("\n", "\0"), array("\r\n", ''), pun_linebreaks($_POST['message']));
    $headers = 'From: '.$sender."\r\n".'Date: '.date('r')."\r\n".'MIME-Version: 1.0'."\r\n".'Content-transfer-encoding: 8bit'."\r\n".'Content-type: text/plain; charset='.$lang_common['lang_encoding']."\r\n";

    if ($pun_config['o_smtp_host'] != '')
    {
        smtp_mail($recipient, $subject, $message, $headers);
    }
    else
    {
        mail($recipient, $subject, $message, $headers);
    }

    require PUN_ROOT.'header.php';
?>
<div class="block">
    <h2><span>Contact <?php echo $pun_config['o_board_title']; ?></span></h2>
    <div class="box">
        <div class="inbox">
            <b>The following information has been submitted to the forum admin:<br/><br/>
            <label>Your name: <?php echo $_POST['name']; ?><br/></label>
            <label>Your e-mail address: <?php echo $email; ?><br/></label>
            <label>Subject: <?php echo $_POST['subject']; ?><br/></label>
            <label>Message:<br/> <?php echo $_POST['message']; ?><br/></label>
        </div>
    </div>
    <p><a href="<?php echo $pun_config['o_base_url'].'/index.php' ?>">Return to forums index</a></p>
</div>
<?php

}
else
{ 

?>
<div class="blockform">
    <h2><span>Contact <?php echo $pun_config['o_board_title']; ?></span></h2>
    <div class="box">
        <form id="contact" method="post" action="<?php echo $pun_config['o_base_url'] ?>/contact.php">
            <div class="inform">
            <fieldset>
                <legend>Enter your contact details</legend>
                <div class="infldset">
                    Please enter your information and message.<br/>
                    [ Please note: All of the following fields are required. ]<br/>
                    <input type="hidden" name="form_sent" value="1"/><br/>
                    <label>Your name:<br/><input type="text" name="name" value="" size="40" maxlength="40"/><br/></label>
                    <label>Your e-mail address:<br/><input type="text" name="email" value="" size="40" maxlength="50"/><br/></label>
                    <label>Confirm your e-mail address:<br/><input type="text" name="cemail" value="" size="40" maxlength="50"/><br/></label>
                    <label>Subject:<br/><input type="text" name="subject" value="" size="40" maxlength="50"/><br/></label>
                    <label>Message:<br/><textarea name="message" rows="5" cols="38"></textarea><br/></label>
                </div>
            </fieldset>
            </div>
            <div class="inform">
            <fieldset>
                <legend>Image Verification Text</legend>
                <div class="infldset">
                    <img src="./ran.php" alt="verification text image"/><br/>
                    <label><strong>Text Image</strong>
                    <br/><input type="text" name="req_image" size="16" maxlength="16"/><br/></label>
                    <p class="clearb">Enter the text from the image into the box above</p>
                </div>
            </fieldset>
            </div>
            <p><input type="submit" name="update" value="Submit"/></p>
            </div>
        </form>
    </div>
</div>
<?php
}
require PUN_ROOT.'footer.php';
?>

500

(25 replies, posted in General discussion)

can they both work together?

$checkrbl = '0';

if ($checkrbl == '0')

if i change 1 to 0 or all to 1 or 0 still white screen!