MyBB Community Forums
Memberlist - replace input type text with number - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: Suggestions and Feedback (https://community.mybb.com/forum-199.html)
+--- Thread: Memberlist - replace input type text with number (/thread-223691.html)



Memberlist - replace input type text with number - Ashley1 - 2019-06-30

memberlist_search template.

replace

		<input type="text" class="textbox" size="4" name="perpage" id="perpage" value="15" />


with:

<input type="number" class="textbox" min="1" max="9999" step="1" name="perpage" id="perpage" value="15" />

I chose 9999 because that is what the current code allows, but can be replaced with a lower more reasonable number eg. 100