PDA

View Full Version : Show Thread Enhancements - Thread Description


TrucLinh
11-10-2006, 10:00 PM
Release: for 3.5.x ~ 3.6.x to 3.7.x (*)

. This hack allows your users to add descriptions to their threads that show up on the threadlist.
. More info & option see (Screenshots)
Code Changed (*)
Add Field To Edit Post For First Post
Show Thread Description In Showthread
Show Thread Description In Search Results
Add html specialchars uni to description updates to prevent HTML
Admin CP can Enable/Disable thread descriptions per forum (*)https://vborg.vbsupport.ru/


DL / Unpacking the attachment:

. UpLoad images\strela_w.gif

Installation Instructions:

. Login to Admin CP
. Choose Plugin System
. Choose [Add/Import Product]
. Choose product-thread_description.xml
. Click [ Import ]

Modify templates: ( 6 templates )

. Read My Instructions: readme-thread-description.html (c) (+)

. Import [ XML ] = Done

. Thats all!

. Enjoy!

Note:
I will update my mod "no more edit template" on my next ver.
Good date all!

(*) My New Version https://vborg.vbsupport.ru/ Dec12, 2006
(c) Templace(s) - vBulletin ver you may find template changes, but these input code not changes.

shadowevil
11-11-2006, 12:37 AM
first post .... :)

Sunstroke
11-11-2006, 01:05 AM
what does it look like on the posting board? does it just show under the title of the thread?

Shazz
11-11-2006, 01:18 AM
Probablly like Invision..

AzzidReign
11-11-2006, 06:02 AM
Will it add the descption to the discription meta tag?

projectego
11-11-2006, 06:14 AM
Thanks for sharing. :)

unitedpunjab
11-11-2006, 08:50 AM
what does it look like on the posting board? does it just show under the title of the thread?
i'd also like to know that :surprised:

Snake
11-11-2006, 02:36 PM
Me too.

tnguy3n
11-11-2006, 11:04 PM
Good job, be' Linh!

PoetJA-1975
11-12-2006, 10:23 AM
what does it look like on the posting board? does it just show under the title of the thread?
looks fabulous - but dude has asked my question - Screenies of the answer would be AWESOME! ALSO - can this work with 3.5.6?

Nice sharing - Thanx

Jacquii.

Scooby Doo
11-12-2006, 02:16 PM
Good job! Very good TrucLinh! :)

taxick
11-12-2006, 09:24 PM
Sry But it ++++ my forum up - How to uninstall this mod??? Plz Help

TrucLinh
11-19-2006, 08:00 PM
Sry But it ++++ my forum up - How to uninstall this mod??? Plz Help
Login
Admin CP > Plugins & Products > Uninstall Code > Edit Templace > delete input code you install (readme.txt) or (revert your templace)

Working good with me, your forum ????

TrucLinh
11-19-2006, 08:04 PM
looks fabulous - but dude has asked my question - Screenies of the answer would be AWESOME! ALSO - can this work with 3.5.6?

Nice sharing - Thanx

Jacquii.

Yes!

Enjoy!

RyuKenLi
11-19-2006, 11:07 PM
Thank you

SouthernTn
11-20-2006, 03:39 AM
newbie question I know.. but where do I change that This is a forum by vbulletin etc etc that is set as the default in the thread description

TrucLinh
11-20-2006, 04:42 AM
Acc. to Thread Description Options by Login to Admin CP > Forums & Moderators > Choose Forum Manager or Add New Forum > see Screenshots [ https://vborg.vbsupport.ru/attachment.php?attachmentid=56212&d=1163946067 ]

SouthernTn
11-21-2006, 02:13 AM
No, I want to change the wording.. I cant find where to change the default wording just incase they dont input a description

TrucLinh
11-21-2006, 02:56 AM
I don't understand you.

???

SouthernTn
11-22-2006, 01:12 PM
when making a new thread, inside the "Description" box, there are the default text saying " This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com "

How can I delete this text, because when someone doesnt enter in a description, this will appear in that area.

transitbus
11-22-2006, 02:55 PM
Trying to update the product returns

XML Error: not well-formed (invalid token) at Line 8

sally27
11-23-2006, 05:24 PM
when making a new thread, inside the "Description" box, there are the default text saying " This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com "

How can I delete this text, because when someone doesnt enter in a description, this will appear in that area.

Is there a way to do this yet as I would like for it to be left blank if nobody puts a desciption in the box.

TrucLinh
11-24-2006, 12:32 AM
Test on my forum, left it blank, it working find, no text saying " This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com " Check your forum...

RobParker
11-25-2006, 05:46 PM
When trying this for 3.6.4 I get the message that:

This file was created using a different version of vBulletin from the one you are running.

Your version: 3.6.4
File version: 3.6.3

Is this easily fixed?

KURTZ
12-02-2006, 11:43 AM
dont understand: runs or not on 3.6.4? :confused:

PoetJA-1975
12-02-2006, 12:38 PM
Very nice - Thanx for the screenies ;)
Thanx for the mod as well - been looking for something like this!
Excellent!

Jacquii.

Discussions
12-02-2006, 04:16 PM
dont understand: runs or not on 3.6.4? :confused:

To answer is as best as I can, as of the moment this does not work on Vbulletin 3.6.4 due to some changes in the code. It will probably take a few days before a new, updated version comes along.

KURTZ
12-11-2006, 10:48 AM
ok thx, i'm waiting for new release :)

PoetJA-1975
12-14-2006, 08:06 AM
Trying to update the product returns

XML Error: not well-formed (invalid token) at Line 8



Hey TRANSIBUS - I had a similar issue with 3.5.x.... I downloaded the readme.zip, commented out all of the executionorder="5"...

Find and remove:

<versioncheckurl>https://vborg.vbsupport.ru/misc.php?do=checkversion&t=131239</versioncheckurl>

Then reimport the plug in...

Hope this helps!

Jacquii.

Neutral Singh
12-14-2006, 02:03 PM
Is it possible to do search in thread description? Thanks for this.

KURTZ
12-14-2006, 03:18 PM
thx TrucLinh!

already INSTALLED on 3.6.4 and works like a charm :D

TrucLinh
12-15-2006, 01:06 AM
Is it possible to do search in thread description? Thanks for this.

thx TrucLinh!

already INSTALLED on 3.6.4 and works like a charm :DYou are welcome.

farooqaaa
12-19-2006, 03:16 PM
Thanks alot. This is nice!

transitbus
12-19-2006, 03:26 PM
A couple of suggestions:


Don't rar the file please, leave it as zip
There is no need to upload the XML product file via ftp. You can use the product upload via the admin CP
The description on the main thread here is far too confusing, it has too much information that is hard to follow. Can you simplify the process and give upgrade instructions?


Thanks and aside from these little things this is an excellent mod.

transitbus
12-19-2006, 03:40 PM
Edit... NM simply had to remove the program and reinstall it and the error went away.

transitbus
12-19-2006, 11:08 PM
when installed your mod interferes with unread posts. When uninstalled it break the undread post function by deleting a required table field. This is a dangerous bug and I hope you fix it because now I am having to go and manually fix my forum to fix your bug


Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT searchid FROM search AS search WHERE userid = 1 AND searchhash = 'b2ba47094c3fh227e95e9820abe34e7a' AND orderedids = '491' AND announceids = '' AND completed = 1;

MySQL Error : Unknown column 'completed' in 'where clause'
Error Number : 1054
Date : Tuesday, December 19th 2006 @ 05:07:48 PM
Script : http://www.shebaliscronies.com/search.php?do=getnew
Referrer : http://www.shebaliscronies.com/
IP Address : xxx.xxx.xxx.xxx
Username : xxx
Classname : vb_database

transitbus
12-19-2006, 11:34 PM
Edit:

looks like your mod removes a required field:

http://www.vbulletin.com/forum/bugs36.php?do=view&bugid=1218

If you have done a new install and are getting errors while searching, this column is missing. Please run the following query to add it:

Code:
ALTER TABLE `search` ADD `completed` SMALLINT UNSIGNED NOT NULL DEFAULT '1';

I think if you alter your xml file to not include:

$db->query_write("ALTER TABLE `" . TABLE_PREFIX . "search` ADD `completed` tinyint(1) default NULL");

and:

$db->query_write("ALTER TABLE `" . TABLE_PREFIX . "search` DROP `completed`");

This might work because completed has to have a default of not null to work and you are altering it to change to null as the default. You also can not remove this field

Paul M
12-20-2006, 04:36 AM
The uninstall code of this mod is removing a default vbulletin field from the search table - this should be fixed asap and people informed to upgrade (and not to uninstall this product until they have). You should also remove the code in the install section that adds this field - the field should already be present in a 3.6.4 installation.

Edit: This has now been fixed by the author.

Terminatoronly
12-20-2006, 07:09 AM
thanks alot working fine for me :D

Cybershaolin
12-20-2006, 08:13 PM
There is also another bug for 3.6.4. When you want to edit a message by using the Edit (modifiy) button and if you decide to go in advance mode, you will get a DB error such as:


Database error in vBulletin 3.6.4:

Invalid SQL:
UPDATE thread SET description = '' WHERE threadid = '24';

MySQL Error : The table 'vb_364.thread' doesn't exist
Error Number : 1146
Date : Wednesday, December 20th 2006 @ 04:54:03 PM
Script : http://myforum.com/forum/editpost.p...pdatepost&p=87
Referrer : http://myforum.com/forum/editpost.p...post&postid=87
Username : Netsurfer
Classname : vb_database

Mupetz
12-21-2006, 08:16 PM
There is also another bug for 3.6.4. When you want to edit a message by using the Edit (modifiy) button and if you decide to go in advance mode, you will get a DB error such as:

No error here ;)

KURTZ
12-21-2006, 09:51 PM
what is the change log respect the previous version?

TrucLinh
12-22-2006, 04:39 AM
vBulletin 3.6.4 dev with ERROR - NOT THIS MOD

But admin of vb.org want me to ... look at his post

I don't think he look at this... yes
http://www.vbulletin.com/forum/bugs36.php?do=view&bugid=1218

transitbus
`completed` is it exit in vb3.6.4? If it have then we don't had this error, do you get it?

I add this in my update for 364, that why uninstall I DROP it, do you get it?

Look at MYSQL again PPPPPPPPP

Who the author here this not vb.org mod and your mod.

I Supported & FIX it ver to ver do I ?

One thing why i had to do you way?

You say "A couple of suggestions"

My MODS is ZIP or RAR ?

What are you T about?

IF!!! You are good. Why PM me, ask me for help ???

vb dev this vb364 with error why don't you go to vb dev tell they.

I want to do the best, I can!

No $$$$ here, do you get it!

TrucLinh
12-22-2006, 04:53 AM
ALTER TABLE `search` ADD `completed` SMALLINT UNSIGNED NOT NULL DEFAULT '1'; Admin vb.org tell me take it off my mod but that make the error

You G add this by your...

ERROR by vb dev

I don't want to update my mod by vb ver no more!

Now on Supported = OFF

ESL not my mom lang... don't want to say no more!

KURTZ
12-22-2006, 11:22 PM
hey truclinh, unfortunately your hack has an issue :(

i've noticed that issue on vBcom ...

CHECK HERE (http://www.vbulletin.com/forum/showthread.php?t=213419)

pls tell me if i can fix this issue (that i had with the previously version too) otherwise i must unistall your hack :(

TrucLinh
12-23-2006, 07:15 AM
I make this mod by my need
I put it here for some one need it 2!
Install or Uninstall M not think to M
pls don't say thing like that with M

JohnBee
12-24-2006, 03:02 AM
I also ran into this problem: MySQL Error : Unknown column 'completed' in 'where clause'
Error Number : 1054

I tried the fix posted here but it did not work:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table '364bb.search' doesn't exist

JohnBee
12-24-2006, 03:11 AM
I also ran into this problem: MySQL Error : Unknown column 'completed' in 'where clause'
Error Number : 1054

I tried the fix posted here but it did not work:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table '364bb.search' doesn't exist
Okay It is resolved now - thx

adonfun
12-27-2006, 10:13 PM
Thank you TrucLinh, I needed this one :)

transitbus
12-27-2006, 10:19 PM
Instead of quoting your whole post TrucLinh, the reason I PM'd you asking for help is because at the time I was still trying to find the reason your addon caused these issues. I wass just lucky to find hte bug report on vb.com. If I had not posted back here and done the research you would still be having problems.

Long story short your mod now works as intended. You tried to modify a required field in a table used by the core aspects of vb. You have fixed your problem and your mod works now.

All is well.

KURTZ
12-30-2006, 12:07 PM
unistalled too many issues on this hack :(

Brew
12-30-2006, 04:28 PM
TrucLinh,

Don't give up on this mod ok?

It does have some issues but that is ok. Most mods have issues when they are first released because there is so much that can go wrong.

So stay with supporting this mod and things will get better!

Besides, if you leave this mod it could damage your reputation here at vb.org. I would hate to see that happen because you were nice enough to put this mod out for everyone.

Thanks for the mod!

Nik_s3
01-07-2007, 06:12 PM
unistalled too many issues on this hack :(

Why?

I've installed ... and It works well.

Thank you

KURTZ
01-08-2007, 02:13 AM
Why?

I've installed ... and It works well.

Thank you

READ HERE (https://vborg.vbsupport.ru/showpost.php?p=1143734&postcount=45)

KURTZ
01-08-2007, 11:25 AM
dear Vietonline i really dont understand what you say to me ;) maybe i dont know too much the english language to understand what you say ... :)

why i must disable the plugin system?

have you see who tells me that is an error caused by this mod is PAUL M one of the Admins of THIS site ... and if you dont satisfied about this i can tell you that when i UNISTALLED this hack all runs perfectly on my board ...

however i agree with you when you tell me that i must to learn, but this not changes the fact that this hack unfortunately doesnt works correctly to me ...

Nik_s3
01-08-2007, 12:03 PM
How can I modify the thread description? (after thread is posted)

KURTZ
01-08-2007, 12:36 PM
How can I modify the thread description? (after thread is posted)

editing the thread :) but it's this the trouble!

TrucLinh
01-10-2007, 02:17 AM
editing the thread :) but it's this the trouble!Hi KURTZ!

Sorry it doesn't work on your sys.

When your sys error you not came tell me at my forum, you ask other not me, then you tell me my mod have issue!!! When this mod on my sys it work find! "Your sys not look like my sys! Please remember that!" when make mod I base on vBulletin Default.

It work find on my sys and other, alot of member dl install with out error when I 1st post here for vb361 to vb363, when vb364 "vb364 dev with error not the mod" but it fixed, I update it how many time I don't mem. (that alot of time on me) please don't make trouble here! If you are use my mod on your sys now!!!

If you don't like my mods please don't install it and please don't cont. look inside this thread for my update. Like I say Install or Uninstall M not think to M.

I need my time to do other thing!

TrucLinh

itdevil
01-13-2007, 05:28 PM
Nice mod. thank You!

Cybershaolin
01-15-2007, 10:16 PM
I have verified the version that I'm using and it's 1.0.0d. Now, I still have the same problem that I had before with it. I will try to explain clearly what's going on exactly with the 3.6.4 of vbulletin. I also have to say that I checked 3 times my templates editions.

When I try to modify a message in a thread which is not the first message of that thread, there is no problem at all but when I try to modify the first message of that thread this is where the trouble starts.

I'm testing in local but the same problem is reproduced with my online version of the forum.

So here are the steps I'm taking. Take note that the error happens in one case but not in another one:

Where I get an error:

If I modify the first message of the thread using the "Edit" button but then going in "Advance mode" , I get this url when I look in the browser header: (http://127.0.0.1/vb_364/forum/editpost.php?do=editpost&postid=87 )

Then, I click on "Save changes" and get this:


Database error in vBulletin 3.6.4:

Invalid SQL:
UPDATE thread SET description = '' WHERE threadid = '24';

MySQL Error : The table 'vb_364.thread' doesn't exists
Error Number : 1146
Date : Wednesday, December 20th 2006 @ 04:54:03 PM
Script : http://monforum.com/forum/editpost.php?do=updatepost&p=87
Referrer : http://monforum.com/forum/editpost.php?do=editpost&postid=87
Username : Netsurfer
Classname : vb_database


Where I don't get an error:

But, if I modify the first message of the thread clicking the "Edit" using my right button of the mouse and then make it open in a new window, I get this url: when I look in the browser header: (http://127.0.0.1/vb_364/forum/editpost.php?do=editpost&p=87 ) and I don't get the error when clicking on "Save changes"

It's weird because the second time, it gives me a different url even if both options use the advance mode...

The difference between both url's is shown at the end with editpost&postid=87 which creates a bug and with editpost&p=87 which does not bug !

So why it does that, I don't know and would like to understand. How could I correct this?

I hope that you were able to understand my steps and that some other members will be able to reproduce this.

KURTZ
01-15-2007, 10:22 PM
like i previously say: too many issues on this hack :(

cyber, i had the same error ... :(

TrucLinh
01-16-2007, 03:40 AM
Netsurfer
Go here and Submit a New Bug ( it may be fixed => search vb.com )
http://www.vbulletin.com/forum/bugs36.php
please look inside some tutorial/book about Mysql "How to create table & column" to fix this error.
My Pa say! "I don't want TrucLinh help fix this vb dev bug. This mod do not create/call this missing table ' looking inside the file product-thread_description.xml and learn some php & Mysql before you say some thing about it! "you have ask vbviet.org your nick 'Netsurfer' you have table with table prefix 'vb_364.thread' then you'll need to prefix when you create this missing table ' You can do it , you want to be a Admin of a site you much learn some php & mysql!
DavidNg "
like i previously say: too many issues on this hack :(

cyber, i had the same error ... :(
Look in inside the XML "product-thread_description.xml" you see any line call this ( missing table & column + error with url links ) ??? Why you say this hack ??? Why you cont. look inside this thread for ???
When you have bug go here please (ask for right person)
Why I show you this !!! I nice with you do I? How about you ??? :)
http://www.vbulletin.com/forum/bugs36.php
You can read English please learn some php & Mysql, don't make trouble here! :)

Cybershaolin
01-16-2007, 04:35 AM
If you say so. :cool: Not a way to talk to people looking for help and without having your php knowledge anyway. :p But, anyhow, I fixed it by modifying your hack! :D

In the module:

I changed this:


$db->query_write("UPDATE thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");



for


$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");


Now it works...

TrucLinh
01-16-2007, 07:46 AM
HUM! My pa show you :)

My Pa say! "you have table with table prefix 'vb_364.thread' then you'll need to prefix when you create this missing table ' You can do it ...

"Your sys not look like my sys! Please remember that!" when make mod I base on vBulletin Default."
You & some other install vb add prefix to it. When error all way say we are... When this mod on my/other sys it work find! :)

Other things hack db system you asking belong to tnguy3n not my, My modifications of that hack look good but it all way belong to tnguy3n of vbviet.org . I can't published without tnguy3n permission.

Devil Woman
01-23-2007, 01:35 AM
Sorry to sound so dumb here but I cant find where to activate it for forum's, I have had a look through the posts and tried what it says but can't find it anywhere, any help is appreciated.

YLP1
02-04-2007, 06:00 PM
Will the text in this field be searchable by vb search function? Thanks in advance.

Illustrious
03-07-2007, 06:14 PM
If you say so. :cool: Not a way to talk to people looking for help and without having your php knowledge anyway. :p But, anyhow, I fixed it by modifying your hack! :D

In the module:

I changed this:


$db->query_write("UPDATE thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");



for


$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");


Now it works...

I had issues with the exact same error (running on vb3.6.5).

I tried your fix, and nothing happened. But the problem was that it was prefixing a period ('.') in front of the "thread" table, and thus it wasn't recognizing it in the database.

It would be nice to get it fixed.

deepak7
03-11-2007, 04:51 PM
Hey

Its not working for me, nothing appears when I add/edit a thread.

I modified the 6 templates.
I uploaded the plugin.

Now, in admin cp... I seenothing about this on usergroup settings but I can see on forum manager setting (all set to YES... still not working)

2meplie
04-07-2007, 09:13 PM
A couple of bugs:

1- When you type in a description and hit "preview" it does not carry the description through. So you have to remember to re-type it or it disappears.

2- When you edit a post you have the box to add/change the description but it does not update with the changes you made to that box.

DJLy5y
05-02-2007, 07:45 PM
Adding fast change description by adming and mod ? Using moderation menu ? That will be fun :P And it will be nice to do some default description in admin pannel, and let the admin choose if simple users can change descriptions. :}

titorevolu
05-02-2007, 10:58 PM
thanks, it works!!!! it works!!!

DJLy5y
05-05-2007, 01:11 AM
It will be nice to add something like if thread description is "game" the thread color is red and when it's "door" the color is green ? And any chance to change thread names using the moderation options ? this one --- > https://vborg.vbsupport.ru/attachment.php?attachmentid=63909&d=1178133233

popular
07-10-2007, 01:00 AM
is there a way to change font/color for the thread description?

nhatrang
08-04-2007, 03:22 AM
how do we add this to replies as well? WE have it for new threads, what about a member wanting to use the title for the title of their reply, and also want a description? please help.

vspro
08-15-2007, 02:22 PM
not worked at 3.6.8?

momo2
09-12-2007, 03:04 PM
Installed on 3.6.8 works prefect how ever it did not show up, but after 2 times refreshing it showed up.............. Thanks

trancetopia
10-10-2007, 11:31 AM
Hi, i've been having the update sql errors too. Is there an official fix planned for this mod?

I've also not been able to see the options in the forum permissions too.

This used to be so good on my older boards and need it for 3.6.8.

ps. Can't access your support link in the mod description - the forum is down so looking for support here if possible.

Thanks

inciarco
10-16-2007, 03:48 AM
If you say so. :cool: Not a way to talk to people looking for help and without having your php knowledge anyway. :p But, anyhow, I fixed it by modifying your hack! :D

In the module:

I changed this:


$db->query_write("UPDATE thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");



for


$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");


Now it works...

Great Help Cybershaolin!! :up:

I was receiving an Error Message:

Database error in vBulletin 3.6.7:

Invalid SQL:
UPDATE thread SET description = 'Edici?n de Tema Para A?adir Descripci?n' WHERE threadid = '1973';

MySQL Error : Table 'inciarc_foros.thread' doesn't exist
Error Number : 1146
Date : Monday, October 15th 2007 @ 11:45:12 PM
Script : http://zzz/editpost.php?do=updatepost&p=8980
Referrer : http://zzz/editpost.php?do=editpost&postid=8980
IP Address : zzz.zzz.zzz.zzz
Username : zzz
Classname : vb_database

According to Your Orientation, in the Admin Control Panel, in the Plugin System for the Add-Ons (Products), I've Located the "Thread Description - Update Description" Plugin and as You Said:

REPLACED:
$db->query_write("UPDATE thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");

WITH:
$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET description = '" . $db->escape_string(htmlspecialchars_uni($edit['description'])) . "' WHERE threadid = '" . $db->escape_string($threadinfo['threadid']) . "'");

And Now The Error Message Is Not Happening, and The Edit of the Description is Successful!! ;)

Thank You very Much Again For Sharing This Excellent Solution!! :up:

My Best Regards!! ;)

:)

yoyoyoyo
11-01-2007, 04:41 PM
Here is the XML file in TMS (Template Modification System) format, for those that have TMS installed.

I am also including the product, which is updated to avoid the error indicated in this thread, using the edits mentioned in this thread. (Note- I also changed the name of the product from ++++++ to Thread Description)

eng_matt
11-22-2007, 12:08 AM
thanks

Mrdby
12-09-2007, 10:47 AM
3.6.8?

Das UndergrounD
02-16-2008, 03:24 AM
Hello, the installed hack had, and when you edited the messages in advanced mode you threw away an error, the same mentioned above, next install the modified product and now the description of the themes does not appear to me, I have gone back to install the hack time after time and the description does not appear to me.:(:erm:

TCE Killa
02-16-2008, 04:45 PM
Nothing shows up for me, I am using 3.6.8 PL 2.

Das UndergrounD
02-16-2008, 05:37 PM
Nothing shows up for me, I am using 3.6.8 PL 2.


I'm using a 3.6.8 pl2 too

Leica.Robbiani
02-19-2008, 03:39 PM
Hi there,

I've changed 2 Plugin's to get this Mod work, Thread Description - Edit Post and the Thread Description - Update Description.

The original code of the first one is

<plugin active="1" executionorder="5">
<title>Thread Description - Edit Post</title>
<hookname>editpost_update_start</hookname>
<phpcode><![CDATA[if ($postinfo['postid'] == $threadinfo['firstpostid'])
{
$vbulletin->input->clean_gpc('p', 'description', TYPE_STR);
$edit['description'] =& $vbulletin->GPC['description'];
}]]></phpcode>
</plugin>


my code is

<plugin active="1" executionorder="5">
<title>Thread Description - Edit Post</title>
<hookname>editpost_update_start</hookname>
<phpcode><![CDATA[$vbulletin->input->clean_gpc('p', 'description', TYPE_STR);
$edit['description'] =& $vbulletin->GPC['description'];]]></phpcode>
</plugin>

In the second Plugin I've just changed in the if-question the AND in an OR.

With this little changes it works correctly for me on 3.6.8PL2.

Leica Robbiani

rapidphim
02-23-2008, 06:03 AM
Here is the XML file in TMS (Template Modification System) format, for those that have TMS installed.

I am also including the product, which is updated to avoid the error indicated in this thread, using the edits mentioned in this thread. (Note- I also changed the name of the product from vBViet to Thread Description)

Yoyoyoyo, I don't have the TMS hack, do I still need to do the template hack or I just upload the product xml only?

PaulSonny
02-23-2008, 07:33 AM
Installed and working on 3.7.

Thanks, Paul.

rapidphim
02-23-2008, 08:03 AM
Paul, did you use the original file/instruction from TrucLinh or you used the two files from Yoyoyoyo?

PaulSonny
02-23-2008, 09:46 AM
Hello Rapidphim,

I used readme36x.zip in the original thread and followed all the instructions. I have edited my templates a little because I didn't like the image.

Thanks, Paul.

JohnBee
03-22-2008, 03:02 AM
Hi there,

I've changed 2 Plugin's to get this Mod work, Thread Description - Edit Post and the Thread Description - Update Description.

The original code of the first one is

<plugin active="1" executionorder="5">
<title>Thread Description - Edit Post</title>
<hookname>editpost_update_start</hookname>
<phpcode><![CDATA[if ($postinfo['postid'] == $threadinfo['firstpostid'])
{
$vbulletin->input->clean_gpc('p', 'description', TYPE_STR);
$edit['description'] =& $vbulletin->GPC['description'];
}]]></phpcode>
</plugin>
my code is

<plugin active="1" executionorder="5">
<title>Thread Description - Edit Post</title>
<hookname>editpost_update_start</hookname>
<phpcode><![CDATA[$vbulletin->input->clean_gpc('p', 'description', TYPE_STR);
$edit['description'] =& $vbulletin->GPC['description'];]]></phpcode>
</plugin>In the second Plugin I've just changed in the if-question the AND in an OR.

With this little changes it works correctly for me on 3.6.8PL2.

Leica Robbiani

Tried that... no show.
Any other tips?

Tharos
04-15-2008, 01:50 PM
very nice hack =)
thank you friend

