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="navupload"><a href="http://x10temp.woolie.co.uk/uploader/index.php">'.$lang_common['Uploader'].'</a>';[/b]
                                
                        $links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';

This is what I am doing but it fails to work and I don't know why.

In functions.php what do I have to change in the array to add another link to the Navlink Bar. I'd just use Options in Admin but I need it to be only acccsesible to members.

        // 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]));
        }
    }

Is the array but I'm not that great at php yet...yet.

28

(4 replies, posted in Feature requests)

So this is plausible right? Could someone point me in the right direction of what I'd have to do?

29

(4 replies, posted in Feature requests)

I'm looking to make a bbcode sound tag but I'm still new to understanding PHP.

Basically my idea is to make a tag similar to an [img]tag such as [snd]x[/snd]

I don't no where the bb code is in Punbb, but I imagine that you could do something like how the image tag replaces [img]image.jpg[/img] with <img src "image.jpg">(or something like that) except you'd have the [snd]sound.mp3[/snd] would be replaced with something like.

<script type="text/javascript">

var sndURL = 'sound.mp3';

var hasWMP = false;
var hasQT = false;

var playWMP = '<object id="MediaPlayer" width=320 height=45 classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" standby="Loading Windows Media Player components..." type="application/x-oleobject"><param name="url" value="' + sndURL + '" /><param name="autoStart" value="0" /><param name="volume" value="100" /><embed type="application/x-mplayer2" src="' + sndURL + '" name="MediaPlayer" autostart=0 volume="100" width=320 height=45></embed></object><br />';
var playQT = '<embed src="' + sndURL + '" autostart="FALSE" width=144 height=16><br />';
var playLink = '<a href="' + sndURL +'">[SOUND: ' + sndURL + ']</a><br />';

if (navigator.appName == "Microsoft Internet Explorer")
{
    document.writeln(playWMP);
}
else
{
    for (i = 0; i < navigator.plugins.length; i++ )
    {
        if (navigator.plugins[i].name.indexOf('Windows Media') >= 0)
        {
            hasWMP = true;
        }
        else if ((navigator.plugins[i].name.indexOf('QuickTime') >= 0))
        {
            hasQT = true;
        }
    }
    
    if (hasWMP)
    {
        document.writeln(playWMP);
    }
    else if (hasQT)
    {
        document.writeln(playQT);
    }
    else
    {
        document.writeln(playLink);
    }
}

</script>
<noscript><a href="http://www.psychoholiday.com/uploaded/New%20Liam%20Song_mixdown01.mp3">[SOUND]</a></noscript></div>

I look through both the Punbb mods section and the PunBB Resource and didn't find anything. Any help would be greatly appreciated. smile

30

(4 replies, posted in PunBB 1.2 show off)

There's no real motivattion as such just a place to openly share information and for updates on projects from my website.

31

(4 replies, posted in PunBB 1.2 show off)

http://sheepoholics.mypunbb.com/index.php

It's up so go look and register if you want.

How would I go about ,if possible, making avatar's .swf compatible.

Would I be able to upload it directly onto a program like Dreamweaver?


and then just upload that?

Um yeah i don't understand PunBB at all is there like a tutorial or big instructions document or some such thing?