Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Using PHP or CuteCode in quicktags

 
Reply to topic    Forum Index » Help View previous topic
View next topic
Using PHP or CuteCode in quicktags
Author Message
Thrik



Joined: 26 Oct 2005
Posts: 50

Post Using PHP or CuteCode in quicktags Reply with quote
In one of my quicktags I would very much like it to automatically enter the current article's user friendly URL, kind of like this:



<div class="onleft"><a href="/display/image/articles/$1.jpg?from=$title"><img src="/i/articles/$1.gif" alt="Image" /></a></div>



("short" mode tag)



The problem is it will just output "$title", and I can't think of any other way to actually make it automatically include the URL for me.



I could in theory just use a more complex tag and then manually copy in the URL from the "optional url" field, but that would be quite a lot of work since I add a lot of articles. Perhaps there is a way to make the quicktags read from that optional url field? (though it doesn't seem to be an xfield so I have no idea how)



Hope somebody can help, and I hope I made the question clear enough. Shocked
Fri Jan 20, 2006 4:40 pm View user's profile Send private message
Guest








Please login to hide the ads.

Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.