Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 5 1 2 3 4 5
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
Sponsored Links
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!

Sponsored Links
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?
Sponsored Links
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..........

Page 3 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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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)