News:

Wondering if this will always be free?  See why free is better.

Main Menu

new topic button/link on boards?

Started by steve51184, July 12, 2010, 11:28:02 AM

Previous topic - Next topic

NanoSector

Quote from: Joker™ on July 22, 2010, 10:55:12 AM
i placed that "grey shadow" , to remove it

background:url(../images/theme/menu_gfx.png) no-repeat 0 -60px;  << remove this from a.new_post
Thanks, this is just the way I wanted it ::)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Joker™

Quote from: zx71 on July 23, 2010, 12:56:17 AM
Quote from: Joker™ on July 22, 2010, 10:22:52 AM
can u suggest something , will surely do it for you ;)

erm i'm not good with design... maybe make the link a button (like the search one) and make it smaller?

that would be very first button style i showed you . you want that sort of thing ?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

Quote from: Joker™ on July 23, 2010, 03:25:13 PM
Quote from: zx71 on July 23, 2010, 12:56:17 AM
Quote from: Joker™ on July 22, 2010, 10:22:52 AM
can u suggest something , will surely do it for you ;)

erm i'm not good with design... maybe make the link a button (like the search one) and make it smaller?

that would be very first button style i showed you . you want that sort of thing ?
sorry which one?

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Last thing i tried with this is :


themes\default\boardindex.template.php
Find:

echo '

  <p>', $board['description'] , '</p>';




Add After:

if ($context['user']['is_logged']  && boardsAllowedTo('post_new'))
echo'
<a class="new_post" href="', $scripturl . '?action=post;board=',  $board['id'] ,'")><img src="', $settings['images_url'], '/icons/post.gif" alt="*" title="', $txt['new_topic'],'" /></a>';




index.css
Find:
.table_list tbody.content td.children
{
color: #555;
font-size: 85%;
}




Add After:

a.new_post
{
float: right;
cursor:pointer
}




add attached image into themes\default\images\icons
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

wow that looks amazing good job!!!

is there anyway to make it sit under this icon:


Joker™

add the above code in boardindex.template.php after this


// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

wow now that really does look good thank you sooo much :)

Joker™

can i think of that as a signal for topic solved ?  :P  
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

Quote from: Joker™ on July 25, 2010, 04:08:31 AM
can i think of that as a signal for topic solved ?  :P 

you sure can 8)

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

Quote from: Joker™ on July 25, 2010, 04:10:41 AM
was real fun playing with codes ;D.

is only the '?action=search2;search=' topic was as easy lol

Joker™

that thing has already ate half of my mind :( bt will surely make it to work one day ;)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

Quote from: Joker™ on July 25, 2010, 04:14:40 AM
that thing has already ate half of my mind :( bt will surely make it to work one day ;)

yeah it's took an entire day from me to lol

also found a 'problem' what about for boards that have child boards in them?

like when i go into a board there's this icon again next to the child boards:



can we get it under that to?

pweese? :)

Joker™

sure.

MessageIndex.template.php

Find:

// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';



Add After:

if ($context['user']['is_logged']  && boardsAllowedTo('post_new'))
echo'
<a class="new_post" href="', $scripturl . '?action=post;board=',  $board['id'] ,'")><img src="', $settings['images_url'], '/icons/post.gif" alt="*" title="', $txt['new_topic'],'" /></a>';
 
 
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

wow that was fast lol

again a huge thank you i really appreciate it :)

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

just found a bug with this:

when you have a redirect board setup it show the 'new post' image there is there a way to only have it show on normal non-redirect boards?

Joker™

just change the if loop as


if ($context['user']['is_logged']  && boardsAllowedTo('post_new') && !$board['is_redirect'])


should i make it a mod , hahahaha ;)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

steve51184

Quote from: Joker™ on July 26, 2010, 12:37:22 PM
just change the if loop as


if ($context['user']['is_logged']  && boardsAllowedTo('post_new') && !$board['is_redirect'])

sweet thank you :)

Quote from: Joker™ on July 26, 2010, 12:37:22 PM
should i make it a mod , hahahaha ;)

i'm currently in the process if that's ok with you?

i'm going to give you full credit of course ;)

Advertisement: