vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Link to posts in postbit. (https://vborg.vbsupport.ru/showthread.php?t=49559)

Davey 03-02-2003 07:29 PM

Link to posts in postbit.
 
1 Attachment(s)
[ 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:
PHP Code:

<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

Quote:

Yesterday at 12:02 PM Davey said this in Post #12
PS: It's the little things that count.

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


All times are GMT. The time now is 03:51 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.00984 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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