>>" appearing way below the other graemlins. Description - Al..."> >>" appearing way below the other graemlins. Description - Al...">
 
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
#232944 01/12/2003 7:31 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
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.
Attachments
64685-graemlinpanel.6.2.zip (0 Bytes, 181 downloads)

Last edited by JoshPet; 04/07/2003 3:13 PM.
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
oooohhh nice


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This is cool.

But - it doesn't work for me here either in IE or OmniWeb. No popup ever opens.

I didn't try installing myself, but does it work for everyone else here? Is this a PC only trick. A popup window ought to be compatible with mac?

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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.

Would you do the mod?

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I'll put that together sometime today.

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
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.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
[]I'll put that together sometime today. [/]

!!

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


Yuppers.

That did it.

You da man!

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Ok great!

I'll update the "how to" stuff in a moment.

Sponsored Links
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
you "killed" the panel generator link


Do you believe in love at first sight,
or should I walk by again?
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Ack.. sorry

What is the link? I'll add it back if you haven't already.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
its in ubbt.inc + the ubbcode template just need to add $showpanelgenerator

but it should be ok now


Do you believe in love at first sight,
or should I walk by again?
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Nice one Dave - thanks.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
[]Ok great!

I'll update the "how to" stuff in a moment. [/]

Not sure if you updated the instructions yet.

I installed this, and it's not working for me.

Also... my "More" link, ends up way down (not right below the graemlins).

I can't figure that out.... it's like it's looping throught the $graemlinlist .= "<br />"; step.

You can see what I'm talking about here.

I wonder if it's because I've got so many graemlins.

Anyway, this is awesome. Let me know if I need to update something to work with mac like you did here.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Hmmmm I may have broke something while fixing it for a Mac.

I'll take a look and see.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I see the problem. I'll post the fix in the morn. I'm headed to bed right now.


Well skip that.. here's the fix:

change this:

Code
 <br />				if ($i==6) { <br />					$i=0; <br />					$graemlinlist .= "<br />"; <br />				} <br />


to this:

Code
 <br />				if (($i==6) && ($gnum < $theme['max_graemlins'])) { <br />					$i=0; <br />					$graemlinlist .= "<br />"; <br />				} <br />


Night!

Last edited by JustDave; 01/14/2003 12:20 AM.
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
*bump*

Fixed.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks Dave, that fixed the line break problem.

The graemlins still weren't working for me on mac. So with Allen's help, I compare the graemlinpanel.php in use here with mine.

To make it work with mac.... these three lines have to come out of graemlinpanel.php
Code
<br />function void() {<br />return;<br />}<br />


This mod is cool.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I can't sleep. To much real world junk on my mind... LoL

I'll update the zip right now.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
You know I had wondered about that function when I added it in. Guess I should have gone with my first route of not doing so... lol

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Without it, there doesn't seem to be a difference.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I haven't added the change here for live yet... have you tested it elsewhere or is it just not working here?

I'll make the change shortly

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No it was working here.... but when I downloaded your zip.... the file had those three lines, so it didn't work at my site.

So it works fine here, now it works fine at my site since making that change.

It's live at my site.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Ahh ok well good. (*sigh of relief*) lol

Then we are all on the same page now. Cool.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah..... you should take those 3 lines out of the zip (for mac users everywhere) if you haven't already.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
yep, done.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
!

I'll have to try this one on my site (I have a few Mac users, so I was waiting for the fix as well).

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This will also be included in an upcoming soon to be released upgrade to "quick reply".
Testing now, will probably post an update later in the week.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
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.[/]

LoL the full article is here: http://www.theinquirer.net/?article=7166

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
First, there is this article at Ars Technica.

In the first paragraph the word "gay" is a hyperlink to a thread in the Ars forum. Read the whole thread:

Warning: Do Not drink anything while reading the article and especially while reading the thread. Your keyboard and or monitor will thank you...

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Now back to our regularly schedualed thread topic...

Any chance of making a pop up for instant UBB code (please!)?

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes and asap.

I was working on it some earlier. I'll be including a font color selector like the attachment. (image maps are a pain)
Attachments
64963-colorpanel.gif (0 Bytes, 44 downloads)

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks!

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
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).
[/]

Code
function openGraemlinPanel() { <br />    var myHeight = 400; <br />    var myWidth = 300; <br />	var myLeft = ((screen.width-myWidth)/2)+100; <br />	var myTop = ((screen.height-myHeight)/2) +50; <br />	graemlinWindow = window.open('{$config['phpurl']}/graemlinpanel.php','graemlinpanel','width='+myWidth+',height='+myHeight+',scrollbars=yes,resizable=yes,left='+myLeft+',top='+myTop); <br />    if (graemlinWindow.opener == null) graemlinWindow.opener = self; <br />    graemlinWindow.focus(); <br />} <br /> <br />function DoPopupSmilie(addSmilie) { <br /> <br />	insertAtCaret(document.replier.Body, ' '+ addSmilie + ' ' ); <br />	document.replier.Body.focus(); <br />	return; <br /> <br />}  


graemlinpanel.php

replace the existing updatePost Javascript function with:
Code
function updatePost(GraemlinCode) { <br /> <br />window.opener.DoPopupSmilie(GraemlinCode); <br />}  


I can't test this on a mac, so any feedback is appreciated.

Last edited by Astaran; 01/16/2003 2:30 PM.
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Thanks Astaran!

I was going to get back to working on allowing for the insertion anywhere by IE. I just couldn't get it working right when I was messing with it. LoL

Mac's insert at the end of the text.

I'll add your code into the mod if you don't mind and test it with Opera/Mozilla/Netscape/Explorer and see what happens.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, macs always insert at the end. I don't think there's any way around that. But I've gotten used to it.

Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
Thank you very much Dave And Astaran as well! It works great, Astaran's changes worked great as well, using IE 6, Netscape 7.


[:"red"]Lisa[/]
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
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.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
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.

Thanks again Astaran

Page 1 of 3 1 2 3

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)