.....................................
It did not work on my vbulletin, wich is a 3.6.9 version
I tried installing it over and over but nothing happened =/

Jezlad
04-24-2008, 11:47 PM
Awwww, I wanted this - looks like more trouble than it's worth though.

nesta2006
05-03-2008, 09:39 PM
don't view in 3.7

Tharos
05-05-2008, 05:08 PM
don't view in 3.7

In 3.6.9 doesn?t show nothing

Nook_Neformat
05-25-2008, 12:39 PM
works great at my 3.7.0
anyway, please, help me: i want to see thread description in this page
http://www.site/forum/tags.php?tag=any+tag
hope you'll understand and help

fly
06-07-2008, 05:52 PM
If anyone is interested, here is the TMS XML for this hack... Created on 3.7.1.

demgel
06-13-2008, 01:33 AM
Works fine in vBulletin 3.7.1 ;)

RvG2
06-30-2008, 02:42 AM
Works fine in vBulletin 3.7.1 ;)

U r right...

fly
06-30-2008, 12:57 PM
Any way to make this thing remember the description if Thread Preview is clicked?

PoetJA-1975
07-12-2008, 04:20 PM
Re-added on 3.7.2 PL1 forum - works just fine: http://jpicforum.info/general-chat/
Thanx again for sharing.

Jacquii.

liwo
08-08-2008, 06:26 PM
Any way to make this thing remember the description if Thread Preview is clicked?

I actually have fixed that bug for my forum. I needed to change the template edit for editpost. The new html is

<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<if condition="$isfirstpost">
<if condition="$vbulletin->GPC['advanced'] OR $vbulletin->GPC['desc_adv']">
<input type="hidden" name="desc_adv" value="1" />
</if>
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
</tr>
</table>
</if></if>
<!-- / description field -->

Furthermore I modified the product file, see attachment.

fly
08-09-2008, 02:22 AM
I actually have fixed that bug for my forum. I needed to change the template edit for editpost. The new html is

<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<if condition="$isfirstpost">
<if condition="$vbulletin->GPC['advanced'] OR $vbulletin->GPC['desc_adv']">
<input type="hidden" name="desc_adv" value="1" />
</if>
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
</tr>
</table>
</if></if>
<!-- / description field -->

Furthermore I modified the product file, see attachment.

So adding in both of these fixes teh thread preview problem?

liwo
08-09-2008, 07:24 AM
So adding in both of these fixes teh thread preview problem?

It did in my 3.7.2-PL1 testforum. I do not yet use that description mod in my main forums as I am not yet ready to upgrade that, so it is not tested there.

But I'm quite positive that these two fixes actually do fix that bug without producing new bugs ;)

Nook_Neformat
08-10-2008, 10:19 AM
I actually have fixed that bug for my forum. I needed to change the template edit for editpost. The new html is

<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<if condition="$isfirstpost">
<if condition="$vbulletin->GPC['advanced'] OR $vbulletin->GPC['desc_adv']">
<input type="hidden" name="desc_adv" value="1" />
</if>
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
</tr>
</table>
</if></if>
<!-- / description field -->

Furthermore I modified the product file, see attachment.
so i must edit template and reupload the product file or you just include template's changes in product file?

liwo
08-10-2008, 10:22 AM
You have to edit the template yourself.

Leo Brazil
08-11-2008, 11:02 AM
I've been usind this mod for a long time, since 3.6.7 without any problems but since I upgraded for 3.7 Gold I notice any time someone tries to edit their first post and only if this post has a Thread Description I get a MySQL error like "Table doens't exist for the thread ID".

Despite of this error the changes are made correctly.

Does someone here notice the same ?

Nook_Neformat
08-13-2008, 08:40 AM
I actually have fixed that bug for my forum. I needed to change the template edit for editpost. The new html is

<!-- description field -->
<if condition="$foruminfo['allowdesc'] == 1">
<if condition="$isfirstpost">
<if condition="$vbulletin->GPC['advanced'] OR $vbulletin->GPC['desc_adv']">
<input type="hidden" name="desc_adv" value="1" />
</if>
<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
<tr>
<td class="smallfont" colspan="3">$vbphrase[description]: <span class="time">($vbphrase[optional])</span></td>
</tr>
<tr>
<td><input type="text" class="bginput" name="description" value="$description" size="50" maxlength="100" tabindex="1.5" title="$vbphrase[optional]" /></td>
</tr>
</table>
</if></if>
<!-- / description field -->

Furthermore I modified the product file, see attachment.
unfortunatly, it didn't help me, and when i'm creating a new thread, description stil dissapeares after thread preview :(

liwo
08-13-2008, 08:56 PM
Did you also import the attached product file?

Nook_Neformat
08-15-2008, 11:04 AM
yeah, i did. i were thinking, when we create new thread, we use template "newthread". so maybe change in this template must be edited to save thread's description after new thread preview?

liwo
08-15-2008, 05:12 PM
Could well be. I don't think I tested on thread creation. I test this as soon as I find time for it and get back to you.

Update: ok, I found it. It's just a bug in the template. Exchange the following line in the edit

<input type="text" class="bginput" name="description" value="$description" size="40" maxlength="100" tabindex="1.5" />

with this one

<input type="text" class="bginput" name="description" value="$newpost[description]" size="40" maxlength="100" tabindex="1.5" />

That should fix the problem.

Thanks for telling me.

JesterP
08-18-2008, 02:18 AM
Hello all,

I'm about to set my hair on fire. I've installed this previously on my other VB forum and it works wonderfully.

I just put it on my 2nd forum and I cannot find the option to enable it in the admincp.

Forums and moderators, manage forums, I choose a forum to edit, no option.....in the old forum or new. Old v3.70 new 3.72. I have no idea how it was enabled in the old.

I baffled.

Please help, Thanks!!

J

PoetJA-1975
08-18-2008, 06:43 AM
Um - please no setting of fires :P
You should see options in your AdminCP - You're right - you have to edit to allow on a per-forum basis:
AdminCP --> Forum Manager --> ((choose your forum)) --> Find Thread Description Options --> Option: Allow Thread Description in this Forum = Yes.

HTH,

Jacquii.

JesterP
08-18-2008, 08:55 PM
Um - please no setting of fires :P
You should see options in your AdminCP - You're right - you have to edit to allow on a per-forum basis:
AdminCP --> Forum Manager --> ((choose your forum)) --> Find Thread Description Options --> Option: Allow Thread Description in this Forum = Yes.

HTH,

Jacquii.

Ok, I just poured gas all over me and I have a match. lol. It's just not there. When I do as you mention, these are the sections I see:

Forum
Moderation Options
Style Options
Access Options
Posting Options
Enable/Disable Features

And that's it, on both forums. I think when I installed it before I had no options to set, it just worked. That is not the case this time. I'm thinking about diving into MySQL and turning it on manually.

I've removed the mod, and put it back several times. Made all the edits......

Thanks for the reply!!

J

PoetJA-1975
08-19-2008, 02:03 AM
Hmmmm - I'm not sure why the option wouldn't show.
Are you set as SuperAdmin? What AdminCP permissions are you allowed? That could be at issue perhaps.... ALSO check in Plugins & Products and ensure that the product is enabled. Other than that - I'm not sure exactly what to suggest.

Jacquii.

JesterP
08-19-2008, 02:17 AM
Hmmmm - I'm not sure why the option wouldn't show.
Are you set as SuperAdmin? What AdminCP permissions are you allowed? That could be at issue perhaps.... ALSO check in Plugins & Products and ensure that the product is enabled. Other than that - I'm not sure exactly what to suggest.

Jacquii.
I am SuperAdmin and it's enabled. I would like to kow what the html code is for the admin CP, I'll add it manually and set the option. If I don't hear from the author, I guess I'll just remove it.

Niiice signature BTW. Very classy.

J

JesterP
08-23-2008, 02:28 PM
I am SuperAdmin and it's enabled. I would like to kow what the html code is for the admin CP, I'll add it manually and set the option. If I don't hear from the author, I guess I'll just remove it.

Niiice signature BTW. Very classy.

J

ahh ha! Found ou twhy it worked on my older forum and not the new. Different hack version. I removed this one and put THIS (https://vborg.vbsupport.ru/showthread.php?t=127750) one in and bingo. works like a charm....no admin options, same author.

Woohoo!

Thanks all
J

PoetJA-1975
08-23-2008, 06:29 PM
YAY! Congrats on getting it to work then ;) It's a nice one!

Jacquii.

Crashh
08-01-2010, 02:28 PM
Hi!
Does it work with vB4?

Is it possible to make new version of hack for vB4?

Thanks!

dang3rzon3
09-08-2011, 06:26 AM
it is possible to make a version for vb cms?