Adding a link to /quotes at the bottom of the block?
tgeller - August 16, 2008 - 20:53
| Project: | Quotes |
| Version: | 6.x-1.1-alpha5 |
| Component: | Code |
| Category: | support request |
| Priority: | minor |
| Assigned: | NancyDru |
| Status: | closed |
Jump to:
Description
Hey, folks -- great module! I'm using it on the home page of http://www.gellerguides.com for the "Endorsements" block.
Quick question. I'd like to have a link at the bottom of that block that goes to the /quotes page. I tried (lightly) hacking the module, but have poor programming skills. Could you tell me where I could slip that in?
Thanks in advance,

#1
I think you could do this very simply by adding the html as the last thing in the "cite" text field. Maybe put in a line break before it if you have anything else in the box, but it looked like you didn't use that field with your quotes.
#2
That would work, but (if I understand you right) I'd have to put it into every quote. I'm sure there's a way to automatically add it to every quote by editing the PHP files.
#3
I thought you meant to the source of the quote, outside your site, where the url would be different each time. For what you want, I think I'd just copy and paste, if it works at all.
I had another issue with this module - it simply would not show up unless it was ticked to show on the front page. I deleted the module and I'm not using it now. I posted about it and have not received a response.
http://www.fromoutoftheblue.com
#4
@2createwdrupal: your issue has been responded to.
@tgeller: A very creative way to use quotes; I may borrow that myself sometime. Is there a particular block (e.g. random) that you want this in?
#5
#6
I'm not sure I understand your question, Nancy, so with luck this comment will clarify.
There's a block on the front of gellerguides.com that displays a random quote. I'd like the following at the bottom of that block, regardless of which random quote is displayed:
<a href="/quotes">more</a>Adding that to each quote is a poor solution; much better would be to edit the PHP that makes up the module's code, so that link would appear consistently and with no additional work.
Thanks in advance for your help!
#7
That answered my question. I pretty much guessed that you were using random.
#8
Ah, thanks -- now I understand the question. Yes, I'm using the "random" setting.
Any suggestions?
#9
Committed to both branches. Will roll into the -dev release around midnight GMT (8PM US Eastern).
There is now a setting for the random block to determine what text you want on the "more" link.
#10
Thank you! This is wonderful -- I'll check it out tonight and let you know of any problems.
#11
You are quite welcome. BTW, check the project page.
#12
This is great. Thank you! I've implemented it at gellerguides.com -- take a look. :)
If you'd care to give it more flexibility, would it be possible to style that text? For example:
<div align="right"><i>Other endorsements...</i></div>But in any case, thanks again for the improvement!
#13
Try adding something like this to your CSS:
.quotes_more_link {text-align: right;
}
If you use Firefox, I suggest adding Firebug to it so that you can see what classes are available on any element.
Looks great. Now I need to figure out why it's not using the menu title at the top of the page.
#14
Thanks again! I'm not very good with CSS, so the fact that you provided specific code helped a lot. Cheers,
#15
I just committed the CSS so it will be there later today.
#16
Automatically closed -- issue fixed for two weeks with no activity.