[RFC] Show New Topic Button on Viewtopic
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
I don't like the idea of a button either. Perhaps a link under the Reply button might be ok sort of how the Reply All feature is in PMs.
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
Preview:
It doesn't look bad, but I don't like it - it's not really necessary and it's just yet another button.
~Callum
Code: Select all
var buttons = document.getElementsByClassName('buttons');
for (var i = 0; i < buttons.length; i++)
{
buttons[i].innerHTML += '<div class="post-icon" title="Post a new topic"><a href="./posting.php?mode=post&f=108"><span></span>Post a new topic</a></div>';
}
~Callum
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
That JavaScript is rather bleh...what happened to your jQuery-Fu?
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
I can't use jQuery when it isn't loaded
EDIT: However, if it were:
EDIT: However, if it were:
Code: Select all
$('.buttons').append('<div class="post-icon"><a href="./posting.php?mode=post&f=108"><span></span>Post a new topic</a></div>');
Last edited by callumacrae on Wed Jul 13, 2011 3:38 pm, edited 1 time in total.
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
That makes no sense. You're doing the above before the page loads? That would be the only time jQuery wouldn't be available and it would make no sense to do what you posted at that point. Besides that why would you even consider creating this button using javascript?
P.S. you do realize jQuery is being added in 3.1 right?
P.S. you do realize jQuery is being added in 3.1 right?
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
I put all JavaScript in the page footer. It isn't how I think it should be added, it is just showing people who can't be bothered to edit prosilver what it looks like.DavidIQ wrote:That makes no sense. You're doing the above before the page loads? That would be the only time jQuery wouldn't be available and it would make no sense to do what you posted at that point. Besides that why would you even consider creating this button using javascript?
P.S. you do realize jQuery is being added in 3.1 right?
Yes xD
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
I don't remember seeing anyone say jQuery would go in the footer. It wouldl likely go in the header where we have all other javascript...
Back on topic: I still don't quite like the idea.
Back on topic: I still don't quite like the idea.
- AmigoJack
- Registered User
- Posts: 110
- Joined: Wed May 04, 2011 7:47 pm
- Location: グリーン ヒル ゾーン
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
Good objection. On my board the "new topic" button while viewing a topic is a real benefit, but looking to the general phpBB user I'm sure there would be more problems when implementing this as default.imkingdavid wrote:The reason for removing it, as I understand it, was that too many people would click the New Topic button instead of New Reply when viewing a topic so they would start a new topic with their reply. Yes, it would be nice to have both buttons if people were more observant, but they aren't.
- Dragosvr92
- Registered User
- Posts: 624
- Joined: Tue May 31, 2011 12:08 pm
- Location: Romania
- Contact:
Re: [RFC] Show New Topic Button on Viewtopic
I Disagree ! My style had the post new topic in the viewtopic page and it confused me more. i never used it.
You are inside the topic and you are going to post a reply, not a new topic.
You are inside the topic and you are going to post a reply, not a new topic.
Previous user: TheKiller
Avatar on Memberlist 1.0.3
Avatar on Memberlist 1.0.3