vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Register link for guests, User CP link (or button) for members. (https://vborg.vbsupport.ru/showthread.php?t=38416)

KuraFire 04-19-2003 05:12 PM

You're doing it all wrong:


"<a href=\"register.php?s=$session[sessionhash]&action=signup\">".
"<a onmouseover=\"changeImages('image2', 'image2a')\" onmouseout=\"changeImages('image2', 'image2b')\" ".
"img name=\"image2\" ".


That's not valid HTML _whatsoever_ :) Make it:



"<a href=\"register.php?s=$session[sessionhash]&action=signup\">".
"<img onmouseover=\"changeImages('image2', 'image2a')\" onmouseout=\"changeImages('image2', 'image2b')\" ".
" name=\"image2\" ".

212rikanmofo 04-19-2003 11:40 PM

thanks :) that worked...

212rikanmofo 04-20-2003 03:34 PM

kurafire, k i thought it works, but i notice a strange behaviour problem... when i refresh the page it loads all my nav buttons up except for the usercp/registration one... it leaves an X there instead... the only way it shows up is if i hover my mouse over it... any ideas? but its rare that it loads up completely... any ideas?

212rikanmofo 04-26-2003 03:18 AM

anyone? the rollover button or image will bot load up unless the user hovers his mouse over it, any ideas how to fix this? please this is really annoying me... arghhh... it works but only if i put the mouse pointer over where the x is... help me plz... here's what i have...

PHP Code:

if($bbuserinfo['userid'] != 0) {
    
$reg_ucp "<a href=\"http://www.rese.com/forums/usercp.php?s=$session[sessionhash]\">".
    
"<img onmouseover=\"changeImages('image2', 'image2on')\" onmouseout=\"changeImages('image2', 'image2off')\" "
    
" name=\"image2\" ".
    
"alt=\"Here you can view your subscribed threads, work with private messages and edit your profile and preferences\" border=\"0\"></a>";
}else{
    
$reg_ucp "<a href=\"http://www.rese.com/forums/register.php?s=$session[sessionhash]&action=signup\">".
    
"<img onmouseover=\"changeImages('image3', 'image3on')\" onmouseout=\"changeImages('image3', 'image3off')\" "
    
" name=\"image3\" ".
    
"alt=\"Sign up for an account\" border=\"0\"></a>";



KuraFire 04-27-2003 06:33 PM

*sighs*

212rikanmofo, please learn the basics of HTML before you go hack up your site, next time you have a problem.

<img> tags need an src= attribute. You didn't put one in...

SiGmA_X 04-27-2003 07:39 PM

And, for <img> tag's to be XHTML1.0 complient, they also need an alt="" and a trailing slash.

Ex: <img src="URL" height="" width="" alt="" />

vB-Host.com 04-27-2003 11:00 PM

I get...

Parse error: parse error, unexpected T_VARIABLE in /home/vbhost/public_html/forum/global.php on line 345

Fatal error: Call to undefined function: getpermissions() in /home/vbhost/public_html/forum/index.php on line 10

212rikanmofo 04-28-2003 02:52 AM

Quote:

Yesterday at 08:33 PM KuraFire said this in Post #75
*sighs*

212rikanmofo, please learn the basics of HTML before you go hack up your site, next time you have a problem.

<img> tags need an src= attribute. You didn't put one in...

well i followed what you told me to put, sigh... yours didnt include a src in it... sorry if i didnt get things the 1st time off the bat, nobody is perfect okay... maybe you could of explained a lil more closely then instead of saying what you said... show me, dont criticise me... thats what helping is all about...

so i do this?

PHP Code:

if($bbuserinfo['userid'] != 0) {
    
$reg_ucp "<a href=\"http://www.rese.com/forums/usercp.php?s=$session[sessionhash]\">".      
    
"<img src=\"http://www.rese.com/forums/images/usercp.gif\" "
      
" onmouseover=\"changeImages('image2', 'image2on')\" onmouseout=\"changeImages('image2', 'image2off')\" "
    
" name=\"image2\" ".

    
"alt=\"Here you can view your subscribed threads, work with private messages and edit your profile and preferences\" border=\"0\"></a>"

that still doesnt work, please help me...

212rikanmofo 04-28-2003 02:57 AM

Quote:

Yesterday at 09:39 PM SiGmA_X said this in Post #76
And, for <img> tag's to be XHTML1.0 complient, they also need an alt="" and a trailing slash.

Ex: <img src="URL" height="" width="" alt="" />

correct, but the problem im having is, im trying to do rollover images... however the image doesnt load up not unless i hover my mouse over it... :(

vB-Host.com 05-15-2003 07:35 AM

//########################## button change in nav #######################

if($bbuserinfo['userid'] != 0) {

$regcp = "<a href=\"register.php?s=$session[sessionhash]&action=signup\">Register</a>";

} else {

$regcp = "<a href=\"usercp.php?s=$session[sessionhash]\">Control Panel</a>";

}

if ($bbuserinfo['usergroupid']==6) {

$vadminbutton = "<a href=\"/admin/index.php?s=$session[sessionhash]\" target=\"_blank\">Admin Panel</a>";

}

if ($bbuserinfo['usergroupid']==5) {

$vmodbutton = "<a href=\"/mod/index.php?s=$session[sessionhash]\" target=\"_blank\">Mod Panel</a>";

}

if ($bbuserinfo['usergroupid']==7) {

$vmodbutton = "<a href=\"/mod/index.php?s=$session[sessionhash]\" target=\"_blank\">Mod Panel</a>";

}


and it kicks back....
Parse error: parse error, unexpected T_VARIABLE in /home/sports/public_html/global.php on line 292

Fatal error: Call to undefined function: getpermissions() in /home/sports/public_html/index.php on line 14


All times are GMT. The time now is 10:16 AM.

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.01328 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete