vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   First Post on every pages (https://vborg.vbsupport.ru/showthread.php?t=71224)

AnhTuanCool 10-31-2004 10:00 PM

First Post on every pages
 
Fully tested on vb 3.0.3
Request by Johnny

Hacks Stats:
Install diffuculty: medium
File to edit: 4
File to add: none
Template to edit: 3
Template to add: 1
Query to run: 1
Install time: less than 5 min

Description:
This hack add an additional option to show FIRSTPOST of the thread on every pages after page#1. Can be considered useful for some competition or request or chat chitting threads that need to review the rules or some marked things showed on the firstpost.

Feature:
- Show option to enable show firstpost for mod only
- Show option to enable for old thread too
- Show firstpost (if enable for thread) on everypage and doesn't count for postcount
- Click edit or quote as normal
- postbit Template
- show username and avatar as default

Feature has not achieved yet:
- Attachment in firstpost
- postbit_legacy template support
- Lessen 1 query for showthread.php

Update:
- The update came with a preset for forum that automatically enable this hack when new thread is made and option to turn on or off this hack overal (see attachment)

Installing instruction:
attachment

If you find this hack useful and want to inform any update, plz click INSTALL. Have fun ;)

EDIT: I've been gone and will be long from now, sorry if I can't support my hack as I specified before.

nexialys 10-31-2004 11:00 PM

i like that idea... i was planning to build something similar, so it's good !

Amavisca 10-31-2004 11:52 PM

NOt sure gonna use yet but seem nice to me. Thnx

Johnny 11-01-2004 03:38 AM

this is one awsome mod for my site, AnhTuanCOol im gonna call you the god of vb3 hacking, you been making some awsome mods these few days. i been looking and trying to figure out how to create this mod for months and now its finally made. this is going to go perfect for my site when its done.

but is their anyway to have the option so the check box is already checked on certain forums already.

HiDeo 11-01-2004 07:15 AM

Nice job, thanks

AnhTuanCool 11-01-2004 12:39 PM

Quote:

Originally Posted by Johnny
this is one awsome mod for my site, AnhTuanCOol im gonna call you the god of vb3 hacking, you been making some awsome mods these few days. i been looking and trying to figure out how to create this mod for months and now its finally made. this is going to go perfect for my site when its done.

but is their anyway to have the option so the check box is already checked on certain forums already.


You can use this script (in attachment) put in under yor admincp directory and run http://yourdomain/admincp/firstpostreset.php?do=edit or contact me invidually. Have fun ;)

PS: thank everyone

Johnny 11-01-2004 01:47 PM

it works perfect just not able to view what forum ids i used.

AN-net 11-01-2004 02:17 PM

so this is thread specific?

AnhTuanCool 11-01-2004 02:55 PM

Quote:

Originally Posted by AN-net
so this is thread specific?

Thread that has option to show. Just like close or open.

James T Brock 11-06-2004 05:35 AM

Can I use this to set it to automatically show the first post of a thread(on every page) on any subforum I want, or would I or th thread starter have to do it manually to every thread? or can this be made into a preset only in a certain subforum?

AnhTuanCool 11-07-2004 12:09 AM

This shows firstpost on everypage publicly, but the option to have it shown is only for Moderator or above. I just don't want to make the hack more complicate but if you want, just request here at once I'll make an add-on for this hack serve those things you want. ;)

James T Brock 11-08-2004 11:11 AM

Ok, I just read over again what the mod does and it's fine the way it is. HOWEVER, if it's not too much to ask...I'd like it if you could make an add-on that either automatically did it for every thread in a specific subforum, or one that had a preset and allowed the thread-starters in that forum to do it themselves.

The mod is fine the way it is, but those would be added benefits.

TCattitude 11-09-2004 01:10 AM

Quote:

Originally Posted by James T Brock
I'd like it if you could make an add-on that either automatically did it for every thread in a specific subforum

Right.
The same thing here :) Please

lancepoint 11-11-2004 06:01 AM

How do i get this to look like vbulletin.orgs... where its has custom bold text with alternate table colors for custom defined text. The one used here is exactly what i want.

I have Attached a snapshot of what I am talking about.

AnhTuanCool 11-11-2004 11:01 PM

vB.org may or maynot have the same one as I posted but I am SURE you can do that by editting the postbit_firstpost template. You may ask one of the staff to get those modification. ;)

lancepoint 11-12-2004 12:12 AM

well im asking here.. is there a specific place i should ask or just repost it as a request?

AnhTuanCool 11-12-2004 12:20 AM

