vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   help with this syntax (https://vborg.vbsupport.ru/showthread.php?t=73544)

DataVampire 12-31-2004 12:57 AM

help with this syntax
 
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:

PHP Code:

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

Quote:

Originally Posted by Xenon
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

Quote:

Originally Posted by DataVampire
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

Quote:

Originally Posted by Zorobz
<tr class="$bgclass = fetch_row_bgclass();">

Too bad you cant use that in the tempaltes ;)

Guy G 01-01-2005 05:19 PM

Quote:

Originally Posted by Zachery
Too bad you cant use that in the tempaltes ;)

for the template it would be only
PHP Code:

$bgclass 

no?

DataVampire 01-01-2005 05:35 PM

Quote:

Originally Posted by Zorobz
for the template it would be only
PHP Code:

$bgclass 

no?

how about this one how can i get it to work on this one
PHP Code:

print "<tr class='".exec_switch_bg()."'><td align=center>$Row[groupname]<td>".iif($Row[groupid]!=2,"$urlforedit","&nbsp;")."</a> 


and is this code right ?
PHP Code:

echo "<tr class="$bgclass fetch_row_bgclass();"> 


Zachery 01-01-2005 05:37 PM

Quote:

Originally Posted by DataVampire
how about this one how can i get it to work on this one
PHP Code:

print "<tr class='".exec_switch_bg()."'><td align=center>$Row[groupname]<td>".iif($Row[groupid]!=2,"$urlforedit","&nbsp;")."</a> 


and is this code right ?
PHP Code:

echo "<tr class="$bgclass fetch_row_bgclass();"> 


Where are you trying to use it ?

DataVampire 01-01-2005 05:41 PM

Quote:

Originally Posted by Zachery
Where are you trying to use it ?

the vb hack im trying to redo is this one here
https://vborg.vbsupport.ru/showthrea...ghlight=phpatm

now when i use this
PHP Code:

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 ^^

PHP Code:

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 ^^


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01199 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete