The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
Quote:
|
#22
|
|||
|
|||
No in the php file I was trying to set a number to the variable $conditional then use the HTML code to see if the number is lessthan the required number
|
#23
|
||||
|
||||
And the problem is that $conditional currently does not contain anything, right?
|
#24
|
|||
|
|||
I think so, if you go to http://www.geekstep.com/activity.php?styleid=19 you will see that the column "posts required" is not showing any numbers which means that the action required field cannot function.
@Cryo :- Your suggestion did not work since it is a custom template not the postbit. |
#25
|
|||
|
|||
Anymore suggestions please?
|
#26
|
|||
|
|||
Sorry will have to bump again I really need this please.
|
#27
|
||||
|
||||
You've made several changes since you first posted your code. Why don't you post exactly what your code and template currently is now so we don't have to look back and try to figure it out.
|
#28
|
|||
|
|||
Ok here is the activity.php file.
PHP Code:
HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - Activity Statistics</title> </head> <body> $header $navbar <div align="center"> <form action="activity.php" method="get"> <strong>Choose another timeframe:</strong><br /> <select name="m">$mbits</select> <select name="y">$ybits</select> <input type="submit" name="submit" value="Go" /> </form> </div> <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="6"> Activity Statistics for $monthliteral </td> </tr> <tbody> <tr> <td class="thead">Rank</td> <td class="thead">Username</td> <td class="thead">Current Package</td> <td class="thead">Posts This Month</td> <td class="thead">Posts Required</td> <td class="thead">Action Needed?</td> </tr> $userbits </tbody> </table> <br /><center> $vbphrase[accopy] </center><br /> $footer </body> </html> HTML Code:
<tr> <td class="alt1">$c</td> <td class="alt2"><a href="member.php?$session[sessionurl]u=$auinfo[userid]">$auinfo[username]</a> <td class="alt1">$auinfo[field7]</td> <td class="alt2">$auinfo[total]</td> <td class="alt1">$conditional</td> </tr> |
#29
|
||||
|
||||
You've evaled your ACTIVITY_bits template before you've done all the php to define the variable $conditional. You need to define $conditional before you eval the template otherwise the information isn't available to you in that template.
|
#30
|
|||
|
|||
Ok I have moved the code and still nothing, here is the new activity.php file
PHP Code:
If it is easier I could do it in the template system but I don't know if that would be possible |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|