Mod Name / Version - GraemlinPanel 6.2 Updated: Bug fixed to fix the issue of the "More >>>" appearing way below the other graemlins. Description - Allows you to limit the number of graemlins displayed and click "more" for a pop-up to select additional graemlins. Pre-requisites - none Author - JustDave - for discussions and bug reports come to www.ubbdev.com Credits - JoshPet, AllenAyers & Astaran for bug fixes Files Altered - admin/edittheme.php, admin/doedittheme.php, /languages/instant_markup.php, /templates/default/ubbt_instant_ubbcode.tmpl, ubbt.inc.php Database Altered - no New Files - graemlinpanel.php Any other info - Essential to keep page load times down and your layout clean if you have lots of graemlins
If you have to many instant graemlins you can use this to limit the number displayed on the page and provide a link to open a popup window to display all of them.
The zip and instructions are attached. Enjoy
Edit note: Updated javascript to work on a Mac. (01/13/2003)
Edit note: Updated javascript to work on a Mac. (again) Thanks Allen/Josh (01/14/2003)
Edit note: Updated javascript with Astaran's changes. Seems to be working well on Opera 7.0, Netscape 7.0, Mozilla 1.2, IE 6.0 and on a Mac with what ever it was that Josh was using... lol (01/19/2003)
Edit note: Updated the zip to fix an issue where the "More>>>" appeared way below the other graemlins. The more graemlins you had, the further below the other graemlins it appeared. - JoshPet (4/7/2003)
Also fixed minor display bug. Read through this thread for the fix or download this zip and follow the instructions again and change what's different.
I have a request -as if you don't already have enough on your plate
I would like to kill off the font color selection box and turn both the Graemlins and the instant ubb code into popup windows. It would really make redesigning the post windows easier since I think they both take up way too much space.
Josh that may be because I put that "if" statement in the onclick field. I know older netscape browsers have problems with that. The mac browsers may have the same problems. I'll add a function to the instant ubb template that will do the window opening and make the link reference that instead of trying to do it all from the link. That should make it work for you.
Josh I changed a couple things with the javascript. Let me know if it's working with a Mac here at ThreadsDev. If it does I'll change the instructions on setting this up.
LoL yes don't want to get a Mac user wound up... Here's a excerpt from an article I read recently. I find it to be very true... LoL
[] APPLE USERS TEND to be much more articulate and thoughtful in their flame mail than the typical PC user. Maybe it's that creative aura at work. They also tend to use their real names and e-mail addresses rather than hiding behind some bogus alias on Hotmail, so it's easier to give them credit for forthrightness and honesty.[/]
[] Apple's next commercial should be "I won't give up my Mac until they pry my cold, dead fingers off the keyboard". Just try to get a Mac user to switch to a PC and hear the howling. Macs show up in television and movies in grotesque unbalanced proportions to their actual usage in the real world.[/]
I took a look at the javascripts and changed them a bit. If you use IE4+ the graemlins gets insert at the current caret. I just tweaked the existing script from threads to work with the popup. I also enhanced the popup script to that you can define where it should be displayed on the screen (depending on the screen resolution.
Instructions: ubbt_instant_ubbcode.tmpl replace the function that shipped with this hack with: [:"blue"] myHeight --> window height myWidth --> window width adjust the values "+100" and "+50" to move the relative position of the windos (x and y axis). [/]
Sure, put it in. Putting smilies/text at the current carret doesn't work on all browsers cause this isn't "standard" javascript. Unfortunatly there is no way to make this work on all browsers. It should be insterted at the end of the textfield if the functions aren't supported.
Josh I added Astaran's changes here. Would you confirm that a Mac can still use the popup panel although it may not be the same as when used with a PC. If your still able to use the popup graemlin panel then I'll get these into the main zip.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.