Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 04-17-2007, 05:28 AM
Ariel Offline
pp regular
 
Join Date: Dec 2005
Posts: 32
Digg

Would it be possible to extract the current URL, similar to <IMAGE_PERMALINK>, for use in other links?

For example, if you wanted to add a link to Digg this page, you'd need a link to http://digg.com/submit?phase=2&url=example.com

Also, your link need to URL-encode your strings like http%3A%2F%2Fyourwebsite%2Fyourstoryurl%2Fstorypag edetails.html

Is there a tag which lets you do this?

Edit: I did it by hacking index.php, but perhaps there's a more elegant solution.
__________________
Photoblog

Last edited by Ariel; 04-17-2007 at 06:23 AM.
Reply With Quote
  #2  
Old 04-17-2007, 06:09 AM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
You could make make a little addon to do that, or you could try adding a few tags together like the person did in this thread:
http://forum.pixelpost.org/showthread.php?t=3392
__________________
Jay Williams | A Different View
Reply With Quote
  #3  
Old 04-17-2007, 06:27 AM
Ariel Offline
pp regular
 
Join Date: Dec 2005
Posts: 32
Ah, excellent. That's a nice framework. Thanks Jay.

This works:

Code:
<a href="http://digg.com/submit?phase=2&amp;url=<SITE_URL>index.php?showimage=<IMAGE_ID>">Digg</a>
__________________
Photoblog

Last edited by Ariel; 04-17-2007 at 06:38 AM. Reason: added the code
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:52 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs