vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Display Enhancements - [Convert] Thread Description V2 (https://vborg.vbsupport.ru/showthread.php?t=254539)

tieuquynhi 12-01-2010 10:00 PM

[Convert] Thread Description V2
 
1 Attachment(s)
This Addon I was converted from EWT - Thread Description (I cannot find any that addon in previous vbulletin version in forum)

Compatible with all VBB 4x versions

Product features:
- Added description field to Post New Thread
- Added description field to Edit Post Advanced for First Post
- Show description in Forumdisplay

Template Edit:
Template: editpost
Find:
Quote:

<img id="posticon_preview" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" title="Selected post icon" />
</div>
Add Below:
Quote:

{vb:raw postinfo.thread_description}
Template: newthread
Find:
Quote:

<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />
</div>
Add Below:
Quote:

{vb:raw newpost.thread_description}
Template: threadbit

Find:
Quote:

<div class="author">
Add Below:
Quote:

{vb:raw thread.thread_description}

Dr.osamA 12-02-2010 05:06 AM

1 Attachment(s)
5 Stars
installed

Question:
Do you know these words on Google?? or Is useful in archiving?
Can you provide us the arrow image from right to left?

thank you bro

JAFRI 12-02-2010 05:24 AM

Thanks, Good Work

JAFRI 12-02-2010 06:05 AM

font-size:10px; font-style:normal"

Kraxell 12-02-2010 08:52 AM

thank you, i tagged it.

tieuquynhi 12-02-2010 11:27 PM

Quote:

Originally Posted by Dr.osamA (Post 2128229)
Do you know these words on Google?? or Is useful in archiving?
Can you provide us the arrow image from right to left?

thank you bro

Sr i don't understand your question?
Quote:

Can you provide us the arrow image from right to left?
It's in folder images in my archive file

NarutoFTW 12-02-2010 11:44 PM

Holy smoke, this is great

hayaldunya 12-03-2010 06:28 AM

good friend..

Arrogant-One 12-03-2010 03:53 PM

Quote:

Originally Posted by tieuquynhi (Post 2128613)
Sr i don't understand your question?

It's in folder images in my archive file

Does this improve SEO?

tieuquynhi 12-04-2010 12:38 AM

Quote:

Originally Posted by Arrogant-One (Post 2128879)
Does this improve SEO?

Maybe!
But i not sure about this :)

Skyrider 12-04-2010 12:08 PM

Can this be limited to specific sections and or usergroups?

final kaoss 12-04-2010 05:46 PM

1 star given for blatantly copying Invision.

Dr.osamA 12-04-2010 06:51 PM

[QUOTE=tieuquynhi;2128613]Sr i don't understand your question?



if it is useful in archiving in google an other serchers or and in VBSEO ??

Can you provide us the arrow image from right to left?

there are one arrow from left to right ,and what i need it is from from right to left

sorry for my English....
i hope you now understand mi sir

thank you :up:

COL NIL SATIS 12-04-2010 06:52 PM

tagged!!!

tieuquynhi 12-06-2010 02:02 AM

Quote:

Originally Posted by Dr.osamA (Post 2129318)
Can you provide us the arrow image from right to left?

Sr i haven't that image. But you can rotate original image :)

Wird0 12-06-2010 06:00 PM

Installed and working on 4.1 p2. Would be nice if this would come up on a search result to. Also would be nice if we can search for things we provide in the description. Where can we change the collor of the text?

tieuquynhi 12-07-2010 12:11 AM

In 3 temp to edit. You can edit text in there. Example:
Template: threadbit

Find:

Quote:

<div class="author">
Add Below:

Quote:

<font color=red>{vb:raw thread.thread_description}</font>

slipkot 12-17-2010 04:37 PM

I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks

fly 12-18-2010 01:17 PM

Is there any way to make the description show up on SHOWTHREAD?

edit: And when editing a thread?

haidm 12-20-2010 03:10 AM

Quote:

Originally Posted by flypaper (Post 2135879)
Is there any way to make the description show up on SHOWTHREAD?

edit: And when editing a thread?

Same question.

slipkot 12-20-2010 09:20 AM

Quote:

Originally Posted by slipkot (Post 2135455)
I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks

bump

KaiStone 01-06-2011 12:11 PM

Quote:

Originally Posted by slipkot (Post 2135455)
I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks

Trả lời hộ ?ng bạn VN :">

@ slipkot: search in template "ewt_forumdisplay_threaddesc"

Code:

<span class="lable" style="color:gray; font-size:12px; font-style:italic"><img class="inlineimg" src="images/strela_w.gif" border="0" alt="">{vb:raw thread.threaddesc}</span><br>
You can add "align" value to control the image location, it's BASIC HTML. My advice: Learn HTML (at least) before having a forum.

