Current time: 04-16-2014, 10:33 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Drop-Down List Report vs Textbox Report
02-20-2012, 06:44 AM (This post was last modified: 02-21-2012 10:28 PM by Kaleb M.)
Post: #1
[Tutorial] Drop-Down List Report vs Textbox Report
If you're running myBB with it's default templates for reporting then a report box should look something like this.

[Image: 0ArwM.png]

When it could look more like this -

[Image: hXXPP.png]

personally I believe this to be superior to a textbox method for more then one reason. For once it could eliminate the possibility of a user spamming reports which would be a waste of his time, and very uncommon, but it's gone Cool. I also believe it makes the site more professional, and the reports are easier to manage, this is simply a personal belief. But why not take a look for yourself, just read this tutorial and you will have this on your site in no time Wink.



We're going to start out by navigating to your admin panel, logging in and doing the following.

Admin CP > Templates & Style > Templates > Expanding Your Current Template > Report Templates > Expand > Report > Full Edit

Do a search for
Code:
<input type="text" class="textbox" name="reason" size="40" maxlength="250" />
and replace it with the following
PHP Code:
<SELECT NAME="reason">
<
OPTION VALUE="Leeching" >Leeching
<OPTION VALUE="Low Quality" >Low Quality
<OPTION VALUE="Spamming" >Spamming
<OPTION VALUE="Hacking" >Hacking
</SELECT
Also using this method you can display a different reason as the text displayed to the users, sounds confusing? Let me explain more. Using the
PHP Code:
<OPTION VALUE="Low Quality" >Low Quality 
method, we can edit what's in quotes to be posted to the report, and leave the [php>Low Quality[/php] as is and it would be displayed as such to the user. So we could do
PHP Code:
<OPTION VALUE="Leech (If valid then delete, do not trash)"  >Leeching 
so users see -
[Image: VtUVf.png]
but our staff sees -
[Image: iQqNb.png]
hmm a pretty simple way to give pretty simple instructions.

Now if you want some more tips, look up what all you can do with drop-down boxes! w3schools is a good resource I'm assuming or just stick to google! For example one thing I learned is you can set the box to automatically select whichever report you want, without switching the order. This could be used for example, to auto-select the most popular report reason, without having to change any orders. Take your code, for example -
PHP Code:
<OPTION VALUE="Spamming" >Spamming 
and between the text in quotes, and the ">", add the word, without quotes, "SELECTED". So your code would become
PHP Code:
<OPTION VALUE="Spamming" SELECTED >Spamming 
[Image: pFwp8.png]
Purrfect.

Let me know if you have any questions guys. Also I would like to say as a little in before, I'm well aware none of the code is php, but I think the colors for it are awesome Toungue, also I'm sure this has been posted but I'm trying to go in depth and show all aspects of this option. Enjoy enjoy and let me know if you want me to add some more tips like making a certain choice auto-selected!
Find all posts by this user
Quote this message in a reply
03-26-2012, 02:01 AM
Post: #2
RE: [Tutorial] Drop-Down List Report vs Textbox Report
Anybody appreciate / use this tutorial?
Find all posts by this user
Quote this message in a reply
03-26-2012, 04:59 AM
Post: #3
RE: [Tutorial] Drop-Down List Report vs Textbox Report
Good and detailed tutorial. Thank You. Smile

[Image: 16mJ9bI]
MyBBsmsAPP | MyStatus | ProProfile
Visit this user's website Find all posts by this user
Quote this message in a reply
03-27-2012, 05:43 AM
Post: #4
RE: [Tutorial] Drop-Down List Report vs Textbox Report
(03-26-2012 04:59 AM)Yaldaram Wrote:  Good and detailed tutorial. Thank You. Smile

Ditto..

#
MyBB is the best forum software! Exclamation
Find all posts by this user
Quote this message in a reply
03-27-2012, 10:37 AM
Post: #5
RE: [Tutorial] Drop-Down List Report vs Textbox Report
Thank you for this tutorial. I've updated my forums with this. I think my mods will be happy to have this.
Find all posts by this user
Quote this message in a reply
03-27-2012, 06:51 PM
Post: #6
RE: [Tutorial] Drop-Down List Report vs Textbox Report
This user has been denied support. This user has been denied support.
IMHO its more useful. I personally use this. Keeping textbox makes report reasons long and spammy and in an uncommon and unprofessional manner. This keeps it short and good.

Z5T - Dynamic URL Shortener
My Plugins & Themes
Find all posts by this user
Quote this message in a reply
03-29-2012, 02:32 AM
Post: #7
RE: [Tutorial] Drop-Down List Report vs Textbox Report
(03-26-2012 04:59 AM)Yaldaram Wrote:  Good and detailed tutorial. Thank You. Smile
Thank you senior.
(03-27-2012 05:43 AM)seeker Wrote:  
(03-26-2012 04:59 AM)Yaldaram Wrote:  Good and detailed tutorial. Thank You. Smile

Ditto..
Ditto.
(03-27-2012 10:37 AM)MichaudĀ© Wrote:  Thank you for this tutorial. I've updated my forums with this. I think my mods will be happy to have this.
I sure hope so, and I'm glad somebody got use out of this tutorial Big Grin
(03-27-2012 06:51 PM)crazy4cs Wrote:  IMHO its more useful. I personally use this. Keeping textbox makes report reasons long and spammy and in an uncommon and unprofessional manner. This keeps it short and good.
Indeed good sire.
Find all posts by this user
Quote this message in a reply
04-04-2012, 02:41 AM
Post: #8
RE: [Tutorial] Drop-Down List Report vs Textbox Report
Thanks good tutorial. I have a question, I want to put an option of "other" that comes down when selected to enter the reason, how could I do?
Find all posts by this user
Quote this message in a reply
04-04-2012, 07:12 AM
Post: #9
RE: [Tutorial] Drop-Down List Report vs Textbox Report
i have made a small plugin for this, with admin panel to add options for report. other is not provided.

i will upload it soon.

With Regards and many thanks.
------------------------------------------
Visit this user's website Find all posts by this user
Quote this message in a reply
04-04-2012, 05:40 PM
Post: #10
RE: [Tutorial] Drop-Down List Report vs Textbox Report
(04-04-2012 07:12 AM)xxx Wrote:  i have made a small plugin for this, with admin panel to add options for report. other is not provided.

i will upload it soon.

The forum will go up also? I'm interested, especially for my question above Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication