How to change signature name? Change @ into _ for example

A signature and avatar generator addon

Moderator: zanix

How to change signature name? Change @ into _ for example

Postby PHandels » Wed Oct 14, 2009 11:46 am

Signatures being saved as Asmoday@US-Bonje.jpg for example.
But when i try to open that url it gives me invalid characters error on roster page.

Is there a way i can change this so images are saved as Asmoday-US-Bonje for example?
PHandels
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Mon Oct 12, 2009 11:57 pm
Location: Netherlands

Re: How to change signature name? Change @ into _ for example

Postby PHandels » Wed Oct 14, 2009 12:04 pm

Thought i fixed it by editting siggen/char/index.php

Changed:
Code: Select all
$member_str = $member_name . '@' . $roster->data['region'] . '-' . $member_realm;

Into:
Code: Select all
$member_str = $member_name . '-' . $roster->data['region'] . '-' . $member_realm;


The @ in the signature name is - now (well displayed on roster) but the images inside sig folder still use @
So i changed it back.

Can anyone tell me what i have to change (in siggen.php and /char/index.php? or more editting required?) so the characters save as name-US-Bonje.jpg instead name@US-Bonje.jpg?
I tried figuring it out myself by editting siggen.php and that index.php.. but i only break it :P
PHandels
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Mon Oct 12, 2009 11:57 pm
Location: Netherlands

Re: How to change signature name? Change @ into _ for example

Postby zanix » Wed Oct 14, 2009 4:41 pm

char.php only displays the images for the users, so you need to edit siggen.php as well to get the images to save how you want

Find, around line 1423
Code: Select all
$saved_name = $sig_name . '@' . $sig_region_name . '-' . $sig_server_name; 

And edit it how you need it
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


Return to SigGen

Who is online

Users browsing this forum: No registered users and 0 guests

cron