I think what your wanting is the SHOW LINK option in the Main Settings for both Avatar and Signature modes.
This changes the info thats printed up.
Okay, in ref to the above discussion I quickly came up with this hack:
K, figured it all out an here ya go the custom mod mode info in full...
Edit addons/siggen/admin/index.php and add the following at line 428 (below the 'Short' => 'short', line):
- Code: Select all
'Forum' => 'forum',
and save.
Now edit addons/siggen/char/index.php and replacing the existing:
- Code: Select all
if( $row['link_type'] == 'short' )
{
print messagebox($image_link . '<br />' . ROSTER_URL . $row['config_id'] . '/' . $member_str . '.' . $row['image_type']) . '<br />';
}
With the following:
- Code: Select all
if( $row['link_type'] == 'forum' )
{
print messagebox($image_link . '<br />' . ROSTER_URL . 'util/siggen/' . $row['config_id'] . '/member=' . $member_str . '.' . $row['image_type'], ucfirst($row['config_id']),'sblue','100%') . '<br />';
}
elseif( $row['link_type'] == 'short' )
{
print messagebox($image_link . '<br />' . ROSTER_URL . $row['config_id'] . '/' . $member_str . '.' . $row['image_type'], ucfirst($row['config_id']),'sblue','100%') . '<br />';
}
This not only adds the new Forum option stuff, but also the missing ucfirst thing to the Short option, (the thing that makes it come up in a blue box with either Signature or Avatar as the title, instead of a gray box with Message as the title).
Oh, and you can optionally add
- Code: Select all
// This parts optional but it will remove the member_realm info, and just set it to member name only
$member_str = $member_name;
above the print messagebox() line, if you don't want to have it showing up the "@US-servername" bit.
Go to line 104 in addons/siggen/templates/sc_body.tpl and change it from:
- Code: Select all
<td class="sc_row<?php echo (((++$row)%2)+1); ?>" align="left"><?php print $functions->createTip( 'Set the links that are displayed on the character page<br /><br />- "Default" Shows the default link, based on Roster SEO settings<br />- "Force SEO" Force the display of the SEO link<br />- "Save Directory" Show the link to the saved generated image<br />- "Short" Show the short, mod_rewrite url<br /> (link requires edits to Roster\\\'s .htaccess file)<br />','Show Link' ); ?></td>
To:
- Code: Select all
<td class="sc_row<?php echo (((++$row)%2)+1); ?>" align="left"><?php print $functions->createTip( 'Set the links that are displayed on the character page<br /><br />- "Default" Shows the default link, based on Roster SEO settings<br />- "Force SEO" Force the display of the SEO link<br />- "Save Directory" Show the link to the saved generated image<br />- "Short" Show the short, mod_rewrite url<br /> (link requires edits to Roster\\\'s .htaccess file)<br />- "Forum" Show the short forum url link','Show Link' ); ?></td>
This is simply the tooltip info that shows up when you hover over it in the admin cp.
This will now let you pick a new "Forum" mode in the SHOW LINK option. Which outputs a link which is EXACTLY what you've stated above in ref to the:
- Code: Select all
http://mydomain/roster/util/siggen/avatar/member=Iwik.png
Okay, find attached my updated version of the SigGen addon for Roster. I did everything above along with changing the version number by 1 digit so ya know its different to the normal version. Its v0.3.2.411 instead of v0.3.2.410 :-) (Plus I added "modded by Calystos" to the author so ya know I updated it a bit) Else its entirely the same addon. :-)