Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Vivvo 4 > News and Product Updates

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.

Reply
 
Thread Tools Display Modes
Old 01-19-2010, 11:13 AM   #21
Micha
Administrator
 
Micha's Avatar
 
Join Date: Feb 2006
Location: Belgrade
Posts: 2,662
Rep Power: 10
Micha will become famous soon enough
Default

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...
Micha is offline   Reply With Quote
Old 01-20-2010, 05:01 AM   #22
akash210
Senior Vivvo User
 
akash210's Avatar
 
Join Date: Mar 2009
Posts: 466
Rep Power: 5
akash210 is on a distinguished road
Default

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?
akash210 is offline   Reply With Quote
Old 01-20-2010, 08:51 AM   #23
Micha
Administrator
 
Micha's Avatar
 
Join Date: Feb 2006
Location: Belgrade
Posts: 2,662
Rep Power: 10
Micha will become famous soon enough
Default

Quote:
Originally Posted by akash210 View Post
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...
Micha is offline   Reply With Quote
Old 01-20-2010, 03:02 PM   #24
durham
New Vivvo User
 
Join Date: Oct 2008
Posts: 25
Rep Power: 0
durham is on a distinguished road
Default

Quote:
Originally Posted by Micha View Post
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
durham is offline   Reply With Quote
Old 01-21-2010, 03:41 AM   #25
akash210
Senior Vivvo User
 
akash210's Avatar
 
Join Date: Mar 2009
Posts: 466
Rep Power: 5
akash210 is on a distinguished road
Default

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.
akash210 is offline   Reply With Quote
Old 01-22-2010, 12:48 AM   #26
sz444sz
Guest
 
Posts: n/a
Default

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.
  Reply With Quote
Old 01-22-2010, 05:19 AM   #27
akash210
Senior Vivvo User
 
akash210's Avatar
 
Join Date: Mar 2009
Posts: 466
Rep Power: 5
akash210 is on a distinguished road
Default

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..
akash210 is offline   Reply With Quote
Old 01-22-2010, 10:01 AM   #28
sz444sz
Guest
 
Posts: n/a
Default

table of contents/navigation

Chaers.
  Reply With Quote
Old 02-06-2010, 02:07 AM   #29
sz444sz
Guest
 
Posts: n/a
Default

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]
  Reply With Quote
Old 03-31-2010, 03:17 AM   #30
trackpads
Guest
 
Posts: n/a
Default

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
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

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)

All times are GMT +1. The time now is 10:38 PM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.