Sig/ava in char page

Dragonfly integration forum

Sig/ava in char page

Postby Kieeps » Fri May 18, 2007 12:32 pm

Is it possible to have the saved image show up (if activated ofc) in the char page instead of the char.php based one. would be a bit easier to use the saved image by rightclick and hit copy location instead of trying to explain for everyone in the guild where the img is.

in other words.
Code: Select all
http://www.someguildpage.com/saved/sig-thename.png


instead of
Code: Select all
http://www.someguildpage.com/WoWRosterDF/addon/roster_addon_name=siggen/mode=signature/member=thename/saveonly=0.html

with a mouseover that tells you to actually write:
Code: Select all
http://www.someguild.com/modules/WoWRosterDF/addons/siggen/sig.php?name=thename
Last edited by Kieeps on Fri May 18, 2007 12:35 pm, edited 1 time in total.
Kieeps
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Mon Jan 08, 2007 5:53 pm

Sig/ava in char page

Postby zanix » Fri May 18, 2007 3:25 pm

Yeah, the code is in memberdetails.php
I don't have the code available right now or I'd show you
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

Sig/ava in char page

Postby Kieeps » Fri May 18, 2007 10:58 pm

hmmmm.... ok i gave it a try. i changed the code:
Code: Select all
if($roster_conf['show_signature'])
    print 
"<img onmouseover=\"return overlib('To access this signature use: ".$roster_conf['roster_dir']."/addons/siggen/sig.php?name=".urlencode(utf8_decode($name))."',CAPTION,'Signature Access',RIGHT);\" onmouseout=\"return nd();\" ".
        
"src=\"".getlink($module_name.'&amp;file=addon&amp;roster_addon_name=siggen&amp;mode=signature&amp;member='.urlencode(utf8_decode($name)).'&amp;saveonly=0')."\" alt=\"Signature Image for $name\" />&nbsp;\n";
 


to:

Code: Select all
if($roster_conf['show_signature'])
    print 
"<img onmouseover=\"return overlib('To access this signature use: ".$roster_conf['roster_dir']."/addons/siggen/sig.php?name=".urlencode(utf8_decode($name))."',CAPTION,'Signature Access',RIGHT);\" onmouseout=\"return nd();\" ".
        
"src=\"".getlink($module_name.'&amp;file=char&amp;sig-'.urlencode(utf8_decode($name)).'.png')."\" alt=\"Signature Image for $name\" />&nbsp;\n";
 


But all i get is:
Code: Select all
Signature Image for Zoddac

And i'm aware of that it is the "alt" text for the img. and when i checked the props i found that it was trying to access:
Code: Select all
http://covenant.kieeps.com/WoWRosterDF/char/sig-Zoddac.png.html

and frankly... i have NO idea where the .html part comes from :O what am i doing wrong?
Kieeps
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Mon Jan 08, 2007 5:53 pm

Re: Sig/ava in char page

Postby zanix » Sat May 19, 2007 12:09 am

Try these
Code: Select all

    
if($roster_conf['show_signature'])
        print 
"<img onmouseover=\"return overlib('To access this signature use: ".$roster_conf['roster_dir']."/addons/siggen/sig-".urlencode(utf8_decode($name)).".png',CAPTION,'Signature Access',RIGHT);\" onmouseout=\"return nd();\" ".
        
"src=\"".getlink($module_name.'&amp;file=addon&amp;roster_addon_name=siggen&amp;mode=signature&amp;member='.urlencode(utf8_decode($name)).'&amp;saveonly=0')."\" alt=\"Signature Image for $name\" /> \n";
 


The actual image is still the php script, but the tooltip will show the location of the saved image
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


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron