@Slavok
Can you give me a bit more information on how to use that method? Assuming I want to change the code of your official pun_pm so that my code (extension) gets it properly

array_insert($links, 'pm', '<li id="navextra"><a href="pm_link">pm_link</a></li>');
where would above ^^ code go (file, line) , what would it replace

if (isset($links['pm']))
and where that one ^^  (file, line)

sorry if these are novice questions...

additional info; the administrator section stays english with the download from your site in 1.3.2
http://lab42.movedesign.de/?dl=5
i guess thats fine
i also tested it in fluxbb where it works except clicking the search link returns this error
Notice: Undefined index: Search info in     search.php on line 401

thanks again for the great effort.

You really are a star. That worked! Thx!

Parse error: syntax error, unexpected T_ECHO

<img src="'echo .$ext_info['path'] '/img/navuserlist.png" alt="User list" />
<img src="'echo $ext_info['path'] '/img/navuserlist.png"/>  tried both

my code....

Ok I added:

    $links['userlist'] = '<li id="navuserlist"'.((FORUM_PAGE == 
'userlist') ? '  class="isactive"' : '').'><a href="'.forum_link
($forum_url['users']).'">
<img src="<?php echo $ext_info['path'] ?>/img/navuserlist.png" alt="User list" 
/></a> </li>';

 

from:

$links['userlist'] = '<li id="navuserlist"'.((FORUM_PAGE ==
 'userlist') ? '  class="isactive"' : '').'><a  href="'.forum_link($forum_url['users']).'">
<img  src="'.$base_url.'/img/navuserlist.png" alt="User list" />
</a></li>';

which gave me:

Parse error: syntax error, unexpected T_STRING

what have I done wrong?

(am using same extension as one I posted here just with that change)

1. Good thanks smile
2.  So if they [developers] add hook it could be done easily? Any chance of that happening?  Do I need to add hook request?
3.  I want to add the images to my extension so that on install it's just one click. Where can I find info on how to do that? Or if you can tell me all the better!
thx.

ok, the one I downloaded wasn't translating admin area. can you just tell me which link you know for sure is working. thx!
and also confirm you tested on 1.3.2?
I see you translated everything, but somehow it's not picking admin part my end.

@Garciat:
1. From a developer standpoint; do you think I should be changing the stylesheets instead of way I am trying? Is it wrong to be using the functions hooks?
2. Any ideas how to specifically use that info you gave me regarding o_additional_navlinks. If I had PM installed. How would I get an image navpm.png to show ?

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

this is my issue 2 mentioned... how do I get different images for extra links if someone has installed extensions PM, etc ?

1,585

(4 replies, posted in PunBB 1.3 troubleshooting)

