The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#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. PHP Code:
|
Благодарность от: | ||
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) PHP Code:
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: PHP Code:
<p class="description">{vb:raw foruminfo.description}</p> So the code will look like this: PHP Code:
Step 7. (To place description below the Reply button instead): Look for: PHP Code:
PHP Code:
Hope this works for you. Cheers, Basil |
Благодарность от: | ||
final kaoss |
#3
|
|||
|
|||
Thanks for that, it worked just fine.
|
#4
|
||||
|
||||
Interesting. how about a screenshot?
|
#5
|
|||
|
|||
|
Благодарность от: | ||
CAG CheechDogg |
#6
|
||||
|
||||
Oooh nice ! that's pretty cool ...
|
#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.
|
2 благодарности(ей) от: | ||
CAG CheechDogg, scottkoz20 |
#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. |
Благодарность от: | ||
MarkFL |
#10
|
||||
|
||||
Here is an update that will handle special characters...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|