vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Show start date of threads! (https://vborg.vbsupport.ru/showthread.php?t=144944)

aLReeMi 04-14-2007 10:00 PM

Show start date of threads!
 
Hello everybody..

This small add will show start dates of threads on your FORUMDISPLAY..!
-- works with vb 3.5 & vb 3.6 ..!

1 plugin
1 template change

1- Import the (plugin) from admincp
http://yourforum/admincp/plugin.php?do=files


2- Open threadbit template

find:
Code:

$thread[postusername]

replace with:
Code:

<i>Start Date:</i> $started_date[threadid] - <i>By:</i> $thread[postusername]
-- you will do that two times!

done!

Smoothie 04-15-2007 03:35 PM

This has already been done twice. :)

aLReeMi 04-15-2007 03:48 PM

no problem friend :)
I just want to share what I did cause I needed smething like that but I couldn't find

Smoothie 04-15-2007 04:56 PM

Quote:

Originally Posted by aLReeMi (Post 1228393)
no problem friend :)
I just want to share what I did cause I needed smething like that but I couldn't find

OK. just wanted you to know there are 2 such mods I know of right here.

Andyucs 04-15-2007 05:01 PM

Installed nice 1

sensimilla 04-15-2007 06:18 PM

Quote:

Originally Posted by Smoothie (Post 1228384)
This has already been done twice. :)

One of them doesnt require file editing from what I know.

Gryphon 04-15-2007 10:38 PM

Quote:

Originally Posted by Smoothie (Post 1228384)
This has already been done twice. :)

Why people make such comments :rolleyes:

Dream 04-15-2007 10:53 PM

This is interesting, does it add a query to forumdisplay.php?

Smoothie 04-15-2007 11:31 PM

Quote:

Originally Posted by Blackjack (Post 1228644)
Why people make such comments :rolleyes:

What's it to you?

aLReeMi 04-16-2007 08:02 AM

Quote:

Originally Posted by sensimilla (Post 1228487)
One of them doesnt require file editing from what I know.

but the problem is some people may change the place of thread starter and if I made it without edting it may cause a problem!


Quote:

Originally Posted by Dream (Post 1228649)
This is interesting, does it add a query to forumdisplay.php?

it adds a query to threadbit_display

Gryphon 04-16-2007 03:16 PM

Quote:

Originally Posted by Smoothie (Post 1228667)
What's it to you?

It's as much to me as your comment is to the mod. Different authors, different code, anyone has the right to make the 100th similar addon if they wish.

Smoothie 04-17-2007 02:31 AM

Quote:

Originally Posted by Blackjack (Post 1229035)
It's as much to me as your comment is to the mod. Different authors, different code, anyone has the right to make the 100th similar addon if they wish.

And I have the right to say it's been done before. Don't like it, don't read it.

rjmjr69 04-17-2007 04:01 AM

Stop being a trouble maker and move on

Paul M 04-17-2007 06:47 AM

Honestly, is this a forum, not a schoolyard.

There is no rule against people releasing another modification that does the same thing as previous mods, as long as code is not copied - there are many examples of this on vb.org. There is no need to comment about it. No more please.

bela-meaad 04-18-2007 02:09 PM

i installed it

but that increase the server load
& the page doesn`t open until i uninstall it

any idea?

fastforward 04-18-2007 03:31 PM

Quote:

Originally Posted by bela-meaad (Post 1230433)
i installed it

but that increase the server load
& the page doesn`t open until i uninstall it

any idea?

Because this plugin adds an extra query for every thread bit. If you have 100 threads showing on forumdisplay, that's 100 extra queries!

This can be done easily without queries. the threadbit_display hook already has access to $thread['dateline']. Just run it through vbdate and assign it to a template variable.

sharjah 05-17-2007 05:55 PM

Quote:

Originally Posted by fastforward (Post 1230482)
Because this plugin adds an extra query for every thread bit. If you have 100 threads showing on forumdisplay, that's 100 extra queries!

This can be done easily without queries. the threadbit_display hook already has access to $thread['dateline']. Just run it through vbdate and assign it to a template variable.

Hi Fastforward,

Can you please do it in a new thread?

Outbackmark 06-21-2007 01:25 PM

Works well for me many thanks!!

Silvio 06-30-2007 11:51 PM

Quote:

Originally Posted by fastforward (Post 1230482)
Because this plugin adds an extra query for every thread bit. If you have 100 threads showing on forumdisplay, that's 100 extra queries!

This can be done easily without queries. the threadbit_display hook already has access to $thread['dateline']. Just run it through vbdate and assign it to a template variable.

humm now I do understand why my pages slowed so down. :erm: is there another way to do this without that uge ammount of queries? my forumdisplay has 25 threads and it stops >7/8 seconds b4 giving results. I wont imagine a 100 threads forumdisplay lol

Neutral Singh 07-08-2007 01:45 PM

How can we extend this functionality on other pages like newposts, search.php? Currently this only extends to thread_display plugin.

BBL 07-12-2007 02:29 AM

Hi. It works perfect in IE but not in FireFox...

In FF it shows "By" but it´s not showing "Start Date":

Start Date: - By: Fulano

Any idea?

jimraynor 10-13-2007 01:52 PM

Quote:

This can be done easily without queries. the threadbit_display hook already has access to $thread['dateline']. Just run it through vbdate and assign it to a template variable.
i cant find my templates to threadbit_display. My threadbit is:

threadbit
threadbit_announcement
threadbit_deleted
threadbit_lastvisit
threadbit_pagelink

where is the threadbit_display? Can you show me this. i use 3.6.8 version.

fastforward 10-15-2007 10:54 PM

Quote:

Originally Posted by jimraynor (Post 1358953)
i cant find my templates to threadbit_display. My threadbit is:

threadbit
threadbit_announcement
threadbit_deleted
threadbit_lastvisit
threadbit_pagelink

where is the threadbit_display? Can you show me this. i use 3.6.8 version.

threadbit_display is the plugin hook. The template is threadbit

1) Create a plugin against the threadbit_display hook containing the following code:
$thread['fdate'] = date('M nS, Y', $thread['dateline']);

2) Add the text to the threadbit template in the appropriate place. Something like:
Started by $thread[postusername] on $thread[fdate]

Todecay 12-03-2007 08:50 PM

Tnx m8 for the mod but to be honest this is way to much serverload for us so this isn't an option.

So I added some lines in 1 file and added the $ in threadbit and done ;)

But tnx again :D

Best, Todecay!

josef1 12-15-2007 04:09 PM

it slow the load of the threads page

i uninstall it as it slow my vb


All times are GMT. The time now is 05:04 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.02974 seconds
  • Memory Usage 1,765KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete