vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Thread Descriptions (https://vborg.vbsupport.ru/showthread.php?t=324478)

MarkFL 02-18-2017 10:00 PM

Thread Descriptions
 
1 Attachment(s)
Overview:

This product allows your users to add descriptions to threads which display below the title on various pages. You may define CSS to be applied to the description, the maximum length allowed for the thread descriptions (1-256 characters), and if you want an icon to be displayed to the left of the thread descriptions you may enter the path to the image file. You may also enter any CSS you want to be associated with the icon.

When a user posts a new thread, they will find a text field below the thread title field into which they may enter a description for the thread.

https://vborg.vbsupport.ru/attachmen...&d=1487476987]

To change a thread's description, one may either edit the first post of a thread, or edit the thread via the "Administrative" drop-down menu in the "Thread Controls" element on the Show Thread page.

https://vborg.vbsupport.ru/attachmen...1&d=1487476987

https://vborg.vbsupport.ru/attachmen...1&d=1487476987

A thread's description will show up on the forum home page, the forum display pages, the search results pages and the show thread pages.

https://vborg.vbsupport.ru/attachmen...1&d=1487476987

https://vborg.vbsupport.ru/attachmen...1&d=1487476987

https://vborg.vbsupport.ru/attachmen...1&d=1487476987

https://vborg.vbsupport.ru/attachmen...1&d=1487476987

If a thread is deleted, then it's description is removed from the custom table added on installation. If two threads are merged, only the description of the destination thread is retained.

Updates:

Version 1.0.1:
  • Attempt to resolve reported db error on index page.

Version 1.0.2:
  • Attempt to resolve reported CSS issue on Show Thread page.

Version 1.0.3:
  • Second attempt to resolve reported CSS issue on Show Thread page.

Version 1.0.4:
  • Attempt to position description directly below title on Show Thread page.

Version 1.1:
  • Added setting for "Active Display Areas" (Select the places where you want thread descriptions to display).
  • Added setting for "Active Forums" (Select the forums in which you want thread descriptions permitted).
  • Added setting for "Permitted Usergroups" (Select the usergroups allowed to use thread descriptions).
  • Added a bottom margin to the thread description element on the Show Thread page when the facebook like button is present.

Version 1.1.1:
  • Resolved reported issue with editing thread descriptions.

Version 1.1.2:
  • Resolved reported issue of description being removed on quick edit.

Version 1.1.3:
  • Attempt to resolve reported db error.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product alters your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import."
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1487565439

Support for this product can be found here:

elsa23 02-19-2017 07:39 AM

Thanks so much for your wonderful work!!! https://vborg.vbsupport.ru/external/2017/04/2.gif https://vborg.vbsupport.ru/external/2017/04/2.gif

elsa23 02-19-2017 08:07 AM

1 Attachment(s)
I tested it on "local" before going live forum, it works fine everywhere but I had this error on index page :

Code:

PHP Warning: mysqli_query(): (42000/1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 in ....\includes\class_core.php on line 1394
Code:

Database error in vBulletin 4.2.3:

Invalid SQL:

                SELECT *
                FROM elo4_markfl_threaddescriptions AS markfl_threaddescriptions
                WHERE threadid =;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

Classname    : vB_Database_MySQLi
MySQL Version : 5.6.12-log


Stratis 02-19-2017 09:05 AM

1 Attachment(s)
I must change all my threads(that have description) because I use other mod "thread description" we discussed in other thread. :(


* The above error comes up to me, when try to delete that thread with description.
Actually error comes up and thread does not deleted.


* Description we see in postbit under title, for me its ok only I default skin.
In all other skin css problems

Attachment 155860

MarkFL 02-19-2017 12:58 PM

Update - Version 1.0.1:
  • Attempt to resolve reported db error on index page.

Edit: I have no issue with deleting threads...will wait to see if others report any issue deleting threads with descriptions. :)

elsa23 02-19-2017 03:22 PM

1 Attachment(s)
It works now, db error on index page resolved :up:
I have no issue with deleting threads :)

Just, for the style, can you please make it appear under thread title (outside the orange section on my joined image)

http://forum-elodiefrege.com/

MarkFL 02-19-2017 03:28 PM

Can you link to the thread where that's happening? I have a fix in mind, but I want to be sure...:)

elsa23 02-19-2017 03:55 PM

Quote:

Originally Posted by MarkFL (Post 2582598)
Can you link to the thread where that's happening? I have a fix in mind, but I want to be sure...:)

I am still testing on "local" forum :o

MarkFL 02-19-2017 04:08 PM

Update - Version 1.0.2:
  • Attempt to resolve reported CSS issue on Show Thread page.

Quote:

Originally Posted by elsa23 (Post 2582600)
I am still testing on "local" forum :o

That's always a great idea...please try version 1.0.2 to see if this resolves the issue. :)

elsa23 02-19-2017 04:20 PM

Quote:

Originally Posted by MarkFL (Post 2582602)
Update - Version 1.0.2:
  • Attempt to resolve reported CSS issue on Show Thread page.



That's always a great idea...please try version 1.0.2 to see if this resolves the issue. :)

Nothing change with the new version.

MarkFL 02-19-2017 05:05 PM

Update - Version 1.0.3:
  • Second attempt to resolve reported CSS issue on Show Thread page.

Stratis 02-19-2017 05:21 PM

For me css is ok now. thank you :)