After

Code:

border="0"
Add this

Code:

valign="center"
Or you can try

Code:

valign="bottom"
Do a research to find some other values.



Quote:

Originally Posted by fly (Post 2135879)
Is there any way to make the description show up on SHOWTHREAD?

edit: And when editing a thread?

If you wanna the description show on SHOWTHREAD, please Edit SHOWTHREAD template. Put:

Code:

{vb:raw thread.thread_description}
To anywhere you want. I don't know where you want, so do it yourself :D

Mikevet1984 01-06-2011 02:00 PM

Code:

<span class="lable" style="color:gray; font-size:12px; font-style:italic"><img class="inlineimg" src="images/strela_w.gif" border="0" alt="">{vb:raw thread.threaddesc}</span><br>
I find no such phrase in the "ewt_newpost_threaddesc" template.

Have I done sth wrong?

Mikevet1984 01-06-2011 02:08 PM

Quote:

Originally Posted by slipkot (Post 2135455)
I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks

To fix this problem an idea would be to change the Thumbnail Location after threadicon.

Go to the settings of the thread thumbnails modification in the control panel of your forum and you will find this option there. If you do this everything would be fine as all text will start next to the image from the same vertical position.

This was just an idea....

In the case that sb wants to keep the images before thread icons I guess sb must provide a new html script to change in the appropriate templates so as the position of the text to appear correctly.

KaiStone 01-06-2011 02:11 PM

Quote:

Originally Posted by Mikevet1984 (Post 2144913)
Code:

<span class="lable" style="color:gray; font-size:12px; font-style:italic"><img class="inlineimg" src="images/strela_w.gif" border="0" alt="">{vb:raw thread.threaddesc}</span><br>
I find no such phrase in the "ewt_newpost_threaddesc" template.

Have I done sth wrong?

OH NO =)) Sorry my mistake =)) Maybe my eyes have some problems =))

The template is: ewt_forumdisplay_threaddesc

KaiStone 01-06-2011 05:39 PM

Quote:

Originally Posted by fly (Post 2135879)
Is there any way to make the description show up on SHOWTHREAD?

edit: And when editing a thread?

About how to make the description show on SHOWTHREAD, I've answer.

About how to display the description editing when you edit a thread, it's a bit complicated, so until now, I have the answer for it.

@ tieuquynhi: Update th?m phần chỉnh Description khi Edit Thread cho tiện nh? :D

===================================

In "threadadmin_editthread", find:

Code:

                                &nbsp;<img id="display_posticon" class="inlineimg" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />
                        </div>


Add Below:

Code:

                        {vb:raw editthreaddesc}

And now creat some new plugins (AdminCP -> Add New Plugin). Choose "Product" of All Plugins: EWT - Thread Description

1. Thread Description - Edit Thread [Template Alteration]
Hook Location: threadmanage_start

Code:

$templater = vB_Template::create('ewt_editpost_threaddesc');
$templater->register('threaddesc', $threaddesc);
$editthreaddesc .= $templater->render();
vB_Template::preRegister('threadadmin_editthread',array('editthreaddesc' => $editthreaddesc));


2. Thread Description: Edit Thread Description Update
Hook Location: threadmanage_update

Code:

$threadman->set('threaddesc', $edit['threaddesc']);

3. Thread Description: Edit Thread Variable Prep
Hook Location: threadmanage_update
Execution Order: 4 (Only needed if you cannot update your description)

Code:

$vbulletin->input->clean_gpc('p', 'threaddesc', TYPE_STR);
$edit['threaddesc'] =& $vbulletin->GPC['threaddesc'];
$edit['threaddesc'] = unhtmlspecialchars($edit['threaddesc']);


4. Thread Description: Variable For Edit Thread
Hook Location: threadmanage_start
Execution Order: 4 (Recommended. To make sure your existing description will be displayed in Text Box)

Code:

$threaddesc = $threadinfo['threaddesc'];

Done.


Finally, please do carefully before asking questions :D

COL NIL SATIS 01-06-2011 05:44 PM

Tagged,looks useful this

Mikevet1984 01-06-2011 06:47 PM

Quote:

Originally Posted by slipkot (Post 2135455)
I have the following alligment problem only to threads i use thread description with the phrase "Started by shooterg24, Today 13:44" As you can see in the image i have attached it isn't centered and excactly down from the description. At threads that doesn't use description it's ok. Please provide a fix. Thanks

Man, I found the solution to your problem!

You have to increase the ''Dimensions of the Threadbit Status Icon''

This option is in your templates stylevars - - -> Threadbit - - -> Threadbit iconsize.

