PDA

View Full Version : [Answered] Multi page articles and navbits


wirewolf
02-24-2005, 06:51 PM
Installed newest version, works fine. There are two minor points however.
One - With a multi page article any comments are shown on the last page of the article, but the link in the statscomments points to the first page of the article. I added a bookmark (#comm) in the link and in the 'vbArticles_commentbit_post' (<td class="thead" align="left"><a name="comm">&nbsp;</a></td>) to take the user right to the last comment made. Works fine for a one page article, but not for a multi page one (just goes to the first page). I tried adding the pageno to the link in 'vbArticles_stats_commentbits'
from this -<a href="articles.php?action=viewarticle&artid=$commentonarticle#comm">$commenttext</a>
to this - <a href="articles.php?action=viewarticle&artid&pageno=$commentonarticle#comm">$commenttext</a>
or this - <a href="articles.php?action=viewarticle&artid=$commentonarticle=$pagenno#comm">$commenttext</a>
but it won't work. I imagine that the stats section of articles.php has to be edited also, but I'm not sure of the correct syntax.
Two - Again with multi page articles, when you go to any of the other pages, except for page one, the page one title shows in the navbits. Is there a way to get the actual pagetitle in to the navbit for a multi page article?
Thanks, John
BTW, cinq, much improvement on v2. I've gotten many good comments (no pun intended) from my users on the Articles Addition. I now have all of my old articles (38) moved over to the new articles section. Looks great! Thanks for the hard work to you and the other contributors.

cinq
02-25-2005, 01:25 PM
Ah ... i see you have re-done the templates change again, it's looking great :D
You should showcase it in this thread (https://vborg.vbsupport.ru/showthread.php?t=76824), highlighting your changes :D


Installed newest version, works fine. There are two minor points however.
One - With a multi page article any comments are shown on the last page of the article, but the link in the statscomments points to the first page of the article. I added a bookmark (#comm) in the link and in the 'vbArticles_commentbit_post' (<td class="thead" align="left"><a name="comm">&nbsp;</a></td>) to take the user right to the last comment made. Works fine for a one page article, but not for a multi page one (just goes to the first page). I tried adding the pageno to the link in 'vbArticles_stats_commentbits'

but it won't work. I imagine that the stats section of articles.php has to be edited also, but I'm not sure of the correct syntax.

Yep I get what you mean. Actually the discuss icon linked to the anchor is only temporary. It's there for the planned future feature addition of linking to an actual forum discussion thread for an article. I guess you could remove the link to the anchor for now if it bugs you.



Two - Again with multi page articles, when you go to any of the other pages, except for page one, the page one title shows in the navbits. Is there a way to get the actual pagetitle in to the navbit for a multi page article?

Can I see a link for this ? Don't quite get what you mean.

wirewolf
02-27-2005, 12:23 AM
Originally Posted by wirewolf
Two - Again with multi page articles, when you go to any of the other pages, except for page one, the page one title shows in the navbits. Is there a way to get the actual pagetitle in to the navbit for a multi page article?
See this three page article I have on my forum - Here Today, Maybe Gone Tomorrow? (http://shipmodeling.net/vb_forum/articles.php?action=viewarticle&artid=3). If you go to page 2, 3 or 4, the navbit still has the first page title instead of the 2nd, 3rd, or 4th page title. I tried editing in articles.php to no avail. Guess it would work if you could break the 'pagebreak' names into individual bits. Oh, one other thing. Some of my members thought that the "Subscriptions" meant getting email updates on any comments made to thier article(s). I was looking in articles.php and was able to query the 'authors' email in the authorprofile section, but don't know how to add it to the sendmail for that author(user).
I'll post my Articles Section in the other thread like you asked. I've set up a testing account with limited user functions for other Admins to use so they can better see all of the edits I've made. If you want. I'll PM it to you.
Great improvement over the first version. The install went smooth as silk.
Thanks cinq,
John

cinq
02-27-2005, 12:53 AM
Ah i see what you mean.
Actually it is set up that way, because the navbit should show the Article's Title, in which case is "Here Today, Maybe Gone Tomorrow?"
The article index only shows the page titles, kinda of like page labels only.
If you wanted it to show the page titles instead, firstly it may get confusing, secondly, it would require some code changes ( obviously :D )

As for the subscriptions, i will look into it. Was thinking of expanding on it anyways.

wirewolf
02-27-2005, 01:53 AM
Like I said on the navbit thing, minor. I was fooling around yesterday with the navbit section for article view in the php file, and actually got the article index to show as the navbit. Looked interesting, but weird. Gave it up.
The email notification would be a great add on. I'll keep fooling around with the php file and see what happens.