Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 5 1 2 3 4 5
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
Mod Name / Version - The Panel Generator for UBB.threads 1.0

Description - This script allows users to create their own personalised Panel image, save it on HD and add link to post.
[]https://www.ubbdev.com/images/panels/9432-6456.png[/]

Features
  • Uses board's stylesheets
  • entirely wordletised thus available in all languages (right now english and french)
  • Uses censor list
  • numbers of chars allowed can be set-up in config file
  • checks refers to stop un-authorised websites using your CPU and bandwidth (we added hot-linking protection here)
  • uses UBB.threads smilies and codes in every language (other smilies can easly be added)
  • *hot* words that changes into images (kinda like smilies but for any image) unlimited number of images can be added to teh list
  • Users can upload their own image to add to panel and define a vertical alignement to match text
  • many different fonts and panel holders


Pre-requisites - server must have the GD library and compiled with ttfsupport

Author - Charles

Credits - Nekromantic, http://amg.sytes.net many thanks for having the original idea and letting me access his code and images.

Files Altered - ubbt_instant_ubbcode.tmpl (just for adding the link <img src="/threads/php/images/graemlins/wink.gif" alt="" /> )

Database Altered - none but some tables are added

New Files - many <img src="/threads/php/images/graemlins/crazy.gif" alt="" />

Known Bugs / limitations - the preview button does not seem to work under mozilla (for me at least)

Release Date - January 2003

Link - removed until updated

Demo - Right here on threadsdev <img src="/threads/php/images/graemlins/grin.gif" alt="" />

if you find ANY bug or problem please report them here <img src="/threads/php/images/graemlins/tongue.gif" alt="" />

Last edited by Charles; 01/11/2004 10:16 AM.

Do you believe in love at first sight,
or should I walk by again?
Sponsored Links
egor #228809 12/06/2002 5:07 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Looking really great Charles!

egor #228810 12/06/2002 5:09 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Just a question. Do you want to provide a link to the generator for testing so users of the site can have a go at it?

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
But you do have the possibility to demo it here on td, isn't that enough?

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
well there IS a link on all reply pages I don't really see where I could add some more


Do you believe in love at first sight,
or should I walk by again?
Sponsored Links
egor #228813 12/06/2002 5:32 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
LoL I hadn't noticed it there. I'm was looking for it in the menubar. LoL sorry

egor #228814 12/06/2002 5:43 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
here are *some* of the hot words: amd,intel,ibm,cyrix,infopop now I won't give out the whole list so some of you can get a surprise while making panels

if you have images that you think could fit in and be used by everyone just drop me a PM


Do you believe in love at first sight,
or should I walk by again?
egor #228815 12/06/2002 5:45 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
What happens if someone uses "Add to post" but doesn't actually use the image in a post? Do unused image files get cleaned up (somehow)?

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
no, nothing like this yet but it could be done without hassle, just search for the filename in the database and erase it if it does not exist. then each file is quite small (less than 5k) so I dunno if is really a big matter.


Do you believe in love at first sight,
or should I walk by again?
egor #228817 12/06/2002 6:00 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266

Sponsored Links
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
yeah something like that
tho you can choose other fonts and colors


Do you believe in love at first sight,
or should I walk by again?
egor #228819 12/07/2002 3:55 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I really like this..... and have made my "Rick Given Title" of Mr. Bug part of my signature.

[]https://www.ubbdev.com/images/panels/9439-12565.png[/]

I like it.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
thanks


Do you believe in love at first sight,
or should I walk by again?
egor #228821 12/07/2002 9:16 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191


Nikos
egor #228822 12/07/2002 9:17 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Very nice one Charles!!! Thumbs up big time!

Warm regards

Nikos


Nikos
Joined: Feb 2002
Posts: 67
Power User
Power User
Offline
Joined: Feb 2002
Posts: 67

egor #228824 12/07/2002 5:03 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768

egor #228826 12/07/2002 6:07 PM
Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610

egor #228827 12/16/2002 8:24 PM
Joined: Oct 2000
Posts: 34
bmh Offline
Power User
Power User
Joined: Oct 2000
Posts: 34

egor #228828 12/17/2002 7:19 AM
Joined: Oct 2000
Posts: 34
bmh Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
by the way .... is it possible to know the required library to be installed in the server to run this hack ??

I mean which type of TTF library ?? is it freetype2 ??

and what about GD version ?? is it required to be 2.X.X ??


I am intersted to know about this information to put my server standbay and also i am crazy to know when U can post this hack for the users ....... at less give as hint


craZy of this hack which i feel its more than perfect



[]https://www.ubbdev.com/images/panels/5892-9516.png[/]

kog #228829 12/17/2002 1:26 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
this hack is free but you are welcome to make a donation if you wish


Do you believe in love at first sight,
or should I walk by again?
kog #228830 12/17/2002 1:29 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
in order to work the hacks needs GD 1.6.2+ and freetype (gd and PHP must be compiled with ttf support)

I haven't tried on GD2 but I *guess* it should work without too much of a problem.

About bugs I am still trying to get the preview to work with mozilla which is harder than I thought

Last edited by Charles; 12/17/2002 1:35 PM.

Do you believe in love at first sight,
or should I walk by again?
egor #228831 12/19/2002 5:26 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
When will you provide instructions so the rest of us can install this hack?

[]https://www.ubbdev.com/images/panels/9813-4245.png[/]

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
when I have finished the Admin section, documentation and am happy with the overall aspect


Do you believe in love at first sight,
or should I walk by again?
egor #228833 12/19/2002 3:36 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Hi Charles.... This looks great! I was wondering... Is there going to be a way where we can allow only certain user groups access to this hack? That would be a great perk for donating members to have.... If it's not in the plans let me be the first to suggest it while you're still working on it's release......... Thanks!


Some people read their stars..... I choose to write my own
#228834 12/19/2002 4:03 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
yes this is possible eventhough it not integrated in the hack at present time (I will add it as soon as I find some time)

the way we did it here is the link is only shown to logged in user by checking the user group (try loging out to see) but I will add an other group check in the script itselft to prevent un-authorised users to access the page.


Do you believe in love at first sight,
or should I walk by again?
egor #228835 12/19/2002 4:08 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Awesome!!!!! Glad I mentioned that before ya finished....

[]https://www.ubbdev.com/images/panels/9936-7963.png[/]


Some people read their stars..... I choose to write my own
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
After having some thoughts I will most probably release a first version next week for those of you who are interested in trying it out.


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Excellent!! Can't wait.... I know the folks on my site will love it.........


Some people read their stars..... I choose to write my own
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Charles,

I would definitely love to try it out. The most interesting part would be to install and compile (!!!!!) the prerequisite TTF library with PHP on my good old Windows 2000 box.

I will write down instructions for those in the same situation as I am (Windows environment I mean)

Keep me posted if you need me to test it.

Warm regards

Nikos



Nikos
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
nikos no need to do this the GD library is already included in the windows PHP distribution you just need to include/unquote it in the php.ini file.

let me know if you need some help.

right now I am not with my computer so I don't have all the files which means the relaese might be in early january when I get back


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Merci Charles

Can't wait!!!!!

Warm regards

Nikos


Nikos
Joined: Oct 2000
Posts: 34
bmh Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
Hi Charles,

I have question about this script ,, is it possible to use it with another languages ?? for example arabic ? as u know Arabic language using Right-To-Left layout and im not sure if freetype & GD supporting arabic language


so what i mean when the script passing parameter to the library , how to change the UNICode of that string and convert it to other language character set ??


Thank you in advance
BMH

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
hmm interesting question,

I will check after new year and will let you know


Do you believe in love at first sight,
or should I walk by again?
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Love the look... makes for interesting possibilities...

egor #228844 01/03/2003 3:12 AM
Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
[]yes this is possible eventhough it not integrated in the hack at present time (I will add it as soon as I find some time)

the way we did it here is the link is only shown to logged in user by checking the user group (try loging out to see) but I will add an other group check in the script itselft to prevent un-authorised users to access the page. [/]

Is that why I cant see any such link (to create a panel) and try this out? I am logged in though cant find anything in the Reply page!


Yors Truly

Who? Me? Worry?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think it got lost in the 6.2 upgrade here.

We need to remind JustDave or Allen to add the link back. *Nudge* *nudge*

Daine #228846 01/03/2003 10:21 AM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
This is a really cool hack. Any idea on a release date for it?

mata #228847 01/03/2003 10:56 AM
Joined: Jun 2001
Posts: 176
Member
Member
Offline
Joined: Jun 2001
Posts: 176
yup whats the scoop here , this getting released soon ?

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
probably some time next week


Do you believe in love at first sight,
or should I walk by again?
egor #228849 01/03/2003 5:11 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
WB Charles!


Some people read their stars..... I choose to write my own
egor #228850 01/03/2003 10:46 PM
Joined: Jun 2001
Posts: 176
Member
Member
Offline
Joined: Jun 2001
Posts: 176
Cool deal

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

Me wants this.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I've gotten a few PMs from people who seem confused by my signature - the image is dynamic and displays your information only for you (as is my avatar). The text on the last line is a random quote from several of my favorite movies.

The confusion has led some people to think that I have published their IP address in my sig for some reason.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Cool Michael I would love to know how to do that one.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Well, the panel graphic inspired me. I had a random quote signature that I developed a couple months back. It would take quotes from my favorite movies and translate them into a graphic image which would randomly change whenever someone was reading a message. The graphic was kind of plain, I always planned to go back and make it look nicer - the panel thing just gave me the inspiration to do it in a similiar manner.

So, I wrote my own panel generator and combined it with my random sig stuff. The "hard" part was making the panel fully dynamic in size and centering nonproportional text.

I'm planning on making it so people can add their own text for signatures and avatars.

gailg #228855 01/04/2003 10:01 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL was referring to freaking everyone out by telling them their ip info Kinda cool.

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Well, thats easy; since the image loads from my server I know the referring information for the person.

Joined: Jun 2001
Posts: 176
Member
Member
Offline
Joined: Jun 2001
Posts: 176
I just looked while I was reading & thought that ip looked like mine LOL hey it is it is ..

haha funny people would pm you thinking everyone is seeing there ip's too funny

Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Whats really funny is that since posting my new signature code on Friday (less than three days); the sig has served up over 36,000 impressions! And it's already gone international and shown up on boards that I can even read! lol

Like I said, I might start running paid advertising thru the network. lol

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
at Last!

please check my first post for a link.


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
Thanks Charles for releasing this - nice one.

Could be very useful, as long as users do not overuse it - one of those features, where at times, it is good not to announce it, but allow the more observent ones to discover it, and then have fun, watching others say... 'How did you do that?'

Thanks again.

Ian



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
[]Like I said, I might start running paid advertising thru the network. lol [/] don't forget my 20%


Do you believe in love at first sight,
or should I walk by again?
egor #228862 01/08/2003 2:32 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks Charles. Will install this one tonight.


Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
^^Yeah what Josh said. I will give it a go tonight. Looks really cool

mata #228864 01/08/2003 4:50 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
Hmmmm....dunno if I'm doing something wrong but I keep getting the following message when I upload ubbt.inc.php:

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /home3/www/piniononline/ubbthreads/ubbt.inc.php on line 1724

Fatal error: Call to undefined function: getmicrotime() in /home3/www/piniononline/ubbthreads/main.inc.php on line 16

mata #228865 01/08/2003 5:56 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
hmmm strange, maybe it was modified for an other hack

in your original file you have:
Code
 <br />global $config,${$config['cookieprefix']."w3t_language"},$thispath,$tempstyle,$ubbt_lang,$debug,$dbh;


add ,$user at the end which should give you something like
Code
 <br />global $config,${$config['cookieprefix']."w3t_language"},$thispath,$tempstyle,$ubbt_lang,$debug,$dbh,$user;


then search for
Code
 <br />					$graemlinlist .= "<br />"; <br />				} <br />

and add underneath
Code
 <br />			if( (preg_match("/-1-/",$user['U_Groups'])) or (preg_match("/-2-/",$user['U_Groups'])) or (preg_match("/-3-/",$user['U_Groups']))) { <br />			$showpanelgenerator="<p align=\"center\"><a href=\"javascript: x()\"  onclick=\"window.open('pano/popup.php','panelpopup','Width=510,height=320');\">Panel Generator</a></p>"; <br />			}else{ <br />			$showpanelgenerator=""; <br />			} <br />

there let me know how it goes


Do you believe in love at first sight,
or should I walk by again?
egor #228866 01/08/2003 6:14 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
Well..it sort of works now. The problem arises when I go to post the pannel in my post. I get the following error when I press the "Add to Post" button:

Warning: Undefined index: coul in /home3/www/piniononline/ubbthreads/pano/preview.php on line 47

Warning: Undefined index: fontcolor in /home3/www/piniononline/ubbthreads/pano/preview.php on line 48

Warning: Undefined index: police in /home3/www/piniononline/ubbthreads/pano/preview.php on line 49

Warning: Undefined index: texture in /home3/www/piniononline/ubbthreads/pano/preview.php on line 50

Warning: Undefined index: bordure in /home3/www/piniononline/ubbthreads/pano/preview.php on line 51

Warning: Undefined index: epaisseur in /home3/www/piniononline/ubbthreads/pano/preview.php on line 52

Warning: Undefined index: texte in /home3/www/piniononline/ubbthreads/pano/preview.php on line 53



File has been generated and [image] tags should have been added to your post

If this is not the case please add the code provided below to the text zone


mata #228867 01/08/2003 6:19 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
what webserver do you use ? apache or iis ?
also is the panel created or not ?


Do you believe in love at first sight,
or should I walk by again?
egor #228868 01/08/2003 6:22 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
Apache

The pannel is created but not posted properly it seems.

mata #228869 01/08/2003 6:29 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
hmmm
I thought that setting would work on all server...

what you can do is remove line 47 to 53 and try again maybe it will work for you


Do you believe in love at first sight,
or should I walk by again?
egor #228870 01/08/2003 6:34 PM
Joined: Jun 2002
Posts: 63
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 63
Works great now Charles. Also had to fix a setting for the http address for the pannels folder. Forgot to add a "/" at the end of the address and that's why it wasn't inserting the proper web addy.

Thanks for all your hard work and patience helping me

Last edited by pinion; 01/08/2003 6:46 PM.
mata #228871 01/08/2003 6:40 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
you need these lines if cgi.force_redirect is switched on in your php.ini


Do you believe in love at first sight,
or should I walk by again?
egor #228872 01/08/2003 7:59 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Hiya Charles.... I've got it working.... However... I get the following errors when clicking add to post.....

Warning: Undefined index: coul in /var/www/html/threadsbeta/pano/preview.php on line 47

Warning: Undefined index: fontcolor in /var/www/html/threadsbeta/pano/preview.php on line 48

Warning: Undefined index: police in /var/www/html/threadsbeta/pano/preview.php on line 49

Warning: Undefined index: texture in /var/www/html/threadsbeta/pano/preview.php on line 50

Warning: Undefined index: bordure in /var/www/html/threadsbeta/pano/preview.php on line 51

Warning: Undefined index: epaisseur in /var/www/html/threadsbeta/pano/preview.php on line 52


Now, although I get these errors it does add the code to the post and works perfectly once you post.. But the popup.php doesn't go away and remains with those errors.... Any ideas??


Some people read their stars..... I choose to write my own
#228873 01/08/2003 8:17 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
oops.... sorry, also.... how the heck can I change who accesses the thing?? I found in the ubbt...... where the number groups are but changing them seems to have no affect.....Only admin can see it right now......


Some people read their stars..... I choose to write my own
#228874 01/08/2003 8:27 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
ok....sorry Charles.... Got that user group thing working.... Just the error from my first post and I'm good to go live..... Too cool!


Some people read their stars..... I choose to write my own
#228875 01/08/2003 8:40 PM
Joined: Jun 2001
Posts: 176
Member
Member
Offline
Joined: Jun 2001
Posts: 176
Good stuff I'll give it ago tonight

#228876 01/08/2003 8:40 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
ackkkkk trying the fix you suggest to pinion.... sorry.....


Some people read their stars..... I choose to write my own
#228877 01/08/2003 8:54 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
k..... deleting those lines fixed my problem too.... Thanks Charles!! testing it for an hour then moving it to the site.... THANKYOU!


Some people read their stars..... I choose to write my own
egor #228878 01/09/2003 5:39 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
OK I modified slightly the preview.php file in order for the script to work on every server.

it is included in the ZIP or you can download it from this post

let me know how it goes.
Attachments
64208-preview.php.txt (0 Bytes, 144 downloads)


Do you believe in love at first sight,
or should I walk by again?
Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
I have just installed this and LOVE it cant stop playing


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
egor #228880 01/09/2003 4:24 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
Okay the panel generator link was added back here

enjoy


Do you believe in love at first sight,
or should I walk by again?
egor #228881 01/09/2003 5:16 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
okay, so who put in the face when you type TEST and who is it?

:lol:

[]https://www.ubbdev.com/images/panels/9464-6447.png[/]

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
lol this is navaho


Do you believe in love at first sight,
or should I walk by again?
egor #228884 01/09/2003 7:46 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Well, since the panels are being stored versus made on-the-fly; storage might become an issue at some point if you have alot of people using this feature.

I can see where after a few months you might have a directory full of images!

There's also a couple other goodies in the keyword list! lol

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This is great. Thanks Charles. Got it all installed.

All seems fine, panels are generated, but the preview image appears as a broken link for me.

I've tried your updated preview file. And I've played with permissions on default.png and static_cache.php. Both are currently 666.

Any ideas?

Thanks for this.

Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
Josh are you using win2k ?


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No Linux.

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Charles,

A great modification indeed!!! Well done and thanks!

[]All seems fine, panels are generated, but the preview image appears as a broken link for me.[/]

Unfortunately for me the panels are not generated and I do get the same broken link error like Josh does. It all seems to work fine but...

I am running IIS on Windows 2K advanced server

Thanks for this

Warm regards

Nikos


Nikos
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
Okay try the following for those who don't have the preview, copy the link of the preview image into your navigator so to get preview.php?blablabla and see if you get any errors or a blank page.


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
Check your paths in the config file.

I had a similar problem, but tweaked the file and all is okay now.

The file should lokk like this...

define("_URL",$config['phpurl']."/pano/"); //URL to the Pano Folder

**** this is simply the path from the root directory of threads - normally just /pano/ if you added it to say /threads/



define("_PATH",$config['path']."/pano/"); //Path to the Pano folder

**** again the path from threads directory

define("_PATHPANO","/the/full/path/from/server/root/wwwthreads/images/panels/"); //path of dir where panels are saved
define

**** this the full path from the server root.


("_URLPANO","http://www.eaxample.com/wwwthreads/images/panels/"); //URL of dir where panels are saved

**** this is the full URL.

define("_wrongrefer",$config['path']."/pano/refer.png"); //path of the wrong referer image


*** this is from the root of the threads directory.


Hopefully this should then work - it does for me now - so hopefully you should be okay as well.

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
well you can always make them on the fly if you think its better but it better be your own server lol

from what I remember I think its more than 15000 panels in less than 10megs

I plan on doing a utility to clean unused panels but haven't had time yet.


Do you believe in love at first sight,
or should I walk by again?
egor #228892 01/10/2003 9:24 AM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I know the problem well! Never enough time and darn if my body doesnt just shut down when I try to force it to code nonstop all night long!

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Thanks a lot Canvey and Charles. I will try it as soon as I can and let you know.

Warm regards

Nikos


Nikos
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Just a word of caution. During testing I experienced a server outage that lasted about 20 minutes. When I could finally get back into my server my HTTPD processes were running at 500MB each! While I could PING my server, the websites were down and I could not access SSH. At the time of this outage, I was testing the code here.

I waited a while and then reloaded onto my primary message boards last night. This morning my servers experienced a 3 hour outage (all because I took a nap 10 minutes before it started!). This was a hard crash.

There are no server logs to tell me what might have happened. Oddly enough, the site with the generator on it has no long entries at all for today while my other sites logs are fine.

I suggest that if you have a HEAVY server load you be cautious as this script caused the only outage my server has had (and mine is a loaded Dell with SCSI RAIDs, 1.5GB of ECC memory and the works).

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
True, image manipulation can be very heavy on system resources but I've never exeperienced a crash myself with the auto update function switched off.

I would be interested if you could investigate this more

now I am sure the load could be reduced by removing smilies and images in the panel and working in lines instead of words.


Do you believe in love at first sight,
or should I walk by again?
egor #228896 01/10/2003 3:45 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I had AutoUpdate set to the default. And, truth is, I have no data to support just where the crash is occuring. I only base this word of caution on the fact I had two server problems after installed this mod when I've never had an outage on my system before.

Also, my panel below s Dynamic and served up over 30,000 times a day (last check), so I wonder if the problem has more to do with file I/O than the graphics portion.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
if you check my code each word is a differente image, that might also be a reason for high load.

I suppose your sig does this in 3 go (1 per line)

I don't think the I/O has something to do with high load since the resource intense bit is the image generation.


Do you believe in love at first sight,
or should I walk by again?
egor #228898 01/10/2003 3:53 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Correct, each line is an image.

Its hard for me to say what kind of load my server was under at the time of the crash. MTRG MySQL and Traffic data shows it to be about normal (not excessively high).

Also, looking in my panels directory I only have 63 panels. Once a panel is made, there hsouldnt be any further problems. I wonder if there isnt something that causes a problem in the way the panel code is called - i.e. good error recovery in the event you get passed some bad data?

I can try and take a look when I can find some time.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
thats a good question, normally the function should be able to handle any kind of data but then who knows.

if you find anything strange please let me know


Do you believe in love at first sight,
or should I walk by again?
egor #228900 01/11/2003 12:20 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
[]Okay try the following for those who don't have the preview, copy the link of the preview image into your navigator so to get preview.php?blablabla and see if you get any errors or a blank page. [/]

I still get a broken preview image.

When I copy the img src link of the broken preview image to the address bar, I get a blank page.

Otherwise this is cool.

My users have requested "Cartman" from soutpark in future addiions.

Daine #228901 01/11/2003 12:23 AM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Are the png's being created in your panels directory? (Make sure you made one that is listed by the URL). In that directory should be all your PNGs.

gailg #228902 01/11/2003 12:24 AM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
I'm going to try and load this onto a test server and then run a script to call it repeatedly to see what it does. My server is back online and no problems (removed the link to the generator); but I cant see loading it again until I know more about what caused my outages.

gailg #228903 01/11/2003 12:25 AM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Is it not on this site anymore?

gailg #228904 01/11/2003 12:27 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The pngs are being created... because they work once you add them to the post. It's just the preview that doesn't work.

I'm testing this with a small group of paid supporters. I'll probably leave it limited to that group as a "perk" of supporting us. That should minimize server load for us.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
yeah I think I know the bug try the preview php file enclosed here.

It all depends on how your webserver handles the get function, I haven't found a fool proof way yet.

and the link is back here
Attachments
64456-preview.php.txt (0 Bytes, 172 downloads)


Do you believe in love at first sight,
or should I walk by again?
egor #228906 01/12/2003 8:58 AM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Strangest thing on my site... The preview was working just fine... I hadn't messed with it in a couple days and was using it this morning and guess what... The preview feature isn't working.... I was trying to figure out why Josh's wasn't working because we use the same type of setup and now it's got me too.... Grabbing the new preview.php file to try it out....


Some people read their stars..... I choose to write my own
#228907 01/12/2003 9:10 AM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
That didn't help the problem Charles.... I am racking my brain trying to think if I changed something that would have resulted in the preview to stop working but I just haven't made any changes to the site since installing that the day you released it. It worked perfectly for a few days and then? I will keep thinking back and maybe recall a change I made.....

[]https://www.ubbdev.com/images/panels/9936-2150.png[/]


Some people read their stars..... I choose to write my own
#228908 01/12/2003 9:11 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
could you give me a link to the popup.php file ?


Do you believe in love at first sight,
or should I walk by again?
egor #228909 01/12/2003 9:30 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Charles. Mine is working now.
Thank you... users love it.

Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239


Some people read their stars..... I choose to write my own
Daine #228911 01/12/2003 10:11 AM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
How'd ya fix it Josh?? The new file work for you??


