Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by DR2000 DR2000 is offline
Developer Last Online: Jun 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-13-2001 Last Update: Never Installs: 18
 
No support by the author.

#### Subject Preview by DR2000 ####
I looked at all other hack avaliable for this, and all of them
are trying to do too much by editing your database structure,
and modifying the way data is inserted. Why overcomplicate
things, when all data is already there, and it only needs to be
extracted...

#### DEMO ####
To see this hack in action take a look at
http://forum.4adrive.com

#### FEATURES ####
- Shows the subject of the last active post on the front page
- Shows the icon of the last active post on the front page
- No need to alter database, and risk to screwing something up
- Only one file to change
- If the subject was very long, shows trunkated version of it,
and replaces the rest with '...', preventing your main page
layout from being screwed up.

#### #### ####
Nov 14, 2001
#### #### ####

Note: Tested with 2.0.3, 2.2.0 and 2.2.1.

Show Your Support

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

Comments
  #62  
Old 12-12-2001, 07:50 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Because I don't want it on the right.. I had a code that I did the html to before and it worked but now with 2.2.1 that code no longer works or atleast is more of a hog. Could you make the code for me since some are not as proficient as others..
Reply With Quote
  #63  
Old 12-13-2001, 02:39 AM
Island Roots Island Roots is offline
 
Join Date: Dec 2001
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to add this hack but keep the Last Post icon instead of replacing it with the post icon selected by the author? I ask this because I don't want to have a blank space if there is no post icon selected. So basically what I'm asking is...is there a hack that enables you to just show the latest thread name, but not replace the Last Post icon? I'll go look in the text file and see if I can tweak it around a little bit.
Reply With Quote
  #64  
Old 12-13-2001, 05:07 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I fixed my problem with the hack, but now I need to know:

If I can get this hack to display the icon put up by this one.
https://vborg.vbsupport.ru/showthrea...threadid=19739? Thanks!
Reply With Quote
  #65  
Old 12-13-2001, 04:43 PM
DR2000's Avatar
DR2000 DR2000 is offline
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys, look at the code. It really isn't hard to figure out.

See where it says /some_path/clear.gif? Just replace that with any other image url, and that's it. For example, vbulletin substitues icon1 when you enable an option. So you can change clear.gif to that icon1.gif. I think that's a lot of hint.

If you guys don't figure it out, ask again, I'll help you out.

P.S. See, I'm teaching you how to mess with other people's code too, so later on you'll be creating your own hacks.
Reply With Quote
  #66  
Old 12-13-2001, 05:02 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very kindly sir, what I ended up doing was create my own custom image 15x15pix then have the code substitute that whenever there is no icon. In postbit I added a clear to each side of where the icon would be and also justified that cell to the left. So now it's a clean look with space enough for titles and icons. Lookin sharp!

Also my problem before was I changed one of the numbers in the code to like 15 and the other was 23, if you change the amount of characters shown make sure to change both to the same.

Thanks for all your help DR2000! sweet hack!
Reply With Quote
  #67  
Old 12-14-2001, 02:14 AM
Island Roots Island Roots is offline
 
Join Date: Dec 2001
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whenever I make the lastpost icon the default image instead of clear.gif, it keeps making the image with a black bar on the right and bottom sides of the image...like the size isn't right. I tooled around with it earlier to no avail.
Reply With Quote
  #68  
Old 12-14-2001, 04:03 AM
DR2000's Avatar
DR2000 DR2000 is offline
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's because the image is 14 x 14, not 15 x 15, but looks like you already figured that one out.
Reply With Quote
  #69  
Old 12-14-2001, 04:08 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I should have made that more clear I used the to make my custom clear image..
Reply With Quote
  #70  
Old 12-18-2001, 08:50 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DR2000, xware showed some posts before how u can display subforums aswell on the main page. That code will slow the database because of the many extra querys. Do you know a other way, that dont affect the database that much, that will work?
Reply With Quote
  #71  
Old 12-18-2001, 10:39 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Lesane
DR2000, xware showed some posts before how u can display subforums aswell on the main page. That code will slow the database because of the many extra querys. Do you know a other way, that dont affect the database that much, that will work?
This code slows the forums down? Or are you asking of a way to make this code do what the code you speak of does?
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 11:24 PM.


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.10962 seconds
  • Memory Usage 2,297KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete