vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto reply to members first post! (https://vborg.vbsupport.ru/showthread.php?t=118713)

b6gm6n 06-15-2006 09:46 PM

Auto reply to members first post!
 
There isn't a mod for this one.... and it's about time there was...! :)

-b6

amykhar 06-15-2006 10:15 PM

You don't actually need a code mod to do this. A postbit template mod could do it for you. what you would do is have a conditional at the bottom of the postbit to check if $post[posts]=1 If it is, then you show the dummy post template which would be at the bottom of the postbit. It would look just like a welcome post.

b6gm6n 06-16-2006 12:46 AM

I understand that, thanx for letting me know... so i would have to create a new template with the post info i'd need then call it if posts=1 and this would create a reply or merge it into the persons post ? :D - is it possible to also make the post from a user id i select...like my forum bot for example?... thanx Amy i know your busy....but this would help me so greatly, cheers

-b6

How is this 'dummy post template' setup? part of the posbit template if posts=1...or called from another template...?

basically i add this conditional, i can then copy the postbit add it at the bottom, insert my values <!-- message -->hi<!-- / message --> etc etc even have it from another user.... but will it enter the dudes posts or add it as a reply?

-b6

b6gm6n 06-19-2006 10:38 AM

Automerge death for replies.... so i take it im stuffed for anymore advice, great!!!!!

amykhar 06-19-2006 10:41 AM

No. You don't create a new template. You edit the bottom of your existing postbit with a conditional.

b6gm6n 06-19-2006 10:55 AM

Cheers Amy... i thought as much... but it's still confusing... i can see the postbit template as the way the post is built and so besides the rest ... <!-- message -->hi<!-- / message --> would be my edit to create the reply i needed etc... BUT... would this destroy the members original post and insert mine instead?...i have the feeling it would... i wondered how a reply could be created rather than <if posts=1 then sod users post...here's mine>

-b6

amykhar 06-19-2006 11:00 AM

It's an ADDED post beneath the member's original post. It doesn't replace the original post. I don't have time to do this for you, but I think I've given enough hints as to the simplicity of it that some other coder could come along and release it for you as a template mod.

b6gm6n 06-19-2006 03:55 PM

Thankyou Amy, your help has been invaluble...cheers

-b6


All times are GMT. The time now is 04:40 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.01549 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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