PDA

View Full Version : Active Topics - (replaces New Posts) Sorted By [x] Amount Of Time


trevelyn1015
01-05-2005, 10:00 PM
This is something I never saw on any vbulletin sites before, and loved it when I used to be a member of a snitz forum. It is the 'Active Topics' feature...


What does it do?

It replaces your 'New Posts' link in your navbar with a drop down list of times to view posts, from all forums(depending on user permissions, which they can and cannot see).

What will it look like?
https://vborg.vbsupport.ru/

View live version, here (http://www.ranger-forums.com).

How many templates do i have to edit?
You only have to edit your 'navbar' template. Very easy to do.

How many phrases do I have to add?
It depends on how specific you want your Active Topics bar to be.

How many .php files will I have to edit?
You only have to edit your search.php in one little area. Very simple.

Good luck with this hack, and I hope you enjoy it as much as I do.

================================================== =======
================================================== =======
================================================== =======
================================================== =======
Active Topics - compiled from multiple hacks(credit given at bottom) and tweaked by Trevelyn1015 ;)

This small template mod is for the vB 3.0.3 navbar template.
This mod replaces the Today's Posts/New Posts links with an 'Active Topics' dropdown menu.
It only works when vB dropdowns are allowed, otherwise the default vB link is displayed.

1) Go to the vB Phrase Manager and add the following Global phrases (see vB help for further directions). If you want different times, adjust accordingly:

$vbphrase[active_topics_nav] = "Active Topics";
$vbphrase[get_fifteen_minutes] = "Last 15 Minutes";
$vbphrase[get_thirty_minutes] = "Last 30 Minutes";
$vbphrase[get_fortyfive_minutes] = "Last 45 Minutes";
$vbphrase[get_one_hour] = "Last Hour";
$vbphrase[get_three_hours] = "Last 3 Hours";
$vbphrase[get_six_hours] = "Last 6 Hours";
$vbphrase[get_twelve_hours] = "Last 12 Hours";
$vbphrase[get_one_day] = "Last Day";
$vbphrase[get_three_days] = "Last 3 Days";
$vbphrase[get_one_week] = "Last Week";
$vbphrase[get_three_weeks] = "Last 3 Weeks";
$vbphrase[get_one_month] = "Last Month";


2) Go to the vB Phrase Manager and edit the following phrase:

'new_posts_nav' - edit the translation to be "Since Last Visit"


3) Make the following TWO edits to the vB 3.0.3 navbar template:

EDIT ONE: Find the following:

<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>

And REPLACE with the following:

<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<td id="navbar_posts" class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="2">$vbphrase[active_topics_nav]</a> <script type="text/javascript"> vbmenu_register("navbar_posts"); </script></td>

EDIT TWO: Find the following:

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

And AFTERWARDS ADD the following:

<if condition="$show['searchbuttons']">
<div class="vbmenu_popup" id="navbar_posts_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[active_topics_nav]</td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=15" accesskey="2">$vbphrase[get_fifteen_minutes]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=30" accesskey="2">$vbphrase[get_thirty_minutes]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=45" accesskey="2">$vbphrase[get_fortyfive_minutes]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=1" accesskey="2">$vbphrase[get_one_hour]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=3" accesskey="2">$vbphrase[get_three_hours]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=6" accesskey="2">$vbphrase[get_six_hours]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=12" accesskey="2">$vbphrase[get_twelve_hours]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=1" accesskey="2">$vbphrase[get_one_day]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=3" accesskey="2">$vbphrase[get_three_days]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=7" accesskey="2">$vbphrase[get_one_week]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=21" accesskey="2">$vbphrase[get_three_weeks]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=31=" accesskey="2">$vbphrase[get_one_month]</a></td></tr>

</table>
</div>
</if>


4) In your search.php:

Find:

'days' => INT,

Below, add:

'hours' => INT,
'minutes' => INT,
'seconds' => INT,


Then, find:


