new topic button/link on boards?

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

Previous topic - Next topic

steve51184

would it be possible somehow to have a 'new topic' button next to boards names like where the image is but one for a new topic?

Martinfin

That sounds like a great challenge for a Mod...

:) Nice!
-> Martinfin

steve51184

yeah i'm ALWAYS making new topics on my forum but it's a bit of a pain to keep going into the board to do so :P

glad i've got one thumbs up so far :)

NanoSector

hm. I will look in it (I'm no PHP expert but meh.)
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."

steve51184


Joker™

#5
EDIT* (Do the modification in BoardIndex.template.php)

Find:

</td>
<td class="info">
<a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';




Add After :

if ($board['new'] && $context['user']['is_logged'])
echo '
<img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" />';

            
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

not really sure what that code is suppose to do (add an image?) but i've just tested it but all it did was remove the on some boards?

NanoSector

Quote from: Joker™ on July 12, 2010, 11:48:15 AM
Find:

</td>
<td class="info">
<a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';




Add After :

if ($board['new'] && $context['user']['is_logged'])
echo '
<img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" />';

In what file? Index.php? (I want to use this too xD)
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™

opppsss ,sorry , do that modification in BoardIndex.template.php
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


NanoSector

Quote from: Joker™ on July 12, 2010, 11:56:18 AM
opppsss ,sorry , do that modification in BoardIndex.template.php
Thanks, but it does nothing..
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."

steve51184

Quote from: Yoshi2889 on July 12, 2010, 12:01:48 PM
Quote from: Joker™ on July 12, 2010, 11:56:18 AM
opppsss ,sorry , do that modification in BoardIndex.template.php
Thanks, but it does nothing..
yeah that's what i said lol

think he got a little confused about what i wanted :P

Joker™

Quote from: zx71 on July 12, 2010, 11:54:41 AM
not really sure what that code is suppose to do (add an image?) but i've just tested it but all it did was remove the on some boards?

u said my edit removed something :o , hows that possible ? i'm adding a simple code . are you trying to achieve something else ?
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

NanoSector

Quote from: zx71 on July 12, 2010, 12:02:53 PM
Quote from: Yoshi2889 on July 12, 2010, 12:01:48 PM
Quote from: Joker™ on July 12, 2010, 11:56:18 AM
opppsss ,sorry , do that modification in BoardIndex.template.php
Thanks, but it does nothing..
yeah that's what i said lol
Oh yeah, I turned off new post notification lol

It only does something with new.gif, removing it or something...
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."

steve51184

Quote from: Joker™ on July 12, 2010, 12:03:10 PM
Quote from: zx71 on July 12, 2010, 11:54:41 AM
not really sure what that code is suppose to do (add an image?) but i've just tested it but all it did was remove the on some boards?

u said my edit removed something :o , hows that possible ? i'm adding a simple code . are you trying to achieve something else ?

this code is to just add as image right? that's not what i'm after :P


Joker™

by that code i got this result ( see the pic attached )

also the code above will work for users logged in not for guests
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™

Quote from: zx71 on July 12, 2010, 12:05:57 PM
this code is to just add as image right? that's not what i'm after :P

you want that image to redirect you to more recent post of the board ? or something like that?
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 12, 2010, 12:06:29 PM
by that code i got this result ( see the pic attached )

also the code above will work for users logged in not for guests
but i don't want to add an image there...

i was something like THIS but on the board index :)

Quote from: Joker™ on July 12, 2010, 12:07:48 PM
Quote from: zx71 on July 12, 2010, 12:05:57 PM
this code is to just add as image right? that's not what i'm after :P

you want that image to redirect you to more recent post of the board ? or something like that?

no as above ;)

Joker™

kk will look into this , n post here shortly if able to meet up the challenge
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 12, 2010, 12:11:47 PM
kk will look into this , n post here shortly if able to meet up the challenge
thank you <3 :)

Advertisement: