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
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

2createwdrupal - August 17, 2008 - 09:53

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

tgeller - August 22, 2008 - 03:23

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

2createwdrupal - August 22, 2008 - 06:58

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

NancyDru - August 22, 2008 - 17:49

@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

NancyDru - August 22, 2008 - 23:17
Status:active» postponed (maintainer needs more info)

#6

tgeller - August 23, 2008 - 03:42

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

NancyDru - August 23, 2008 - 04:50
Status:postponed (maintainer needs more info)» active

That answered my question. I pretty much guessed that you were using random.

#8

tgeller - August 23, 2008 - 08:37

Ah, thanks -- now I understand the question. Yes, I'm using the "random" setting.

Any suggestions?

#9

NancyDru - August 23, 2008 - 17:17
Assigned to:Anonymous» NancyDru
Status:active» fixed

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

tgeller - August 23, 2008 - 17:49

Thank you! This is wonderful -- I'll check it out tonight and let you know of any problems.

#11

NancyDru - August 23, 2008 - 18:10

You are quite welcome. BTW, check the project page.

#12

tgeller - August 24, 2008 - 05:33

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

NancyDru - August 24, 2008 - 11: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

tgeller - August 25, 2008 - 23:31

Thanks again! I'm not very good with CSS, so the fact that you provided specific code helped a lot. Cheers,

#15

NancyDru - August 26, 2008 - 13:35

I just committed the CSS so it will be there later today.

#16

Anonymous (not verified) - September 11, 2008 - 05:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.