Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Mar 2018, 03:26
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Forum Description on Showthread pages?

Hi, I want to know if anyone has figured out a way to show the forum descriptions on showthread pages?

for reference, this calls the description as far as I can tell.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Where I would like it to show the description? Below the "post new thread" & "reply to thread" buttons.
Reply With Quote
  #2  
Old 22 Mar 2018, 02:33
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Wink

I took this as a challenge

NOTE - this first example placed the description just under the Thread Title, but since you wanted it under the Thread Reply button, do the first 5 steps, then skip to step #7.

Step 1: Open showthread.php for edit. Scroll down to the // output page section, look for this code: (It starts around line 2410-ish)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

We first need to cause the variable $foruminfo to get "pushed" to the "SHOWTHREAD" template.

Step 2. Just above $templater->register('forumjump', $forumjump); ADD:
$templater->register('foruminfo', $foruminfo);

Step 3. Save and re-upload to your server

Step 4. Go to Admin CP >> Style Manage >> Edit Templates (for the style you want to modify - you'll need to do this for each style)

Step 5. Edit the "SHOWTHREAD" template (you may need to expand "Show Thread Templates" to see SHOWTHREAD (It will be all caps)

Step 6. Look for this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just above the </div> tag add the following:

<p class="description">{vb:raw foruminfo.description}</p>

So the code will look like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I tried it on my forum and it seems to work. It places the forum description just under the thread title. However, since you wanted it just below the post reply button:

Step 7. (To place description below the Reply button instead): Look for:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 8. Past the code between the </div> tag and the <div id="pagetitle" .... > tag, like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 9. Save and reload the template and test it out.

Hope this works for you.

Cheers,
Basil

Last edited by BasilFawlty; 22 Mar 2018 at 02:55.
Reply With Quote
  #3  
Old 22 Mar 2018, 05:29
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Thanks for that, it worked just fine.
Reply With Quote
  #4  
Old 22 Mar 2018, 12:10
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Interesting. how about a screenshot?
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #5  
Old 22 Mar 2018, 14:15
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Originally Posted by RichieBoy67 View Post
Interesting. how about a screenshot?
Here ya go
Attached Images
File Type: jpeg Screen Shot 2018-03-22 at 7.13.25 AM.jpeg (142.4 KB, 51 views)
Reply With Quote
  #6  
Old 23 Mar 2018, 03:42
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Oooh nice ! that's pretty cool ...
Reply With Quote
  #7  
Old 23 Mar 2018, 06:03
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I've attached a very simple product that will place the forum description as shown in the screenshot without hacking any core files/templates. There are no settings, once installed, it will do its thing.
Attached Files
File Type: xml product-markflforumdescshowthread.xml (1.1 KB, 11 views)
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #8  
Old 23 Mar 2018, 15:33
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Originally Posted by MarkFL View Post
I've attached a very simple product that will place the forum description as shown in the screenshot without hacking any core files/templates. There are no settings, once installed, it will do its thing.
"Juice" dah Man Mark !
Reply With Quote
  #9  
Old 24 Mar 2018, 04:04
scottkoz20 scottkoz20 is offline
 
Join Date: Jan 2016
Real name: Scott
hey Mark -

Just as an FYI - I had 1 forum that would not open any threads, which I thought was strange. However, I did have a contraction (can't) which was triggering

Parse error: syntax error, unexpected 't' (T_STRING) in /home/scfadmin/public_html/includes/class_core.php(4715) : eval()'d code on line 230

I fixed the contraction on my site, but just as a heads up for anyone else using this.

Last edited by scottkoz20; 24 Mar 2018 at 04:06. Reason: grammar cleanup
Reply With Quote
  #10  
Old 24 Mar 2018, 05:53
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Here is an update that will handle special characters...
Attached Files
File Type: xml product-markflforumdescshowthread.xml (1.1 KB, 7 views)
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #11  
Old 25 Mar 2018, 15:41
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Originally Posted by MarkFL View Post
Here is an update that will handle special characters...
Very cool, thanks!
Reply With Quote
  #12  
Old 15 May 2018, 01:59
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Originally Posted by MarkFL View Post
Here is an update that will handle special characters...

Thanks for that plus the plugin is preferred over template edits.
Reply With Quote
  #13  
Old 19 May 2018, 19:22
Mattwhf Mattwhf is offline
 
Join Date: May 2016
Originally Posted by final kaoss View Post
Hi, I want to know if anyone has figured out a way to show the forum descriptions on showthread pages?
I think this is not a good idea to go with.

Why do you want to show forum description on thread_view page?
__________________
Web Hosting Forum - Learn web hosting and offer your hosting services for FREE!
Reply With Quote
  #14  
Old 20 May 2018, 01:07
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Originally Posted by Mattwhf View Post
I think this is not a good idea to go with.

Why do you want to show forum description on thread_view page?
If you don't like it, then what does it matter to you what my reasons are? If someone wants to use it and you don't, then you shouldn't really worry about it.

Last edited by final kaoss; 20 May 2018 at 01:36.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
[release] Big Thread and Description on showthread imported_ULTIMATESSJ vBulletin 2.x Template Modifications 17 10 Jun 2003 10:09



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:49.

Layout Options | Width: Wide Color: