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="" />
Looking really great Charles!
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?
But you do have the possibility to demo it here on td, isn't that enough?
well there IS a link on all reply pages
I don't really see where I could add some more
LoL I hadn't noticed it there. I'm was looking for it in the menubar. LoL sorry
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
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)?
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.
yeah something like that
tho you can choose other fonts and colors
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.
thanks
Very nice one Charles!!! Thumbs up big time!
Warm regards
Nikos
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[/]
this hack is free but you are welcome to make a donation if you wish
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
When will you provide instructions so the rest of us can install this hack?
[]
https://www.ubbdev.com/images/panels/9813-4245.png[/]
when I have finished the Admin section, documentation and am happy with the overall aspect
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!
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.
Awesome!!!!! Glad I mentioned that before ya finished....
[]
https://www.ubbdev.com/images/panels/9936-7963.png[/]
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.
Excellent!! Can't wait.... I know the folks on my site will love it.........
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 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
Merci Charles
Can't wait!!!!!
Warm regards
Nikos
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
hmm interesting question,
I will check after new year and will let you know
Love the look... makes for interesting possibilities...
[]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!
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*
This is a really cool hack. Any idea on a release date for it?
yup whats the scoop here , this getting released soon ?
probably some time next week
WB Charles!
Cool deal
Yes...
Me wants this.
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.
Cool Michael I would love to know how to do that one.
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.
LOL was referring to freaking everyone out by telling them their ip info
Kinda cool.
Well, thats easy; since the image loads from my server I know the referring information for the person.
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
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
at Last!
please check my first post for a link.
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
[]Like I said, I might start running paid advertising thru the network. lol [/] don't forget my 20%
Thanks Charles. Will install this one tonight.
^^Yeah what Josh said. I will give it a go tonight. Looks really cool
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
hmmm strange, maybe it was modified for an other hack
in your original file you have:
<br />global $config,${$config['cookieprefix']."w3t_language"},$thispath,$tempstyle,$ubbt_lang,$debug,$dbh;
add ,$user at the end which should give you something like
<br />global $config,${$config['cookieprefix']."w3t_language"},$thispath,$tempstyle,$ubbt_lang,$debug,$dbh,$user;
then search for
<br /> $graemlinlist .= "<br />"; <br /> } <br />
and add underneath
<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
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
what webserver do you use ? apache or iis ?
also is the panel created or not ?
Apache
The pannel is created but not posted properly it seems.
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
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
you need these lines if cgi.force_redirect is switched on in your php.ini
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??
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......
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!
Good stuff I'll give it ago tonight
ackkkkk trying the fix you suggest to pinion.... sorry.....
k..... deleting those lines fixed my problem too.... Thanks Charles!! testing it for an hour then moving it to the site.... THANKYOU!
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.
I have just installed this and LOVE it cant stop playing
Okay the panel generator link was added back here
enjoy
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[/]
lol
this is navaho
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
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.
Josh are you using win2k ?
No Linux.
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
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.
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
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.
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!
Thanks a lot Canvey and Charles. I will try it as soon as I can and let you know.
Warm regards
Nikos
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).
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.
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.
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.
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.
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
[]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.
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.
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.
Is it not on this site anymore?
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.
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
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....
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[/]
could you give me a link to the popup.php file ?
Charles. Mine is working now.
Thank you... users love it.
How'd ya fix it Josh?? The new file work for you??
Yes, the new preview file worked for me.
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....
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.....
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
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.
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
ugh... just killed a busy threads site with this one.... it quit working period
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.
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.....
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
I think I'll take your word for it....
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
a bug?
a little problem ..........
the popups have a wrong stylesheetlink,
linking to "usedefault.css".
what is wrong?
mfg
heinz
hmmm, do you use cookies or sessions?
also are you properly logged in?
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
i'm logged in with cookies..........
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
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?
Charles i send u a PM with all infos.....
hey, is this working now without any bugs?
Forgot to update my problem...
I recompiled PHP with freetype and such and everything works great
[]
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.
[]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.
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
lol
ok
need to take a look at this will keep you posted
got it working, but don't see it on this site anymore.
yeah I think it got scrapped during an update, will get it added back.
the german language files
with bigger popupwindows
mfg
patt
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.
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
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 523Here'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.
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
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
ok I remember now
this is an april 1st easter egg I think
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.
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?
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
Not sure I follow...
I didn't install it here (I think Charles or Allen did) but do I need to tweak a setting?
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.
The preview doesn't work here for me.
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?
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.
LOL but the preview works for me now so hense browser interaction?
Hmmmm
Didn't work for me on Mac or PC.
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.
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.
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?
[]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.
wwould you have a link for your phpinfos?
[]
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.
[]
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.
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?
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
well the panel generator uses the GD library could you have a file with the following if you have php 4.3 or more.
<? gd_info(); var_dump(gd_info());?>
and give me a link to it? thanks
ok just looked at your php infos and freetype is not linked to PHP/GD you might want to recompile php with ttf support
[]
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.
<? 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.
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?
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.
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
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
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.
[]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?
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.
[]
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
Oh so you're just not getting the link?
Did you add $showpanelgenerator into the ubbt_instant_ubbcode.tmpl file?
[]
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 !!!
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:
<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:
<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 />
little should be different for this mod, should work on newer versions too, eh?
Yeah, it's really almost an addon = so it should work with 6.4 although I haven't tried it yet.
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 ...
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
was planning on that too
ask my teachers to stop bugging me about my thesis and I will do it
will do
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?
Is this coming back for 6.4 as it's a great mod!
doesn't need to. this is a standalone and is independent of the threads version so will work with any version of threads.
the next version will probably be for 6.5 as there is a number of changes, mainly in the censor bit.
Ok thanks. I'm looking forward to re-introducing it Charles, it's awesome.
BTW I am using this version still with threads 6.4.1 and it works great.
[]
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
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.
Cripes! Whatever happened to this Charles???? I went to install it and don't have the .zip anymore.... Anyone??
I shot him a PM and never got a reply...
its right here...
* * ATTACHED FILE * *
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)
<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 />
[]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.
yep it works just need to change a few paths in the scripts.
What paths are you having to change in what scripts?