PDA

View Full Version : How to do that? see photo!


Birdie501
04-10-2002, 10:26 AM
Hi,

how can i change this like here on vbulletin. org?

Thanks!

Admin
04-10-2002, 10:34 AM
Are you talking about the [-] / [+], linked username or search posts link? :D

Birdie501
04-10-2002, 10:36 AM
Hi firefly,
yes you got it! i know the +/- hack, but the other two things?

Thanks!

Regards
birdie501

Admin
04-10-2002, 10:40 AM
That's a part of our postbit:
<normalfont><b><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]">$post[username]</a></b> [<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]"><img src="{imagesfolder}/postbit_find.gif" border="0" alt="Find more posts by $userinfo[username]" align="middle"></a>]</b></normalfont>

Birdie501
04-10-2002, 10:58 AM
Thank you!

one more question: how do you highlight the Online with yellowcolor? Because it is no image? I wonder :-)

:glasses:

FWC
04-11-2002, 04:11 AM
Originally posted by Birdie501
Thank you!

one more question: how do you highlight the Online with yellowcolor? Because it is no image? I wonder :-)

:glasses: That's an HTML glow tag.

Birdie501
04-11-2002, 05:57 AM
Thank you FWC!

FWC
04-11-2002, 06:12 AM
You're welcome. :)

scottct1
04-24-2002, 02:39 PM
Whats the +/- Hack called, I can't find it.

Thanks

Austin Dea
04-24-2002, 04:03 PM
Contract posts by Bira I believe.

Blue91
04-29-2002, 09:44 AM
Originally posted by FireFly
That's a part of our postbit:
<normalfont><b><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]">$post[username]</a></b> [<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]"><img src="https://vborg.vbsupport.ru/images/postbit_find.gif" border="0" alt="Find more posts by $userinfo[username]" align="middle"></a>]</b></normalfont>


Where do I install this code to enable this feature? And do I need to edit any files, or is it just template based?

This is a great feature!

Birdie501
04-29-2002, 09:46 AM
postbit template!

Blue91
04-29-2002, 09:57 AM
Do I just paste it anywhere? And, will my search results be formatted/look like they do here? I love the way they are here.

Sorry for seemingly stupid questions, but I just set up my board for the first time yesterday, and am learning (not fast enough apparently, hehehe)

Regards,

Fred Bingham

Blue91
04-29-2002, 12:18 PM
Wow, I figured it out on my own believe it or not. Maybe I AM learning quick. (not the code, just where the code GOES and minor manipulations, :D )


Here's a variable Im curious about though.... how can I edit that code to just do a search for posts in the past, say, 3 days. If it does a search for ALL posts, that's gonna end up taking forever.

Or is it already this way?

Again, sorry for seemingly simple questions.

Regards,

Blue91
04-29-2002, 10:21 PM
anyone out there know how to conquer what was proposed in my post above this one?

Regards,

Admin
04-30-2002, 06:15 AM
Blue: In search.php find this code:
$wheresql="1=1".$forumsql.$usersql;

And add this portion of code right AFTER it:
if (!empty($days)) {
$wheresql .= ' AND post.dateline > '.(time() - (60*60*24*$days));
}
Now change the link to this (in the postbit template):
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]&days=3">
(3 being the number of days to search for)

Blue91
04-30-2002, 04:34 PM
Hmm, that doesn't seem to be working. I put in the value 1 and I get more results than just the past day. I get the same results for 1 day as I do 7 days. Also, that made my "Latest posts in the past 24 hours" link at the top of my index page to not work, lol. I guess I'll just leave well enough alone.

Regards,

nulltone
05-21-2002, 02:00 AM
Where can I find the "Online" or "Offline" hack which is currently in your postbit?