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)
-   -   Admin-Only Links (https://vborg.vbsupport.ru/showthread.php?t=47622)

Darkwaltz4 01-11-2003 10:00 PM

Admin-Only Links
 
Okay, just so you know, I found only one instance of something that sounded similar to this idea in this database. But it was to set options for usergroups, this is for links, and I did not view any of their code at all.

Also, I personally run 2.2.9, but I am pretty certain that 2.2.8, or any other 2.2.x versions, should be able to handle this, so long as they still get $bbuserinfo from global.php.

This hack is also rather simple, requiring 1 real small file edit, and 1 real small template edit. Its also really flexible is what it displays.

What it does: Displays Links to whatever, based on your usergroup. (The links I chose to display I will add screenshots of after this)

Darkwaltz4 01-11-2003 11:53 PM

to see what the forums looks like while not an admin, goto
http://ffgods.ffextreme.com/forums/

and what you do see (as an admin, and what i personally chose to link) is attached.

Vivi Ornitier 01-11-2003 11:54 PM

waitin fo links . . ..

Vivi Ornitier 01-11-2003 11:56 PM

hahahha . . .wha ta coincedence. My friend sephiroth made one VERY similar to that. Not the same links but the general idea a whilst back, it's all good though,

instals

LOD-squa 01-12-2003 12:07 AM

Seems nice I might install it.

Ein 01-12-2003 06:40 PM

...I keep getting a parse error on line 19, which is
PHP Code:

target="blank">Admin CP</a> | <a href="### (my database)" 


Chris M 01-12-2003 06:53 PM

@Darkwaltz4 - You forgot to parse the HTML code:bored:

I've attached a parsed version...

Satan

Darkwaltz4 01-12-2003 07:21 PM

hmm...thats odd--in my files, it is not / parsed at all...exactly as i put it, is exactly how it is. like i said, im using 2.2.9, so i dunno if thats what the problem was.

N9ne 01-12-2003 08:10 PM

I have conditional templates installed, so I can do much more than this ;)

Darkwaltz4 01-18-2003 02:09 AM

_maybe_ its because i generally use vbftp to edit things, but i dont know, because i havent bothered to check the raw file, and i dont know if vbftp auto-parses things and addslashes.

also, ive recently added a set of links for my mods, and even some special links to help me beta test my triple triad hack, and that is based on their userid--not just usergroup ;)

Red Blaze 01-30-2004 04:18 PM

If you want this globally you could add it in the PHP parsed code box, but then it wouldn't be a hack now, would it. ^^;; Nice hack. ^^;

Darkwaltz4 01-30-2004 05:39 PM

:D this hack sucks, i wrote it over a year ago when i was just learning, all this is is a simple conditional :-p

now ive written much more interesting things like topsites scripts, rpg hacks, triple triad hacks, search engine scripts, links scripts, news scripts...its been a long year :-p

btw, this hack would be best used in the iif() function way :-p

Red Blaze 02-02-2004 01:45 PM

lmao
Looks like I need to pay attention to the date the thread was done.

/me feels stoopid now. -_-;


All times are GMT. The time now is 04:50 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.02827 seconds
  • Memory Usage 1,732KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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