Well, I guess no one wants to help me out here. I actualyl got it working but I need to know something. I am calling the stylesheet from the popup.php file I created but I don't understand why it won't use the <H2> for the block headers. I actually have to add the following to the file itself.

<style type="text/css">
<!--
BODY {MARGIN: 5% 5% 1% 5%; font: 10px Verdana, Arial, Helvetica, sans-serif}
H2 {MARGIN: 0; COLOR: #FFFFFF; BACKGROUND-COLOR: #B84623; FONT-SIZE: 1.1em; PADDING: 5px}
-->
</style>

Also, is there a variable I can use instead of using the background-color etc..for example can I or is there something else I can use like $bg_color etc..

Thanks

Can someone please give me some guidance on this post.

628

(25 replies, posted in General discussion)

I would have to recommend PHP-Fusion. Trust me on that one.

I am currently trying to get a popup smiley script to function but I am a bit lost.

Here is what I have so far. I made an external file called: popup.php and a link in post.php. I am using the easy_bbcode mod and it works as far as displaying the smiley's. The problem is that I can't insert the smiley's when I click on them. I have pasted the code I am using and it is the same working code I have been using in the normal fashion, which by the way works. Can someone please tell me what I need to do to get it to work.

popup.php

<?php

define('PUN_ROOT', './');

define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'include/common.php';
 
$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
 

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?>Smileys</title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />

<?php
 if (!isset($bbcode_form))
    $bbcode_form = 'post';
if (!isset($bbcode_field))
    $bbcode_field = 'req_message';
?>


                        <script type="text/javascript">
                        <!--
                            function insert_text(open, close)
                            {
                                msgfield = (document.all) ? document.all.req_message : document.forms['<?php echo $bbcode_form ?>']['<?php echo $bbcode_field ?>'];

                                // IE support
                                if (document.selection && document.selection.createRange)
                                {
                                    msgfield.focus();
                                    sel = document.selection.createRange();
                                    sel.text = open + sel.text + close;
                                    msgfield.focus();
                                }

                                // Moz support
                                else if (msgfield.selectionStart || msgfield.selectionStart == '0')
                                {
                                    var startPos = msgfield.selectionStart;
                                    var endPos = msgfield.selectionEnd;

                                    msgfield.value = msgfield.value.substring(0, startPos) + open + msgfield.value.substring(startPos, endPos) + close + msgfield.value.substring(endPos, msgfield.value.length);
                                    msgfield.selectionStart = msgfield.selectionEnd = endPos + open.length + close.length;
                                    msgfield.focus();
                                }

                                // Fallback support for other browsers
                                else
                                {
                                    msgfield.value += open + close;
                                    msgfield.focus();
                                }

                                return;
                            }

                        -->
                        </script>

 </head>

<?php
 
// Display the smiley set
require_once PUN_ROOT.'include/parser.php';

$smiley_dups = array();
$num_smilies = count($smiley_text);
for ($i = 0; $i < $num_smilies; ++$i)
{
    // Is there a smiley at the current index?
    if (!isset($smiley_text[$i]))
        continue;

    if (!in_array($smiley_img[$i], $smiley_dups))
        echo "\t\t\t\t\t\t\t".'<a style="cursor: pointer;" onclick="insert_text(\''.$smiley_text[$i].'\', \'\')"><img src="img/smilies/'.$smiley_img[$i].'" title="'.$smiley_img[$i].'" alt="'.$smiley_text[$i].'" /></a>'."\n";

    $smiley_dups[] = $smiley_img[$i];
}

Thanks in advance for any help here.

630

(11 replies, posted in PunBB 1.2 show off)

@Endre - Thank you very much. I keep an eye out here for it.

Thanks
Bingiman

631

(3 replies, posted in Programming)

What is the difference with this one as oppose to the existing code in include/blog.php?

632

(11 replies, posted in PunBB 1.2 show off)

anyone can answer my post?

633

(11 replies, posted in PunBB 1.2 show off)

@Endre - Can you tell me how you managed to put the subject of the post on the right side of your forum instead of the time or post link? I know it is probably just adding some stuff to the sql area in forum.php but I have no idea what code I can use. Your help would be greatly appreciated.

Thanks in advance
Bingiman

Here is the link you're looking for:

http://punbb.org/forums/viewtopic.php?id=11558

Bingiman

hmm...then install tinyportal with SMF.

This is one of the easiest mods to install. I have installed it over and over and it always works right the first time.

637

(17 replies, posted in PunBB 1.2 show off)

ekta wrote:

Great work. Did you upload the "Lune" theme you made at Punres.org ? hmm

Believe it or not. I have absolutely no idea how to submit a theme on that site. big_smile

638

(17 replies, posted in PunBB 1.2 show off)

sirena wrote:

Looks good. Wow. LOTS of customisation. You have my respect - very dedicated work.

All that modding is going to make any upgrades a nightmare though, you realise.  sad

Quick Q: what's the 'multi quote button'? Punres as usual shows up 120 pages of search results for the term, with nothing in them.

Well, in a way but for me that's the fun. I am weird that way I guess.

639

(17 replies, posted in PunBB 1.2 show off)

done...thanks

I am currently using the image_upload mod on my site but I just noticed something really weird. In my main.tpl I have a search form in there but I can't select the amount of images from the dropdown box in the image upload mod. The only time I can use it is if I remove the </form> which of course I can't do for obvious reasons. Anyway If I use the main.tpl that displays just the left side blocks then the problem goes away. The problem is present when I use both left/right sides. Here is my main.tpl file. Maybe someone can tell me what to do.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
    <style type="text/css">
  
#left {
    float:left;
    width: 150px;
    overflow: hidden;
}