Some people read their stars..... I choose to write my own
#228912 01/12/2003 10:17 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, the new preview file worked for me.

Daine #228913 01/12/2003 10:20 AM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
That is too weird.... hmmmm It's still working on my test site just fine.... I'm gonna grab the original zip and see if that helps....


Some people read their stars..... I choose to write my own
#228914 01/12/2003 10:29 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
storm
for me the preview works

http://stormchat.com/ubbthreads/pan...hello&bordure=000000&epaisseur=1

are you using mozilla ?


Do you believe in love at first sight,
or should I walk by again?
egor #228915 01/12/2003 10:42 AM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Hey Charles, thanks..... I tried it with Netscape and it worked perfectly so I cleared my cache and all temporary stuff and it's now working with explorer just fine.... Weird.... I just cleared all that yesterday...

Maybe I'm on here more than I thought....

Thanks again and my users love this too.....


Some people read their stars..... I choose to write my own
egor #228916 01/13/2003 5:52 PM
Joined: Oct 2000
Posts: 34
bmh Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
Hi Charles,

First of all, thank you for this perfect hack.

second I have 2 things which i cant solve it untile now

1. when i try to generate the panel it's look that the Classic image is not merging with the text image correctly !! it seem that there is problem with transperancy of the classic images ??!!

have a look at this which was created from my site (Server) :

[]https://www.ubbdev.com/threads/php/uploads/64847-mysite-pano.png[/]


and look at the same image and font which was created from this site :

[]https://www.ubbdev.com/images/panels/5892-7059.png[/]

what do u think that is from ???



2. The second problem is i cant generate the panel with another language such as Arabic ?? it's return rubish characters when i try to write in Arabic language ?? is there any way to do that ??


Thanks alot ...
BMH
Attachments
64847-mysite-pano.png (0 Bytes, 93 downloads)

kog #228917 01/14/2003 6:21 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
hmm, what version of the GD library do you use ?

for arabic you must find and add an arabic TTF font. Since the writing is from right to left you will probably need to switch off the other fonts.


Do you believe in love at first sight,
or should I walk by again?
egor #228918 01/14/2003 5:17 PM
Joined: Oct 2000
Posts: 34
bmh Offline
Power User
Power User
Joined: Oct 2000
Posts: 34
Hi again,


This is my GD info :

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled

and i am using RedHat 7.3

And about Arabic I have added more than 10 Arabic TTF Fonts but still it's not working with me ... and what do u mean to switch off the other fonts ??

can u give me the basic idea on how the script send the Text string to GD & Freetype ?? I think the main problem is one of the above library is needing to convert the text string as Arabic Unicode before sending it to the place which create the image ... so we have to find which library doing this process .. coz i believe that by sending the string from the browser it using the Default encoding characeter and it's mean sending rubish characters coz what is wrote in my Text Area is not what will be in the Preview image!!

any help about this ??

Thanks in advance
BMH

egor #228919 02/04/2003 6:56 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
ugh... just killed a busy threads site with this one.... it quit working period smirk I think ~50 people attempted it before I got the config file updated completely

I am still waiting for the processes to stop so I can restart it.


- Allen wavey
- What Drives You?
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
So Allen, This was related to you changing files around while people were using it for sure?? Got this installed on my site and would hate that to happen.....


Some people read their stars..... I choose to write my own
#228921 02/04/2003 11:08 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Digging further, I think it was partly related to their php not supporting freetype... have ~30 people attempt to make a panel without it and you'll see what I mean


- Allen wavey
- What Drives You?
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
I think I'll take your word for it....


Some people read their stars..... I choose to write my own
#228923 03/10/2003 8:49 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
sorry was away for a while anyone need help?

about arabic you need to add something in the header to change the direction of writing but having never done it before I am not quite sure what it might be


Do you believe in love at first sight,
or should I walk by again?
egor #228924 03/17/2003 6:58 PM
Joined: Oct 2002
Posts: 26
User
User
Offline
Joined: Oct 2002
Posts: 26
a bug?

a little problem ..........
the popups have a wrong stylesheetlink,
linking to "usedefault.css".

what is wrong?

mfg
heinz

Ohton #228925 03/22/2003 12:44 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
hmmm, do you use cookies or sessions?

also are you properly logged in?


Do you believe in love at first sight,
or should I walk by again?
#228926 03/22/2003 2:01 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Getting an error in the preview... when viewing the URL and opening in a browser this is what it says:

Fatal error: Call to undefined function: imagettfbbox() in /home/mijeeps/public_html/forums/pano/panneau.inc.php on line 194

GD2 is installed

egor #228927 03/23/2003 7:59 AM
Joined: Oct 2002
Posts: 26
User
User
Offline
Joined: Oct 2002
Posts: 26
i'm logged in with cookies..........

palmen #228928 03/23/2003 10:40 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
msula, I think that means you do not have all the correct modules installed for your PHP installation, usually its freetype or TTF support is nor correctly mapped with PHP/freetype. please conctact your host


Do you believe in love at first sight,
or should I walk by again?
Ohton #228929 03/23/2003 10:43 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
patt do you have a guest account I could use on your forums?

also would you mind sharing your translations so I could include it in the zip?


Do you believe in love at first sight,
or should I walk by again?
egor #228930 03/24/2003 9:40 AM
Joined: Oct 2002
Posts: 26
User
User
Offline
Joined: Oct 2002
Posts: 26
Charles i send u a PM with all infos.....

Ohton #228931 03/24/2003 10:42 PM
Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
hey, is this working now without any bugs?

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Forgot to update my problem...

I recompiled PHP with freetype and such and everything works great

palmen #228933 03/24/2003 11:23 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
[]msula said:
Forgot to update my problem...

I recompiled PHP with freetype and such and everything works great [/]good news
usually people who experience problems with this script don't have all the necessary plugins installed.


Do you believe in love at first sight,
or should I walk by again?
Ohton #228934 03/24/2003 11:36 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
[]patt said:
Charles i send u a PM with all infos..... [/]patt is your problem solely with the stylesheet?

I just logged in using mozilla and ie and changed my style sheet on both and got the right colors for the popup (also the preview seems to work on mozilla)

for the default image you might want to modify the parameters in the config file to match the one you used (normally the default image is automatcly generated based on these settings)