// get date:
if ($_REQUEST['do'] == 'getnew' AND $bbuserinfo['lastvisit'] != 0)
{
// if action = getnew and last visit date is set
$datecut = $bbuserinfo['lastvisit'];
}
else
{
$_REQUEST['do'] = 'getdaily';
if ($days < 1)
{
$days = 1;
}
$datecut = TIMENOW - (24 * 60 * 60 * $days);
}

Replace with:

// get date:
if ($_REQUEST['do'] == 'getnew' AND $bbuserinfo['lastvisit'] != 0)
{
// if action = getnew and last visit date is set
$datecut = $bbuserinfo['lastvisit'];
}
else
{
$_REQUEST['do'] = 'getdaily';
if (($days < 1)AND(!$hours)AND(!$minutes)AND(!$seconds))
{
$days = 1;
$hours = 0;
$minutes = 0;
$seconds = 0;

}
elseif($days < 1) {
$days = 0;
}
$datecut = TIMENOW - (($days*24*60*60) + ($hours*60*60) + ($minutes*60) + $seconds);

}

then upload your search.php back into your forum directory and "voila"... you are done.

If you have installed this hack, please click ==> https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=73893)
================================================== =======
================================================== =======
================================================== =======
================================================== =======

Thanks to:
amykhar and sabret00the for helping me with the search.php editing.
waxed (http://www.vbulletintemplates.com/mods/showthread.php?t=6979), from vbulletintemplates, for a hack released to create a "since [x] amount of days", which was the foundation of how i put this together.

Lethal
01-06-2005, 05:41 PM
holy crap, nice!!!!

trevelyn1015
01-06-2005, 08:59 PM
thanks. i know how much i enjoy this hack. i hope alot of you do too...

TwinsX2Dad
01-06-2005, 10:24 PM
This is a rework of a previous template hack.

http://www.vbulletintemplates.com/mods/showthread.php?t=6979

rex_b
01-06-2005, 10:33 PM
Installed!!

trevelyn1015
01-07-2005, 01:52 AM
thanks, twins. i already talked to waxed... and i gave him credit here...

this is not a "rework" as this hack does something different...

amykhar
01-07-2005, 03:02 AM
No offense, but this isn't your work. It's somebody else's template mod combined with my code hack. You couldn't even get the math right to do the darn thing; so I'm surprised you released this is a hack of your own doing.

trevelyn1015
01-07-2005, 06:15 AM
i asked the original guy if i could post it here as a hack and give him credit. he said ok. you helped with math. i gave you credit.

what is the problem? make it "amy's active topics hack". i could care less. i just thought i would share this. not like we get paid for this or anything... it's one little mod on a vbulletin forum...

edit:

for weeks and weeks i have posted about getting this hack out here. i don't see anyone else with an "active topics" hack... all i saw was one guy on a totally different forum who did something i could have done on my own, sorting by days. then i went in and made up my own phrases and edited another phrase and then tried for a few days to get some help from other members who know more about coding to make the math work. amy, you finally figured it out. want a cookie? who cares about who releases something? did you put the "how to" together? did you write all of the template editing? no. i don't think so. i gave you credit for your math skills and i thanked you in the thread you helped me in...

================================================== =======

I'm surprised you released this is a hack of your own doing.

if you could show me where i posted "this is a hack of my own doing"?

================================================== =======

Before you publish a new hack in this forum, please make sure that it complies with the following guidelines:

1. Before releasing a hack, search the forum to make sure the same idea was not released already. If you are releasing a hack that is a variation of an existing hack, don't forget to give credit where credit is due.

2. You must test your hack and approve its working ok at least in your own board. If your hack is working ok, but you are not sure whether it has unnoticed bugs or don't know how it will behave in different boards, post it to Beta Hacks forum. If you did not confirm your hack is working ok, post to to Help Me Finish or General Hacking Discussions forum, not releases sections.

3. Hacks are PHP code changes, nothing more and nothing less. As a rule, remember that if your 'hack' can be done solely from the Admin control panel, then it does not qualify as a hack. Furthermore, hacks are not template changes. If you have a cool idea that is based solely on editing templates - post in the Templates Forum.

4. Make sure to specify which vBulletin version(s) this hack is written for.

5. You must offer a way to contact you if the installers have questions or problems. If you don't want to provide support for your hack - then you must state in the first post that your hack comes with no support.

6. Only licensed vBulletin users may release and/or download hacks. vBulletin Lite hacks cannot be distributed.

7. Hacks must not be encrypted and the source code hidden using ZEND or other methods. This is an open-source hack website. Exceptions may be made for exceptional hacks - please contact the forum moderator if you wish to release an encrypted hack.

8.Complete script files from vBulletin must not be posted. You may only post instructions for the users to change the file themselves.

1) I searched this forum and there was no similar hack. Where credit was due, I gave it.

2) It was tested. It works like a charm, thanks to Amy's math skills.

3) There is editing done on the search.php file. Therefore, it is classified as a hack.

4) It was specified that it was made for 3.0.3

5) It comes with support. That checkbox is clicked.

6) I own the license to my vBulletin forum.

7) There is no encryption.

8) Does not apply.


well, it looks as if I have done nothing wrong and I feel I have more than enough explained and defended myself...

OrangeFlea
01-07-2005, 08:55 AM
Installed!!!

lasto
01-07-2005, 08:58 AM
* lasto clicks install

politics eh who needs em :)

@mods:

vb3 hack in the vb2 section - needs moving me thinks

MrNase
01-07-2005, 11:59 AM
One small bug: Regardless of what I search for the phrase just above the results always is

Search: Posts From Last Day

trevelyn1015
01-07-2005, 04:10 PM
vb3 hack in the vb2 section - needs moving me thinks


oops. i made a mistake.

trevelyn1015
01-07-2005, 04:15 PM
vb3 hack in the vb2 section - needs moving me thinks


oops. i made a mistake.


One small bug: Regardless of what I search for the phrase just above the results always is

Search: Posts From Last Day

TwinsX2Dad
01-07-2005, 04:33 PM
for weeks and weeks i have posted about getting this hack out here. i don't see anyone else with an "active topics" hack... all i saw was one guy on a totally different forum who did something i could have done on my own, sorting by days. then i went in and made up my own phrases and edited another phrase and then tried for a few days to get some help from other members who know more about coding to make the math work. amy, you finally figured it out. want a cookie? who cares about who releases something? did you put the "how to" together? did you write all of the template editing? no. i don't think so. i gave you credit for your math skills and i thanked you in the thread you helped me in...Who gets credit and why isn't my concern, since I had nothing to do with the mod itself. But, to say it didn't exist is ludicrous. Three sites, off the top of my head, which have had this hack for at least three months on 3.0.3 are:

http://projectprotect.org/forum/
http://www.sports-chat.com/forums/
http://guysngals.net/forums/

There are more I know of, I'd just have to look them up. I am sure there are hundreds more which I've not found. The code for these and this one are amazingly similar.

For vB hacks & template mods, one must look beyond this forum alone. Just because they aren't listed on vB.org doesn't mean they don't exist.

And, to quote you from the topic header.......

Active Topics - by Trevelyn1015

trevelyn1015
01-07-2005, 05:23 PM
who freaking cares, man?

i put the code out there for people on this site to download it.

edit:

But, to say it didn't exist is ludicrous. Three sites, off the top of my head, which have had this hack for at least three months on 3.0.3 are:

http://projectprotect.org/forum/
http://www.sports-chat.com/forums/
http://guysngals.net/forums/


i just went and re-read what the top says. it says "i never saw"... it never says that this never existed. :banana:

Paul M
01-07-2005, 07:40 PM
For vB hacks & template mods, one must look beyond this forum alone. Just because they aren't listed on vB.org doesn't mean they don't exist.I can assure you that I will not look beyond this site for any hack I may release.

trevelyn1015
01-07-2005, 08:30 PM
i agree. this is a much more reputable site.

TwinsX2Dad
01-07-2005, 10:36 PM
I can assure you that I will not look beyond this site for any hack I may release.Considering the process to finally merge vbulletin.org and vbulletintemplates.com is in the works, it probably doesn't matter, in the long run. Both sites are equally reputable, seeing as they are under the same ownership and the members are pretty much the same.

who freaking cares, man?

i put the code out there for people on this site to download it.A lot of people seem to care. It was you who initially released this as your own and it was you who later, after you were called on the carpet, added a 'thanks to' on the mod post.

Many others found this template mod long before you called it yours. It appears you simply reworked the selection options on the navbar waterfall menu, something which has also been done many times before.

You put yourself in this situation. Considering you were trying to fabricate something else a few days ago to do this exact same thing and, just last week, you couldn't figure out how to adjust your own server time. Then I see a post from you asking what queries are and how to tell how many you might have. Posts like these, especially after having been here for only a couple of weeks, would lead many to believe you plagiarized the code to begin with.

The Active Topics templates mod had been discussed here before. It was removed by the author because it was a template mod - as such, it belonged on vbulletintemplates.com.

Every other time I've seen something like this, the poster made certain to point out that they took no credit for the mod, that they were simply reposting it and full credit belonged with someone else. None of this was done by you.

I can picture many, including myself, passing over your requests for assistance.

And yes, Christian - there is a way to keep members from seeing what page other members are on (a question posed by you in another thread with no replies). I thought about giving the answer, but I think I'll let someone else tell you how or maybe allow you to figure it out for yourself.

lanc3lot
01-07-2005, 11:57 PM
To return to the hack itself subject...is it working for 3.0.5 ? i guess yes, as it doesnt affect init.php, but i ask to be sure:)

Nice hack, dont really care who did it first..my thoughts its only how i can install it in my forum...If the mods allowed this post - thread to be done, its more than ok to me:)

My thanks then:)

dcarr
01-08-2005, 01:35 AM
You know I followed trevelyn1015's post when he asked for such a modification. And Amykhar provided a good answer. If trevelyn1015 is anything like me though, amy's coding was fine, but I didn't know where/how to modify. So he took some time to combine a great hack with a great code and now folks like me can put it to good use. I've been using the vbt hack for quite awhile and will change it to this one. Thank you waxed, sabret00the, amykhar and trevelyn1015 for all the work that went in to making this a hack for us dimwits LOL. Without all 4 of you, this would not be up. So does it really matter who started it?

And as far as other sites are concerned, this and vbt are the only 2 I trust and have found to offer great support over the last 2 years. I had another member name before a month ago, and got great help. Thank you all

lanc3lot
01-08-2005, 03:26 AM
Also, the phrases u say to add..are global?

trevelyn1015
01-08-2005, 03:40 AM
A lot of people seem to care. It was you who initially released this as your own and it was you who later, after you were called on the carpet, added a 'thanks to' on the mod post.

that's b.s. the 'thanks' was in there from the first time it was ever posted. it is also in the .txt file, so you are incorrect about that.

Considering you were trying to fabricate something else a few days ago to do this exact same thing and, just last week, you couldn't figure out how to adjust your own server time.

every setting has been worked on and it is something to do with my virtual server. i know my server is set to california time. i know how to adjust the main setting to "offset" my own server time, to take the site to 'gmt' then the individual usercp setting is to offset it from gmt to the person's time zone... i'm not as stupid as you think i am, buddy... there is another problem, so i wanted to know if there was another way to offset the time, other than the acp way.

Every other time I've seen something like this, the poster made certain to point out that they took no credit for the mod, that they were simply reposting it and full credit belonged with someone else. None of this was done by you.

um. the template code for the navbar almost all done by me. the other guy had it done for days. i created it for minutes, hours, days, weeks, month... some people don't know how to do that. i did it all to make it easy for someone to just copy and paste and have this ENTIRE combination of hacks put together. also, sabret00the and i worked on this hack for over an hour before i went to the board about it. even though none of his work was used in this hack, i still thanked him.

I can picture many, including myself, passing over your requests for assistance.

