https://www.icyphoenix.com/viewtopic.php?f=26&t=3033
-----------------------------------
Martin
Thu 01 Nov, 2007 21:39

FAP SUPPORT - How To Use Images On Other Forums
-----------------------------------
Hi

I really want to fix the 'rewrite' thing.

I had it working once... :(

but no more..

I want to be able to post my images on other sites. all my images are displayed as:

http://www.akvarieplanter.dk/forum/album_pic.php?pic_id=343&user_id=2

for instance..

I'd like it to be shown as.. .jpg


-----------------------------------
Martin
Wed 12 Dec, 2007 20:33

Re: How To Use Images On Other Forums
-----------------------------------
any help on the rewrite issues?


-----------------------------------
Mighty Gorgon
Sun 16 Dec, 2007 01:40

Re: How To Use Images On Other Forums
-----------------------------------
It should be enough if you add the rewrite rules on HTACCESS.

[codeblock]RewriteRule ^.+-at([0-9]*) album_thumbnail.php?%{QUERY_STRING}&pic_id=$1 [L]
RewriteRule ^.+-apic([0-9]*) album_pic.php?%{QUERY_STRING}&pic_id=$1 [L]
RewriteRule ^.+-apm([0-9]*) album_picm.php?%{QUERY_STRING}&pic_id=$1 [L][/codeblock]


-----------------------------------
Martin
Wed 19 Dec, 2007 17:13

Re: How To Use Images On Other Forums
-----------------------------------
[quote user="Mighty Gorgon" post="22294"]It should be enough if you add the rewrite rules on HTACCESS.

[codeblock]RewriteRule ^.+-at([0-9]*) album_thumbnail.php?%{QUERY_STRING}&pic_id=$1 [L]
RewriteRule ^.+-apic([0-9]*) album_pic.php?%{QUERY_STRING}&pic_id=$1 [L]
RewriteRule ^.+-apm([0-9]*) album_picm.php?%{QUERY_STRING}&pic_id=$1 [L][/codeblock][/quote]

Unfortuntely that didn't help...

I try posting in another forum, and just get a line of text instead of the image..like this: [img]http://www.akvarieplanter.dk/forum/album_pic.php?pic_id=973&user_id=2[/img]

I would've thought that the link needed to be rewritten to .jpg?


-----------------------------------
Artie
Fri 21 Dec, 2007 00:38

Re: How To Use Images On Other Forums
-----------------------------------
Did you read the STICKY   [highlight=#FFFFAA]Rewrite Jpg Url-s In Album [/highlight] at the top of this forum ?


-----------------------------------
Martin
Fri 21 Dec, 2007 17:29

Re: How To Use Images On Other Forums
-----------------------------------
[quote user="Artie" post="22489"]Did you read the STICKY   [highlight=#FFFFAA]Rewrite Jpg Url-s In Album [/highlight] at the top of this forum ?[/quote]

yes I read it and tried..

what I want is to rewrite this:

album_pic.php?pic_id=993&user_id=2

to xxxxx.jpg

so I can use it as a jpg...

I tried both MG's and the sticky...

The htaccess in in my webroot, and forum is : /forum

htaccess looks like this:

##########album rewrite dims
RewriteEngine On  
#######RewriteBase /
#########RewriteRule ^pic_([0-9]*).jpg forum/album_pic.php?pic_id=$1 [L,NC]

RewriteRule ^.+-at([0-9]*) forum/album_thumbnail.php?%{QUERY_STRING}&pic_id=$1 [L]
RewriteRule ^.+-apic([0-9]*) forum/album_pic.php?%{QUERY_STRING}&pic_id=$1 [L]
RewriteRule ^.+-apm([0-9]*) forum/album_picm.php?%{QUERY_STRING}&pic_id=$1 [L]


