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.
How many Graemlins do you have, and how many are you allowing to display before the Graemlin panel link appears (you can set it in the theme section of the admin menu)?
If you set the number of Graemlins to display to be equal to or higher than the number of Graemlins that you have the link will not show...
[]Dalantech said: How many Graemlins do you have, and how many are you allowing to display before the Graemlin panel link appears (you can set it in the theme section of the admin menu)?
If you set the number of Graemlins to display to be equal to or higher than the number of Graemlins that you have the link will not show... [/]
Thank you for answering....how can I set the number of Greamlins?
This happens to mine as well. I think that the java script that puts the code for the animated graemlin to the text box interferes with the gifs animating. This was still an issue for me when the panel was not installed and the graemlins were below the text box.
[]Smilesforu said: My panel animated gifs stop animating when I click on one. Is there a way to keep the working after I click? Other than refreshing? [/]
You can change 1 line in graemlinpanel.php and fix this.
Other than not typing the file name correctly (it should be graemlinpanel.php obviously), everything else looks the same. (I do have the "Close window" button added, but it doesn't affect anything when I remove it either.)
You're file worked like a champ! All I had to do was take out the script for the close button (I never added it).
I have another question for you since you know java infinately better than I do. Attached is a screen shot of my Graemlin panel. Notice how the word "instant Graemlins" is indented down a line, almost like there is a br or paragraph tag dropping it down. I've been driving myself crazy trying to figure out why the text drops down a line, but I don't see what's causing it. There's nothing in the language file that would do it, and I don't see anything in the graemlinpanel.php file that could cause it
I believe the reason behind not using the # character in the hyper link was because the Mac browser(s)? IE in particular??? wouldn't work. (or I could be completely wrong... lol) (not a first time either) LoL
Your probably installing this on an older version that does not have the get_input function. Try removing the get_input line and see if it works without it.
I installed on ubbthreads 6.2.3 as instructed and if I change my Max Graemlins to any number it still displays all the graemlins in the post page. If I leave the Max Gramlins in admin blank. it takes out all graemlins and displays the more>>> popup link..
I'd manually check your theme.inc.php file to see if you see the variable name and number stored in there.... make sure it's getting written to the file.
If all there is OK, then the problem is most likly with the modifications to ubbt.inc.php... most specifically the loop that lists them. I'd verify those steps were correct, maybe even start with a clean ubbt.inc.php and try it again, to narrow down the problem.
I checked what you said to check, yes the variable name and number were in there.
I then went back to original files, and did the modifications from scratch..
even took out panelgen because it doesn't work for me either.
anyway.. without panelgen now I get this error..
Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/home/southernsecrets/htdocs/ubbthreads/ubbt.inc.php on line 1669
Fatal error: Call to undefined function: getmicrotime() in /usr/home/southernsecrets/htdocs/ubbthreads/main.inc.php on line 16
I'm going back to all original files.. Hope you can help me with this.. This seems too easy to install to have these problems..
Has anyone attempted to modify this so it works with 6.3? I have tried unsuccessfully for 2 days... It works just fine... However it caused a problem in showflat.php when you're viewing new messages. It won't hop to the new message but only to the beginning of the thread. I miss this big time....
Some people read their stars..... I choose to write my own
Any clues what would cause the not going to the new message?? Gimme a clue and I'll try and fix it for us... Just remember.... try being the keyword....
Some people read their stars..... I choose to write my own
Thanks Astaran... I hadn't tried it since upgrading to 6.3b4 but who knows... Maybe I had something else in there too. Oh well... It's working under 6.3...
Some people read their stars..... I choose to write my own
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.