New
Sep 6, 2009 3:44 PM
#351
Sep 7, 2009 3:50 PM
#352
I have a problem when I'm adding the foreground image. I have the code for the foreground image: $image2 = ImageCreateFromPng("prussia11.png"); imagealphablending ($image2,true); imagesavealpha($image2,true); imagecopy ($image,$image2,0,0,0,0,400,140); I have no idea what's going on, but it's not working for me. My hosting site if it helps. |
Sep 7, 2009 4:03 PM
#353
Temptation said: I have a problem when I'm adding the foreground image. I have the code for the foreground image: $image2 = ImageCreateFromPng("prussia11.png"); imagealphablending ($image2,true); imagesavealpha($image2,true); imagecopy ($image,$image2,0,0,0,0,400,140); I have no idea what's going on, but it's not working for me. My hosting site if it helps. Did you make that big white rectangular space transparent? If you didn't, it probably covered up your updates. And I think it should be: $image2 = ImageCreateFromPng("prussia11.png"); imagealphablending ($image2,true); imagesavealpha($image2,true); imagecopy ($image,$image2,0,0,0,0,4002,1402); |
Sep 7, 2009 4:05 PM
#354
Temptation said: I have a problem when I'm adding the foreground image. I have the code for the foreground image: $image2 = ImageCreateFromPng("prussia11.png"); imagealphablending ($image2,true); imagesavealpha($image2,true); imagecopy ($image,$image2,0,0,0,0,400,140); I have no idea what's going on, but it's not working for me. My hosting site if it helps. Everything work like it should, prussia11.png get applied over prussia10.png. I just can't figure why you want to add prussia11 over prussia10? |
. |
Sep 7, 2009 4:24 PM
#355
Ah, I see. I did it vice versa as well, but the updates won't show. |
Sep 7, 2009 4:29 PM
#356
The updates are hidden under prussia11 because you use solid white for the rectangular shape. |
. |
Sep 7, 2009 4:31 PM
#357
Temptation said: Ah, I see. I did it vice versa as well, but the updates won't show. I see the updates now. Yojiro said: The updates are hidden under prussia11 because you use solid white for the rectangular shape. That's what I thought, I saved prussia11.png and opened it up in GIMP, and it was white not transparent. |
Sep 7, 2009 4:34 PM
#358
Ok, thanks. I'll fix the white to transperancy. |
Sep 8, 2009 4:01 PM
#359
Is there any way to make it so that the text which appears on the updates comes out from a central point rather than going away to the right from the point? Basically, i want the text to center itself on one point, irrelevant of how long the text is. If that makes no sense, it can be demonstrated by going into word, on a new document, centering the text and then typing. If that still makes no sense: gah. It's tough for me to explain. |
Sep 8, 2009 4:20 PM
#360
Nitre said: Is there any way to make it so that the text which appears on the updates comes out from a central point rather than going away to the right from the point? Basically, i want the text to center itself on one point, irrelevant of how long the text is. If that makes no sense, it can be demonstrated by going into word, on a new document, centering the text and then typing. If that still makes no sense: gah. It's tough for me to explain. Centering the text would be impossible with the current set up of the script. There might be a way, but it would require recoding, the only way that I can think of is for the script to count how many characters there are and add z values for each character to the x coordinate. This would be a lengthy script. I could try to code it if you really want, but I am sure saka could do a better job. |
Sep 8, 2009 4:43 PM
#361
mushwars said: Centering the text would be impossible with the current set up of the script. There might be a way, but it would require recoding, the only way that I can think of is for the script to count how many characters there are and add z values for each character to the x coordinate. This would be a lengthy script. I could try to code it if you really want, but I am sure saka could do a better job. If it's at that level of complexity, then there's no need, unless a lot of people want it (which i doubt). |
Sep 8, 2009 5:14 PM
#362
Actually you would use imagettfbox() to get the measurements of how many pixels it would take to display the text in that font, size, and location. Then you can calculate the width, divide by 2 and offset your text by that amount. If you look around the comments on the php manual you can probably find code snippets for this. Talon/Niroko's script already supports centering text (among other advanced effects) so you might consider switching scripts. http://myanimelist.net/forum/?topicid=32704 |
Sep 8, 2009 8:04 PM
#363
saka said: Actually you would use imagettfbox() to get the measurements of how many pixels it would take to display the text in that font, size, and location. Then you can calculate the width, divide by 2 and offset your text by that amount. If you look around the comments on the php manual you can probably find code snippets for this. Talon/Niroko's script already supports centering text (among other advanced effects) so you might consider switching scripts. http://myanimelist.net/forum/?topicid=32704 wow, that's a lot easier than mine, and more accurate ^^ |
Sep 8, 2009 8:50 PM
#364
saka said: Actually you would use imagettfbox() to get the measurements of how many pixels it would take to display the text in that font, size, and location. Then you can calculate the width, divide by 2 and offset your text by that amount. If you look around the comments on the php manual you can probably find code snippets for this. Talon/Niroko's script already supports centering text (among other advanced effects) so you might consider switching scripts. http://myanimelist.net/forum/?topicid=32704 I did this the other day manually ><, It looked something like: (start position + (Max width - (fontwidth) x strlen(title) /2) Had I known about imagettfbbox(), it would have been alot easier. |
perspectiveSep 9, 2009 10:37 AM
Sep 10, 2009 6:48 AM
#365
hi i just want to ask if anyone can make generating scripting signatures tutorial becuase its really confusing ive read this thread like 15 times but its so confusing. i understand tutorial more with screenshot >.< lol if any professional is going to make a tutorial pleae let me know thanks alot |
maya_chan18Sep 10, 2009 7:08 AM
Sep 10, 2009 9:40 AM
#366
maya_chan18 said: hi i just want to ask if anyone can make generating scripting signatures tutorial becuase its really confusing ive read this thread like 15 times but its so confusing. i understand tutorial more with screenshot >.< lol if any professional is going to make a tutorial pleae let me know thanks alot fact is that you can only screenshot text when your making a scripted signature, since scripts are only text. |
Sep 10, 2009 1:42 PM
#367
Niroko said: maya_chan18 said: hi i just want to ask if anyone can make generating scripting signatures tutorial becuase its really confusing ive read this thread like 15 times but its so confusing. i understand tutorial more with screenshot >.< lol if any professional is going to make a tutorial pleae let me know thanks alot fact is that you can only screenshot text when your making a scripted signature, since scripts are only text. lol yh i no dat but i understand wat im doing more if ders screenshots and a guide on what to do and where to do it lol im sorry if im not makin sense >.< |
Sep 10, 2009 1:57 PM
#368
Well, basically there can't be any Screenshots taken. You download the script used in that tutorial, open it in Notepad or Word, click Ctrl + F, and then search the lines which should be re- made, according to the tutorial. It's not Graphic work, so there can be Screenshot. |
Sep 10, 2009 2:44 PM
#369
SabakuNoGaara said: Well, basically there can't be any Screenshots taken. You download the script used in that tutorial, open it in Notepad or Word, click Ctrl + F, and then search the lines which should be re- made, according to the tutorial. It's not Graphic work, so there can be Screenshot. lol k fanks ^^ |
Sep 14, 2009 3:33 AM
#370
Got a problem. Almost everything here seems just fine, but for some reason, some of the titles got the "..." added to the next line of the text. Even when I completely disable that "cutting titles" function :/ It's been bothering me for some time already, but it wasn't looking so bad with my last sig :/ |
Sep 14, 2009 9:29 AM
#371
@viesiu: are you sure you disabled it properly? sometimes removing things actually causes more problems... and ehrgeiz's code has a couple known bugs. you can try posting your code for settings.php and image_output.php to pastebin so we can see, or try switching to Talon/Niroko's script or my minimal sig script which are more stable. |
Sep 14, 2009 10:18 AM
#372
Don't worry, I already figured it out :) And I rather won't change the script, since I'm a total noob in php and I'm happy I made this one work properly :P Heh, I ended up using your script :P Had some kind of problems in the beginning with font. Apparently the name was too long (complicated??), but it worked perfectly after simple renaming it :P |
viesiuSep 14, 2009 1:20 PM
Sep 15, 2009 6:41 PM
#373
Sep 15, 2009 7:22 PM
#374
Sep 15, 2009 7:24 PM
#375
saka said: it's because the apostrophe is a special character in xml (which rss feeds are) and ehrgeiz's script doesn't decode them apparently. It's difficult to fix the way it's structured.... better to just switch scripts... ~.~ I see. Thanks. I'll do what I can from here then, with the noobish scripting skills I have. Lol. |
Sep 15, 2009 7:27 PM
#376
in my minimal script I just fix it this way: // now we have to sanitize the information we saved to the buffer (no newlines/tabs and replace xml entities) $buffer = strtr($buffer, array("n" => '', "r" => '', "t" => '', '<' => '<', '>'=>'>', '&' => '&', '"' => '"', '''=>"'") ); (there are only five special entities in xml, but sometimes there can by html entities also.... but ignor that for mal feeds) ...but in ehrgeiz's, the rss data is read into an array line by line... so you'd have to loop through them all and run that on each line I guess.... other scripts that use xml_parse() -- one of the buitlin xml parsers for php -- will automatically fix the entities for you... but they are mostly overkill for this anyway. |
Sep 15, 2009 7:36 PM
#377
saka said: in my minimal script I just fix it this way: // now we have to sanitize the information we saved to the buffer (no newlines/tabs and replace xml entities) $buffer = strtr($buffer, array("n" => '', "r" => '', "t" => '', '<' => '<', '>'=>'>', '&' => '&', '"' => '"', '''=>"'") ); (there are only five special entities in xml, but sometimes there can by html entities also.... but ignor that for mal feeds) ...but in ehrgeiz's, the rss data is read into an array line by line... so you'd have to loop through them all and run that on each line I guess.... other scripts that use xml_parse() -- one of the buitlin xml parsers for php -- will automatically fix the entities for you... but they are mostly overkill for this anyway. I'll try this! Thanks very much! |
Sep 24, 2009 12:23 AM
#378
Sep 24, 2009 4:36 AM
#379
Sep 27, 2009 9:21 PM
#380
(Never scripted before, don't have any experience at all. >_>) Whenever I try updating my chmod I always get "Connection timed out." Someone help. This is what it's giving me. Error: Connection timed out Status: Connecting to 64.191.87.133:21... Status: Connection established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd [TLS] ---------- Response: 220-You are user number 60 of 500 allowed. Response: 220-Local time is now 00:20. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220 You will be disconnected after 3 minutes of inactivity. Command: USER a8231866 Response: 331 User a8231866 OK. Password required Command: PASS ****** Response: 230-User a8231866 has group access to: a8231866 Response: 230-OK. Current restricted directory is / Response: 230-6 files used (0%) - authorized: 6000 files Response: 230 1283 Kbytes used (0%) - authorized: 1536000 Kb Status: Connected Status: Set permissions of '/Signature/sig.php' to '755' Command: CWD /Signature Error: Connection timed out Status: Connecting to 64.191.87.133:21... Status: Connection established, waiting for welcome message... Error: Could not connect to server Status: Waiting to retry... Status: Connecting to 64.191.87.133:21... Status: Connection established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd [TLS] ---------- Response: 220-You are user number 57 of 500 allowed. Response: 220-Local time is now 00:25. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220 You will be disconnected after 3 minutes of inactivity. Command: USER a8231866 Response: 331 User a8231866 OK. Password required Command: PASS ****** Response: 230-User a8231866 has group access to: a8231866 Response: 230-OK. Current restricted directory is / Response: 230-6 files used (0%) - authorized: 6000 files Response: 230 1283 Kbytes used (0%) - authorized: 1536000 Kb Status: Connected |
HenteSep 27, 2009 9:27 PM
Sep 27, 2009 9:51 PM
#381
Sep 27, 2009 10:44 PM
#383
Oct 5, 2009 3:03 PM
#384
Oct 5, 2009 3:09 PM
#385
Joe4evr said: I've asked this question a LOOOOOOOOONG time ago, but I still don't know the answer. How do I get this script to display Re-watching properly? The sig creator in this tutorial cannot do that. I reccomend using saka's minimal script. I will get the link if you need it, but you can get it by going up to the top and searching signature scripters club. then look in the discussion board. Saka's script is my favorite and is responsible for my current sig. Good luck and have fun. |
Oct 5, 2009 3:50 PM
#386
mushwars said: Hmm... that's kinda disappointing. I hate to part with this script because I got it all customized and everything.The sig creator in this tutorial cannot do that. I reccomend using saka's minimal script. I will get the link if you need it, but you can get it by going up to the top and searching signature scripters club. then look in the discussion board. Saka's script is my favorite and is responsible for my current sig. Good luck and have fun. Or is it possible to put all those customizations in saka's script? If so, I just need to know what part goes where, and I can replace this sig with that one. |
Oct 5, 2009 4:19 PM
#387
you can customize any script with enough effort.... my script is minimal but not necessarily the easiest. My script has at least all the features of this one though, and things it doesn't have like alignment. You should catch onto mine quickly if you're used to shiteiru/ehrgeiz's script. if you need glow effects and borders/glow, you'll need to include Niroko's functions from here and understand how to call them. Otherwise if you don't like digging in the code basics much, stick to Talon/Niroko's script which has glow built in already. It's not necessarily easier than mine either, though, just laid out differently. |
Oct 5, 2009 11:59 PM
#388
Oct 15, 2009 5:41 AM
#389
saka said: and ehrgeiz's code has a couple known bugs. I was wondering what the known bugs are in that script Cause i am using this script but everthing is working fine |
....... |
Oct 15, 2009 1:25 PM
#390
Oct 16, 2009 3:58 AM
#391
I see but i thought there were more bugs. Re-watching is one function that i don't use |
....... |
Dec 25, 2009 6:24 PM
#392
okay... I'm in a pinch... I'm done with almost everything... I have an image, I have edited the codes for image_output.php and settings.php (not sig.php), I have set the chmod for the folder containing them to 777, and I have set the chmod for all the files to 755... Whenever I use http://helpoemer07.0fees.net/signature/sig.php inside a bbcode or even at the address bar, an image error occurs (a small broken image picture)... when I try to use http://helpoemer07.0fees.net/signature/image_output.php , my original image displays but without the list that I wanted to display... What could I have done wrong?? (I have not edited the sig.php in any way aside the chmod)... Is it because of my host (0fees) ?? I'm in dire need of your help... thanks... ^_^ ~ and oh... just in case... I'll place the codes... image_output.php <?php ///////////////////////////////////////////////////////////////////// //generating the image $image = imagecreatefrompng("signature_copy.png"); $font = 'my_font'; ///////dont change this////////////////// imagealphablending($image,true); imagesavealpha($image,true); //////////////////////////////////////// //imagecolorexact(image,0,0,0) //imagecolorexact($blub,0,0,0) = black font | imagecolorexact($blub,255,255,255) = white font $colour = imagecolorexact($image,0,0,255); //imagefttext(image, font size, angle, x-pos(relative to the image in px), y-pos, font color, fontfile, text output) ///////////anime-text output//////////////// imagefttext($image,14,0,118,48,$colour,$font,$titles[0][0]); imagefttext($image,12,0,170,60,$colour,$font,$status[0][0]); //////////////////////////////////////// imagepng ($image); //we want our final image to be in the png format //imagepng ($image, "sig.png") //imagepng (image, save as); uncomment this line if you want to save your output and use a cronjob for automated update - otherwise leave it as it is //imagedestroy ($image); // ///////////////////////////////////////////////////////////////////// ?> settings.php <?php ///////////////////////////////////////////////////////////////////// //Settings to be used by the script //////////////// $user = "helpoemer07"; //Mal-Username $to_parse = "5"; //what should be parsed?: 0=recent anime | 1=recent anime by episode | 2=recent manga | 3=recent manga by chapter | 4=recent anime AND recent manga | 5=recent anime by episode AND recent manga by episode $show_anime_type = "1"; // 1=yes or 0=no (if set to no it will cut out (TV|Movie|ONA|OVA|OAD|Special|Manga) ) ///////////////////////////////////////////////////////////////////// ///////////////Bonus settings; script will work even if you do not alter this settings $cut_titles = "0"; // 1=yes or 0=no $cut_title_after = "25"; // if you specified $cut_titles = "yes" enter the max char length of the anime title output $show_date = "0"; // 1=yes or 0=no; want to see the date of your last update? $time_format = "%d/%m/%y"; //time format you prefer; more Information here: http://www.php.net/manual/en/function.strftime.php ///////////////////////////////////////////////////////////////////// ////////////////Anime episodes-text; these are bonus settings and can be left aside if your ok with the default output $custom_episode_look = "1"; // 1=yes or 0=no (has to be 1 if you want to alter settings for mangas) $cut_spaces = "1"; // 1=yes (will look like: 12/24) or 0=no (will look like: 12 / 24); [also affects manga settings] $pre_watch = "@watching"; //define how the text starts e.g. if you want it to look like: @watching 2/24 you will have to set $pre = "@watching"; $rewatching= "@rewatching"; $middle_watch = "-"; //same as for $pre: example @watching 2/24 put $middle = "/"; [$middle effects the part between eps watched and total episodes number ////////Manga-Settings (only needed if you you parse manga updates and want a custom chapter/eps output) $after_watch = "#"; //what you'd like to appear after the total episodes number? e.g. 2/24# put $after = "#"; $pre_read = "@reading"; $middle_read = "/"; $after_read = "#"; //////////////// //end of settings-sector ///////////////////////////////////////////////////////////////////// ?> sig.php <?php header("Content-Type: image/png"); ///////////////////////////////////////////////////////////////////// //Settings to be used by the script //////////////// require("settings.php"); //////////////// //end of settings-sector; all modifications below and above this line are on your own responsibility ///////////////////////////////////////////////////////////////////// function createText($image,$size,$angle,$x,$y,$color,$font,$text,$border=false,$bordercolor=null,$bordersize=2){ if($border==true){ imagettftext($image, $size, $angle, $x-$bordersize, $y-$bordersize, $bordercolor, $font, $text); imagettftext($image, $size, $angle, $x, $y-$bordersize, $bordercolor, $font, $text); imagettftext($image, $size, $angle, $x+$bordersize, $y-$bordersize, $bordercolor, $font, $text); imagettftext($image, $size, $angle, $x-$bordersize, $y+$bordersize, $bordercolor, $font, $text); imagettftext($image, $size, $angle, $x, $y+$bordersize, $bordercolor, $font, $text); imagettftext($image, $size, $angle, $x+$bordersize, $y+$bordersize, $bordercolor, $font, $text); imagettftext($image, $size, $angle, $x-$bordersize, $y, $bordercolor, $font, $text); imagettftext($image, $size, $angle, $x+$bordersize, $y, $bordercolor, $font, $text); } imagettftext($image,$size,$angle,$x,$y, $color, $font, $text); } //specify the url that shall be read switch($to_parse){ case 0: $url = "http://myanimelist.net/rss.php?type=rw&u=$user"; $type_m = 0; break; case 1: $url = "http://myanimelist.net/rss.php?type=rwe&u=$user"; $type_m = 0; break; case 2: $url= "http://myanimelist.net/rss.php?type=rm&u=$user"; $p_manga = 1; $type_m = 1; break; case 3: $url = "http://myanimelist.net/rss.php?type=rrm&u=$user"; $p_manga = 1; $type_m = 1; break; case 4: $url = "http://myanimelist.net/rss.php?type=rw&u=$user"; $url_x = "http://myanimelist.net/rss.php?type=rm&u=$user"; $file2 = @fopen ("$url_x","r"); $p_manga = 1;$type_m = 0; break; case 5: $url = "http://myanimelist.net/rss.php?type=rwe&u=$user"; $url_x = "http://myanimelist.net/rss.php?type=rrm&u=$user"; $file2 = @fopen ("$url_x","r"); $p_manga = 1;$type_m = 0; break; } //generate a readable file out of the specified url for our parser to read $file = @fopen ("$url","r"); //starting and ending strings needed to get the valuable information out of the file //do not modify this unless you know what you are doing $title = "<title>"; $ptw = "<description>Plan to Watch -"; $watching = "<description>Watching -"; $completed = "<description>Completed -"; $onhold = "<description>On-Hold -"; $dropped = "<description>Dropped -"; $titleend = "</title>"; $descend ="</description>"; $date = "<pubDate>"; $dateend = "</pubDate>"; $reading = "<description>Reading -"; /////////////////////////// //rss-parser(Anime-Titles) if (trim($file) == "") { if($file2 != ""){echo"only mangas are being parsed";}else{echo "Service out of order";} //if we can't create a file MAL is supposed to be down } else { $i=0; //this while-loop will run until the end of the file and read it line per line //every single read line will be save in an array (in this case $buffer[$i] while (!feof($file)) { //1024 bytes per line will be read until the end of file has been reached //every single line will be saved in the array $buffer //example: line 1 would be saved in $buffer[0]; line 2 would be saved in $buffer[1] and so on $buffer[0][$i] = fgets($file,1024); $i++;$files = "1"; } fclose($file);//close the file if($file2 != ""){$x=0; while (!feof($file2)) { //1024 bytes per line will be read until the end of file has been reached //every single line will be saved in the array $buffer //example: line 1 would be saved in $buffer[0]; line 2 would be saved in $buffer[1] and so on $buffer[1][$x] = fgets($file2,1024); $x++;$files = "2"; } fclose($file2);//close the file } } //now we have to prepare the information we cached in the $buffer array earlier //for this we are going to use a for-loop //this for-loop just extracts the anime_title information for ($type=0;$type<$files;$type++){$t = 0; for ($j=1;$j<$i;$j++) { if ($cnt = strstr($buffer[$type][$j],$title)) { //strstr('string to be searched', 'string to search') //if the specified string has been found do... //str_replace('found string', 'replace with', 'replace it in') //and save it in the variable $ncnt $ncnt = str_replace($title, "", $cnt); $end = strstr($ncnt, $titleend); //strstr('string to be searched', 'string to search') //once again replace a part of the string and save the outcome in a new array $cutter = str_replace($end,"",$ncnt); $cta = $cut_title_after - 3; if ($cut_titles == "1" && strlen($cutter) > $cta){ $cutter = str_replace($end,"",$ncnt); $cutter = preg_replace('/ - (TV|Movie|ONA|OVA|OAD|Special|Manga)$/', '', $cutter); $titles[$type][$t] = substr($cutter, 0, $cut_title_after); $titles[$type][$t] .= "..."; } else{ if($show_anime_type == "0"){ $remover = str_replace($end,"",$ncnt); $titles[$type][$t] = preg_replace('/ - (TV|Movie|ONA|OVA|OAD|Special|Manga)$/', '', $remover); } else{ $titles[$type][$t] = str_replace($end,"",$ncnt); } } $t++; } } } //this for-loop just extracts the date information for ($type=0;$type<$files;$type++){$d = 0; if($show_date == "1"){ for ($j=1;$j<$i;$j++) { if ($cnt = strstr($buffer[$type][$j],$date)) { $ncnt = str_replace($date, "", $cnt); $end = strstr($ncnt, $dateend); $tmpstring = str_replace($end,"",$ncnt); $dates[$type][$d] = strftime("$time_format",strtotime($tmpstring)); $d++; } } } } //this for-loop just extracts the anime_episode information for ($type=0;$type<$files;$type++){$z = 0; for ($j=1;$j<$i;$j++) { //episodes if ($cnt = strstr($buffer[$type][$j],$ptw)) { $status[$type][$z] = "plan to watch"; $z++; } if ($cnt = strstr($buffer[$type][$j],$completed)) { $re = str_replace($completed, "", $cnt); $re = str_replace(" of ", "-", $re); $re = str_replace(episodes, "", $re); $re2 = explode("-",$re); $re_int1 = (int)$re2[0]; $re_int2 = (int)$re2[1]; if($re_int1 == $re_int2){ $status[$type][$z] = "completed"; } else{ $ncnt = str_replace($completed, $rewatching, $cnt); if($cut_spaces == "1"){ $ncnt = str_replace(" of ", $middle_watch, $ncnt);} $ncnt = str_replace(of, $middle_watch, $ncnt); $ncnt = str_replace(episodes, $after_watch, $ncnt); $end2 = strstr($ncnt, $descend); $status[$type][$z] = str_replace($end2,"",$ncnt); } $z++; } if ($cnt = strstr($buffer[$type][$j],$onhold)) { $status[$type][$z] = "on hold"; $z++; } if ($cnt = strstr($buffer[$type][$j],$dropped)) { $status[$type][$z] = "dropped"; $z++; } if ($cnt = strstr($buffer[$type][$j],$watching)){ if($type == 0 && $type_m == 0){ if($custom_episode_look == "0"){ $ncnt = str_replace($watching, "", $cnt); $end2 = strstr($ncnt, $descend); $status[$type][$z] = str_replace($end2,"",$ncnt);$z++; }else{ $ncnt = str_replace($watching, $pre_watch, $cnt); if($cut_spaces == "1"){ $ncnt = str_replace(" of ", $middle_watch, $ncnt);} $ncnt = str_replace(of, $middle_watch, $ncnt); $ncnt = str_replace(episodes, $after_watch, $ncnt); $end2 = strstr($ncnt, $descend); $status[$type][$z] = str_replace($end2,"",$ncnt);$z++; } } else { if($cnt = strstr($buffer[$type][$j],$watching)){ if($custom_episode_look == "0"){ $ncnt = str_replace($watching, "", $cnt); $end2 = strstr($ncnt, $descend); $status[$type][$z] = str_replace($end2,"",$ncnt);$z++; }else{ $ncnt = str_replace($watching, $pre_read, $cnt); if($cut_spaces == "1"){ $ncnt = str_replace(" of ", $middle_read, $ncnt);} $ncnt = str_replace(of, $middle_watch, $ncnt); $ncnt = str_replace(episodes, $after_read, $ncnt); $end2 = strstr($ncnt, $descend); $status[$type][$z] = str_replace($end2,"",$ncnt);$z++; } //$z++; } } } if ($cnt = strstr($buffer[$type][$j],$reading)){ if($custom_episode_look == "0"){ $ncnt = str_replace($reading, "", $cnt); $end2 = strstr($ncnt, $descend); $status[$type][$z] = str_replace($end2,"",$ncnt);$z++; }else{ $ncnt = str_replace($reading, $pre_read, $cnt); if($cut_spaces == "1"){ $ncnt = str_replace(" of ", $middle_read, $ncnt);} $ncnt = str_replace(of, $middle_watch, $ncnt); $ncnt = str_replace(episodes, $after_read, $ncnt); $end2 = strstr($ncnt, $descend); $status[$type][$z] = str_replace($end2,"",$ncnt);$z++; } } }} ///////////////////////////////////////////////////////////////////// //generating the image require("image_output.php"); ?> |
Dec 26, 2009 12:35 AM
#393
I just made an account with 0fees to test, but it has allow_url_fopen off in its PHP configuration. It means the script cannot open a url like a file and therefore this script won't work. There is a bit of hope though because they do allow cURL which you can use as an alternative, but the script would have to be heavily modified. I highly encourage you to switch to another script anyway since ehrgeiz's has some ongoing bugs that have not been fixed and is generally impossible to modify sections of it.... Talon's script will work on your host, or you can try my minimal one which is closer to ehrgeiz's but a lot lighter... though mine also needs one extra function to switch to cURL support. Let me know if you're interested and I can send it to you with the modification. I know it's a bit confusing, but there's lots of people who will help you out. |
Dec 26, 2009 2:11 PM
#394
saka said: I just made an account with 0fees to test, but it has allow_url_fopen off in its PHP configuration. It means the script cannot open a url like a file and therefore this script won't work. There is a bit of hope though because they do allow cURL which you can use as an alternative, but the script would have to be heavily modified. I highly encourage you to switch to another script anyway since ehrgeiz's has some ongoing bugs that have not been fixed and is generally impossible to modify sections of it.... Talon's script will work on your host, or you can try my minimal one which is closer to ehrgeiz's but a lot lighter... though mine also needs one extra function to switch to cURL support. Let me know if you're interested and I can send it to you with the modification. I know it's a bit confusing, but there's lots of people who will help you out. thanks... at least now I know it was my host that was troubling me... anyways, I'm interested in you're code... I've checked Talon's script and it is quite confusing, especially 'coz I'm used to ehrgeiz's step-by-step procedures... so I'm going to try yours out... thanks... ^_^ edit: tried using Talon's script and I was able to finish mine... but I think it's too big... need to edit it asap... what's the recommended sig size here?? also, I want to remove the "watching -" and " episodes" text in my description... how can I do it?? and I want to know what's the cronjob thing?? is it something that would allow me to use .png instead of .php in my signatures?? if it is, I'm interested in learning how to use one... thanks... ^_^ |
helpoemer07Dec 26, 2009 4:04 PM
Dec 26, 2009 7:34 PM
#395
@helpoemer: Max sig height is approx 140px I'm trying to add php script to my new sig here, but it seems i am unable to connect through filezilla. Do 000webhost accounts need to be admin-verified before we can use em? Otherwise i'll try troubleshooting the problem |
Dec 26, 2009 9:13 PM
#396
@helpoemer07: glad you got it working, and yeah it's 600x140px... might want to put it in a [spoiler] til you fix it since some people are pretty sensitive to big sigs here. ;) @PresSiT: during an admin review you can't execute php, but they don't initiate one until you upload some php that matches one of their red flag patterns for possible misuse (sigs usually set them off the first time because they use curl or otherwise access remote urls for the RSS feed.... prolly other stuff too). They usually don't last longer than twelve hours, and are infrequent. Usually you get flagged after a large upload, and you'll get redirected to a page that specifically says the site is being audited.... so you'd know if you are. |
Dec 26, 2009 9:37 PM
#397
I just signed up for an account, so there's a sign saying: System administrator will review your details and activate your account in 24 hours. Troubleshooting?? In filezilla i keyed in Host: 000webhost.com user:correct Pass:correct(checked and confirmed<refer below>) port:21(as mentioned on the site for ftp servers). It returns: Status: Resolving address of 000webhost.com Status: Connecting to 208.43.150.234:21... Status: Connection established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd [TLS] ---------- Response: 220-You are user number 1 of 50 allowed. Response: 220-Local time is now 23:37. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220-IPv6 connections are also welcome on this server. Response: 220 You will be disconnected after 15 minutes of inactivity. Command: USER pressit Response: 331 User pressit OK. Password required Command: PASS ********* Response: 530 Login authentication failed Error: Critical error Error: Could not connect to server |
Dec 26, 2009 10:28 PM
#398
Dec 27, 2009 1:42 AM
#400
More topics from this board
» Share Your YouTube Channel/Videos! ( 1 2 3 4 5 ... Last Page )nin-tendo - Dec 16, 2022 |
596 |
by nin-tendo
»»
5 hours ago |
|
» I made a webcomic about a silly wabit and kat with aliens doing weedsblockisaac - May 1 |
5 |
by pholcidae
»»
Today, 12:18 AM |
|
» MY ANIMATED SHORT FILMDiscloSalilokui - Oct 9 |
2 |
by DiscloSalilokui
»»
Oct 12, 5:58 PM |
|
» Four Ages! ( 1 2 )Robert_SS_Gordon - Feb 21 |
52 |
by Retro8bit
»»
Oct 11, 5:07 PM |
|
» 【 ART THREAD 】Let's share our art! ❤︎ ( 1 2 3 4 5 )mewmewforever - Aug 30, 2024 |
216 |
by Retro8bit
»»
Oct 11, 5:06 PM |