vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Pre-defined content for newthread/reply. (UPDATED) (https://vborg.vbsupport.ru/showthread.php?t=104318)

waza 01-02-2006 10:00 PM

Pre-defined content for newthread/reply. (UPDATED)
 
Hey,

Somebody needed this so I made this quickly, however I think it's something more people can use and as it's been a long time since my last hack release.
I release this.

What it does.
This hack is good if you want all the threads in a certain forum look a bit the same.
In admincp you can define a text & subject that you want to show standard in certain forums, for certain usergroups when they start a new thread.

Features.
-unlimited pre-defined txts
-Define text & subject for certain forums & certain usergroups.
-Show on newreply and/or newthread
-edit & manage


Planned updates.
No current planned updates.

Version walktrough.
3 jan 2006
Version 1.0.0 released

3 jan 2006
Version 1.0.1 released - bug fix release, to upgrade run these 2 queries:
Code:

ALTER TABLE ".TABLE_PREFIX."predeftxts ADD `ugids` VARCHAR( 200 ) NOT NULL
ALTER TABLE ".TABLE_PREFIX."predeftxts ADD `subject` VARCHAR( 200 ) NOT NULL

8 jan 2006
Version 1.5 released - New features: parse bbcode in admincp & choose between newthread and/or newreply + some remaining dutch phrases translated.
To upgrade overwrite product & all files

Fields description.
forum ids (required field)
Define the forum ids where to show this text on new thread.
Seperate with comma ',' e.g. 4,3,2,1

Usergroup ids (required field)
Define the usergroups ids who see the text on new thread.
seperate with comma ',' e.g. 4,3,2,1

Show in newthread
Whether to show it while making a new thread yes or no

Show in newreply
Whether to show it while making a new reply yes or no

subject (not-required field)
Give a standard subject the user will see on new thread (when above fields are true)

text (required field)
Define a standard text the user will see on new thread.

Don't forget to click install

waza 01-03-2006 09:01 AM

first post reserved

Allan 01-03-2006 09:18 AM

Nice idea ;)

Snake 01-03-2006 10:46 AM

Great, I have been looking for this!

nexialys 01-03-2006 10:55 AM

just great... can be used for forums where we write recipes...

rb290 01-03-2006 11:35 AM

hmm kool!

Neutral Singh 01-03-2006 11:44 AM

Cool !! Wow !!

Floris 01-03-2006 12:44 PM

Great resource, very kind of you to share with us.

Ideas this can be used for,

default markup for announcements, articles, news,, blog entries, and etc.. so very handy.

Nutz 01-03-2006 01:06 PM

Very good idea waza, good work :)

Thanks,
Mat

trancetopia 01-03-2006 01:13 PM

Like a lot of other people, this will be very handy. Thanks for sharing.

/me clicks install

gameslover 01-03-2006 03:44 PM

Hello,

Thanks for the hack but I have a SQL error :

Code:

Database error in vBulletin 3.5.2:

Invalid SQL:
INSERT INTO predeftxts (fids, txt, ugids, subject) VALUES ('80', 'test', '6', 'test');

MySQL Error  : Unknown column 'ugids' in 'field list'
Error Number : 1054

Any idea how to fix it ?

waza 01-03-2006 04:04 PM

Hmz, I added an older product to the zip file.
I'll update the product asap.

Run these queries to fix it (replace ".TABLE_PREFIX." with your table prefix):
ALTER TABLE ".TABLE_PREFIX."predeftxts ADD `ugids` VARCHAR( 200 ) NOT NULL
ALTER TABLE ".TABLE_PREFIX."predeftxts ADD `subject` VARCHAR( 200 ) NOT NULL

SO EVERYBODY THAT INSTALLED VERSION 1.0.0 SHOULD RUN THESE QUERIES.

jugo 01-03-2006 04:30 PM

Good job bro.....

/me installs....the new one.

gameslover 01-03-2006 04:32 PM

Thanks you very much, that's work great !!!

/me clicks install

michaelbenson 01-03-2006 08:27 PM

Wonderful idea, installed.

nhacso 01-03-2006 09:40 PM

waza, you can make a difference mod as same above call is "Pre-defined post content for newreply". Because, I think it will very useful for recruit moderator for forum or some issue which don't want open a lots threads.

silurius 01-04-2006 12:01 AM

Installed. Nice one.

waza 01-04-2006 10:03 AM

@nhacso: k, I added that + some other functionality, will update it here later this day.

MrNase 01-04-2006 01:30 PM

Wow, that's a great idea! :)

I'll be using this because my members always forget to add important information when they sell things on my forums :)

lazyseller 01-04-2006 01:36 PM

This is great..... i will definately be adding this...

ADM 01-04-2006 01:52 PM

Great job but it seems it's all in a different language.

Ie. Product title is Pre-defined teksten voor newthread
Navgroup text is Newthread teksten

You've also got a spelling error:
"Add pre-definded text" should be "Add pre-defined text"

Hope these are fixed for the next version, otherwise great job!

waza 01-04-2006 02:59 PM

@ADM: Yeah, I made it first in dutch, without the intention to release it.
So I didn't use phrases, but I decided to release it, and then I quickly translated it, but forgot some things.

However I don't think it's that hard to understand what I mean
newthread teksten = newthread texts
Pre-defined teksten voor newthread = pre-defined texts for newthread ;)

So its semi-english.

kauka 01-04-2006 06:15 PM

ok i have question......is there a way to make it so there are spaces between each line you add?

MrNase 01-04-2006 07:22 PM

Dumb question: Why doesn't it work for me..? :D

I have installed it but the text doesn't show up when I post a new thread.

dsotmoon 01-04-2006 08:13 PM

I am going to try this out in my for sale forums on my automotive site, thanks for sharing

waza 01-05-2006 07:22 AM

@MrNase, make sure you have set the right forums and the right usergroups!
You have to give forumids where you use them like this e.g. 1,2,3
and usergroup ids (admins= 6) so e.g. 5,6,7

So make sure you have set your usergroupid and you post in the right forums.

MrNase 01-05-2006 09:55 AM

I did that.. And I even stripped the code to the ground and still had the error that the message area didn't get filled with the text I entered..

nhacso 01-05-2006 10:07 AM

Quote:

Originally Posted by waza
@nhacso: k, I added that + some other functionality, will update it here later this day.

Thanks waza, I'll waiting upgrade version. :)

waza 01-08-2006 06:38 AM

Version 1.5 Released!

EasyTarget 01-08-2006 07:00 AM

this is cool

pipin 01-08-2006 11:14 AM

Nice, but one glitch.

Could not find phrase 'Please fill in all necessary fields'.

waza 01-08-2006 03:26 PM

ow, well, I think you can guess what was in that phrase, he,
forumids, usergroupids & text are required fields.
If you don't want a text to be active set show on newthread & newreply to no.

kauka 01-08-2006 11:53 PM

nice but nothing shows after creating predefined template either in newthread or newreply both are blank any suggestions

waza 01-09-2006 03:12 PM

Hmz, I tested this on 3 boards so the system works.
However, make sure u have set following things right:
usergroup id's (admins=6)
forum id (when your in a forum: forumdisplay?f=x -> x is the forum id)
make sure show on newthread or show on newreply is set to yes.

kauka 01-09-2006 06:35 PM

yes thanks for quick reply........it was an error on my part and all works great....thanks

nhacso 01-09-2006 09:20 PM

Quote:

Originally Posted by waza
Version 1.5 Released!

new update version 1.5 very very cool. Thanks waza so much. :banana:

yxboom 01-19-2006 07:06 PM

Quote:

Originally Posted by kauka
ok i have question......is there a way to make it so there are spaces between each line you add?

ditto. i am having this same problem. When posting a new thread there is no space although in the admincp ive defined extra spaces.

im using 1.5 on vb 3.5.2

counterform 04-24-2006 02:53 AM

Is there a way to alter this extension so that instead of a forum you can declare a category in the settings available in AdminCP? I would like all child forums of chosen categories to have the predefined text. Possible?

fortnox 09-07-2006 04:41 PM

Hi!

Many Thanks for this Modification. :)

Is this possible that the pre defined text is not shown in reply box?

The pre defined text should be standard and not changable.

derbe 12-10-2006 11:34 PM

Quote:

Planned updates.
No current planned updates.
Functions with vbulletin 3.6.4?

Greetz Derbe


All times are GMT. The time now is 05:26 PM.

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.01401 seconds
  • Memory Usage 1,807KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete