Topic: Post new topic/Post new poll

I know this probably looks really dumm, but I installed the Easy Poll mod and now in every forum it there is "Post new topic" and "Post new poll" in two separate lines. I don't like that, so I want both links in one line. I found the place in the code where that has to happen, I played around with it, but I couldn't figure it out.
Here is the code:

// Can we or can we not post new topics?
if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod)
    $post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n";
else
    $post_link = '';
if (($cur_forum['post_polls'] == '' && $pun_user['g_post_polls'] == '1') || $cur_forum['post_polls'] == '1' || $is_admmod)
    $post_link .= "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'&type=poll">'.$lang_polls['New poll'].'</a></p>'."\n";
FluxBB - v1.4.8

2 (edited by bingiman 2007-03-18 18:53)

Re: Post new topic/Post new poll

Use this code and it will resolve that issue:

// Can we or can we not post new topics?
if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod)
    $post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a>'."\n";
else
    $post_link = '';
if (($cur_forum['post_polls'] == '' && $pun_user['g_post_polls'] == '1') || $cur_forum['post_polls'] == '1' || $is_admmod)
    $post_link .= "\t\t".'<a href="post.php?fid='.$id.'&type=poll">'.$lang_polls['New poll'].'</a></p>'."\n";

or if you want to use mine with images:

// Can we or can we not post new topics?
if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod)
    $post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'" title="'.$lang_forum['Post topic'].'"><img src="img/'.$pun_user['style'].'/buttons/new_topic.png" alt="'.$lang_forum['Post topic'].'" /></a>'."\n";
else
    $post_link = '';
if (($cur_forum['post_polls'] == '' && $pun_user['g_post_polls'] == '1') || $cur_forum['post_polls'] == '1' || $is_admmod)
    $post_link .= "\t\t".'<a href="post.php?fid='.$id.'&type=poll"><img src="img/'.$pun_user['style'].'/buttons/new_poll.png" alt="'.$lang_polls['New poll'].'" /></a></p>'."\n";

You will of course have to make your images and place theme in your template/image folder.
Bingiman

Re: Post new topic/Post new poll

I used the top one, thanks.
But: Look what it did. I will probably have to change the width in the template or the css file somewhere.
http://bydebrasdesigns.com/biblestudy/f … m.php?id=2

FluxBB - v1.4.8

Re: Post new topic/Post new poll

Oops, good point:
Log in with the following data so that you can see it:
Username: test
Password: test

FluxBB - v1.4.8

Re: Post new topic/Post new poll

Yes, you will definitely need to make sore change to your stylesheet in order to align it more to the left.

Re: Post new topic/Post new poll

Good, thanks for the help. I might do that tonight. I don't think (...hope) that I will need help for that wink

FluxBB - v1.4.8

Re: Post new topic/Post new poll

I do need help. Could you post an example stylesheet?

FluxBB - v1.4.8

8

Re: Post new topic/Post new poll

thats first code doesnt work for me. maybe something has changed in newer versions? how can I get view topic and post new poll on one line and still placed to the right (current location)