Siggen Linking text

A signature and avatar generator addon

Moderator: zanix

Siggen Linking text

Postby Jeanu » Sat Aug 05, 2006 11:48 pm

Was wondering if someone could tell me where to alter the linking text for signatures.

i.e. when you look at someone profile in roster, and mouse over the signature pic at the top it displays a a link for the sig. But this link is to call a php functio..

/modules/wowroster/addons/siggen/sig.php?Character

I'd like this to display the full link and point to the saved image (yes server saves are on).. so it would read more like this..

http://www.yourdomain.com/.../siggen/saved/sigfile.jpg
User avatar
Jeanu
WR.net Apprentice
WR.net Apprentice
 
Posts: 16
Joined: Mon Jul 31, 2006 11:36 pm

Siggen Linking text

Postby zanix » Sun Aug 06, 2006 1:10 am

Ah...

Wel technically the images are not supposed to be in roster because SigGen is an addon, but we won't get into that


The file to edit is memberdetails.php
Lines 162-168
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=\"".$roster_conf['roster_dir']."/addons/siggen/sig.php?name=".urlencode(utf8_decode($name))."&amp;saveonly=0\" alt=\"Signature Image for $name\" />&nbsp;\n";

if(
$roster_conf['show_avatar'])
    print 
"<img onmouseover=\"return overlib('To access this avatar use: ".$roster_conf['roster_dir']."/addons/siggen/av.php?name=".urlencode(utf8_decode($name))."',CAPTION,'Avatar Access');\" onmouseout=\"return nd();\" ".
        
"src=\"".$roster_conf['roster_dir']."/addons/siggen/av.php?name=".urlencode(utf8_decode($name))."&amp;saveonly=0\" alt=\"Avatar Image for $name\" />\n"


You want to edit what's in the overlib tooltip correct?
Code: Select all
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);\"

onmouseover=\"return overlib('To access this avatar use: ".$roster_conf['roster_dir']."/addons/siggen/av.php?name=".urlencode(utf8_decode($name))."',CAPTION,'Avatar Access');\"


You can probably change this to
Code: Select all
onmouseover=\"return overlib('To access this signature use: ".$roster_conf['roster_dir']."/addons/siggen/saved/sig-".urlencode(utf8_decode($name)).".jpg',CAPTION,'Signature Access',RIGHT);\"

onmouseover=\"return overlib('To access this avatar use: ".$roster_conf['roster_dir']."/addons/siggen/saved/ava-".urlencode(utf8_decode($name)).".jpg',CAPTION,'Avatar Access');\"
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: Siggen Linking text

Postby Jeanu » Sun Aug 06, 2006 2:51 am

Ok, this is close. Lol. Sorry if I wasn't clear before, the sigs are in siggen. What I ment was when you look at an characters profile, it auto displays their signature at the top of the page. :)

The link is now pointing to the actual saved image. But it's still showing the path to it as this

/html/.../sigfile.jpg

where I'd like it to read..

http://www.domain.com/html/.../sigfile.jpg


The reason for this is so that my members can easily link to their signature. And it seems that most of them can't put 2 and 2 together. lol.. I hate to say that, but seems to be the case.

What would really be nice is if it posted this link under the actual image so that it could just be copy and pasted.

Sadly I have no experience with php to do this. :(

EDIT
Nevermind.. I got it fixed. :) Thanks again!
Last edited by Jeanu on Sun Aug 06, 2006 2:58 am, edited 1 time in total.
User avatar
Jeanu
WR.net Apprentice
WR.net Apprentice
 
Posts: 16
Joined: Mon Jul 31, 2006 11:36 pm

Siggen Linking text

Postby jkibbles » Fri Feb 23, 2007 12:39 am

Been lurking for awhile, and wanted this solution for myself. Didn't find it here, but did some hacking and got it fixed. Here's the solution:

Open memberdetails.php in a good php editor (I use Crimson Editor).
Look for (should be lines 154-160)
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=\"".$roster_conf['roster_dir']."/addons/siggen/sig.php?name=".urlencode(utf8_decode($name))."&amp;saveonly=0\" alt=\"Signature Image for $name\" /> \n";

if($roster_conf['show_avatar'])
   print "<img onmouseover=\"return overlib('To access this avatar use: ".$roster_conf['roster_dir']."/addons/siggen/av.php?name=".urlencode(utf8_decode($name))."',CAPTION,'Avatar Access');\" onmouseout=\"return nd();\" ".
      "src=\"".$roster_conf['roster_dir']."/addons/siggen/av.php?name=".urlencode(utf8_decode($name))."&amp;saveonly=0\" alt=\"Avatar Image for $name\" />\n";


Change it to
Code: Select all
if($roster_conf['show_avatar'])
   print "<img onmouseover=\"return overlib('To access this avatar use: ".$roster_conf['roster_dir']."/addons/siggen/av.php?name=".urlencode(utf8_decode($name))."',CAPTION,'Avatar Access');\" onmouseout=\"return nd();\" ".
      "src=\"".$roster_conf['roster_dir']."/addons/siggen/av.php?name=".urlencode(utf8_decode($name))."&amp;saveonly=0\" alt=\"Avatar Image for $name\" /><br />
Direct Image Link: <a href='".$roster_conf['website_address']."".$roster_conf['roster_dir']."/addons/siggen/ava/".urlencode(utf8_decode($name)).".png' target='_blank'>".$roster_conf['website_address']."".$roster_conf['roster_dir']."/addons/siggen/ava/".urlencode(utf8_decode($name)).".png</a><br /><br />\n";

      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=\"".$roster_conf['roster_dir']."/addons/siggen/sig.php?name=".urlencode(utf8_decode($name))."&amp;saveonly=0\" alt=\"Signature Image for $name\" /><br />
Direct Image Link: <a href='".$roster_conf['website_address']."".$roster_conf['roster_dir']."/addons/siggen/sig/".urlencode(utf8_decode($name)).".png' target='_blank'>".$roster_conf['website_address']."".$roster_conf['roster_dir']."/addons/siggen/sig/".urlencode(utf8_decode($name)).".png</a><br />\n";


Note: I swapped the avatar and sig images because I thought it looked better. If you want them swapped back, you should be able to see where to break the code and swap it again.

sorry for the stretched page
User avatar
jkibbles
WR.net Apprentice
WR.net Apprentice
 
Posts: 20
Joined: Wed Feb 21, 2007 7:05 am


Return to SigGen

Who is online

Users browsing this forum: No registered users and 1 guest

cron