Modifying the content flag & edit links. - Solved!

Dec 12, 2007 15:12

Hi! I'm currently using this tutorial to change my entry and comment linkbars from text to images. It's still working fine, but I would love to be able to change the content flag link & the edit the comment link to images as well. Is there anything I can add to the existing code in order to do that? Thanks in advance ( Read more... )

link bar

Leave a comment

roomfor2 December 12 2007, 21:09:20 UTC
Yep, you know in your tutorial where you change the red text, you need to add in

"flag" => "url of image",

and

"edit_entry" => "url of image",

in the order you want them to be in the linkbar in relation to the others that you already have. You need to do it in both places where you need to specify urls.

I'm rubbish at explaining, but hopefully that makes sense.

Reply

contrary_lady December 12 2007, 21:25:22 UTC
The flag is working, but for some reason the edit the comment isn't.

Reply

roomfor2 December 12 2007, 21:31:58 UTC
Sorry, my fault completely. In the second set of data, you need to add

"edit" => "url of image",

not the edit entry that I told you previously.

Let me know if that works for you.

Reply

contrary_lady December 12 2007, 21:40:34 UTC
It's no problem. It doesn't seem to be working. Perhaps I need to tweak something in this section? :

# Print the start of the comment linkbar ( ... )

Reply

roomfor2 December 12 2007, 21:48:01 UTC
it's weird that the flag bit works without having to look at that bit, but now I'm looking at my layer, try adding in this with the other bits that are similar.

elseif ($key=="edit_comment") { print "
... )

Reply

contrary_lady December 12 2007, 21:54:12 UTC
That seems to have made my edit comment button disappear. :( (I'm sorry this is so frustrating! It means a lot to me that you're trying to help me.)

Reply

roomfor2 December 12 2007, 22:06:32 UTC
hmm ok I'll need to have another look when I'm more awake.
Here's my layer if you want to take a look at what I'm using (it's about 2/3rds of the way down to get to the relevant bit).

http://www.livejournal.com/customize/advanced/layersource.bml?id=9510542

I'll check back in the morning and see how you've got on. Roomie needs her beauty sleep. Night xxx

Reply

contrary_lady December 12 2007, 22:11:42 UTC
Thank you so much! It works perfectly now. Sleep well. :)

Reply

roomfor2 December 13 2007, 10:21:21 UTC
I'm glad you got it to work! :D

Reply

roomfor2 December 13 2007, 10:27:13 UTC
btw how do you do those scroll boxes that you used in that comment above? I've always wondered that.

Reply

contrary_lady December 13 2007, 16:22:37 UTC
It's:

*<*textarea*>*
Whatever you want in the scroll box.
*<*/textarea*>*

(Just take out all the *.)

Reply

roomfor2 December 13 2007, 18:38:35 UTC
I'll have to give it a try, thanks!

Reply

contrary_lady December 15 2007, 01:54:20 UTC
You're welcome!

Reply


Leave a comment

Up