How to display Random Quotes?

lp897 posted 31st of May 2008 in Community Voice. 11 comments.

How to display Random Quotes?

Please any Idea?

Version

Installed - 6.1.1

 
Comments
·Oldest
·Top
Please login to post a comment.
tango3d
here are instructions for 6.0005 I dont know if it works in 6.1.1

1) Place string

$_page_cont[$_ni]['daily_quotes'] = quote_get();

after

$_page_cont[$_ni]['promo_code'] = getPromoCode();

in templates/tmpl_uni/scripts/index page.

2) Add string

<div style="width:754px; margin-left: auto; margin-right: auto;">__daily_quotes__</div>

to the templates/tmpl_uni/page_1.html file after __include _footer.html__.

Correct style settings of this block see more if you need.
lp897
hello,

unfortunately the index page that you mentioned as the first step "templates/tmpl_uni/scripts/index page" doesn't exist in that folder(templates/tmpl_uni/scripts).. Any idea?
tango3d
OK here is how you can do it,

1, go to your main dolphin directory and edit index.php, find: this line:

$_page_cont[$_ni]['promo_code'] = getPromoCode();

2. just after the above code add the following code:

$_page_cont[$_ni]['daily_quotes'] = quote_get();

3, go to templates/tmpl_uni/page_1.html

4, find __promo_code__

5, just after it, add the following code:

<div style="width:754px; margin-left: auto; margin-right: auto;">__daily_quotes__</div>

should see more work now in 6.1.1
tango3d
Forgot to say, you can change the width from 745px to fit the with of your page.
mikebeckford
i didnt see this text $_page_cont[$_ni]['promo_code'] = getPromoCode(); in index.php.
lp897
Thanks a lot, tango... this worked..
you can see it at www.emprendevision.com

ps.. I sent you an email asking you about the TinyMCE issue I hope you have an answer for that...

thank you again..
WDBArnyVee
Thank you so much! This helped! :D
nmichaud
Hi,

I have try the code and it working perfectly. However I would like to have the quote display in a block. How could I do that?
monkerz
yeah that is what I am looking for a block why was this offered undertools if it isn't already there lol.
-Ted
kramer95404
Tango3d's solution given here did not work for me in 6.1.4.

:(
TruckingSpace
It worked on our site at: www.truckingspace.com

Used this code:

<div style="width:754px; margin-left: auto; margin-right: auto;">__daily_quotes__</div>
<hr />
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.058011054992676