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] Admin/Mod Login & Avater Link Intergration (https://vborg.vbsupport.ru/showthread.php?t=85394)

assassingod 11-21-2002 10:00 PM

[release] Admin/Mod Login & Avater Link Intergration
 
Authors: Anime-Loo and SaintDog
Intergrated by: ffdcsite
Description:This mod will intergrate SaintDogs Admin/Mod Login and Anime-Loo's Edit avater link in User CP template modifications. For admins, it will display a link to the Admin CP, for mods, it will display a link to the Mod CP and for normal users it will show a link to the Edit Avatar Page.
I would also like to say that I wrote niether of these mods, I simply intergrated them. All credit goes to SaintDog and Anime-Loo
Links:
SaintDog's mod - http://www.vbulletintemplates.com/mo...?s=&threadid=8
Anime-Loo's Mod - http://www.vbulletintemplates.com/mo...&threadid=1779

Preview:
http://www.vbulletintemplates.com/mo...=&postid=16306

Please click the install if you use this modification!

assassingod 11-22-2002 05:01 PM

Preview:

Brad 11-22-2002 05:09 PM

Nice, never thought of doing it that way. However you may want to show the mod and admin the edit avatar link to incase someone did steap two of my mod that removes the avatar bits from the edit options page. In that case i belive this code would work tho i havent tested it

//ffdcsites intergration
if ($bbuserinfo[usergroupid]==6) { //Admins
$usercplogin = "<a href=\"admin/index.php\">Admin CP</a> - <a href=\"member.php?s=$session[sessionhash]&action=editavatar\">Edit Avatar</a><br>";
} elseif (($bbuserinfo[usergroupid]==5) or ($bbuserinfo[usergroupid]==7)) { //Mods
$usercplogin = "<a href=\"mod/index.php\">Mod CP</a> - <a href=\"member.php?s=$session[sessionhash]&action=editavatar\">Edit Avatar</a><br>";
} else { //Everyone else
$usercplogin = "<a href=\"member.php?s=$session[sessionhash]&action=editavatar\">Edit Avatar</a>";
}
//End intergration

good work :)

assassingod 11-22-2002 05:11 PM

Thanks for that Anime-Loo.
Ill test that out now and let you know on the results:)

Edit:
Tested and working great. Although, it did make that cell rather large [mad]

Tony G 11-22-2002 08:04 PM

I would have never thought of that too. Nice work. :)

lebanon2001 11-22-2002 08:48 PM

fery nice

thanks my frindffdcsite

and

thanks my frindAnime-loo

assassingod 11-24-2002 02:41 PM

Thanks, I guess ^.-

Rufus69 11-24-2002 07:16 PM

hmm I use this when my host gets back up....

looks good I'll tell ya what I think when I get it installed ;)

omega buster 11-25-2002 12:11 AM

nice hack ;)
thanks alot FFdcsite:D :D
install this ^^

assassingod 12-04-2002 06:15 PM

Thank you:D Please post any problems:)


All times are GMT. The time now is 11:19 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.00957 seconds
  • Memory Usage 1,726KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete