vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [Release] User CP or Register Link (https://vborg.vbsupport.ru/showthread.php?t=83561)

Bad Bunny 08-17-2002 03:57 PM

Oops. I missed this one, and modified the other one you released to do this....so I will go and "install" this one too. Thanks alot!

Red Blaze 02-03-2003 02:01 PM

Quote:

Originally posted by sonic
do i just replace top_profile.gif with $register or the whole image line?

do u get what i am saying?

I got kinda confused there too, until I found out the obvious when I saw two user cp buttons. :p

Instead of
Quote:

<a href="usercp.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>
<a href="register.php?s=$session[sessionhash]&action=signup"><img src="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a>
Replace it with $register.

*Clicks Install*

WoodiE 04-04-2003 02:55 PM

I dont use Images for my register / profile links. I use text links. So what i did was edit your mod to use my text links instead of images and I receive this error:

Parse error: parse error, unexpected T_STRING in /home/rcnitro/public_html/forum/global.php(309) : eval()'d code on line 3

Is there anyway this can be fixed?

-WoodiE

Tony G 04-04-2003 10:18 PM

Can you show your modified code of the mod here please?

WoodiE 04-04-2003 10:46 PM

// Show User CP or Register
if ($bbuserinfo[usergroupid]==1) { // Non-Registered
$register = "<a href="http://www.mydomain.com/forum/register.php?s=Array%5Bsessionhash%5D&action=signu p">Register</a>";
} else { //Everyone else/Registered users
$register = "<a href="http://www.mydomain.com/forum/usercp.php?s=Array%5Bsessionhash%5D">Profile</a>";
}
//End Show User CP or Register Code

Thats my edited version.

-WoodiE

Hermit 04-08-2003 01:42 PM

You must use a "\" before your quotation marks in your phpinclude template.

Copy and paste the following in it's place.

Code:

// Show User CP or Register
if ($bbuserinfo[usergroupid]==1) { // Non-Registered
$register = "<a href=\"http://www.mydomain.com/forum/register.php?s=Array%5Bsessionhash%5D&action=signup\">Register</a>";
} else { //Everyone else/Registered users
$register = "<a href=\"http://www.mydomain.com/forum/usercp.php?s=Array%5Bsessionhash%5D\">Profile</a>";
}
//End Show User CP or Register Code


imported_ogden2k 05-02-2003 02:36 PM

Awesome, works great!

imported_DMC 05-11-2003 11:23 PM

Thanks........!! :)


All times are GMT. The time now is 10:40 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.01011 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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