More than one instance of Siggen?

A signature and avatar generator addon

Moderator: zanix

More than one instance of Siggen?

Postby Rayster » Thu Jul 12, 2007 5:27 am

I'd like to have more than one size of sig from siggen, ie one the size most are just now (400 wide) with full information for main char and maybe a smaller less detailed one for alts. I know some folk use the avatar for this but some folk on our forum already use them for their avatar so I've set them to just have the player name and that's all.

Basically I'd like something in between. And the only way I can think to do this at present is to have two instances of the addon, ie call one siggenalts but just renaming the folder doesn't work and I'm not good enough with php to recode anything :s.

Any thoughts, folks?
Last edited by Rayster on Thu Jul 12, 2007 5:31 am, edited 1 time in total.
The Rayster
Damn, I'm Good!!!
Image
ImageImage
User avatar
Rayster
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Sat Dec 23, 2006 9:41 am

More than one instance of Siggen?

Postby zanix » Thu Jul 12, 2007 11:25 am

I haven't actually tried to have two instances of SigGen on the same server
Most of SigGen is coded without hard coded paths although there may be some I missed and the database table names would have to changed as well.

I don't have alot of time to track this down as we are working on Roster 1.8 as much as we can. Hopefully someone could take a look.
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: More than one instance of Siggen?

Postby Rayster » Thu Jul 12, 2007 3:16 pm

You mean 1.8 is more important than me??? lol.

If someone is going to take a wee looksie for me, I tried uploading a second fresh install of it with the folder called siggen2 but it didn't ask to make other tables on my database. There were two siggen config buttons there but any changes made two one were also made to the other so there appears to be some bits hard coded. Unfortunately it's way beyond me to work out where :(
The Rayster
Damn, I'm Good!!!
Image
ImageImage
User avatar
Rayster
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Sat Dec 23, 2006 9:41 am

More than one instance of Siggen?

Postby PleegWat » Thu Jul 12, 2007 4:32 pm

OK this is untested, but you could try looking up the siggen config table in phpmyadmin. It contains two rows, one for sig config and one for avatar config. The config_id's for these aren't hardcoded anywhere in siggen itself (I ran a quick search), so you should be able to make a copy of one of the rows, changing the config_id to 'alt_sig' or something like that, and it's likely to work.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: More than one instance of Siggen?

Postby Rayster » Fri Jul 13, 2007 1:35 am

Oooohhh, you are good.

And I'm good.... at following instructions. :)

Copied existing config for sig as you said, called it altsig.

Then I was thinking, but how will folk access the sig? what url would they use? So copied the sig.php file and called it altsig.php, and renamed all references in the file of sig.php to altsig.php and of 'signature' to 'altsig'. Now the url is the same as usual cept change sig to altsig, ie http://www.scorpitaras.com/Revo/WoWRost ... er=Rayster

Only thing I haven't worked out yet is how to change the settings via the website, but it's not major, can do it via phpadmin or make a copy of the original sig, make the changes via the site, then change the config id's. Will look into that soon(ish).

Thanks for your help, you don't know what you've started :s
Last edited by Rayster on Fri Jul 13, 2007 1:59 am, edited 1 time in total.
The Rayster
Damn, I'm Good!!!
Image
ImageImage
User avatar
Rayster
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Sat Dec 23, 2006 9:41 am

More than one instance of Siggen?

Postby PleegWat » Fri Jul 13, 2007 1:53 am

Yeah, a quick check confirms the dropdown is indeed hardcoded, namely in templates/sc_configselect.tpl. That one didn't turn up in my search since I didn't run it recursive in dirs.

Seems to be the only one, really. A recursive search does give some results in the inc/functions.inc and inc/sql.inc, but those seem to be install-related.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

More than one instance of Siggen?

Postby PleegWat » Fri Jul 13, 2007 1:58 am

Thinking about it made me wonder, and I checked: Automatic sig creation on upload is NOT hardcoded for sig and ava. It loops through all config profiles in the DB. So any extra profiles in the DB are also automatically generated on upload.

You can also access these using
siggen.php?member=name@server&mode=sigalt
and all other standard syntaxes, as long as you append the mode= and use siggen.php
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: More than one instance of Siggen?

Postby Rayster » Fri Jul 13, 2007 2:03 am

Cool, thanks again for your help.

Think I'll do two alternate versions of main sigs, an avatar and a mini sig, bout half the size. And then I'll do something that breaks it :s.

Cheers
The Rayster
Damn, I'm Good!!!
Image
ImageImage
User avatar
Rayster
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Sat Dec 23, 2006 9:41 am

More than one instance of Siggen?

Postby zanix » Fri Jul 13, 2007 8:43 am

Thanks for helping this guy out pleeg
I almost forgot about the multiple configs thing
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

More than one instance of Siggen?

Postby PleegWat » Fri Jul 13, 2007 4:03 pm

I'd say you should add an interface for this. Apart from the possibility of a third size, extra profiles also allow someone to offer multiple sig/ava themes, although I personally wouldn't combine having a lot of themes with auto-saving.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

More than one instance of Siggen?

Postby zanix » Sat Jul 14, 2007 2:43 am

Yeah, auto saving would be a problem because it would save multiple themes per character

This is something I haven't thought of for SigGen 1.0.0
Should each theme be saved for each character?
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

More than one instance of Siggen?

Postby PleegWat » Sat Jul 14, 2007 6:13 am

if saving is enabled, you'd have too, in the current design.

You could remember last saved dates on each cached sig, and have siggen.php compare that date to the last players update, then return from cache or regenerate based on that?
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: More than one instance of Siggen?

Postby Rayster » Sat Jul 14, 2007 7:44 am

I've got my sigs all set up now, quite happy with em. got 2 fullsize sigs, one with 'oldstyle' image pack and one with 'default' image pack, and 2 half size ones with less details, and the avatar. Might look into putting the extra ones on the interface but might not because i don't know php and usually i learns this stuff thru trial and error :s.

Just a thought tho. I manage 2 rosters, one horde and one alliance. I like how I've done each side's sigs quite different from each other. If I choose to manage both in one install of wowroster 1.8, will future releases of siggen allow different themes/configurations for each faction?
The Rayster
Damn, I'm Good!!!
Image
ImageImage
User avatar
Rayster
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Sat Dec 23, 2006 9:41 am

More than one instance of Siggen?

Postby zanix » Sat Jul 14, 2007 8:16 am

SigGen 1.0.0 will be completely re-designed with theme support
So it should be no problem
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: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: More than one instance of Siggen?

Postby Rayster » Sat Jul 14, 2007 9:27 am

See, that's why you guys rule :)
The Rayster
Damn, I'm Good!!!
Image
ImageImage
User avatar
Rayster
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Sat Dec 23, 2006 9:41 am

Next

Return to SigGen

Who is online

Users browsing this forum: No registered users and 1 guest