elsa23 02-19-2017 05:46 PM

1 Attachment(s)
Resolved for me too, thanks again :up:

Is it possible to put it above button facebook like ? :o

MarkFL 02-19-2017 06:04 PM

Update - Version 1.0.4:
  • Attempt to position description directly below title on Show Thread page.

elsa23 02-19-2017 06:47 PM

1 Attachment(s)
Thanks a lot, Mark
Can you, please, increase the space between description and facebook button :up:

MarkFL 02-19-2017 07:02 PM

Quote:

Originally Posted by elsa23 (Post 2582619)
Thanks a lot, Mark
Can you, please, increase the space between description and facebook button :up:

You can increase the space there by editing the PageTitle StyleVar and give it the amount of bottom padding you want. :)

edit: On second thought...that would put space beneath the fb buttons...I will address this issue (along with some new settings) in the next upgrade, due out in the next 24 hours. :)

MarkFL 02-20-2017 02:39 AM

Update - Version 1.1:
  • Added setting for "Active Display Areas" (Select the places where you want thread descriptions to display).
  • Added setting for "Active Forums" (Select the forums in which you want thread descriptions permitted).
  • Added setting for "Permitted Usergroups" (Select the usergroups allowed to use thread descriptions).
  • Added a bottom margin to the thread description element on the Show Thread page when the facebook like button is present.

elsa23 02-20-2017 09:01 AM

Again - good job, it's great! Thank you so much! :up:
I love adding description on home page

I have a new issue :
When I create a new thread, I can add thread description, but when I edit the thread, I see not the box where to modify desciption

Stratis 02-20-2017 10:39 AM

Quote:

Originally Posted by elsa23 (Post 2582643)
When I create a new thread, I can add thread description, but when I edit the thread, I see not the box where to modify desciption

same to me. :)

MarkFL 02-20-2017 12:12 PM

Update - Version 1.1.1:
  • Resolved reported issue with editing thread descriptions.

elsa23 02-20-2017 01:46 PM

Hi Mark, when I edit (quickedit) the first post of a thread that had a description, the description is deleted.
Advanced edit keep the description.

MarkFL 02-20-2017 02:08 PM

Quote:

Originally Posted by elsa23 (Post 2582657)
Hi Mark, when I edit (quickedit) the first post of a thread that had a description, the description is deleted.
Advanced edit keep the description.

Good catch! :up:

Update - Version 1.1.2:
  • Resolved reported issue of description being removed on quick edit.

X-or 02-22-2017 12:42 AM

this mod has a lot of potential :up:

I might download and install

Gn_Snake 02-23-2017 08:50 AM

This is very good for SEO...i try immediately

Gn_Snake 02-23-2017 01:31 PM

Mark, i noticed that the css to the type of description of the font is not applied, i'm wrong or something i need to adjust the css of my style?

MarkFL 02-23-2017 01:54 PM

You may need to use the "!important" modifier to override some CSS attributes, such as "font-family." :)

