Server names with ' (Cho'gall)

A signature and avatar generator addon

Moderator: zanix

Server names with ' (Cho'gall)

Postby Spartans » Thu Aug 07, 2008 9:51 pm

Can someone please tell me how to get a proper link pasted into our forums (html is not turned on for security reasons). The link that Siggen creates works fine when browsing it. However when it is pasted into a forums signature profile it converts it-

From:

http://www.residualwow.com/roster/index ... S-Cho'gall

To:

http://www.residualwow.com/roster/index ... ans@US-Cho\\\'gall

Notice the \\\ placed in front of the ' . It thinks this is a quotation mark and I need to know how to remove the ' from the orginal link so me members can paste it in without having to reformat it first.

Thanks in advance.
Last edited by Spartans on Fri Aug 08, 2008 1:48 am, edited 1 time in total.
Spartans
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Tue Aug 05, 2008 9:23 pm

Server names with ' (Cho'gall)

Postby PleegWat » Thu Aug 07, 2008 10:29 pm

This is a bug in your forums software, which you should report.

As a workaround, use this link:
http://www.residualwow.com/roster/index ... r=Spartans
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: Server names with ' (Cho'gall)

Postby kiwi_pearls » Wed Aug 20, 2008 9:23 am

This post is kinda on topic with what I need to have done.

I want to edit the code on the Character page that shows the avatars for that character to display the code that they need to use for forums.

so far under the avatar and signature it shows the link to the image as:

Code: Select all
http://mydomain/roster/index.php?p=util-siggen-avatar&a=c:135&member=Veleda@US-Relam


This code does not work in the forum signaute

so...

I want this data to display unde their image:

Code: Select all
Cut 'n' Paste this code to add to your forum signature:
http://mydomain/roster/addons/siggen/sig.php/Iwik.png


I just don't know which file to edit as I am very novice at PHP.
kiwi_pearls
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Mon Aug 18, 2008 9:48 am

Server names with ' (Cho'gall)

Postby zanix » Wed Aug 20, 2008 11:59 am

Code: Select all
http://mydomain/roster/addons/siggen/sig.php/Iwik.png

That link won't work for SigGen 0.3.x since you cannot access the file directly
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

Server names with ' (Cho'gall)

Postby PleegWat » Wed Aug 20, 2008 12:35 pm

The URL you'd want is

Code: Select all
http://mydomain/roster/util/siggen/avatar/member=Iwik.png
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

Server names with ' (Cho'gall)

Postby kiwi_pearls » Wed Aug 20, 2008 12:44 pm

Ok, given the correct URL (I hadn't got around to reading the new codes for v0.3...how do I code that into the page that is displayed under the character information...where they click to see their signatures...how do I change what is displayed to display the link that they can cut n paste into their signature profiles in a forum.

Just trying to make it easier for members to refernece within roster - so that they need not check my forum posts all the time for inserting sigs.

I guess - try and make it easier to explain - you know how for instance you upload a picture to Photobucket...once the pic is uploaded - underneath it is the codes you can copy, so that you can paste into a forum post.

this is what I want to achieve.
kiwi_pearls
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Mon Aug 18, 2008 9:48 am

Re: Server names with ' (Cho'gall)

Postby Calystos » Wed Aug 20, 2008 5:31 pm

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. :-)
Attachments
siggen.zip
Everything I've done in ref to my post, along with testing & error checking, etc.
(6.68 MiB) Downloaded 389 times
Last edited by Calystos on Wed Aug 20, 2008 7:44 pm, edited 10 times in total.
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

Server names with ' (Cho'gall)

Postby zanix » Thu Aug 21, 2008 12:27 am

There is a selection in SigGen config to change the link style
I think there are 3 options, Calystos' mod adds another option to this list
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: Server names with ' (Cho'gall)

Postby Calystos » Thu Aug 21, 2008 2:01 am

zanix wrote:There is a selection in SigGen config to change the link style
I think there are 3 options, Calystos' mod adds another option to this list

Yuppers, :-) "Forum" option added. The "Show Link" option in Main Settings (of both signature and avatar modes) gives "None", "Default", "Force SEO", "Saved Directory" and "Short". An I've added the "Forum" option to cover those requests above, :-)

(And also added the missing code for the blue border thingy for Saved Directory and Short).
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

Server names with ' (Cho'gall)

Postby kiwi_pearls » Thu Aug 21, 2008 3:18 am

ty so very much for this ;-)
kiwi_pearls
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Mon Aug 18, 2008 9:48 am


Return to SigGen

Who is online

Users browsing this forum: No registered users and 1 guest

cron