vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Preview the first post in a thread first. (https://vborg.vbsupport.ru/showthread.php?t=33070)

bira 12-20-2001 12:49 AM

on a 40-threads page, the addition on my Bulletin Board was 10-15 kb.

The total page, with images and all, without the preview is 129kb; with the preview it's 144kb -- total of 15 kb more.

Using gzip compression (which I do), the difference is more significant and at the same time less so:

without the preview the page (without images) is 8106 bytes (8 kb). With the preview, the page is 14,323 bytes (14 kb).

Maybe because we use gzip compression, no one has so far complained about the page loading slower. But it is a point to think about if you are trying to cut down on bandwidth.

I might suggest, though, that those users who connect with modems should edit their own options to include less topics per page. If they are on a particularly slow connection, they ought to go for 10 topics per page.

Parker Clack 12-20-2001 02:20 AM

Lionel:

I didn't write that hack so you would have to ask the author about doing that. Good idea though.

Tommy Boy:

If you want to make this an option to use on your board click on the below .zip file and follow the instructions.

The default is set to off so if a member wants to use it they will have to turn it on.

Also, if you know how to change the tables around alter the preview add on to the thread table, that you just made, from 500 to 250 and change it from medium text to varchar(250) then change the 500 count in the .php files you just changed to 250.

Bira:

Look this new .zip over and if you see anything that needs changing let me know. Thanks.

Parker

bira 12-20-2001 05:09 AM

Parker I downloaded it and had a look. What is fundementally missing, is the code that is needed to be added to the user's Edit Options template :)

Likewise, you might want to expand it and add the same thing to user.php for the Admin CP user page.

Otherwise it looks good (though I've not tried it yet) :up:

Parker Clack 12-20-2001 08:29 AM

Doh!

I guess that would be necessary eh?

In your modifyoptions template you need to look for

$maxpostsoptions
</select></smallfont></td>
</tr>

and just below this add:

<tr>
<td bgcolor="yourcolorhere"><normalfont><b>Thread Preview Option On?</b></normalfont><br>
<smallfont>Selecting yes will allow you to preview the first post in a thread by putting your mouse pointer on the thread title.</smallfont></td>
<td bgcolor="yourcolorhere"><normalfont>
<input type="radio" name="threadpreview" value="yes" $threadpreviewchecked> yes
<input type="radio" name="threadpreview" value="no" $threadpreviewnotchecked> no
</normalfont></td>
</tr>

I will work on the Admin CP bit.

Thanks,
Parker

Princeton 12-21-2001 12:34 AM

Great hack ... I love it. Thanks Parker. Bira, thank you for that update_preview. I was wondering why an existing link didn't show a preview waahoooo :D .

Sadie Frost 12-21-2001 03:14 AM

This is so great!

One (stupid) question - should I now delete the threadpreview.php file?

:)

FWC 12-21-2001 03:47 AM

[QUOTE]Originally posted by Sadie Frost
One (stupid) question - should I now delete the threadpreview.php file?

:)

Sadie Frost 12-21-2001 11:18 AM

Thank you! Just didn't want to totally screw it up after I got it working lol :)

Parker Clack 12-21-2001 01:26 PM

Sadie:

Yeah, you can delete the previewthread.php and the previewthreadoptions.php files as they just make the mods to the database.

Thanks for the kudos guys and gals and I appreciate the fact that your members get something out of it. I know ours do.

Thank God there are people around here that know what they are doing though as the first version of this that I wrote was a real resource hog. This version works well on our board with over 22,000 registered and 6 million page views a month.

Parker

freakyshiat 12-22-2001 02:22 PM

great work guys!!!

Now, could one of you outline the steps one more time just to be sure users dont screw things up? :)


All times are GMT. The time now is 07:59 AM.

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.01343 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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