Found solution my self.

How do I add "Total users online:"

Registered users online: 50
Guests online: 50
Total users online: 100

3

(9 replies, posted in PunBB 1.2 discussion)

nevermind

Hi, Im trying to integrate Fpoll in my sidebar on my punbb forum.

http://www.phpfront.com/fpoll.php


BUT I get an error:

Fatal error: Call to a member function on a non-object in \footer.php on line 158


Anyone know how I fix that?

Hi, how do I get that line between my news?! Im using the ap_news_generator.

check this out: http://punbb.org/

6

(3 replies, posted in General discussion)

My site has pr 3 on www.domain.net, but only pr 2 on www.domain.net/index.php

How do I fix that?

7

(6 replies, posted in PunBB 1.2 discussion)

Is it possible to have 2 forums and use the same userlist? Is it possible to have 2 forums and share a categori between them. For example use the same "off topic" on both forums?

8

(18 replies, posted in PunBB 1.2 troubleshooting)

It works now and really good! I can really recommend using this tool. 5 days ago I had like 300 pages indexed, now I have 5000! awsome.

9

(0 replies, posted in Archive)

Är det möjligt att ha 2 olika forum men ha samma login till båda? En medlem kan alltså skriva på båda forumen. Är det möjligt att dela en "kategori" mellan 2 eller flera forum?

10

(18 replies, posted in PunBB 1.2 troubleshooting)

guardian34 wrote:

You can put XML data in a file and give it any extension you want. However, I don't know if that causes any problems with Google. (I use .xml.gz myself.)

Can u upload your file here?

11