#right {
    float:right;
    width: 150px;
    overflow: hidden;
}

#main { 
    display: block; 
    overflow: hidden; 
    width: auto; 
    padding-left: 5px; 
    padding-right: 5px; 
    margin-left: 1px; 
    margin-right: 1px;
}

    </style>
</head>

<body>
<a id="top" name="top"><!-- --></a>

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

<div id="left">
    <div class="block">
        <h2><span>Menu</span></h2>
            <div id="menu" class="box">
<pun_sidelinks>            
            </div>
            </div>


<div class="block">
    <h2 class="block2"><span>punBB Support</span></h2>
        <div id="morelinks" class="box">
            <div class="inbox">
        <ul>
            <li><a target="_blank" href="http://punbb.org/">punBB</a></li>
            <li><a target="_blank" href="http://www.punres.org/">punBB Resource</a></li>
            <li><a target="_blank" href="http://blog.punbb.org/">punBB Dev. Blog</a></li>
            <li><a target="_blank" href="http://dev.punbb.org/">punBB Development</a></li>

        </ul>        
            </div>
        </div>
    </div>


    <div class="block">
        <h2><span>Search</span></h2>
            <div class="box">
                <div class="inbox">
                    <form id="search" method="get" action="search.php">
    <fieldset>
    <legend>Search Criteria!</legend>
    <input type="hidden" name="action" value="search" />
    <label class="conl">Keyword search<br /><input class="textbox" type="text" name="keywords" size="15" maxlength="100" />
    <br />
    </label>

    <label class="conl">Author search<br /><input class="textbox" id="author" type="text" name="author" size="15" maxlength="25" />
    <br />
    </label>
        <p class="clearb"></p>
    </fieldset>
        <div style="text-align: center;"><input type="submit" class="button" name="search" value="Submit" accesskey="s" /></div>
                    </form>
            </div>
        </div>
    </div>

    <div class="block">
        <h2 class="block2"><span>Affiliates</span></h2>
            <div class="box">
                <div class="inbox">
<pun_include "affiliates.php">   
            </div>
        </div>
    </div>
</div>
    
    <div id="right">
        <div class="block">
            <h2 class="block2"><span>Whos Online?</span></h2>
                <div class="box">
<pun_online>
            </div>
        </div>

<pun_toppost>


    <div align="center" class="block">
        <h2 class="block2"><span>Advertise Here</span></h2>
            <div class="box">
                <div class="inbox">
<script type="text/javascript"><!--
google_ad_client = "pub-9565429648226067";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "496690";
google_color_text = "000000";
google_color_url = "496690";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--
google_ad_client = "pub-9565429648226067";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as_rimg";
google_cpa_choice = "CAAQsPa39gEaCMO_5Z8K4PVHKJDD4IEB";
google_ad_channel = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>        
            </div>
        </div>
    </div>