as for the translation its in your language/german directory and I won't have access to it, please sent it to me by email.

please give me more informations on what might be wrong.


Do you believe in love at first sight,
or should I walk by again?
egor #228935 03/25/2003 12:13 AM
Joined: Oct 2002
Posts: 26
User
User
Offline
Joined: Oct 2002
Posts: 26
i find out....
it's a problem with use default
if u edit in Main Configuration>>>>Display preferences, number of shown threads, languages, colors... >>>>Which style sheet (skin) do you want to use for your display?>>>>"Always use default"
after the program is looking for a usedefault.css *gg*

greetings

heinz

Ohton #228936 03/25/2003 12:39 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
lol
ok
need to take a look at this will keep you posted


Do you believe in love at first sight,
or should I walk by again?
egor #228937 03/25/2003 1:35 AM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
got it working, but don't see it on this site anymore.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
yeah I think it got scrapped during an update, will get it added back.


Do you believe in love at first sight,
or should I walk by again?
egor #228939 03/25/2003 8:10 AM
Joined: Oct 2002
Posts: 26
User
User
Offline
Joined: Oct 2002
Posts: 26
the german language files
with bigger popupwindows

mfg
patt
Attachments
74223-pano-v1.german.zip (0 Bytes, 35 downloads)

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
thanks, will include your translation to the release.

I don't get why you included popup.php and static to your zip file since the size of the window is only decided by the javascript. Also static is made depending on each user's settings in the config file and what images are accessible so it will gwt overwritten anyway.

the fix for the css is actually very easy, will try to do it sometime today.


Do you believe in love at first sight,
or should I walk by again?
egor #228941 03/25/2003 9:08 PM
Joined: Oct 2002
Posts: 26
User
User
Offline
Joined: Oct 2002
Posts: 26
incl. the popup.php because i change inside the popupwindow size for deepbluedev2.css ....the new static_cache.php is importantly for the alphabetical order of the panels in the popup..........

mfg
heinz

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
I've been successfully using the Panel Generator on 6.2.1 for a couple of months. Two days ago I upgraded to 6.2.3 and since then, the Panels being generated show up as reversed horizontally (the writing and image are backwards). The image preview no longer works, but an image *is* generated. Also, I get an error message: Notice: Undefined variable: p in /pano/panneau.inc.php on line 523

Here's an example: []http://www.cynicaldog.com/wwwthreads/uploads/panels/2-1453.png[/]

Any ideas about this? All I can think of is that it's related to my upgrade, but perhaps that's just a coincidence.

jbiz #228943 04/01/2003 8:50 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
lol

I am right now in the process of leaving hong kong for europe so I will solve all these issues during the WE

thanks


Do you believe in love at first sight,
or should I walk by again?
egor #228944 04/04/2003 11:27 AM
Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
To follow-up... my panels are now working properly again and I didn't change anything. Perhaps my hosting company was doing some work on the server or something. Nevertheless, I don't need a mirror to read panels anymore

jbiz #228945 04/11/2003 11:55 AM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
ok I remember now
this is an april 1st easter egg I think


Do you believe in love at first sight,
or should I walk by again?
egor #228946 04/12/2003 5:46 PM
Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
I was wondering, in the panneau.php file, is this right? or is this a corrupted file?

function OterAccents($chaine) {
return( strtr( $chaine,
"ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ©",
"AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNnc" ) );

I ask, as I don't quite have it up and going right....

I get the panel generator to pop up, everything looks good, but the moment I change anything the preview gets a broken image link. And nothing passes through to the message.


Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
yes this line is correct it is for fonts that do not have accents in them

usually the no preview error is due to some software missing in your php installation.

Are you certain that you have the GD extension and TTF support installed?


Do you believe in love at first sight,
or should I walk by again?
egor #228948 04/13/2003 3:56 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Our preview doesn't work here.

Any ideas? []https://www.ubbdev.com/threads/php/uploads/panels/9439-11588.png[/]

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
The preview does not work on my site either.

HOWEVER I think this is due to it calling the PHPURL twice. If you click on the url of the preview on your site you shall see what I mean. At least thats what I have found

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Not sure I follow...

I didn't install it here (I think Charles or Allen did) but do I need to tweak a setting?

Daine #228951 04/13/2003 12:00 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Nope yours works here. I was refering to the post before. Mine does the same thing as his site. The preview does not work. When I click to the non working image to see the URL. I reveal it has the base PHPURL twice. I double checked the setting 3 times and they are right. The panel program works and inserts an image just the preview seems to be calling the URL twice.

I just checked it again on my site and the preview is working but it was doing what I meantioned the day before. Weird to say the least.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The preview doesn't work here for me.

Daine #228953 04/13/2003 12:09 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
And it worked for me today although the one on my site did not work yesterday but does today. When my site was not working I checked and found the that double URL problems.

Could be a browser interaction error with the program?

Daine #228954 04/13/2003 12:13 PM
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
yeah it doesn't work I'll have to take a look maybe the server configuration was changed for some reason. I did change any files sincve it was installed here.


Do you believe in love at first sight,
or should I walk by again?
egor #228955 04/13/2003 12:20 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL but the preview works for me now so hense browser interaction?

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

Didn't work for me on Mac or PC.

Daine #228957 04/13/2003 12:57 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Interesting I just tried it again and it does not work here

It worked an hour or so ago. Like I said very weird but maybe it is server as I just checked my site and that works now.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Another Unrelated Question Charles.

I put this on a Win2k machine.... and all seems fine, but I get this:

Fatal error: Call to undefined function: imagettfbbox() in C:\All web sites\PV Corner\pano\panneau.inc.php on line 194


Am I configured wrong.... or am I missing something?
Thanks for the help.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
do you use apache 2?
this error is due to php not having the ttf handler installed but if you use the GD library provided with apache it should work. What is your configuration?


Do you believe in love at first sight,
or should I walk by again?
egor #228960 04/13/2003 3:03 PM
Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
[]Charles said:
yes this line is correct it is for fonts that do not have accents in them <img src="/threads/php/images/graemlins/smile.gif" alt="" />

usually the no preview error is due to some software missing in your php installation.

Are you certain that you have the GD extension and TTF support installed? [/]

No I'm not....

I just checked, and as I'm using a stand alone php install, (of course it didn't have the gd module going), I re-installed php with-gd and that did not correct the problem.

I looked at my apache info and freetype 1.3.1 is installed.


Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
wwould you have a link for your phpinfos?


Do you believe in love at first sight,
or should I walk by again?
egor #228962 04/13/2003 9:47 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
[]Charles said:
do you use apache 2?
this error is due to php not having the ttf handler installed but if you use the GD library provided with apache it should work. What is your configuration? [/]

Not sure... let me ask the guy who runs the server to check out this thread. Thanks.

Daine #228963 04/13/2003 10:51 PM
Joined: Jun 2002
Posts: 62
Power User
Power User
Offline
Joined: Jun 2002
Posts: 62
[]JoshPet said:
[]Charles said:
do you use apache 2?
this error is due to php not having the ttf handler installed but if you use the GD library provided with apache it should work. What is your configuration? [/]

Not sure... let me ask the guy who runs the server to check out this thread. Thanks. [/]

Josh put the generator on my server and I have a win2k with IIS. I have all of the permissions set for the IUSER for the folder. I have a link for myphpadmin, if you need that just send me a PM. It looks like all of the DB files were created.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Looks like something we might be missing is a library that's part of Apache (thw web server software) and not of the panel generator itself.

I know it's your server... did you install Apache yourself?

Daine #228965 04/13/2003 11:06 PM
Joined: Jun 2002
Posts: 62
Power User
Power User
Offline
Joined: Jun 2002
Posts: 62
I am not use Apache yet I still have to figure that one out but I just haven't had the time so I am just using IIS that came with Windows 2k

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
well the panel generator uses the GD library could you have a file with the following if you have php 4.3 or more.
Code
 <? gd_info(); var_dump(gd_info());?> 


and give me a link to it? thanks


Do you believe in love at first sight,
or should I walk by again?
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
ok just looked at your php infos and freetype is not linked to PHP/GD you might want to recompile php with ttf support


Do you believe in love at first sight,
or should I walk by again?
egor #228968 04/14/2003 2:46 PM
Joined: Jun 2002
Posts: 62
Power User
Power User
Offline
Joined: Jun 2002
Posts: 62
[]Charles said:
well the panel generator uses the GD library could you have a file with the following if you have php 4.3 or more.
Code
 <? gd_info(); var_dump(gd_info());?> 


and give me a link to it? thanks [/]

I still have php 4.2.2 but I am upgrading to the 4.3.1 now.

I also used the exe that only put the binaries on for the 4.2.2 and I am going to do 4.3.1 manualy to get the gd lib.

egor #228969 04/14/2003 5:53 PM
Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
Ok, we're getting closer then. What would be the command line to do that? so far its --with-zlib etc, so what would the --with be to get the ttf in?


Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Any special tricks to adding customized stick holding images? Made a image and added it to my generator and it didn't show up as one of the images.

May just be me... off to try other images.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
you need to add all the info in the database wo that the smilie will be aligned properly. some day when I find the time I will write a how to

right now I have to figure why it doesn't work anymore here


Do you believe in love at first sight,
or should I walk by again?
egor #228972 06/13/2003 2:39 PM
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
Please tell me where the error is that is not letting this work.
[]

// #####################################################################
// Create the instant graemlin/ubbcode
// #####################################################################

function instant_ubbcode() {

global $theme,$config,${$config['cookieprefix']."w3t_language"},$thispath,$tempstyle,$ubbt_lang,$debug,$dbh;$user;

$langfile = ${$config['cookieprefix']."w3t_language"};
if (!$langfile) {
$langfile = $config['language'];
}
require ("$thispath/languages/$langfile/instant_markup.php");

// --------------------------------------------------
// We need to grab all of the graemlins out of the db
$query = "
SELECT G_Code,G_Smiley,G_Image
FROM {$config['tbprefix']}Graemlins
";
$sth = $dbh -> do_query($query);
$i=0;
$gnum = 0;
$remotelink = "";
$graemlinlist="";
while (list($code,$smiley,$image) = $dbh -> fetch_array($sth)) {
if ($smiley) {
$code = $smiley;
} else {
if (stristr("$code","$")) {
eval("\$code = $code;");
}
$code = ":$code:";
}
if ($gnum < $theme['max_graemlins']) {
$graemlinlist .= <<<EOF
<a href="javascript:void(0)" onclick="insertAtCaret(document.replier.Body, ' $code'); document.replier.Body.focus();"><img src="{$config['images']}/graemlins/$image" border="0" alt="$code" /></a>  
EOF;
}
else {
$remotelink = "<a href="javascript:void(0)" onclick="openGraemlinPanel()">{$ubbt_lang['MORE_G']} >>></a>";
}
EOF;
$i++;
$gnum++;
if ($i==6) {
$i=0;
if ($gnum < ($theme['max_graemlins'] +1)) {
$graemlinlist .= "<br />";
}
if( (preg_match("/-1-/",$user['U_Groups'])) or (preg_match("/-2-/",$user['U_Groups'])) or (preg_match("/-3-/",$user['U_Groups']))) {
$showpanelgenerator="<p align="center"><a href="javascript: x()" onclick="window.open('pano/popup.php','panelpopup','Width=510,height=320');">Panel Generator</a></p>";
}else{
$showpanelgenerator="";
}
}
}

$graemlinlist .= $remotelink;

if (!$debug) {
include("$thispath/templates/$tempstyle/ubbt_instant_ubbcode.tmpl");
}
return $template;

}
[/]




And yes, I am NEW


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Depends What error you are getting?

This requires some specific graphic libraries on your server too.... so I haven't been able to make this work everywhere. Some depends on server setup.

Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
[]JoshPet said:
Depends What error you are getting?

This requires some specific graphic libraries on your server too.... so I haven't been able to make this work everywhere. Some depends on server setup. [/]
Josh,

Thanks for the quick reply!

I am not getting an error, was trying to figure out if I had an error in the code somewhere. It just plain out right doesn't work.

Is there anything I can check?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Elaborate on "doesn't work right".

Some issues can be permissions related, others can be not having the right libraries installed with PHP.
[]Pre-requisites - server must have the GD library and compiled with ttfsupport [/]