Site Feedback forum, you might want to repost it in there. ;)

lancepoint 11-12-2004 12:21 AM

thanks ...

lancepoint 11-12-2004 07:27 PM

still no luck~

AnhTuanCool 11-15-2004 10:26 PM

Quote:

Originally Posted by James T Brock
Ok, I just read over again what the mod does and it's fine the way it is. HOWEVER, if it's not too much to ask...I'd like it if you could make an add-on that either automatically did it for every thread in a specific subforum, or one that had a preset and allowed the thread-starters in that forum to do it themselves.

The mod is fine the way it is, but those would be added benefits.

I made the add-on, have fun ;)

https://vborg.vbsupport.ru/attachmen...chmentid=21783

TrangNgoc 12-12-2004 10:47 PM

Thanks, installed :-)

Blindchild02 12-18-2004 02:20 PM

how could i achieve this:

i want like... the first post to be the Vertical Vb3 one, and the rest of the posts to be vb2 (legacy)

Blindchild02 12-18-2004 02:21 PM

also, the 1st post isnt showing up on everypage... :\

Blindchild02 12-19-2004 01:28 PM

*bump* any help??

phprus 12-19-2004 01:56 PM

Prompt how to add please a conclusion attachments in the firstpost?

phprus 12-20-2004 02:53 PM

Well unless nobody knows as it to make?

Blindchild02 12-20-2004 04:31 PM

im still tryin to get help on my problem.
the support seems very poor on this hack

Sulaiti 12-20-2004 10:07 PM

run

UPDATE thread SET showfirstpost = 1

Blindchild02 12-21-2004 12:37 AM

still isnt workin.
and i know i followed the hack correctly :\

EDIT: wait. on the first page its the old vb2 posbit (which is default) and on the 2nd page it shows up how i want it, the new vb3 one....

how do i make it so that the vb3 postbit is on every page?

Sulaiti 12-21-2004 08:00 AM

fix :nervous:

in showthread.php
find:

PHP Code:

if ($post['isdeleted']) 
        { 
            
$template 'postbit_deleted'
        } 

underneath that add:

PHP Code:

else if($post['postid']==$threadinfo['firstpostid']) 
        { 
            
$template ='postbit_firstpost'
        } 


Blindchild02 12-21-2004 09:46 AM

sweet, that worked.
now how do i put the first post above the NEW REPLY button, and the page nav and the thread drop downs?

but it still has to look good, i added it above it, and it was all messed up lookin :p

phprus 12-22-2004 10:07 AM

Help me please to change this hack that it showed the Attachments files.

peterska2 12-22-2004 10:24 PM

It's not working here on my test site

[kicks self]

actually it is. I didn't find the First Post on every page option coz I was looking under the wrong menu :blush:

peterska2 12-22-2004 10:44 PM

It's good :)

Installed and clicked :D

Just one quick question. Will you be adding ACP support at any point or is this not something that you are considering at the moment?

Blindchild02 12-23-2004 02:56 AM

id still like my post to be addressed

"
Quote:

now how do i put the first post above the NEW REPLY button, and the page nav and the thread drop downs?

but it still has to look good, i added it above it, and it was all messed up lookin
"

Sebastian 12-23-2004 09:39 PM

what about the last post on every page? would seem more useful.

Moya 12-23-2004 09:44 PM

Quote:

Originally Posted by Sebastian
what about the last post on every page? would seem more useful.


Urghhh how is that proved useful?

Sebastian 12-28-2004 02:39 PM

well you can see what the last post was... just a reminder of what was last said on the previous page..

AnhTuanCool 12-29-2004 01:03 AM

@BlindChild02 - you do want to put the new first post on top of the POST REPLY button and the thread navigation right?
This might help:
Open template SHOWTHREAD, erase
Code:

<if condition="$pagenumber != 1">
<div id="firstpost">$postbits_firstpost</div>
</if>
<div id="posts">$postbits</div>

Find:
Code:

<!-- controls above postbits -->
Add ABOVE:
Code:

<if condition="$pagenumber != 1">
<div id="firstpost">$postbits_firstpost</div>
</if>
<div id="posts">$postbits</div>

Done

@peteska2 - I didn't get what you said, do you mean about the update part?

Takamine334 12-29-2004 02:08 AM

hi, excellent hack. Quick question. I read that attachments in the first post aren't supported. Is this still the case?

I'd definitely use it, but I'd need to let people have attachment access since I run a music site.


All times are GMT. The time now is 04:47 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.01480 seconds
  • Memory Usage 1,817KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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