How to move Quotes?

Hello,

I want to move Daily Quotes from the header (v7.0.8) to the bottom like it was in the old version (v6.1.6)

What file do I look for to DELETE Daily Quotes from the header (v7.0.8)?

Thanks in Advance, Blaine
Quote · 5 Nov 2011

.... also, what text or script do I need to add to the footer, to display the Daily Quotes?

Thanks in Advance, Blaine
Quote · 6 Nov 2011

It does not work the same in D7 as it did in D6."

D7 positions the quotes via the D7 template injection system. Currently the quotes are inserted in the template at the injection_logo_after injection point.

To move it you change the database entry for the injection. Run the following in phpMyAdmin

UPDATE `sys_injections` SET `key` = 'injection_footer' WHERE `name` = 'quotes_injection';

That will move it to the footer injection point.

Then clear the dolphin cache.

Then you will need to to modify modules\boonex\quotes\templates\base\css\unit.css to adjust the values for the quote_div to get it positioned properly.

https://www.deanbassett.com
Quote · 6 Nov 2011

Thanks deano92964,

So far it moved it from the header to about 10 inches down and to the right (outside my border)....

I'm guessing it did this because I have DOLPHIN inside a "TABLE" to create the look that I wanted.....

How can I move it to the bottom?

To have a look-see go to: http://isexclub.net

I want the quotes in the table @ the bottom of the page.

Thanks in Advance, Blaine
Quote · 10 Nov 2011

Deano's right but 7.0.8 is different even to that, to get it under the copyright you need this query:

UPDATE `sys_injections` SET `key` = 'injection_footer_after' WHERE `sys_injections`;

Quote · 10 Nov 2011

 

Deano's right but 7.0.8 is different even to that, to get it under the copyright you need this query:

UPDATE `sys_injections` SET `key` = 'injection_footer_after' WHERE `sys_injections`;

Dear 

I got an error when I used your suggestion, but when I changed WHERE `sys_injections`; to WHERE `quotes_injection`; the row was affected OK.... unfortunately it still did not move the quotes to the bottom... they are still about 10 inches down from the top and to the right (outside the border)... any other ideas?

Thanks in Advance, Blaine
Quote · 10 Nov 2011

The css i mentioned also needs to be modified. It contains positional elements which must be removed and changed as needed to get the correct position on the bottom of the page.

https://www.deanbassett.com
Quote · 10 Nov 2011

HOW TO MOVE THE QUOTES TO THE BOTTOM OF THE PAGE.

 

With deano92964 and DCSniper's help (thanks guys!) and a little trial and error, here is how I accomplished moving the Quotes to the bottom of the page.

 

STEP 1. Run the following in phpMyAdmin: 

UPDATE `sys_injections` SET `key` = 'injection_footer_after' WHERE `quotes_injection`;

 

STEP 2. Since I added some banners & images to the bottom of the "footer.html" I wanted the QUOTES to appear below them at the VERY BOTTOM of the page.... to accomplish this

  • I opened "_sub_footer.html" (../templates/base/_sub_footer.html) and deleted "<bx_injection:injection_footer_after />" (and then moved it...)
  • By opening "_footer.html" (../templates/base/_footer.html) and added "<bx_injection:injection_footer_after />" where I wanted the quotes to appear (in my case I added the quotes inside a table at the very bottom of the page)

 

STEP 3. Then I opened "unit.css" (../modules/boonex/quotes/templates/base/css/unit.css), 

On line 6 (six) I DELETED:  position:absolute;

 

... then I changed other items to be visually pleasing, here is what mine looks like:

 

 

.quote_div {

width: 94%;

        margin-left:auto;

        margin-right:auto;

}

 

.daily_quotes {

        margin-top:10px;

color:#969696;

font-size:12px;

text-align:center;

}

 

.quote_div .author {

color:#969696;

font-size:10px;

text-align:center;

}

 

If you would like to see the finished product go to: http://isexclub.net (FAIR WARNING: This is an ADULT WEBSITE)

Thanks in Advance, Blaine
Quote · 14 Nov 2011

That is why i suggested this injection point.

UPDATE `sys_injections` SET `key` = 'injection_footer' WHERE `name` = 'quotes_injection';

Instead of this one.

UPDATE `sys_injections` SET `key` = 'injection_footer_after' WHERE `name` = 'quotes_injection';

Becuse injection_footer_after is in _sub_footer.html after the copyright.

But injection_footer is in _footer.html just before the closing body tag. Which would place it right at the end without the need to edit the templates to move the injection point.


https://www.deanbassett.com
Quote · 14 Nov 2011

Thanks deano92964,

I appreciate the indepth explanation, now.

You must understand that just when I was getting to undertand Dolphin (6) and how it works, Boonex decides to re-write it.... Now it's an all NEW learning curve to most (all) of us.

Even though I'm just learning the NEW Dolphin, I thought it would be nice to write a step-by-step process for others like me. I enjoy a challenge just like the next guy, but after about 3 hours trying to figure this one out, I sure would have appreciated a more detailed step-by-step.

Thanks in Advance, Blaine
Quote · 14 Nov 2011

Sorry. I could not provide step by step instructions for the css.

I did however provide the proper injection point in my first post. And which css file to edit. However because i have never moved the quotes to the bottom, i could not provide the edits to the CSS needed to make the change.

There is also a template that holds the quotes containing div in modules\boonex\quotes\templates\base\unit.html that could also have been edited. Which i also could not provide edits for.

I just did not have time to do it myself so i could come up with full instructions.

https://www.deanbassett.com
Quote · 14 Nov 2011
 
 
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.