<crying>and people like you or the others, i don't want any help from then. thanks, but no thanks.</crying> the 'non-+++++++s' on this site seem to have no problem with the way i went about posting this. also, i broke no site rules. before i ever posted anything, i pm'ed the original writer of the "get posts" hack and told him what i was doing and asked if i could post it here. i waited for his response, thanked him, and posted it here.

there is a way to keep members from seeing what page other members are on (a question posed by you in another thread with no replies). I thought about giving the answer, but I think I'll let someone else tell you how or maybe allow you to figure it out for yourself.

actually, again i know where the setting is.(see attachments) the setting dor detailed location, etc, is for the question mark to show the actual url when the mouse is over it... i don't want people to see any info, whatsoever... i have everything set to 'no' and they can still do it... gosh, thanks for the help ;)

you obviously have something against. me. i only wanted this hack and then once i got it working on my site, thought i could put everything together to make it work and let other people use it. to be nice. something you know nothing about.

in fact, everything i have posted on, i have researched before i ever posted and done everything i could before asking on this site. and before i came across you, everyone on this site seemed pretty cool.

pull ths stick out of your ass and stop blowing a vbulletin hack out of proportion... get a life...

i didn't put all of this together to get people to go "wow christian, you are the greatest hacker in the world". i barely know anything about vbulletin. with my limited skills i edited some templates, took some other hacks, mixed them up. turned them into something that every member on this site could look at, copy, paste, and have a more navigable forum... that is what this place is about. not some guy having to bad mouth someone for mixing hacks together and putting his name on the title.

oh, i forgot to thank you, OH MIGHTY VBULLETIN MEMBER. THANK YOU FOR REFERRING ME TO THE INITIAL HACK THAT POINTED ME IN THE RIGHT DIRECTION. I OWE EVERYTHING TO YOU. EVERYONE NEEDS TO THANKS TWINS. WITHOUT HIM, I WOULD NEVER HAVE KNOWN HOW TO GET STARTED ON THIS AND POST IT FOR EVERYONE ELSE TO USE.

<chanting> WE ARE NOT WORTHY, SIR</chanting>

TwinsX2Dad
01-08-2005, 06:06 AM
Well gee, Christian - since you have the entire world by the tail, I am not going to reply to your entire whining retort. Besides, I won't bring myself down the the level of teenaged whiners and plagiarists.

I do know this - 'your' hack is 99% identical to the one I have on one of my boards, installed in September. No matter what you claim to the contrary, you stole someone else's work.