This is probably one of the most complex things to configure. So post smoe specifics and probably Charles may have some advice.


Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
[]JoshPet said:
Elaborate on "doesn't work right".

Some issues can be permissions related, others can be not having the right libraries installed with PHP.
[]Pre-requisites - server must have the GD library and compiled with ttfsupport [/]

This is probably one of the most complex things to configure. So post smoe specifics and probably Charles may have some advice.

[/]
I do know I have GD installed, as I am using it for PP. If I goto http://www.socaps.com/ubbthreads/pano/porteurs.php it does show them ??

The link on the add post page is not showing up bellow the Graemlin link.

Bobby

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Oh so you're just not getting the link?

Did you add $showpanelgenerator into the ubbt_instant_ubbcode.tmpl file?

Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
[]JoshPet said:
Oh so you're just not getting the link?

Did you add $showpanelgenerator into the ubbt_instant_ubbcode.tmpl file? [/]
Yes, I have I have attached the ubbt_instant_ubbcode.tmpl file

This is driving me crazy !!!
Attachments
84510-ubbt_instant_ubbcodee.tmpl (0 Bytes, 177 downloads)

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Are you trying to restrict it to specific groups -
if not maybe take the group restriction thing out to eliminate stuff until you get it working

Change this:
Code
<br />if( (preg_match("/-1-/",$user['U_Groups'])) or (preg_match("/-2-/",$user['U_Groups'])) or (preg_match("/-3-/",$user['U_Groups']))) { <br />                $showpanelgenerator="<p align=\"center\"><a href=\"javascript: x()\"  onclick=\"window.open('pano/popup.php','panelpopup','Width=510,height=320');\">Panel Generator</a></p>"; <br />                }else{ <br />                $showpanelgenerator=""; <br />                } <br />


To this:
Code
<br />                $showpanelgenerator="<p align=\"center\"><a href=\"javascript: x()\"  onclick=\"window.open('pano/popup.php','panelpopup','Width=510,height=320');\">Panel Generator</a></p>"; <br />

Daine #228980 10/20/2003 11:40 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
little should be different for this mod, should work on newer versions too, eh?


- 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
Yeah, it's really almost an addon = so it should work with 6.4 although I haven't tried it yet.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
why almost an addon?? it IS an addon the only hacking bit is ading the link

talking about this I still have some bugs to fix on it ...


Do you believe in love at first sight,
or should I walk by again?
egor #228983 10/21/2003 9:31 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
well, I had considered making a .classic version, but this relies quite a bit on mysql and validation against the threads db... so prolly not


- Allen wavey
- What Drives You?
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
was planning on that too ask my teachers to stop bugging me about my thesis and I will do it


Do you believe in love at first sight,
or should I walk by again?
egor #228985 10/21/2003 11:19 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
will do


- Allen wavey
- What Drives You?
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Was gonna load this on my host and am wondering whats the trials and tribulations and whats the latest source? Is there anything to be wary of and what database the table script writes to?

Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
Is this coming back for 6.4 as it's a great mod!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
doesn't need to. this is a standalone and is independent of the threads version so will work with any version of threads.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
the next version will probably be for 6.5 as there is a number of changes, mainly in the censor bit.


Do you believe in love at first sight,
or should I walk by again?
egor #228990 03/30/2004 11:42 AM
Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
Ok thanks. I'm looking forward to re-introducing it Charles, it's awesome.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
BTW I am using this version still with threads 6.4.1 and it works great.

Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2004
Posts: 118
[]scroungr said:
BTW I am using this version still with threads 6.4.1 and it works great. [/]
Could you please email it to me


Kind regards,
PaNTerSan
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Hmm just noticed Charles removed the original version? I would contact charles and see why he removed it and just didn't update a new version into the attachments when he released his next incarnation so unless he says I can. I won't let me shoot him a PM.

234234 #228994 08/07/2004 10:17 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Cripes! Whatever happened to this Charles???? I went to install it and don't have the .zip anymore.... Anyone??


Some people read their stars..... I choose to write my own
#228995 08/08/2004 12:32 AM
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I shot him a PM and never got a reply...

#228996 08/10/2004 7:22 PM
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
its right here...

* * ATTACHED FILE * *
Attachments
118321-pano-v1.zip (0 Bytes, 60 downloads)


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Here is a quick and dirty hack to show a link for the Panel Generator next to the Quick Reply box in showflat. (Thanks to Omegetron for the snippets from him photopost mod)

Code
 <br />Open showflat.php <br /> <br />## <br />## Find: <br />## <br /> <br />function openGraemlinPanel() { <br />	graemlinWindow=window.open('{$config['phpurl']}/graemlinpanel.php','graemlinpanel','scrollbars=yes,resizable=yes,width=300,height=400'); <br />	if (graemlinWindow.opener == null) graemlinWindow.opener = self; <br />} <br /> <br /> <br />## <br />## After add: <br />## <br /> <br />function openPanelGenerator() { <br />        photoWindow=window.open('{$config['phpurl']}/pano/popup.php','popup','scrollbars=yes,resizable=yes,width=510,height=320'); <br />        if (photoWindow.opener == null) photoWindow.opener = self; <br />} <br /> <br /> <br />## <br />## Find: <br />## <br /> <br /><a href="javascript:void(0)" onclick="openGraemlinPanel()">{$ubbt_lang['USE_GRAEMLINS']}</a><br /><br /> <br /> <br />## <br />## After add: <br />## <br /> <br /><a href="javascript:void(0)" onclick="openPanelGenerator()">Panel Generator</a><br /><br /> <br />

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
[]scroungr said:
I shot him a PM and never got a reply... [/]forgot to update my email adress doh! well I can assure you that the current version should not work on 6.5 unless so bits are redone but I do not plan to update this mod until the next gen ubb is in beta stage.


Do you believe in love at first sight,
or should I walk by again?
egor #228999 08/23/2004 3:02 PM
Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
yep it works just need to change a few paths in the scripts.


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
What paths are you having to change in what scripts?


Some people read their stars..... I choose to write my own
Page 1 of 5 1 2 3 4 5

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
Posts: 70
Joined: January 2007
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
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)