PDA

View Full Version : Pre-defined content for newthread/reply. (UPDATED)


waza
01-02-2006, 10:00 PM
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:
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=104318)

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 :

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
@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
Version 1.5 Released!
new update version 1.5 very very cool. Thanks waza so much. :banana:

yxboom
01-19-2006, 07:06 PM
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
Planned updates.
No current planned updates.

Functions with vbulletin 3.6.4?

Greetz Derbe

mrkhm
01-30-2007, 03:24 PM
absolutely amazing, works a treat in vb 3.6.4! :) installed!!!!!

santimariani
03-20-2007, 03:18 AM
Thank you so much for this product!

Question, however: there is nothing being shown on the left bar of my admincp, so I cannot access it. Why is this happening? I renamed my admincp and modcp folders and htaccessed them... could this have something to do with it? THanks!

santimariani
03-23-2007, 08:54 PM
Anyone? This seems like such a usable hack... I can't wait to put it to good use!

pipin
07-03-2007, 09:13 PM
Anyone? This seems like such a usable hack... I can't wait to put it to good use!


did you try to reinstall the product and overwrite it?

Zighinno
07-10-2007, 08:09 AM
Great

Is possible insert image in the right? :D

curse-1
06-17-2008, 06:11 PM
hi

it is available also for vb 3.7.1?

Samsine
11-06-2008, 09:56 AM
hi,

thanks for this addon :)

it works for vb 3.7.3.

fortnox
02-25-2009, 08:29 PM
Hi!

Does it work for 3.8 ?

Very Thanks :up:

wlan kabel
03-04-2009, 06:22 AM
Hi!

Does it work for 3.8 ?

Very Thanks :up:

it works for vb 3.8.1

celsi
02-21-2010, 06:39 AM
Is it possible to make this Hack for vb 4 ?

Cornie
02-24-2010, 09:39 AM
Is it possible to make this Hack for vb 4 ?

it works for vb4

lazydesis
09-27-2010, 12:07 AM
Works on vb 3.8.5 :up:

Za4a Tuner
04-03-2011, 07:44 AM
what's about a working addon for vB4.1.2?
It would be great to have this one working!

jluerken
04-13-2011, 04:58 AM
It is working with 4.1.2!

Is there a way to change the text depending on the selected language?
Meaning like if language 1 post text A, otherwise B?

/jluerken

MoDz
09-20-2011, 10:25 AM
i get a sql error on 4.1.5 :(
Can you do a version for vb 4?

jluerken
10-31-2013, 07:49 AM
Hi,

I've fixed an error with the installation and made it work with vB 4.2.2
I hope for the author that it is ok if I attach the fixed version here?

Works fine for me now :)