I downloaded your original text file. The references you claim were NOT there. And it is rather odd that you claimed you could not find anything similar, when a search for "Active Topics" here brings up several references, including this one (https://vborg.vbsupport.ru/showthread.php?t=63600). The biggest difference is that your hack introduces an issue which compromises board privacy. And, no matter your claims to the contrary, you took stolen code and claimed it as your own.

And wow, oh bright one - if you were so good at server time, why this thread (https://vborg.vbsupport.ru/showthread.php?p=589133), 10 days ago? Shared hosting service or not, that is part of the original vB setup.

Its okay though - boys tend to act like boys until well after they can buy a beer.

I am done here. I don't need to be bantering with the acne set.

lanc3lot
01-08-2005, 01:13 PM
Christian?:D

TwinsX2Dad
01-08-2005, 01:21 PM
Christian?:DNow don't go making fun of the guy's name.

Christian Dorton
Administrator/Owner
Ranger-Forums

It is right there - in his signature.

Aw gee - you made me take him off of my 'ignore' feature. Now I have to go put him back on it! :tired:

lanc3lot
01-08-2005, 03:05 PM
Now don't go making fun of the guy's name.

Christian Dorton
Administrator/Owner
Ranger-Forums

It is right there - in his signature.

Aw gee - you made me take him off of my 'ignore' feature. Now I have to go put him back on it! :tired:

Mate, seriously now...do u take drugs or something? :mad:

I didnt make fun of him, i just said that, so he can look my post 2 threads above...

jesus

:ermm:

Dean C
01-08-2005, 04:04 PM
Guys, please stop with the off-topic discussion and personal insults.

lanc3lot
01-08-2005, 07:26 PM
No intention to insult anyone, just dont want anyone to "mix" my name with their quarell.

Christian aka trevelyn1015, please could u kind enough to tell me what phrases are these u say to add? Global? And the var name are the one u give?

Thanks again:)

steven s
01-08-2005, 08:53 PM
Also, the phrases u say to add..are global?
I was wondering about this myself.

trevelyn1015
01-09-2005, 05:18 AM
yes. they are global phrases that were added...

i apologize for the drama in this thread. i only put all of this together so that other people could have the thing i wanted most on my board... i apologize for what seemed to be plagiarism. i apologize for anyway i offended anyone. the end.

Erwin
01-09-2005, 08:33 AM
Okay guys and girls, you're getting me involved now. :)

First of all, trevelyn1015 did give credit to amykhar, sabret00the and waxed for helping him put the hack together.

Secondly, he should have probably made the font thanking them a bit bigger (it's tiny font right at the bottom of the first post) but that's his prerogative. :) None of us should judge him - the choice on how he gives credit is up to him. If it was me, I would have put their names in bold and right at the top, but hey, that's me. ;)

Thirdly, although none of the code may have originally come from him, this is how most coders start out - by taking bits of code from other places and putting them together. The more you do this, the more you learn, and after a while, you start to write your own code. So we shouldn't be too hard on trevelyn1015. :)

Fourthly, vBulletin.org does not condone the copy of other people's code without permission - that would be illegal and a breach of copyright. However, in this case, I gather that he did have permission, or at least, permission was implied as the code he used was given to him to be used.

Fifthly, we are not all 5-year olds here. :) Let's all apologize to each other, and move on. There are more important things in life than to bicker over a few lines of code that is in the end free and not costing anyone any money.

I darn sure hope this is the LAST post on this issue. Let's talk about the hack instead, which is, btw, a good idea.

sabret00the
01-09-2005, 09:51 AM
good post, and just so everyone knows, i figured out where to put the code w00t to me lmao, oh and i can't say i care that he released it, my input turned out to be a finger sticking out at the end of an extended arm saying do something like that. i must say though in good taste travelyn should pm amy and set things right with an apology for not notifying her that he was gonna release the code. all in all it's a handy hack and it does differ from the vBT version as it does so much more, it's kinda like saying no one can run with a concept just check out the world we live in, it's built on people taking a basic thing and building it up into a more useable product, alas the nature of the world we live in. lets all have fun and hope that we get many more hacks from everyone in the future.

trevelyn1015
01-09-2005, 05:19 PM
<apology pm sent to amy>


and to set other things straight...

that is alright with me - thanks for asking. :)

your "view posts since [x] amount of time" hack...

i modified it to be able to show:

15 minutes
30 minutes
45 minutes
1 hour
3 hours
6 hours
12 hours
one day
three days
one week
3 weeks
one month

and was wondering if you minded me posting it on vbulletin.org and giving you credit for creating the original hack? and giving myself credit for modifying it, and i will post both versions of the hack on there...

is that alright with you?

-christian dorton

Zenith
01-10-2005, 09:05 AM
Cool. Been wanting this for a while. Thanks.

Has anyone figured how to adjust the "Posts From Last Day" that is always displayed at the top of the search results to "Posts In Last Hour" or whatever is appropriate?

TIA

sabret00the
01-10-2005, 09:30 AM
it's easy modify the phrase like <$phrase time phrase="1"> or however vB does it and then in the search .php has $timephrase = "time" ofcouse you'd use a confidtional for that, then in the phrase just change it to add {1} where the timeframe was :)

sv1cec
01-21-2005, 09:26 AM
it's easy modify the phrase like <$phrase time phrase="1"> or however vB does it and then in the search .php has $timephrase = "time" ofcouse you'd use a confidtional for that, then in the phrase just change it to add {1} where the timeframe was :)
Could you please provide us with an example? I love this menu, and have it installed already, but I would like to change the phrase that appears on the results, to show the proper selection of the user. However, I am not that good with phrases etc.

Any help would be appreciated.

Rgds

trevelyn1015
01-21-2005, 09:40 AM
which phrase do you want to change?

sv1cec
01-21-2005, 12:18 PM
which phrase do you want to change?

Don't worry, after some experimentation, I got it solved.

Here is what I posted before, just for the records.

When you do a search for post since 6 hours or 3 days or whatever, when it shows the results, at the header of the table, it always says "Search : Posts From Last Day". I would like that to show the search that you performed actually, like if you searched for posts in the last 3 hours, to say "Search : Posts from the last 3 hours".

I tried adding some switch in the getdaily routine, which sets the value of a string to the proper contents, but the string value is lost somewhere between the getdaily and the template which shows the results.

Any help would be appreciated.

Thanks and regards

skogen
03-08-2005, 08:41 PM
Is it possible to modify so that the active topics-page reloads after 2 mins?

I also wonder if there are some way to get the topics sorted by forum (like the way active topics works for Snitz)

/Fredrik

wrang
03-19-2005, 01:12 PM
does it works for Vb 3.0.7??

Max Power69
03-20-2005, 10:59 PM
UP /\ I want to know the same thing as wrang. (Does this work on 3.0.7?)

I tried it on my test install today (3.0.7) and I ended up getting major corrupted database. Perhaps I just made a mistake.

sv1cec
03-21-2005, 02:45 AM
As far as I can tell it works OK in 3.0.7.

Rgds

carvster
04-29-2005, 07:36 PM
When you do a search for post since 6 hours or 3 days or whatever, when it shows the results, at the header of the table, it always says "Search : Posts From Last Day". I would like that to show the search that you performed actually, like if you searched for posts in the last 3 hours, to say "Search : Posts from the last 3 hours".

I tried adding some switch in the getdaily routine, which sets the value of a string to the proper contents, but the string value is lost somewhere between the getdaily and the template which shows the results.

Any help would be appreciated.

Thanks and regards
John, did you hear back about a fix for the "Search: Posts From Last Day" appearing for all searches?

sv1cec
04-30-2005, 04:28 AM
I don't think I ever got an answer, sorry too long ago, I do not remember. Eventually, I fixed it up, to suite my needs. But I am not sure if my fix has anything to do with the code published here, as I said, I don't remember anymore. If you want me to send you the code, just let me know.

Rgds

skokarl
05-01-2005, 12:56 PM
1) Go to the vB Phrase Manager and add the following Global phrases (see vB help for further directions). If you want different times, adjust accordingly:


Whats the name of the NEW Phrase ??

amykhar
05-01-2005, 01:32 PM
The phrase name is in the brackets.

RichieBoy67
06-09-2005, 02:44 AM
How can I stop certain forums from showing??

Thanks

yoyoyoyo
06-13-2005, 11:47 PM
installed easily and works as advertised- thanks for sharing!

VBUsers
06-22-2005, 06:52 AM
i added this link but on 2 of my templates when i click it it takes me to the search page and then i can click the get post link again and it gives me the drop down. how can i fix this?

Pamela
06-25-2005, 04:50 AM
This is a great hack!

But could someone please let us know how to fix the "Search: Posts From Last Day" appearing for all searches (even the ones from 3 weeks or a month ago)?

Thank you! :)

Senza
06-29-2005, 12:36 AM
I am having difficulty locating this exact phrase in the navbar template.

EDIT ONE: Find the following:

<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>

I am currently running Vb v 3.0.6 with a extremepixies template. I searched in the default template with no luck either. Can anyone shed any light. Thank you.

-edit- My other administrator has already modified the template, hense I couldn't find it.

Bulent Tekcan
08-14-2005, 04:40 PM
In 3.0.8 this error ocurred.But old search.php file is working (3.0.7)

Any idea ?

Thanks

Database error in vBulletin 3.0.8:
Invalid SQL:
REPLACE INTO search (userid, showposts, ipaddress, personal, forumchoice, sortby, sortorder, searchtime, orderedids, dateline, displayterms, searchhash)
VALUES (1, , '81.215.68.108', 1, '81', 'lastpost', 'DESC', 0.024744033813477, '121392,121490,120766,121509,119274,121365,121523, 121517,121522,121514,121521,121444,121094,121519,1 21380,121250,121426,121518,121516,121465,120785,11 9247,27698,51447,121507,120349,86338,114026,119490 ,121467,95997,87804,8270,79956,119699,121473,10290 2,121304,116133,121478,121513,121511,119243,83179, 121377,119079,121315,118783,121512,121515,121437,1 21076,120824,121050,121502,11736,65554,121510,1165 45,120295,118620,99639,120188,66177,121423,75702,4 7761,121484,120779,120784,121416,121333,65445,1203 61,120194,121501,119919,121503,8449,121361,121370, 121505,121508,121464,111804,121476,121204,120255,1 21275,121428,113993,121352,35223,79306,121466,1209 26,100813,121504,121459,120902,121369,65665,121472 ,115965,121506,2943,88462,120555,121500,121453,119 416,121493,121112,121284,96507,96679,118694,101592 ,54962,121286,119549,121285,121287,19037,121458,11 4084,121495,121331,111796,120907,121485,121041,121 299,121448,120893,121499,121497,12286', 1124040976, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:0:{}s:6:\"forums\";N;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:8:\"getdaily\";}}', '6946790854e6d74826ce5e5a398e3d6c')

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' '81.215.68.108', 1, '81', 'lastpost', 'DESC', 0.02474403381347
mysql error number: 1064

Chris@TSE
08-15-2005, 07:47 PM
I don't think I ever got an answer, sorry too long ago, I do not remember. Eventually, I fixed it up, to suite my needs. But I am not sure if my fix has anything to do with the code published here, as I said, I don't remember anymore. If you want me to send you the code, just let me know.

Rgds

Yes please.....

If anyone knows how to fix this issue please let me know!


Problem: No matter which search you use, be it since last visit, last hour, or last day. Any of them..... at the top of the seach results it states "Search: Posts From Last Day "

amykhar
08-15-2005, 08:01 PM
Gang, the problem is the poster of this mod didn't write a single line of the code and is unable to support it. You are on your own.

Lockout
09-29-2005, 02:01 AM
I would love to see this hack changed for VB 3.5 as this is one of my most used hacks any help

amykhar
09-29-2005, 02:19 AM
I already ported my original hack to 3.5. It's been done for ages. (This release was merely a copy of my mod and somebody else's template mod)

AL-min
10-19-2005, 04:12 PM
Gang, the problem is the poster of this mod didn't write a single line of the code and is unable to support it. You are on your own.

Is this hack still supported ? As I am looking to install this or simular hack to my forum.

I have had a search around this site for simular hack but not found any :disappointed: Any suggestions? I need to get this sorted soon as im getting grief from members ever since I moved over from Snitz :ermm:

Im using version 3.0.7 BTW

TIA

Al

amykhar
10-19-2005, 04:16 PM
THIS hack is not supported. It was posted by somebody who swiped my code. My original mod is supported. If you check my profile, you will see the 3.0 version and the 3.5 version. I am not taking feature requests for either version though.

cmiller1014
02-15-2006, 05:10 AM
Anyone recreate this for 3.5.3? I had it on 3.0 and wiped that board clean. It would be helpful to even have the search links to use.......

DieselMinded
04-29-2007, 10:02 PM
Will this work on Ver 3.6.5 ???

DieselMinded
04-30-2007, 12:13 AM
Never mind

http://www.vbulletin.com/forum/showthread.php?t=89080

BigDog56
07-06-2008, 04:45 AM
I would love to see this updated to 3.7.2

nitrohoss
07-07-2008, 06:56 PM
:p I was also wondering if this would work for 3.7.2