PDA

View Full Version : Thread Views on "showthread" Template?



VirtueTech
Thu 15th Jun '00, 2:55am
Hello,

How do I pass a threads views variable onto the "showthread" template?

VirtueTech
Fri 16th Jun '00, 9:20am
Help?

John
Sat 17th Jun '00, 2:59am
Find the line that says:



$threadinfo=$DB_site->query_first("SELECT title,forumid,open,lastpost,replycount+1 AS posts,visible FROM thread WHERE threadid=$threadid");


And replace with:



$threadinfo=$DB_site->query_first("SELECT views,title,forumid,open,lastpost,replycount+1 AS posts,visible FROM thread WHERE threadid=$threadid");
$views=$threadinfo[views];


Then you can use $views in the showthread template.

John

Me2Be
Tue 20th Jun '00, 6:51am
How would I remove it from the forum display then. I like the idea of having it on the threads, but not on the forum display. (Just makes it too busy for me)

Mike Sullivan
Tue 20th Jun '00, 8:09am
*cough*TEMPLATES*cough* :D

Me2Be
Tue 20th Jun '00, 8:17am
Originally posted by Ed Sullivan
*cough*TEMPLATES*cough* :D

**double cough** WHICH TEMPLATES **double cough**

(can you tell I'm having fun here now that I got it working :) :) :))

Martin
Tue 20th Jun '00, 8:39am
forumdisplay, forumdisplaybit and forumdisplay_announce templates

[Edited by Martin on 06-20-2000 at 08:41 PM]

Me2Be
Tue 20th Jun '00, 10:45am
See Ed, Martin is nice to me ;)

(If you all only knew how much Ed was helping me, you'd know this is a joke)






[Edited by Me2Be on 06-20-2000 at 10:45 PM]

Mike Sullivan
Tue 20th Jun '00, 11:05am
*sigh* Women... :D

Me2Be
Tue 20th Jun '00, 11:15am
Originally posted by Ed Sullivan
*sigh* Women... :D


Yes? You know you love us - as my husband says "can't live with 'em, can't live without 'em"

Chris Schreiber
Tue 20th Jun '00, 11:15am
Originally posted by Ed Sullivan
*sigh* Women... :D

LOL Yup... can't live with them, and... ummm... what was that other part? :)

Martin
Tue 20th Jun '00, 11:17am
I always thought it was "can't lieve with them, can't kill them"

goes to show what *I* know ;)

Me2Be
Tue 20th Jun '00, 11:20am
No Martin, that's what the WOMEN get to say! ;)

Moonwolf
Tue 20th Jun '00, 9:11pm
Originally posted by Ed Sullivan
*sigh* Women... :D

*muses* *wonders if she can add an invisible patch to Avatar v1.0 to not install properly for any vB Run by someone named "Ed"*

:)

Kath

Mike Sullivan
Tue 20th Jun '00, 10:22pm
Nah, I'd probably just end up fixing it myself. :p


...BTW, what was this thread originally about? :)

[Edited by Ed Sullivan on 06-21-2000 at 10:23 AM]