vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   First post on every page of thread. (https://vborg.vbsupport.ru/showthread.php?t=93706)

craiovaforum 07-02-2007 07:01 AM

Quote:

Originally Posted by Saskia (Post 1280226)
You can easily do this by copying your regular postbit content to the top of the postbit_first and sort of do the following with a conditional around it:
Code:

<if condition="$post[postcount]==1">

Your regular postbit content here

<else />

the postbit_first content you want on all other pages

</if>

Good luck!

That's wrong :D
Because the postcount for that is always 1, since the forst post is only shown on every page, not copied.

I managed to do this this way:

AdminCP->Plugins & Products->Plugin Manager

edit: Show First Post from hook location: postbit_display_complete

Modify the PHP code like this:

Code:

if ($this->forum['showfirstpost']==1 AND $post['postid']==$this->thread['firstpostid'] AND $vbulletin->GPC['pagenumber'] > 1){
$this->templatename = 'postbit_first';
}

This way, the plugin is used for all the pages except the first page, where it's used the normal vB postbit template.

tthis way, you can edit the postbit_first template without affecting the first post on the first page.

Saskia 07-08-2007 05:17 PM

Quote:

Originally Posted by craiovaforum (Post 1281071)
That's wrong :D
Because the postcount for that is always 1, since the forst post is only shown on every page, not copied.

Ah yes of course that was wrong. Haha. My defense: I'm blonde :p.

gregfindley 07-09-2007 06:10 PM

Is it possible to use this mod for just one forum area instead of all forums?

Thanks in advance,
Greg

DjTaz 07-09-2007 06:12 PM

Quote:

Originally Posted by gregfindley (Post 1286901)
Is it possible to use this mod for just one forum area instead of all forums?

Thanks in advance,
Greg

Yes , thats how its designed - you pick the forums you wish to use it on in the forums manager at the bottom.

gregfindley 07-10-2007 11:58 AM

Thanks for your reply, its all installed and working on my forums now- Thanks!!
Greg

Coach_Guru 07-10-2007 07:45 PM

Any consideration about duplicate content?

Do you think search engine can penalize for duplicate content?

vspro 08-09-2007 11:33 AM

worked at 3.6.8 ???

redmondtm 08-22-2007 08:19 PM

Not sure if this hack is compatible with 3.6.8. Ive tired to install it several times with no luck.

craiovaforum 08-22-2007 09:48 PM

on my forum it works

redmondtm 08-22-2007 09:58 PM

Not if you view the last posted thread from your forumhome.


All times are GMT. The time now is 02:33 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01192 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete