View Full Version : help with this syntax
DataVampire
12-31-2004, 12:57 AM
i need help what is the code for this one ( makelinkcode ) witch is vb2 i need to know the vb 3 code that replaces this one ?
Dean C
12-31-2004, 10:59 AM
Exactly the same usage, it's just called construct_link_code. It's usage:
construct_link_code($vbphrase['expand'], "forum.php?$session[sessionurl]do=modify&expandid=$forum[forumid]");
DataVampire
12-31-2004, 11:21 PM
i hope u can help with this one as well this is vb2 funtion getrowbg() whats the vb3 way that replaces this code
Xenon
01-01-2005, 02:25 PM
in vb3 it's done with classes, so it's this:
$bgclass = fetch_row_bgclass();
DataVampire
01-01-2005, 04:55 PM
in vb3 it's done with classes, so it's this:
$bgclass = fetch_row_bgclass();
this is the function i need to redo
echo "<tr class='".getrowbg()."'>";
how can i redo that with the new code u gave me ?
Guy G
01-01-2005, 05:15 PM
this is the function i need to redo
echo "<tr class='".getrowbg()."'>";
how can i redo that with the new code u gave me ?
<tr class="$bgclass = fetch_row_bgclass();">
Zachery
01-01-2005, 05:16 PM
<tr class="$bgclass = fetch_row_bgclass();">
Too bad you cant use that in the tempaltes ;)
Guy G
01-01-2005, 05:19 PM
Too bad you cant use that in the tempaltes ;)
for the template it would be only $bgclass
no?
DataVampire
01-01-2005, 05:35 PM
for the template it would be only $bgclass
no?
how about this one how can i get it to work on this one
print "<tr class='".exec_switch_bg()."'><td align=center>$Row[groupname]<td>".iif($Row[groupid]!=2,"$urlforedit"," ")."</a>
and is this code right ?
echo "<tr class="$bgclass = fetch_row_bgclass();">
Zachery
01-01-2005, 05:37 PM
how about this one how can i get it to work on this one
print "<tr class='".exec_switch_bg()."'><td align=center>$Row[groupname]<td>".iif($Row[groupid]!=2,"$urlforedit"," ")."</a>
and is this code right ?
echo "<tr class="$bgclass = fetch_row_bgclass();">
Where are you trying to use it ?
DataVampire
01-01-2005, 05:41 PM
Where are you trying to use it ?
the vb hack im trying to redo is this one here
https://vborg.vbsupport.ru/showthread.php?t=54288&highlight=phpatm
now when i use this
echo "<tr class="$bgclass = fetch_row_bgclass();">
i get this error
Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';'
Xenon
01-01-2005, 09:46 PM
you forgot the dots ^^
echo "<tr class=" . fetch_row_bgclass().">";
@Zak: well, you can do it in templates as well, with some tricks and the conditional system, but why would you need it in templates,as it's an acp function ^^
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.