Remember, to put the thumbnail before the thread icon!

I tested this to my forum and it worked.

Try it and it may work for you, too!

Mikevet1984 01-08-2011 06:58 PM

1 Attachment(s)
Could KaiStone please re-describe the html script alterations using more detailed and more understandable description?

Can anybody else please do that if possible?
______________________________________

I also attached a simple txt file made by me for personal use with all the instructions (html script alterations) to make this mod work.
I hope this does not go against the vBulletin.org forum rules. hope you like it.

If I have mistakes in the english language, or any other mistakes in the instructions given please update the file and I will remove mine.

Regards,
<Mikevet1984>

KaiStone 01-09-2011 06:49 AM

Quote:

Originally Posted by Mikevet1984 (Post 2146104)
Could KaiStone please re-describe the html script alterations using more detailed and more understandable description?

Can anybody else please do that if possible?
______________________________________

I also attached a simple txt file made by me for personal use with all the instructions (html script alterations) to make this mod work.
I hope this does not go against the vBulletin.org forum rules. hope you like it.

If I have mistakes in the english language, or any other mistakes in the instructions given please update the file and I will remove mine.

Regards,
''Mikevet1984''

threadadmin_editthread is a template. Edit it like you edited "editpost", "newthread" and "threadbit".

And in step Add New Plugin, go to AdminCP, choose "Add New Plugin". If you can't find it, choose "Explain All" at the Top of the Left Frame, and search "Add New Plugin" -> Click.

A new page will be displayed in the Right Frame, choose settings like the guide, paste the Code, and Remember choose "Plugin is Active" is "Yes" to make the new plugin works.

If you forgot choose Active the Plugin, go to "Plugin Manager", search for Plugin Name (like Plugin Name in the Guide), click it to Edit, and choose "Yes" in "Plugin is Active" option.

raicars 01-09-2011 07:13 AM

Mark install.
Cảm ơn bác tieuquynhi (he)

Mikevet1984 01-10-2011 11:04 AM

Kaistone, can you please give me instructions where exactly to add the html script for the thread description to be shown inside the 1st post where the two arrows are pointing, below the thread title.

http://www.imagerous.com/images/8992...5100131010.jpg

KaiStone 01-11-2011 12:32 AM

Give me the Template Code inside your SHOWTHREAD template, I'll add it for you.

Mikevet1984 01-11-2011 11:33 AM

1 Attachment(s)
Thank you Kaistone!

I uploaded a txt attachment of the showthread template of my forum.

I will be waiting for your reply!

If possible please write also the procedure in public in order all members to get informed from your valuable tutorial.

Thank you again in advance.....

Regards!

KaiStone 01-11-2011 02:09 PM

1 Attachment(s)
Creat New Plugin (Don't ask me how to do it again)

Product: EWT - Thread Description
Hook Location: showthread_complete

Code (Don't forget choose Plugin is Active: YES)
Code:

$templater->register('thread', $thread);


About how to edit your SHOWTHREAD template, just add "{vb:raw thread.threaddesc}" in anywhere you want it to display.

I don't answer the question "how do I know where to put it inside the template?". Just learn HTML (simple)

This is your new SHOWTHREAD template content. And this is the final support. For any further question, ask tieuquynhi.

Mikevet1984 01-11-2011 02:14 PM

Thank you, KaiStone!

You are the best! No need for further question as I now think all support and tutorials for this mod has now been given.

By the way, in your last plug-in in the previous post you did not give a title to name it.

Quote:

Product: EWT - Thread Description
Hook Location: showthread_complete
Title?

Thanks again for everything!

Regards!

Mikevet1984 01-11-2011 11:23 PM

Just installed the KaiStone's modifications and work great!

KaiStone you are a great contributor! Thank you!

If anybody knows how to add the animated arrow gif (strela_w.gif)just before the thread description in the SHOWTHREAD just like it is displyed in the threadbits please share your knowledge here.

Regards!

lurch_cr 01-19-2011 10:41 PM

Hey all,

Ive managed to get the desription to show on the SHOWTHREAD - thanks for that.
However I'm struggling to work out how to have the description show on search results. Primarily Newposts/Active Topics etc.
Help/Thoughts/suggestions?

Cheers,
Lurch

lurch_cr 01-19-2011 11:50 PM

nevermind - got it

Mikevet1984 01-20-2011 11:46 AM

lurch_cr if you managed to do it yourself why don't you share the knowledge with us....to help other members do that to their forums too?


All times are GMT. The time now is 09:16 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.01734 seconds
  • Memory Usage 1,848KB
  • 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
  • (14)bbcode_code_printable
  • (23)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