vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 05-18-2005, 08:17 PM
Misuzu Misuzu is offline
Gao
 
Join Date: Apr 2005
Posts: 23
Default [REQ] Thread Catagory intergration?

http://www.vbulletin.org/forum/showthread.php?t=61494
with the above hack installed, is it possible to do this?

example: for the news module, instead of displaying the poster's avatar, can i have it display a different picture depending on the catagory? like say, if the catagory was games, have it display games.gif instead of avatar, and catagory was sports, display sports.gif etc.
  #2  
Old 05-21-2005, 02:57 AM
Misuzu Misuzu is offline
Gao
 
Join Date: Apr 2005
Posts: 23
Default Re: [REQ] Thread Catagory intergration?

ok, is it possible to just show the prefix in front of the thread title? cuz right now the prefix doesn't show up.
__________________

Tabi Karasu - Traveling Crow Forums Anime/Games News updated everyday!
Contests - June - Header Graphics Click here for details.
Now looking for staff to help with site. Email me at Misuzu@tabikarasu.com for details.
  #3  
Old 05-21-2005, 11:07 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: [REQ] Thread Catagory intergration?

It looks like that hack is adding another column to the thread table, so you'd have to figure out what column is added, edit the file to add that to the query, then edit the template to add that column there as well.
  #4  
Old 05-21-2005, 01:09 PM
Misuzu Misuzu is offline
Gao
 
Join Date: Apr 2005
Posts: 23
Default Re: [REQ] Thread Catagory intergration?

the column seems to be thread.category i tried adding that to the news.php
Code:
$getnews = $DB_site->query("
			SELECT " . iif($vba_options['portal_news_showrating'], 'IF(votenum >= ' . $vboptions['showvotes'] . ', votenum, 0) AS votenum, IF(votenum >= ' . $vboptions['showvotes'] . ' AND votenum != 0, votetotal / votenum, 0) AS voteavg,') . "
			thread.threadid, thread.title, replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastposter, thread.lastpost, thread.category, IF(views<=replycount, replycount+1, views) AS views, forumid, post.postid, pagetext, allowsmilie
then added $thread[category] to the news template and it didn't work
__________________

Tabi Karasu - Traveling Crow Forums Anime/Games News updated everyday!
Contests - June - Header Graphics Click here for details.
Now looking for staff to help with site. Email me at Misuzu@tabikarasu.com for details.
  #5  
Old 05-21-2005, 02:33 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: [REQ] Thread Catagory intergration?

Try $news[category] in the template instead.
  #6  
Old 05-21-2005, 04:56 PM
Misuzu Misuzu is offline
Gao
 
Join Date: Apr 2005
Posts: 23
Default Re: [REQ] Thread Catagory intergration?

that worked! thanks
__________________

Tabi Karasu - Traveling Crow Forums Anime/Games News updated everyday!
Contests - June - Header Graphics Click here for details.
Now looking for staff to help with site. Email me at Misuzu@tabikarasu.com for details.
 


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
intergration bfoot045 Troubleshooting / "How do I..." Questions 1 06-08-2004 10:32 AM


All times are GMT -4. The time now is 01:37 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.