Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vbArticles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Answered] Multi page articles and navbits Details »»
[Answered] Multi page articles and navbits
Version: , by wirewolf wirewolf is offline
Developer Last Online: Sep 2008 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-24-2005 Last Update: Never Installs: 0
 
No support by the author.

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'
Quote:
from this -<a href="articles.php?action=viewarticle&artid=$comme ntonarticle#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=$comme ntonarticle=$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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-25-2005, 01:25 PM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah ... i see you have re-done the templates change again, it's looking great
You should showcase it in this thread, highlighting your changes


Quote:
Originally Posted by wirewolf
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.


Quote:
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?
Can I see a link for this ? Don't quite get what you mean.
Reply With Quote
  #3  
Old 02-27-2005, 12:23 AM
wirewolf's Avatar
wirewolf wirewolf is offline
 
Join Date: Jun 2004
Location: New York City
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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?. 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
Reply With Quote
  #4  
Old 02-27-2005, 12:53 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 )

As for the subscriptions, i will look into it. Was thinking of expanding on it anyways.
Reply With Quote
  #5  
Old 02-27-2005, 01:53 AM
wirewolf's Avatar
wirewolf wirewolf is offline
 
Join Date: Jun 2004
Location: New York City
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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


All times are GMT. The time now is 05:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06478 seconds
  • Memory Usage 2,244KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete