MyBB Community Forums

Full Version: Single button that appears only on 1st post of thread?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Is it possible to make a single button appear on first post of each thread and no where else.
(2014-09-07, 03:52 AM)dmpops22 Wrote: [ -> ]Is it possible to make a single button appear on first post of each thread and no where else.


anyone?
I don't understand what your saying. What button and why?
(2014-09-10, 12:15 AM)zamight Wrote: [ -> ]I don't understand what your saying. What button and why?

Basically my site will be having a lot of threads, so i wanted a way to help users curate a thread, by adding a button to the first post of each thread, i could then link it into the report user field and have them add Suggest sticky.

Its basically a way to help users suggest sticky threads, unless you have a better way?
Do you have the basic coding knowledge to achieve this?
(2014-09-10, 01:08 AM)Omar G. Wrote: [ -> ]Do you have the basic coding knowledge to achieve this?


Im willing to give it a go, i'm pretty good with how mybb works now, probably not enough to manage the job alone, but i got to try.

im also trying to find out how people are embedding the smiley popups, if you have any idea then please point me in that direction/ example here: http://ctcantina.com/newreply.php?tid=1707 - hit get more smilies.
(2014-09-10, 01:21 AM)dmpops22 Wrote: [ -> ]
(2014-09-10, 01:08 AM)Omar G. Wrote: [ -> ]Do you have the basic coding knowledge to achieve this?


Im willing to give it a go, i'm pretty good with how mybb works now, probably not enough to manage the job alone, but i got to try.

im also trying to find out how people are embedding the smiley popups, if you have any idea then please point me in that direction/ example here: http://ctcantina.com/newreply.php?tid=1707 - hit get more smilies.

The smiley popup are done like below.

<a href="javascript:MyBB.popupWindow('/misc.php?action=smilies&popup=true&editor=MyBBEditor')">get more</a>
(2014-09-10, 02:13 AM)zamight Wrote: [ -> ]
(2014-09-10, 01:21 AM)dmpops22 Wrote: [ -> ]
(2014-09-10, 01:08 AM)Omar G. Wrote: [ -> ]Do you have the basic coding knowledge to achieve this?


Im willing to give it a go, i'm pretty good with how mybb works now, probably not enough to manage the job alone, but i got to try.

im also trying to find out how people are embedding the smiley popups, if you have any idea then please point me in that direction/ example here: http://ctcantina.com/newreply.php?tid=1707 - hit get more smilies.

The smiley popup are done like below.


<a href="javascript:MyBB.popupWindow('/misc.php?action=smilies&popup=true&editor=MyBBEditor')">get more</a>

that doesnt embed them below the post though like in the example....

(2014-09-10, 02:15 AM)dmpops22 Wrote: [ -> ]
(2014-09-10, 02:13 AM)zamight Wrote: [ -> ]
(2014-09-10, 01:21 AM)dmpops22 Wrote: [ -> ]
(2014-09-10, 01:08 AM)Omar G. Wrote: [ -> ]Do you have the basic coding knowledge to achieve this?


Im willing to give it a go, i'm pretty good with how mybb works now, probably not enough to manage the job alone, but i got to try.

im also trying to find out how people are embedding the smiley popups, if you have any idea then please point me in that direction/ example here: http://ctcantina.com/newreply.php?tid=1707 - hit get more smilies.

The smiley popup are done like below.



<a href="javascript:MyBB.popupWindow('/misc.php?action=smilies&popup=true&editor=MyBBEditor')">get more</a>

that doesnt embed them below the post though like in the example....

also dont supose you know to do this either?
http://community.mybb.com/thread-159080.html
You could probably add the button to each #1 post with PHP...

if ($post[id] == 1) {
echo "<buttoncode>";
}

Something along those lines in the correct template.
(2014-09-10, 02:26 AM)vEconomy Wrote: [ -> ]You could probably add the button to each #1 post with PHP...

if ($post[id] == 1) {
echo "<buttoncode>";
}

Something along those lines in the correct template.

Great im going to give that a try now,

any suggestions on this issue, http://community.mybb.com/thread-159080.html
Pages: 1 2