siggen question

A signature and avatar generator addon

Moderator: zanix

siggen question

Postby Gator81 » Wed Oct 03, 2007 3:03 am

I have the new siggen installed, it will load fine for test for any of the chars, but when i goto my forums and use properties to setup my sig, all i get is the line and not the sig.
I have copied and pasted the path that you can get on a blank web page and it loads fine. but i cannot for the life of me figure out how to get it to work correctly.
this is the path that it gives for my toon

http://www.ktears.com/modules/wowroster ... -Bloodhoof

now i can put that in a url and it loads fine, but if i go into my forums and set the profile for that, i only see the url and not the sig.
Sorry if I am making something hard from something easy
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

siggen question

Postby zanix » Wed Oct 03, 2007 3:08 am

Most forums (phpbb, some installs of nuke) will reject images with .php in the name

You should activate Save mode and link to the saved images
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: siggen question

Postby Gator81 » Wed Oct 03, 2007 3:46 am

i turned on safe mode for php, but this did not make any changes...I tried using some bbcode to load the image and i just tried and that didnt work. any other suggestions?
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: siggen question

Postby zanix » Wed Oct 03, 2007 6:06 am

zanix wrote:Most forums (phpbb, some installs of nuke) will reject images with .php in the name

You should activate Save mode and link to the saved images

Sorry, that should of been save image to server mode in SigGen
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: siggen question

Postby Gator81 » Wed Oct 03, 2007 7:35 am

I can use the commands here and it works, but on 4 different phpnuke sites i tested would not load the sig. Is there something else that is keeping it from loading on anything except df?
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: siggen question

Postby zanix » Wed Oct 03, 2007 7:38 am

YES!
I said it twice
zanix wrote:Most forums (phpbb, some installs of nuke) will reject images with .php in the name

As in you cannot link to the script that generates images
You must turn on Save Images Mode in SigGen and link to the generated images

There are hacks out there to enable .php as images out there, but I leave it up to you to find them (there might be one here in these forums... I dunno for sure)
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: siggen question

Postby Gator81 » Wed Oct 03, 2007 8:18 am

i have always had saved images turned on with siggen, but there is no path statement that shows what I am to use to load the image. If i try to load the image with a full path to where the image.png file is located i get an error.
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: siggen question

Postby tuigii » Wed Oct 03, 2007 9:51 am

An image, is, well, just an image.

Look at this page : http://www.papy-team.fr/roster/index.php?p=char-siggen&member=23

Both URL can be used / rebuild your way, like :
http://www.papy-team.fr/roster/addons/s ... 0Modan.png
[Note : have to replace the space in 'Khaz Modan' for a %20 here]
Just check if the image 'PNG' file is realy there :wink:

Click on the link above, and you have my signature for sure !

[edit] : didn't work for me neither in the first place, untill I found a nifty 'old' rule in my main .htaccess file :shock: :
RewriteRule ^/?roster/addons/siggen/(sig|av)/(.*).png$ ./roster/addons/siggen/$1.php?name=$2&saveonly=0

Get it ?!! (used this for the 'old' 1.7.3 SigGen !)
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: siggen question

Postby Gator81 » Wed Oct 03, 2007 12:25 pm

ok, I must be really tired because it seems that I am getting more confused then what I was. I read the site where there were a few comments on doing a rewrite. But for some reason something is not clicking, so I will try to let you know to the best of my ability my delima. (sorry cannot spell)

1. I need to do a rewrite line in a .htaccess file on the site. It was said to do it in the main of my site, so since I am using phpnuke then it would be in the root of phpnuke?
2. One post says put this in the root of the roster folder, so I am not for sure where I am to put this. In the roster folder there is a .htaccess file which has this information:
Code: Select all
# WoWRoster .htaccess file
# $Id: .htaccess 1254 2007-08-19 16:41:28Z Zanix $

# ONLY IF MOD_REWRITE IS INSTALLED
<IfModule mod_rewrite.c>
   # ENABLE ENGINE
   RewriteEngine On

   # CONIDITIONS
   RewriteCond %{REQUEST_FILENAME} -f [OR]
   RewriteCond %{REQUEST_FILENAME} -d

   # REWRITE RULES
   RewriteRule ^(.+) - [PT,L]
   RewriteRule ^(.*) index.php
</IfModule>

so would i place the additional code in here and if yes where? at the top, at the end, in the middle?
3. do i need a rewrite for both av and sig? another post had 2 lines so i am not for sure

the confusion is growing, and I cannot get a clear answer to help me get through this.
I am sorry if anyone is getting frustrated with these questions, but please realize how frustrated I am getting because I cannot grasp what is being said. I never had these problems with 1.7.3, and i really like 2.0 and would like to get it working with all the new toys. :)

thank you for any help
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: siggen question

Postby rubio25 » Fri Oct 05, 2007 7:41 am

You usually woul place the .htaccess file in the roster root, but you can use one in the web root also you just need to make sure that the path statements are right.
You can have more than one file in different locations but there is a logic in the sequence of processing the files.

If you want to use that one you mentioned, place the code at the end, but check if the path to the siggen is ok.
rubio25
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 11, 2006 11:54 pm

Re: siggen question

Postby Gator81 » Fri Oct 05, 2007 11:06 am

so the code would look like this?

Code: Select all
# WoWRoster .htaccess file
# $Id: .htaccess 1254 2007-08-19 16:41:28Z Zanix $

# ONLY IF MOD_REWRITE IS INSTALLED
<IfModule mod_rewrite.c>
   # ENABLE ENGINE
   RewriteEngine On

   # CONIDITIONS
   RewriteCond %{REQUEST_FILENAME} -f [OR]
   RewriteCond %{REQUEST_FILENAME} -d

   # REWRITE RULES
   RewriteRule ^(.+) - [PT,L]
   RewriteRule ^(.*) index.php
</IfModule>
RewriteRule ^/?wowoster/addons/siggen/(sig|av)/(.*).png$ ./wowroster/addons/siggen/$1.php?name=$2&saveonly=0


that is actually the correct path for mine
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

siggen question

Postby zanix » Fri Oct 05, 2007 11:36 am

If this is for SigGen 0.3.0 and Roster 2.0, you would want to use this
Code: Select all
RewriteRule ^/?wowoster/(sig|av)/(.*).png$ ./wowroster/index.php?p=util-siggen-$1&member=$2&saveonly=0


And you would need to use the following url
wowoster/sig/CharName@RC-Realm.png
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: siggen question

Postby tuigii » Fri Oct 05, 2007 4:47 pm

Small demonstration:
My site
Code: Select all
www.papy-team.fr
When you use this URL, you will be directed to ou forum, hath you can find directly over here :
Code: Select all
www.papy-team.fr/forum
.
Our roster [WoWRoster v1.9.9.1377] is over here
Code: Select all
www.papy-team.fr/roster
.

I have a .htaccess file in the root directory, here
Code: Select all
www.papy-team.fr/.htaccess

This is in it :
Code: Select all
...
RewriteEngine On
RewriteBase /
RewriteRule ^/?roster/(sig|av)/(.*)\.png$ ./roster/index.php?p=util-siggen-$1&saveonly=0&member=$2


So, when I type this in my browser :
Code: Select all
http://www.papy-team.fr/roster/sig/Nowwhat@EU-Khaz Modan.png

it gives my back my signature.

The typed in URL is translated by the ReWriteMod to
Code: Select all
http://www.papy-team.fr/roster/index.php?p=util-siggen-sig&saveonly=0&member=Nowwhat@EU-Khaz Modan.png


It works :wink:
BUT : don't take all this stuff for granted and available to you.
Not all web suppliers are equal.
Some of them really limit what you can do and use. Their motif: for your and their security..... :?
Search and look at the site of your supplier for pages like these: http://help.ovh.com/HtaccesS - this: http://60gp.ovh.net/test.php5 and other technical information.

For motivation: if the above doesn’t work, then this means that YOU made an error.
There is nearly never a nice explanation of the error afterwards.
Often, you are in Linux/Unix land with your web server, and they (the developers of these systems) already found out 40 years ago that people don’t read anyway. They implemented and wrote the IT rule number ONE: you know what you do, or you obtain nothing. This also means that you have to try and understand what’s happening. As always.
It's worth it.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Re: siggen question

Postby Gator81 » Sat Oct 06, 2007 12:00 pm

this is great information, but would someone verify the info is to go in the place that I suggested?

thanks
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

siggen question

Postby tuigii » Sun Oct 07, 2007 8:12 am

The .htaccess file that your propose should be in the root web server directory.
Presuming that you have a 1.7.3. roster.

Correct wowoster in wowroster.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Next

Return to SigGen

Who is online

Users browsing this forum: No registered users and 0 guests

cron