The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hi
i want change view threads and post in each forum at forum home be image, for example : view threads or posts 1 - 50 view the egg image view threads or posts < 50 view the dragon image ![]() be ![]() any body can help me? KodoQ |
#2
|
||||
|
||||
![]()
First, find the template you are interested in - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Then, go to edit that template and do something like this - Find the thread views: HTML Code:
<td class="alt1">$forum[threadcount]</td> HTML Code:
<td class="alt1"><if condition="$forum[threadcount] <= '50'">egg image code here<else />dragon image code here</if></td> |
#3
|
|||
|
|||
![]()
thanks for fix my problem Mod Lynne
its work now I want to apply the game in the forum, like tomagochi. each user will get a pet, from the egg to adulthood pet was calculated from the total number of thread x thread view each user's if result 1 - 500 views that pet still egg grater or equal 500 - 2000 views that egg be broken >2000 views that pet be a young dragon and more to be great dragon for example : ![]() that is pet not is avatar may you help me one more time or anybody thanks |
#4
|
||||
|
||||
![]()
So, based on the product of the total number of threads created and the number of views for each of those threads, they get an egg/cracked egg/dragon in their profile bit? You will most likely have to write a plugin to calculate that. And actually, that is going to add at least one query per post on a page which could be a problem on some servers. What you may want to do is create some cron job that calculates this every night and enter this value into a new column you add to the user table. It will take a little bit of doing - I'd do it on a test site first to get it working.
Tomagochis...... I loved those little things. Each of my kids had one of the early ones that you couldn't turn 'off' during school hours, so I would have to take them to work with me. I'd walk around with these things clipped to my belt, or in a pocket, and have to feed them at the oddest times (sometimes in the middle of meetings - lol). |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|