PDA

View Full Version : Link to posts in postbit.


Davey
03-02-2003, 07:29 PM
[ Link to all posts in postbit template (v1.1) ]

I know it's not much, but for you hackers that want this, it's open for you.
Where you have 'post count' in the postbit template, this tiny template modification adds a link to all their posts.
Ex: Where it says 'posts 8'; the '8' will be hyperlinked to all the users posts :).
I know it's not much, but I hope this comes in handy for some of you.

Regards; David G.

[Bug fixes]
1.1: Fixed the incomplete <a> tag, noticed by base.

[Updates]
1.1: Updated the <a> tag in step #5 so that it works properly. That was a mistake on my behalf, sorry. Thanks base.

[Instructions]
- Upgrading to 1.1 from 1.0:
1) Open up the postbit template.
2) Find <a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]
3) Replace with: <a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]">$post[posts]</a>

EchoHype.com
03-02-2003, 07:31 PM
nice mod. simple yet useful, hehe.

good job

base
03-02-2003, 08:19 PM
just a quick note to let you know that your step 5 should be this:

Use the find function to find: $post[posts]

Once found, replace it with this:
<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]">$post[posts]</a>

otherwise the actual post count or link to other posts wont show.

good idea though, i like it :)

Davey
03-02-2003, 10:15 PM
Ahhh my mistake.
I just looked at the code and realised what I'd missed.
Thank you for spotting this.

Dave.

PS: Template modification updated :).

Dean C
03-03-2003, 03:59 PM
Nice mod. Thanks for releasing Davey :D

- miSt

Davey
03-04-2003, 07:59 AM
No problem :).
Thanks EchoHype.com by the way :).
There's unlimited amounts of postbit modifications which can be done.
It's just simple.

Dave.

Tony G
03-04-2003, 09:38 AM
Nice mod Davey. :)

Davey
03-04-2003, 10:48 AM
Thank you LD ^_^.

Dave.

Dvd
03-09-2003, 12:58 PM
If i wanna display results of 3 or 4 forums,and not of all forum what i have to do?

Davey
03-10-2003, 11:41 AM
This would require a php file edit, no?
And this wasn't intended for a php file edit :).
Basically it is a link to the "search user's posts" in the postbit.
It isn't intended to display the results of only 3 or 4 forums...
Sorry.

Dave.

sphinx
03-13-2003, 08:40 AM
yeah I like it I like it a lot,there is a lot to be said for the simpler things nice mod installing

Davey
03-21-2003, 03:02 PM
Thanks :).

Dave.

PS: It's the little things that count.

Fi_InCogNiTo
03-22-2003, 05:22 PM
Yesterday at 12:02 PM Davey said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=370757#post370757)
PS: It's the little things that count.


My wife says this to me all the time. Very nice hack. Great job =D