(18 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

There's an option for it to output the results to XML files
And since when does the sitemap need to end in .xml? The PHP file should work perfectly

Well it doesnt because .php is not a supported format.

http://www.google.com/support/webmaster … topic=8514

12

(18 replies, posted in PunBB 1.2 troubleshooting)

Dr.Jeckyl wrote:

copy the outptted text and paste it to a new file and save it as "sitemap.xml" preferably in something OTHER than notepad. suggestion: Notepad++ http://notepad-plus.sourceforge.net/uk/site.htm

I have done that now but I got an error:

$output .= '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'."\n";
------------^

13

(18 replies, posted in PunBB 1.2 troubleshooting)

I have downloaded this: http://www.punres.org/viewtopic.php?id=1639
and tryed to upload it on https://www.google.com/webmasters/sitemaps/
but it isent woring becase the sitemap has to be in xml-format. How do I fix that?

Hi, how do I change the regular menu to a new css drop menu? How do I integrate the new menu in to the forum?

The code that generates the menu:

//
// Generate the "navigator" that appears at the top of every page
//
function generate_navlinks()
{
    global $pun_config, $lang_common, $pun_user;

    // Index and Userlist should always be displayed
    $links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>';
    $links[] = '<li id="navforum"><a href="forum.php">'.$lang_common['Forum'].'</a>';
    $links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';

    if ($pun_config['o_rules'] == '1')
        $links[] = '<li id="navrules"><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a>';

    if ($pun_user['is_guest'])
    {
        if ($pun_user['g_search'] == '1')
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

        $links[] = '<li id="navregister"><a href="register.php">'.$lang_common['Register'].'</a>';
        $links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>';

        $info = $lang_common['Not logged in'];
    }
    else
    {
        if ($pun_user['g_id'] > PUN_MOD)
        {
            if ($pun_user['g_search'] == '1')
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
        }
        else
        {
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
        }
    }

    // Are there any additional navlinks we should insert into the array before imploding it?
    if ($pun_config['o_additional_navlinks'] != '')
    {
        if (preg_match_all('#([0-9]+)\s*=\s*(.*?)\n#s', $pun_config['o_additional_navlinks']."\n", $extra_links))
        {
            // Insert any additional links into the $links array (at the correct index)
            for ($i = 0; $i < count($extra_links[1]); ++$i)
                array_splice($links, $extra_links[1][$i], 0, array('<li id="navextra'.($i + 1).'">'.$extra_links[2][$i]));
        }
    }

    return '<ul>'."\n\t\t\t\t".implode($lang_common['Link separator'].'</li>'."\n\t\t\t\t", $links).'</li>'."\n\t\t\t".'</ul>';

}

How do I change the standard menu to this new one:

<div class="menu">

<ul>
<li><a class="hide" href="../menu/index.html">DEMOS</a>

<!--[if lte IE 6]>
<a href="../menu/index.html">DEMOS
<table><tr><td>
<![endif]-->

    <ul>
    <li><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></li>
    </ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>

<li><a class="hide" href="../opacity/index.html">OPACITY</a>

<!--[if lte IE 6]>
<a href="../opacity/index.html">OPACITY
<table><tr><td>
<![endif]-->

    <ul>
    <li><a href="../opacity/colours.html" title="colour wheel">opaque colours</a></li>
    <li><a href="../opacity/picturemenu.html" title="a menu using opacity">opaque menu</a></li>
    </ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>
</ul>

<!-- clear the floats if required -->
<div class="clear"> </div>

</div>

I want it to look like this one: http://www.marine-hunters.co.uk/

no one knows this?

16

(2 replies, posted in Archive)

Den ligger fel hos mig.

Im using miniportal and I have a problem. The thing is that miniportal uses the same css file as the rest of the forum. I want the frontpage/mainpage with the news to look a bit different then the forum does. How do I do that without changing the forum style.

18

(0 replies, posted in Archive)

Tänkte byta ut den vanliga menyn till en css drop-meny. Hur ska man göra detta rent tekniskt?
För er som inte vet så i main.tpl implementeras länkarna genom <pun_navlinks> från functions.php.
Någon som har gjort något liknande och vill/kan hjälpa?

Hur ska jag få in denna kod och ändå ha kvar if-satserna (om man är inloggad så kommer profil upp mm)

Så här ser menyn ut:

<div class="menu">

<ul>
<li><a class="hide" href="../menu/index.html">DEMOS</a>

<!--[if lte IE 6]>
<a href="../menu/index.html">DEMOS
<table><tr><td>
<![endif]-->

    <ul>
    <li><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></li>
    </ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>

<li><a class="hide" href="../opacity/index.html">OPACITY</a>

<!--[if lte IE 6]>
<a href="../opacity/index.html">OPACITY
<table><tr><td>
<![endif]-->

    <ul>
    <li><a href="../opacity/colours.html" title="colour wheel">opaque colours</a></li>
    <li><a href="../opacity/picturemenu.html" title="a menu using opacity">opaque menu</a></li>
    </ul>

<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->

</li>
</ul>

<!-- clear the floats if required -->
<div class="clear"> </div>

</div>

Hur får jag in menyn i detta?:

//
// Generate the "navigator" that appears at the top of every page
//
function generate_navlinks()
{
    global $pun_config, $lang_common, $pun_user;

    // Index and Userlist should always be displayed
    $links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>';
    $links[] = '<li id="navforum"><a href="forum.php">'.$lang_common['Forum'].'</a>';
    $links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';

    if ($pun_config['o_rules'] == '1')
        $links[] = '<li id="navrules"><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a>';

    if ($pun_user['is_guest'])
    {
        if ($pun_user['g_search'] == '1')
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

        $links[] = '<li id="navregister"><a href="register.php">'.$lang_common['Register'].'</a>';
        $links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>';

        $info = $lang_common['Not logged in'];
    }
    else
    {
        if ($pun_user['g_id'] > PUN_MOD)
        {
            if ($pun_user['g_search'] == '1')
                $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';

            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
        }
        else
        {
            $links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
            $links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
            $links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';
            $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
        }
    }

    // Are there any additional navlinks we should insert into the array before imploding it?
    if ($pun_config['o_additional_navlinks'] != '')
    {
        if (preg_match_all('#([0-9]+)\s*=\s*(.*?)\n#s', $pun_config['o_additional_navlinks']."\n", $extra_links))
        {
            // Insert any additional links into the $links array (at the correct index)
            for ($i = 0; $i < count($extra_links[1]); ++$i)
                array_splice($links, $extra_links[1][$i], 0, array('<li id="navextra'.($i + 1).'">'.$extra_links[2][$i]));
        }
    }

    return '<ul>'."\n\t\t\t\t".implode($lang_common['Link separator'].'</li>'."\n\t\t\t\t", $links).'</li>'."\n\t\t\t".'</ul>';

}

19

(9 replies, posted in PunBB 1.2 troubleshooting)

thx alot.

20

(2 replies, posted in Archive)

Svarar på dom jag kan.

2. Finns massor att ladda ner. Här tex.
http://www.punres.org/viewforum.php?id=2

4. http://wiki.punres.org/Change_forum_width

5. Om du lägger till en moderator till ett forum kommer det väl upp automatiskt?

Is there a contact integration somewere? Like this one: http://www.awmestore.com/site/contact.php

edit: never mind, solved it myself.

22

(1 replies, posted in PunBB 1.2 discussion)

How do I add my own css menu? What is     <pun_navlinks> ? If u wuld like a menu like this: http://www.mywebstuff.com/02_css/css_07.html   

Where do I find this code?

        <div id="brdmenu" class="inbox">
            <ul>

                <li id="navextra1"><a href="http://punbb.org/">PunBB.org</a></li>
                <li id="navindex"><a href="index.php">Index</a></li>
                <li id="navuserlist"><a href="userlist.php">User list</a></li>
                <li id="navrules"><a href="misc.php?action=rules">Rules</a></li>
                <li id="navsearch"><a href="search.php">Search</a></li>
                <li id="navprofile"><a href="profile.php?id=5355">Profile</a></li>

                <li id="navlogout"><a href="login.php?action=out&id=5355">Logout</a></li>
            </ul>
        </div>

in the main.tpl is just says  <pun_navlinks>.

23

(9 replies, posted in PunBB 1.2 troubleshooting)

no one knows this?

24

(9 replies, posted in PunBB 1.2 troubleshooting)

Hi have used extern.php to get some active topics and some stuff. How do I change the css-file? (Want to add some padding to the text).

<div id="left"> 
    <div class="block">
        <h2 class="block2"><span>Whos Online?</span></h2>
                <div class="box">
                    <pun_online>
                </div>
    </div>

    <div class="block">
            <h2><span>Menu</span></h2>
                <div class="box">
                    <pun_sidelinks>            
                </div>
    
            </div>
            
    <div class="block">
        <h2><span>Latest news</span></h2>
                <div class="box">
                    <pun_include "active_topics.php">
                </div>
    </div>
    
    <div class="block">
        <h2><span>Active topics</span></h2>
                <div class="box">
                    <pun_include "active_posts.php">
                </div>
    </div>
            
</div>

http://upl.yao.se/?a=2f728.JPG

25

(1 replies, posted in PunBB 1.2 discussion)

Witch one is the best image upload mod right now?


http://www.punres.org/desc.php?pid=117
http://www.punres.org/desc.php?pid=113