Possible to have shorter urls for images?

A signature and avatar generator addon

Moderator: zanix

Possible to have shorter urls for images?

Postby foreseit » Tue Jan 08, 2008 6:42 am

Hi, sorry in advance if this has been answered already. :)

I'm using my Sig Gen pics for my signature on my guild website. We use Drupal, and with the old roster I used to have an impressively large signature. I had [Char 1 sig][Char 2 ava][Char 3 ava][Char 4 ava].

Now b/c of the new naming convention, I can't fit more than [Char 1 sig][Char 2 ava/sig] in my signature. Since I play on Chars 1-3 equally, I'd like to be able to include at least 3 characters into my signature.

I had solved the problem by switching to the alternative URLs, but that apparently breaks several other addons (Made By, Faction Rep, etc). Now I'm back to the normal URLs, and therefore, less stuff in my signature.

Any suggestions?

(PS - off topic - if I install a new sig gen version, will it erase all the changes I made to my SigGen's positioning/colors/etc?)
<a href="thehateguild.com"><img src="/anetheron/addons/siggen/sig.php?name=Foreseit"></a>
User avatar
foreseit
WR.net Journeyman
WR.net Journeyman
 
Posts: 139
Joined: Tue Jul 25, 2006 10:03 pm

Possible to have shorter urls for images?

Postby zanix » Tue Jan 08, 2008 7:19 am

The several other addons (Made By, Faction Rep, etc) are not coded correctly by using the makelink() function in Roster

You can use mod_rewrite the same way used in SigGen for 1.7.3
If I can remember, I'll work something up when I get home
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

Possible to have shorter urls for images?

Postby PleegWat » Tue Jan 08, 2008 4:39 pm

Both alternate and normal urls always work and produce the pages you'd expect. The alternate url on/off setting only influences what kind of internal links roster generates.
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: Possible to have shorter urls for images?

Postby tuigii » Tue Jan 08, 2008 10:03 pm

Shorter URL's for signatures and avantar ?

Have a look a my root .htaccess file:
Code: Select all
...
RewriteEngine on
RewriteBase /
...
RewriteRule ^/?(signature|avatar)/(.*)$ /roster/index.php?p=util-siggen-$1&a=c:1&member=$2
...


My roster (version 1.9.9.xxx with SigGen [v0.3.0.328] for Roster 2.0) is situated in the roster sub-directory.

Now, an "signature URL" like:
Code: Select all
http://www.papy-team.fr/signature/Nowwhat@EU-Khaz%20Modan

does the job.

Zanix wrote:The several other addons (Made By, Faction Rep, etc) are not coded correctly by using the makelink() function in Roster


I know. The html select is some what mind boggling when used with makelink().
I asked for some help here- but didn't saw anything yet.
I have to put my mind on it - I know it should work... I'll be back on that one.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Possible to have shorter urls for images?

Postby zanix » Wed Jan 09, 2008 3:18 am

There are examples of select boxes using makelink() in Roster already
Check out the pvplog addon
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: Possible to have shorter urls for images?

Postby tuigii » Wed Jan 09, 2008 7:29 am

zanix wrote:There are examples of select boxes using makelink() in Roster already
Check out the pvplog addon

I know, Zanix, but this example is scarry.

I put on Alternative urls.

I modelled my addon as PvPlog (the first 20 lines - that were I took the code from anyway :wink: ).

It works, reputation, as pvplog, but I still have a problem with is - both addons show a very strange behaviour.

I'll explain: I select the PvPlog addon with its icon (you have it also).
Ok, that works.
Now, I select something in the select box -> works!!

Again, select something else: works !! (etc etc)
And again...

Now, have a look at the address bar :shock:

I have something like this:
Code: Select all
http://www.papy-team.fr/roster/guild/pvplog/guild/pvplog/a=g:1/guild/pvplog/a=g:1/guild/pvplog/a=g:1/guild/pvplog/a=g:1/guild/pvplog/a=g:1/guild/pvplog/a=g:1/type=enemylosses.html

This can't be normal.
It seems to be harmless, thought.

The behaviour, as described, is visible here : http://www.papy-team.fr/roster - use pvplog or reputation addon.
You'll get the picture.
Is this a (my) server issue - and only valid for me?

When I remove the roster .htaccess file, Alternative urls won't work at all, that normal (isn't it ?).

My main site .htaccess file has 'nothing' that is roster related in it.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Possible to have shorter urls for images?

Postby zanix » Wed Jan 09, 2008 10:21 am

Works just fine for me in Firefox

I just tried IE and it does exactly what you said
My server is down and apart, so I can't test anything

In addons/pvplog/guild/index.php, edit lines 53 and 57 and add true as the last parameter to each makelink()

The .htaccess file is definitely required for alternative urls
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: Possible to have shorter urls for images?

Postby tuigii » Wed Jan 09, 2008 8:18 pm

zanix wrote:Works just fine for me in Firefox

I knew that you would find that out :D

zanix wrote:I just tried IE and it does exactly what you said

Ouf.
zanix wrote:In addons/pvplog/guild/index.php, edit lines 53 and 57 and add true as the last parameter to each makelink()

THIS nails it down. Your the man !!
PvPlog isn't showing the growing issue issue anymore.
Tried 4 browsers in normal (worked already) and Alternative mode.

reputations is ok now.
I'll up new version when I get home.

Thank you very mutch.

PS : I did find someting minor when switching 'back' form Alternative to normal mode (try it), but that merits a separate post.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Possible to have shorter urls for images?

Postby PleegWat » Wed Jan 09, 2008 8:32 pm

This means IE does not honour the <base> url (for relative links) given in the header. Or at least not in all circumstances.
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


Return to SigGen

Who is online

Users browsing this forum: No registered users and 1 guest

cron