![]() |
|
Thread Tools |
#1
|
||||
|
||||
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.
Where I would like it to show the description? Below the "post new thread" & "reply to thread" buttons. The following members like this post: CAG CheechDogg
|
#2
|
||||||||||||||||||||
|
||||||||||||||||||||
![]()
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)
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:
Just above the </div> tag add the following: <p class="description">{vb:raw foruminfo.description}</p> So the code will look like this:
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:
Step 8. Past the code between the </div> tag and the <div id="pagetitle" .... > tag, like this:
Step 9. Save and reload the template and test it out. Hope this works for you. Cheers, Basil The following members like this post: final kaoss
Last edited by BasilFawlty; 22 Mar 2018 at 02:55. |
#3
|
|||
|
|||
Thanks for that, it worked just fine.
No members have liked this post.
|
#4
|
||||
|
||||
Interesting. how about a screenshot?
![]()
__________________
No members have liked this post.
|
#5
|
|||
|
|||
The following members like this post: CAG CheechDogg
|
#6
|
||||
|
||||
Oooh nice ! that's pretty cool ...
No members have liked this post.
|
#7
|
||||
|
||||
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.
![]()
__________________
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 The following members like this post: scottkoz20, CAG CheechDogg
|
#9
|
|||
|
|||
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. The following members like this post: MarkFL
Last edited by scottkoz20; 24 Mar 2018 at 04:06. Reason: grammar cleanup |
#10
|
||||
|
||||
Here is an update that will handle special characters...
__________________
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 No members have liked this post.
|
#11
|
|||
|
|||
Very cool, thanks!
The following members like this post: CAG CheechDogg
|
#12
|
|||
|
|||
Thanks for that plus the plugin is preferred over template edits. No members have liked this post.
|
#13
|
|||
|
|||
Originally Posted by final kaoss
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! Bếp từ nhập khẩu châu âu chất lượng cao. No members have liked this post.
|
#14
|
|||
|
|||
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.
No members have liked this post.
Last edited by final kaoss; 20 May 2018 at 01:36. |
![]() |
![]() |
||||
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 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 23:55.