Advanced nowplaying forum signature

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Re: Advanced nowplaying forum signature

Postby gurutech » Mon May 07, 2012 6:15 pm

Makes sense, but was hoping I wouldn't need separate php files for each user... lol

About the pics, the first thing I did was try each of the 3 provided pictures. When none worked (they would show up as my signature, but no text on any of them), that's when I started editing the file (all I have done was resize).

All files in the ./signature folder have the same permissions as my ./lib folder (where the "captcha" image and php file are stored), so it doesn't appear to be permission related (unless I need more than rwxr--r-- permissions). Also checked ownership, still not working. :-(
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Advanced nowplaying forum signature

Postby dazbobaby » Mon May 07, 2012 6:33 pm

is php running in safe mode?
are the required apache modules enabled? especially rewriteengine?
Image
User avatar
dazbobaby
 
Posts: 68
Joined: Tue Dec 06, 2011 12:29 pm

Re: Advanced nowplaying forum signature

Postby gurutech » Mon May 07, 2012 6:43 pm

How do I check for the rewrite engine? I saw a post earlier about that and they said it was done within the .htaccess file.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Advanced nowplaying forum signature

Postby dazbobaby » Mon May 07, 2012 6:47 pm

.htaccess sets up he script to use it but if it's disabled in apache then it's always going to cause problems.

what is your server configuration?
windows, with apache and php?
wamp server?
linux?
Image
User avatar
dazbobaby
 
Posts: 68
Joined: Tue Dec 06, 2011 12:29 pm

Re: Advanced nowplaying forum signature

Postby gurutech » Mon May 07, 2012 6:57 pm

Linux with apache, php, and mysql...

Running on Fedora, if that makes a difference.

Did some searching, looks like I need to add an option "RewriteEngine On", but I can't find where to add that (what file)...
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Advanced nowplaying forum signature

Postby dazbobaby » Mon May 07, 2012 7:04 pm

well you're not going to get any help from me, I know next to nothing about linux.
you need to check your httpd.conf file for Apache requirements:
rewrite-module needs to be on

php extensions: php_gd2 must be on

safemode needs to be off.

that is as far as I can go sorry.
Image
User avatar
dazbobaby
 
Posts: 68
Joined: Tue Dec 06, 2011 12:29 pm

Re: Advanced nowplaying forum signature

Postby gurutech » Mon May 07, 2012 7:15 pm

ok, I checked the httpd.conf file, and the mod_rewrite.so module is being loaded there. The .htaccess file states "RewriteEngine On" line in it, followed by the actual file to rewrite.

Did a service restart on httpd and subsonic, still not working. I do get the picture though, just not the text that's supposed to be all over it.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Advanced nowplaying forum signature

Postby dazbobaby » Mon May 07, 2012 7:26 pm

if you get the image then the rewrite is working (only if you are looking at signature.png).
The rest is up to php_gd2, make sure thats turned on in you php.ini(?)
Image
User avatar
dazbobaby
 
Posts: 68
Joined: Tue Dec 06, 2011 12:29 pm

Re: Advanced nowplaying forum signature

Postby gurutech » Mon May 07, 2012 7:27 pm

Yes, that's on. I turned it on for another part of my website, and that works fine.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Advanced nowplaying forum signature

Postby dazbobaby » Mon May 07, 2012 7:32 pm

then I can do no more, but have you checked your php and apache error logs? They can often be very helpful.
Image
User avatar
dazbobaby
 
Posts: 68
Joined: Tue Dec 06, 2011 12:29 pm

Re: Advanced nowplaying forum signature

Postby dazbobaby » Mon May 07, 2012 7:34 pm

the only other thing I could do to help is host YOUR code and that'll tell us if its a problem with the server config.

if you want to try this PM me the code, dont post it here.
Image
User avatar
dazbobaby
 
Posts: 68
Joined: Tue Dec 06, 2011 12:29 pm

Re: Advanced nowplaying forum signature

Postby SparkyRih » Mon May 07, 2012 10:28 pm

I'm still guessing this is the GD... cURL could also be an issue, but I guess you would get the "server down" text on the signature... but you said you don't get any text, than I'm guessing it's the GD...

Coud you PM me your server config (don't post it here for security reasons for your own good)...
I would prefer a link to that file...

{CODE}
<?php
echo phpinfo();
?>
[/CODE]

And I guess I can give it a try to add your requested feature to the script... not a bad idea...
I'll try to make it like, if you would go to user1.png, than the script will automatically load that user1 data... I will look into it tomorrow (today :P)...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Advanced nowplaying forum signature

Postby gurutech » Tue May 08, 2012 12:00 am

I FIXED IT!!!! Woohoo!

I just need to adjust the text positions (can anyone explain how??) and I'm all set! I'm using the "back2.png" file that came with the MOD, and resized the image to 434x100, hopefully that info will help... Would like to change the text size and the position.

The problem was with the host I was using. I remembered I had a similar problem with the Captcha images for the registration, where it would show the image but no text. So I checked the captcha.php file and found that the domain name I entered for the server name was a little different than what I had in signature.php. So I matched what was in captcha.php and tested and it works!

The problem has to do with port forwarding. I'm using noip.com to redirect, and my main redirection adds the port number 4040, which I use for Subsonic, but for some reason, I can't use that same domain name with another port number (causing dual port numbers). So back with the captcha issue, I had to create another domain to forward to the same IP address, but not add the port number, and that's what I had to use in the scripts....
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Advanced nowplaying forum signature

Postby gurutech » Tue May 08, 2012 2:37 am

Ok, not only have I gotten it working, but I have played around with the image text, and gotten it just about where I want it (I still have to find the actual image I want to end up using, then re-do all the text positions and colors, but that's another story).

My question now is, how can I "bleep" out some of the words in my song titles? I have the signature on a "family friendly" website, so I don't want my signature file to drop the F-bomb or anything. Would I need to edit the .htaccess file somehow to filter out those words and replace them with only the first letter and the rest asterisks? (ie, F*** ) and similar?

How can I do this?

Thanks!
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Advanced nowplaying forum signature

Postby SparkyRih » Tue May 08, 2012 11:11 am

Bleeping out words shouldn't be that hard, I can create a snippet for you to add some time...

But first I will look into the username.png feature...

Edit: I've added the feature to be able to just browse to username.png... If you have an account on my server (http://media.schattorie.nl) than you can test it yourself...
Also added the support for transparent background images by default, and I've cleaned up the code a little...
You can download the updated code on the first page...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

PreviousNext

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 4 guests