RichieBoy67 02-23-2017 08:23 PM

Could be great for seo but I think some forum users would be to lazy to use it. lol

Great work Mark! I am going to try this!

Gn_Snake 02-28-2017 06:26 AM

Hi Mark,
these days the mysql database gives me these errors:

Code:

Invalid SQL:

    DELETE FROM HG_markfl_threaddescriptions
        WHERE threadid IN ()

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2


MarkFL 02-28-2017 06:35 AM

Quote:

Originally Posted by Gn_Snake (Post 2582991)
Hi Mark,
these days the mysql database gives me these errors:

Code:

Invalid SQL:

    DELETE FROM HG_markfl_threaddescriptions
        WHERE threadid IN ()

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2


What are you doing when you get that error?

Gn_Snake 02-28-2017 07:20 AM

Quote:

Originally Posted by MarkFL (Post 2582992)
What are you doing when you get that error?

This is the complete log:

Code:

Invalid SQL:

    DELETE FROM HG_markfl_threaddescriptions
        WHERE threadid IN ();

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2
Error Number  : 1064
Request Date  : Tuesday, February 28th 2017 @ 09:06:07 AM
Error Date    : Tuesday, February 28th 2017 @ 09:06:07 AM
Script        : http://www.hardwaregame.it/forum/cron.php?rand=1488272764
Referrer      : http://www.hardwaregame.it/forum/login.php?do=login
IP Address    : 79.52.154.51
Username      : Non Registrato
Classname    : vB_Database_MySQLi
MySQL Version :

but errors that are initiated from Monday indicate different actions

MarkFL 02-28-2017 12:10 PM

Update - Version 1.1.3:
  • Attempt to resolve reported db error.

Gn_Snake 02-28-2017 02:03 PM

Thanks i try it and let you know

thenicehorizon 02-28-2017 02:03 PM

thank you very much
is this useful for SEO ?

Gn_Snake 02-28-2017 02:08 PM

Quote:

Originally Posted by thenicehorizon (Post 2583025)
thank you very much
is this useful for SEO ?

I'm not trying to be a little but I think it is very useful for SEO, but it is important to limit access to expert users

MarkFL 02-28-2017 02:09 PM

Quote:

Originally Posted by thenicehorizon (Post 2583025)
thank you very much
is this useful for SEO ?

I can't say what, if any, effect this would have on SEO. :)

thenicehorizon 02-28-2017 02:23 PM

thank you , i will try
Quote:

Originally Posted by Gn_Snake (Post 2583026)
I'm not trying to be a little but I think it is very useful for SEO, but it is important to limit access to expert users

i hope it will be a good addition for my forum
thank you again Mr MarkFL
Quote:

Originally Posted by MarkFL (Post 2583027)
I can't say what, if any, effect this would have on SEO. :)


Stratis 02-28-2017 02:41 PM

Quote:

Originally Posted by MarkFL (Post 2583004)
Update - Version 1.1.3:
  • Attempt to resolve reported db error.

Confirm, there is no db error at least for me.
I was using edited plugin "Remove Thread Descriptions On Thread Delete"
As I see, inlinemod script is not present :)

Thanks for the update. Nice of you.


Quote:

Originally Posted by thenicehorizon (Post 2583025)
thank you very much
is this useful for SEO ?

I used an old modification, and changed with this one.
They have good SEO effect, at least to me. All descriptions are out there in search condition by google, etc

MarkFL 02-28-2017 02:57 PM

Quote:

Originally Posted by Stratis (Post 2583035)
Confirm, there is no db error at least for me.
I was using edited plugin "Remove Thread Descriptions On Thread Delete"
As I see, inlinemod script is not present :)

Thanks for the update. Nice of you...

You were right about "$threadid" being the only thing needed there, as apparently the function containing that hook is called for each thread being deleted. I should have listened to you in the first place. :)

Gn_Snake 03-01-2017 10:18 AM

Quote:

Originally Posted by Gn_Snake (Post 2583024)
Thanks i try it and let you know


With the update problems seem solved
thank you:up:


All times are GMT. The time now is 10:19 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.02668 seconds
  • Memory Usage 1,837KB
  • 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
  • (5)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)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