oh I see , thought you wanted POST author width (that's where I was thinking of avatars) changed...
haven't fiddled with what you're trying to change  yet.... maybe someone else can help I hope...

1,586

(9 replies, posted in PunBB 1.3 troubleshooting)

http://punbb.informer.com/forums/topic/ … inks-beta/

maybe you can help me with two issues I have with the beta extension I just made....

Navlinks Icons At Top Instead Of Index, Userlist ...
Instructions:
unpack & install

ADDED 25-02-2009:
Navlinks 1.5
now with hover over effect: see here


http://keydogbb.info/img/navlinks.jpg


old:
********************************************************
Navlinks 1.4 (using .gif)
Demo
Note: If you are using gifs instead of pngs this set will be for you as you only need to change set in folder img - and not change anything in manifest.xml
Navlinks 1.2
Demo
Navlinks 1.1
Demo


EDIT: Bug fixed that didnt show icon when user is logged in


If you're good with graphis editing / creation make files named: navadmin

navlogout
navprofile
navsearch
navregister
navuserlist
navindex
navrules
navlogin

.png      then upload them somewhere and post link here - it would be good to get lots of styles going!
old:

What It Does?
Replaces text links in navlinks bar with images from folder /img
i.e. this adds your graphic feel to website!
Problems I would like help with:
1. Assuming someone has installed extension (for arguments sake) PM - how can I add an individual image for that aswell?
2. Adding a function to extension which automatically places the images in img folder so that user can just download and one-click-install without moving images around // DONE!
3. Add Active Topics etc to be replaced by images instead of text when called for
4. Add Admin Userinterface to turn on/off certain images

Who's it for?
People wanting to add some customization fast and hassle free.
Guess target audience will be first time users who have knowledge with graphics creation or just plain simple novices.

Thx a lot for that. User interface looks good.
Admin area left in english though correct?

1,589

(4 replies, posted in PunBB 1.3 troubleshooting)

/*************************************************************
G - MAIN CONTENT - TOPICS AND PARSED CONTENT
**************************************************************/

/* Structure
-------------------------------------------------------------*/

then change the 
.brd .post .posthead .post-byline {

to a margin-left: -14em for example, i.e. higher value (lower negative number)

I think...

I also would like such a side-column and float it either on right or left of main forum.
Then choose whether I put ads or menu items or lists of last posts, most views, etc in them.

If anyone knows of such extensions do let me know. Seems very basic need I would think (if one is using the forum as stand alone and doesn't just wrap another website around it...)

Plus there is loads of space to do such things without cluttering it in the least I find. Specially the way screens are going; WIDE and LARGE.

1,591

(9 replies, posted in PunBB 1.3 troubleshooting)

Brilliant. That works! Many thanks.

1,592

(9 replies, posted in PunBB 1.3 troubleshooting)

            <hook id="fn_generate_navlinks_end"><![CDATA[
        
            global $base_url;
            
                if ($forum_user['is_guest'])
                {
                $links['login'] = '<li id="navlogin"><a href="'.forum_link($forum_url['login']).'"><img src="'.$base_url.'img/blink.png" alt="Login" /></a></li>';
                }
            ]]></hook>

Is anything evidently wrong up there? because it shows no image anywhere....
if  I take global $base_url; away it shows the image when it should, but always with that error.....

1,593

(9 replies, posted in PunBB 1.3 troubleshooting)

Notice: Undefined variable: base_url in   .../include/functions.php(466) : eval()'d code on line 43 

image does show when logged out , and doesnt show when logged in - so thats cool.

any ideas why I'm getting that error when logged out? (no error when logged in)

1,594

(9 replies, posted in PunBB 1.3 troubleshooting)

thx guys. trying that one....

17-12-2008
http://punbb.informer.com/forums/topic/ … inks-beta/
is where the extension I made (with help from garciat obviously) can be found to download.


************************************

I'd like to add an image to navlinks either next to or replacing text login (as example - then I can do the rest hopefully)

in include/functions.php   1.3.2 line 436

    $links['login'] = '<li id="navlogin"'.((FORUM_PAGE == 'login') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['login']).'"><span>'.$lang_common['Login'].'</span></a></li>';
    }

how must I do that?

how would I use the hook fn_generate_navlinks_start [line 417]  to echo the image [assuming location img/navlogon.png] if I were to write an extension (which I'd like to]

My intentions:
1. To be able to click the image as a link [login in this example] instead of having text  and/or
2. Have an image next to text (say an image of a key next to login text)

thanks teva; your help sorted out my issue

Section "Logo and Headings" [file: Oxygen_cs_css]
add:

#brd-head {
    background: #296FA5;
    color: #ddd;
    border-color: #296FA5;
    background-image:url(/img/header1.png);
    height: 60px;

[

Section "Logo and Tagline"   [file: Oxygen.css]
and for the disabling of brd-title & brd-desc:


#brd-title {
    padding-bottom: 0;
    display: none;
    }

#brd-desc {
    font-size: 1.084em;
    padding-top: 0;
    padding-bottom: 0;
    display: none;
    }

1,597

(2 replies, posted in PunBB 1.2 troubleshooting)

My hosting company was updating PHP 5.2.26 to PHP 5.2.8  & MySQL 4.1.22 to MySQL 4.1.22_1 today and forum went offline with that message you saw while they were doing it.

On all pages of entire forum I had that message (and nothing else).

General Question: Is there no way for them to do such updates without entire forum going offline? (I asked them and they reckoned NO)

[found this post googling the error]

1,598

(9 replies, posted in PunBB 1.3 extensions)

[divx]http://mywebsite.bla/xyz/test.avi[/divx]produces  an embedded divx player in your post.
You can use any URL you have of Divx Files. 

newly added bbcode help included

1,599

(9 replies, posted in PunBB 1.3 extensions)

What it does:

It embeds the Divx Web Player into the post
when you integrate;

[divx]http://www.test.bla/file/test.avi[divx]

(your divx file url wrapped by divx tags)

Who is it for?

Any Administrator or User who has access to URLs of Divx Files and wants to show posts with the Divx Files. (Same affect as someone adding a YouTube Video for example)

The PlugIn Web Divx Webplayer for your browser can be downloaded at divx.com direct link for free if not installed yet. You can check out more on the player here: http://labs.divx.com/WebPlayer

[DivX Web Player lets you watch DivX videos right in your web browser. Some people prefer the quality compared to good old flash I guess]


EDIT: PS if someone knows of another good opensource player for xvid or regular .avi files --> please let me know. Always better not being stuck with divx and having alternative to flash.

Thx. That works...
Couple follow on questions;
1. When I visit website with widescreen it repeat shows image. (I had chosen 780x65 for png) What is best way to solve that? Just make image wider? Or is there a way to make it appear just once.
2. If I want that header.png to be instead of brd-title and brd-desc what would I need to doo? (or would that be a mistake for search engines trying to rank my site if they don't find such info)