Now we`re getting somewhere smile I actually tried that before but put the links below and it didn`t work, putting them above sort of works though.

Just one problem now, the links float to the right but those I specify to be on the right appear ontop of each other. Here`s my markup:

    $links[] = '<li class="navextra"><a href="index.php">Extra1</a>';
    $links[] = '<li class="navextra"><a href="index.php">Extra2</a>';
    $links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>';
    $links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';
.navextra {
    float: right;
}

Tried this to seperate the links but didn`t work

.navextra {
    float: right;
    display: inline;
    margin-right: 12px
}

I want al the links to stay where they are but I want to add some extra links on the right hand side of the navigation bar in the header.

I`ve given up trying to do it with lists and am attempting to do it with divs instead but it`s getting messy..

I really want this so if anyone has a solution I`m willing to paypal some cash over to you for it.

Getting knowere with this.. any suggestions?

Thanks for the information.

Basicly want the punbb nav links as they are on the left side of the navigation bar and then I want to put some extra links on the right hand side of the nav bar.

Just about to give it a go, asking what you think is the best way because it`s going to involve editing functions.php I think, sourcecode isn`t my strong pont.

Oh just seen your reply paul, I edited my post earlyer with the solution. Was just missing "auto"

It`s working in IE6 too accept the board appears at full width and then shrinks to max-width, all in a split second causing a sort of flicker effect. Works ok in Opera and going to try IE7 shortly.

hmm hold on lets see

EDIT

Ok all it needed was the auto on the margin roll

Here`s the final concoction, the board has a max width of 1024 and is centred.

HTML, BODY {MARGIN: 4px; PADDING: 0;}
#punwrap {
    margin: 0 auto;
    max-width: 984px;
}

Thanks for the inspiration Urilockz. smile

Thanks but I`m after max width not fixed width. I just want to prevent the board from stretching to wide on higher resolutions while keeping the fluid layout.

I`m trying to set the max width for punbb which I can get working but the board doesn`t centre, here`s what I`m using to set max-width..

#punwrap {
    margin: 12px 20px;
    max-width: 1000px;
}

I`ve tried a few things but nothing works. Is it even possible to centre something that has a max width set?

36

(15 replies, posted in PunBB 1.2 troubleshooting)

Yes that would work, presuming your mod options aren`t broke.. though they work fine here.

Otherwise you could temporarily undo the mod.

37

(15 replies, posted in PunBB 1.2 troubleshooting)

fpouget`s version of Last post's subject on forum index hides forums which are empty.

38

(124 replies, posted in News)

lol I found a bug which would render the board un-usable, so I`ll be going with 1.2 after all.

39

(124 replies, posted in News)

Don`t worry I`ll keep any bug reports to myself and won`t come crying if my server goes up in flames wink

40

(124 replies, posted in News)

For me, this is good news. I`m glad your getting paid for your hard work and glad development has picked up momentum. I`ll probably install 1.3 now instead of 1.2 on my live server.

Just please.. don`t loose the philosophy, keep it fast and also don`t add any more images. The lack of images is one of the reasons I like PunBB, admitedly the nav and feed images do improve the look/feel enough to persuade even me to keep them. The feed hover image I will remove though and feel that any more images should not be added. That`s just me though.

41

(26 replies, posted in PunBB 1.2 troubleshooting)

MattF wrote:

In viewtopic.php, comment out, (as already told you by CodeXP), the first line starting:

$post_actions[] = '<li class="postreport">

Put // in front of the dollar sign.

The line above it can also be commented out? I already tried it and didn`t do anything obviously bad..

if (!$pun_user['is_guest'])

42

(26 replies, posted in PunBB 1.2 troubleshooting)

I agree, each to their own. Pointless or not is a matter opinion and everyone is entitled to one of those. It`s actually quite funny how some have tried to persuade me against my chosen path.

Thanks to everyone who has bothered to share their input and to mat and CodeXP for pointing out the refinement to the solution. I can sleep soundly now knowing there`s no code working for no reason big_smile

btw beyond compare makes it just a few clicks to apply changes to an upgrade, providing the update hasn`t changed to make the same modifications impossible of course. In which case I`ve got the other bloaty magic to hide the button.

43

(26 replies, posted in PunBB 1.2 troubleshooting)

Yes it will but you`ve still got the extra pole next to it and besides the aim is to stop pun proccessing the report function not just hide it wink

44

(26 replies, posted in PunBB 1.2 troubleshooting)

More than "absolutely no effect" then tongue Seriously though, can we get back ontopic here. Performance it errelevant.. I just want to remove the link, if you know a better way than what I have done then please post it.

45

(26 replies, posted in PunBB 1.2 troubleshooting)

Dr.Jeckyl wrote:

i'd just enter a spam email address to send reports to if it became a problem.

That`s pointless. If I`m not using the button (because I`m not getting the reports) then there`s no need for the button to be there.

CodeXP wrote:

The changes you have posted so far in this thread would have absolutely no effect on performance.

The button is removed so the server doesn`t have to display it, thus the server has less to do improving performance oh so very very slightly.

CodeXP wrote:

Also, some of the changes doesn't even make sense. Why would you change:

$post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>';

into:

$post_actions[] = '';

?

Comment it out, don't just set it to null.

I`ve already said I`m no coder, that`s the only safe way I know to remove the button with out breaking any code. Which is why I post here asking "is there a cleaner way than this?"

I`m open to suggestions how to do this, that`s why I posted in the first place. So how would you remove the report button from the code?

Thanks.

46

(26 replies, posted in PunBB 1.2 troubleshooting)

I read there was but couldn`t find it, in either 1.2 or 1.3.

47

(26 replies, posted in PunBB 1.2 troubleshooting)

Through personal experience report buttons are miss used to ask for help instead of posting. That`s why I prefer to just disable them when they`re not really needed, in this case just on my personnal forum. No doubt it has it`s use on other forums though.

My thinking behind removing the function instead of just hiding the link with CSS is, why have the server spend effort generating it when it`s not going to be used. Granted it may not make much of a diff but every little helps wink

48

(26 replies, posted in PunBB 1.2 troubleshooting)

Thank you so much Strofanto. I think you mean lines 164 to 243 wink

To sum up for anyone wanting to completly strip the report function to save the server crunching it when it`s not going to be displayed, here`s what you need to do:

1. Remove the function.

Open misc.php and delete or comment out lines 164 to 243.

2. Remove the actual link.

viewtopic.php

FIND:

$post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>';

REPLACE WITH:

$post_actions[] = '';

FIND:

$post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';

REPLACE WITH:

$post_actions[] = '<li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';

FIND:

<div class="postfootright"><?php echo (count($post_actions)) ? '<ul>'.implode($lang_topic['Link separator'].'</li>', $post_actions).'</li></ul></div>'."\n" : '<div> </div></div>'."\n" ?>

REPLACE WITH:

<div class="postfootright"><?php echo (count($post_actions)) ? '<ul>'.implode($post_actions).'</li></ul></div>'."\n" : '<div> </div></div>'."\n" ?>

That`s it smile Once again thanks to Strofanto for advise on removing the function.

49

(26 replies, posted in PunBB 1.2 troubleshooting)

Yeah I`d prefer to remove the function, do my edits do that or did I miss something?

50

(26 replies, posted in PunBB 1.2 troubleshooting)

So your saying instead of doing the source edits, use that to prevent it from displaying. I would prefer to rip it out from the source so that the server isn`t doing the work and then the CSS is hiding it.