</div>
    
    <div id="more">
        <div id="main">
            <div class="block">
                <h2 class="block2"><span>Advertise Here</span></h2>
                    <div class="box">
                        <div class="inbox">
                            <div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-9565429648226067";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "496690";
google_color_text = "000000";
google_color_url = "496690";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
                </div>
            </div>
        </div>
    </div>
      
<pun_announcement>
<pun_advertisement>
<pun_information>
<pun_guest_information>
<pun_main>
<!--<pun_status>-->
            </div>
        </div>
   
    <div class="clearer"></div>
        <pun_footer>
            </div>
        </div>
</body>
</html>

Thanks
Bingiman

641

(17 replies, posted in PunBB 1.2 show off)

Thank you very much. Glad you like it.

642

(17 replies, posted in PunBB 1.2 show off)

Here are a list of things I modified in my punBB site. I have spent over 100+ hours working on it and still have more to do with it.

- Made lots of changes to the stylesheets.
- Hard coded a couple core files by adding some necessary id's and classes for the sub-forum mod.
- Modified the BBcode mod to display text tips.
- Modified main.tpl to use left/right blocks (works in all browsers)
- Modified userlist.php to include extra information.
- Modified News index file. (got some help from smarty's on that one)
- Modified avatar in viewtopic to display user's name and link to profile.
- Added DIGG and del.icio.us bookmarks (correctly) to news index and below viewtopic.
- Added images to forum in place of text links.
- Added Quick link button to forum with expand/collapse feature.
- Added Multi Quote button in forum. (I love this feature)
- Added Board Information block to forum index with images.
- Designed new theme as default called Lune.
- Made significant changes to many of the mods used on the site to get them to W3C standards. (still have some work to do in that area)

I am currently working on a mod to collapse/expand and maintain the state of each block and side while using the miniportal mod. (soon)

Here is the website link. There is almost zero content on the site because I just put it into production.
You'll need to register in order to see some of the modifications I made to the post/quick reply areas.

http://shedrockonline.com

I understand what you're saying and this is something I asked for in the thread naitkris provided you with. What the author did for me was to show the date with a link of any new posts that reside in the sub-forums. I would think it would be far to much coding to implement what you're asking for. This is just my opinion. Also, your requests will confuse users because how would they know that the new post is in the parent or the sub?

Open your lang/English/common.php file and do a search for:


// Stuff for the navigator (top of every page)
'Index'                    =>    'Index',

Well, I do prefer Kate Beckinsale but I didn't get time to shrink the image. big_smile

646

(7 replies, posted in PunBB 1.2 discussion)

@quaker - I don't know if you realize but your when viewing your forums, example a thread, the layout and posts are way down to the bottom. I've found a solution for this and one of the guys here on the punBB Team added it to the mini portal mod on punRes. You may want to add that bit to your main.tpl file.

Cheers!

Thanks for the help Smartys. I removed the code from here because it is not complete.

Thanks again
Bingiman.

I know what you're saying about the warning but I am one of those people that can't deal with them. It is a sick obsession of mine. How can I send the file to you?

Thanks

Bingiman

Guys, I really, really need some help here. I'll pay someone to hel pme sort this error that is driving me crazy. I have thing thing working as it should now but the problem is that I am getting an HTML Validation warning and this is the warning message:

line 239 column 673 - Warning: <a> escaping malformed URI reference

Here is the code below. As mentioned it works great in my index.php file which has been modified. I am also using the Miniportal mod. Please lend a hand here.

<img src="http://www.digg.com/favicon.ico" alt="Digg!" title="Digg!" /> <a style="font-weight: normal;" href="http://digg.com/submit?phase=2&url='.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&title='.$cur_topic['subject'].'">Digg It</a>

btw: The error is only present in the title part of the code. If I remove it, the error is gone. The problem is that it does not like the "spaces" in the subject lines. If I did this for example as my subject: THISISATEST, then it works great. Is there some code I can use to remove the spaces from the subject lines? parser.php is called from within the file as well.

Thanks
Bingiman

Your does not work for sure. By the way, I have this code in my index.php file which has been modified for the miniportal mod. The thing is that this does work. My problem is this. When I submit it to digg.com the link is fine but the subject is never inserted into the digg subject line as it should be.

Bingiman