| News and Product Updates To be sure you don't miss out on important product update or patch, we recommend subscribing to this forum. We always post important messages here, so if you subscribe, you'll get an email whenever a new item is posted. |
01-19-2010, 11:13 AM
|
#21
|
|
Administrator
Join Date: Feb 2006
Location: Belgrade
Posts: 2,662
Rep Power: 10
|
Nope, I wouldn't say it's due to multipage article plug-in.
My guess, your #dynamic_box_right is within #dynamic_box_center.
__________________
--[Read Forum Rules and Guidelines before you post!!!]--
Djole, Djole, bas si bezobrazan sto si se pravio da si mali zekan. Zato cu te dobro kazniti...
|
|
|
01-20-2010, 05:01 AM
|
#22
|
|
Senior Vivvo User
Join Date: Mar 2009
Posts: 466
Rep Power: 5
|
Don't you find it weird that this happens only on pages where the plugin is being used? So I don't think that's it, else it would have happened on all other pages.. yeah?
|
|
|
01-20-2010, 08:51 AM
|
#23
|
|
Administrator
Join Date: Feb 2006
Location: Belgrade
Posts: 2,662
Rep Power: 10
|
Quote:
Originally Posted by akash210
Don't you find it weird that this happens only on pages where the plugin is being used? So I don't think that's it, else it would have happened on all other pages.. yeah?
|
Nope, I don't find it weird at all.
Have you checked your code for that template, perhaps you have some unclosed div?
And also have you compared the code on other pages that doesn't have multipage article plug-in?
Well I have, and #dynamic_box_right is not within #dynamic_box_center, so again, my guess, the right column is down because #dynamic_box_right is within #dynamic_box_center.
I have also used multipage article on OneMyVivvo template set, and, well, don't you find it weird that it works for me perfectly on all pages, and that my right column is in place where it's meant to be?
Pretty weird, huh?
__________________
--[Read Forum Rules and Guidelines before you post!!!]--
Djole, Djole, bas si bezobrazan sto si se pravio da si mali zekan. Zato cu te dobro kazniti...
|
|
|
01-20-2010, 03:02 PM
|
#24
|
|
New Vivvo User
Join Date: Oct 2008
Posts: 25
Rep Power: 0
|
Quote:
Originally Posted by Micha
Just a thought - after you install multipage plug-in, check if the installer altered your tinyMCE_config.php file located in your admin/js folder.
Check if the theme_advanced_buttons2: has pagebreak at the end of it, also, above that (around line 30), you should have something like this
Code:
echo 'pagebreak,advimage,media",
One more thing comes to my mind, go to your VIVVO_ROOT/js/tiny_mce/plugins/ and check if the installation has copied pagebreak folder.
|
That's done it - it was permissions! (thx johnsalvia)
I did not know about this file: /admin/js/tinyMCE_config.php
which needed 666 permissions (js/tiny_mce/* probably does too)
Many Thanks.
Durham
|
|
|
01-21-2010, 03:41 AM
|
#25
|
|
Senior Vivvo User
Join Date: Mar 2009
Posts: 466
Rep Power: 5
|
I've managed to solve it. The problem is actually with TinyMCE editor. Damn thing will add <div>'s everywhere and for no reason! I hate that! Even a simple <br /> is enclosed within <div> tags!
Anyway, so I removed all those unnecessary <div> tags and the problem was solved.
|
|
|
01-22-2010, 12:48 AM
|
#26
|
|
Guest
|
Litle modification:
plugin/multipage_article/multipage_article_url_handler
Code:
$page = 1;
$pages = explode('<!-- pagebreak -->', $sm->article->body);
$pages_count = count($pages);
$tytul = preg_match_all('/<p class=\"tytul_spistresci\">(.*?)<\/p>/',$sm->article->body,$pt);;
$tytul_count = count($pt[0]);
if ($pages_count>1) {
$page = $um->get_param('p');
if ($page=="" || $page<1 || $page>$pages_count) $page=1;
$sm->article->body = $pages[$page-1];
$navigation = array();
for($i=1;$i<$pages_count+1;$i++){
if($i!=$page){
array_push($navigation, '<li><a class="page" href="'.$sm->article->get_href().'?p='.($i).'"onfocus="blur()">'.($i).'</a></li>');
} else{
array_push($navigation, '<li><span class="current">'.($i).'</span></li>');
}
}
$template->assign('article_navigation', $navigation);
}
if ($pages_count>1) {
$page = $um->get_param('p');
if ($page=="" || $page<1 || $page>$pages_count) $page=1;
$sm->article->body = $pages[$page-1];
$nawigacja = array();
for($i=0;$i<$tytul_count;$i++){
array_push($nawigacja, '<li>'.($i+1).'. <a class="page" href="'.$sm->article->get_href().'?p='.($i+1).'"onfocus="blur()">'.$pt[1][$i].'</a></li>');
}
$template->assign('article_navigation_spistresci', $nawigacja);
}
$template->assign('multipage_article_page', $page);
$template->assign('spis_tresci', $spis);
Add this to template/artcile/multipage_article.tpl
Code:
<vte:if test="{article_navigation_spistresci}">
<div id="multipage-article-spistresci">
<ul>
<vte:foreach item="article_page_link" from="{article_navigation_spistresci}">
<vte:value select="{article_page_link}" />
</vte:foreach>
</ul>
</div>
</vte:if>
and source html for article in tinymce
Code:
<p class="tytul_spistresci">Hello 1</p>
bla bla bla 1
<!-- pagebreak -->
<p class="tytul_spistresci">Hello 2</p>
bla bla bla 2
<!-- pagebreak -->
<p class="tytul_spistresci">Hello 3</p>
bla bla bla 3
Last edited by sz444sz; 01-22-2010 at 01:09 AM.
|
|
|
|
01-22-2010, 05:19 AM
|
#27
|
|
Senior Vivvo User
Join Date: Mar 2009
Posts: 466
Rep Power: 5
|
I know what you're doing.. but if you could just translate it to english (things like 'spistresci' or 'nawigacja'), it would be great! I just know that tytul means title. lol..
|
|
|
01-22-2010, 10:01 AM
|
#28
|
|
Guest
|
table of contents/navigation
Chaers.
|
|
|
|
02-06-2010, 02:07 AM
|
#29
|
|
Guest
|
How rewrite url?
news/3.html?p=2
to
news/3-2.html
I try this
RewriteRule ^([^-]+)-([^-]+).html$ index.php?news=$1&p=$2 [L]
|
|
|
|
03-31-2010, 03:17 AM
|
#30
|
|
Guest
|
I had the same permissions problems but once I read through this post I figured it out.
I really like this plugin, thanks again for the work of putting it together!
One request for the next version, would it be possible to have a different image on each page? Like on the big sites? for example an article could have 5 images attached and one is shown on each page.
Thanks again,
-Jason
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Support HelpDesk:
You can submit a trouble ticket in the support area at any time, using your client area email and password.
Vivvo CMS Resource Center:
The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!
Latest Additions:
Contact us:
Business hours
Mon-Fri 9:00AM - 6:00PM GMT+1
(Europe)
Telephone Sales
381 11 311-50-20
Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)
|