vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Anyone want a vB3 version of my Graffiti Wall? (https://vborg.vbsupport.ru/showthread.php?t=80316)

MPDev 04-21-2005 07:29 PM

Anyone want a vB3 version of my Graffiti Wall?
 
A couple years ago I wrote a Graffiti Wall for one of my sites. For a while I sold the source, but I recently decided to post it on my MPDev website.

I have a vB3 version which integrates with vB styles as seen on ExtremeFitness; if anyone finds this interesting enough, I'll post the mod here.

twoseven 04-21-2005 08:01 PM

man thats decent

Reeve of shinra 04-21-2005 08:02 PM

Sounds like fun for members.

twoseven 04-21-2005 08:04 PM

only thing is users shouldnt be able to wipe the wall i know its a simple template conditional

Snow 04-21-2005 08:06 PM

What does it do??

MPDev 04-21-2005 08:08 PM

I made it so anyone can wipe the wall because I got tired of having to wipe it every day myself. Some find it annoying that their stuff can be wiped; maybe I'll put in some kind of conditional before I post the code so moderators and admins can wipe it only.

It uses random fonts to post messages and random places (and random angles).

j_86 04-21-2005 08:14 PM

I want!!

MPDev 04-21-2005 08:17 PM

It also records all entries to a log file with username and ip; just for security sake. I added a call to can_moderate() to show the wipe wall option.

It's a pretty basic script; although it doesn't use templates - there's just one file for everything (except the fonts and image files). Like I said, I wrote it a few years ago and I'll have to consider weather I have the time to do a full install/template/phrases version.

twoseven 04-21-2005 08:19 PM

how does the font system work? does it just traverse the directory and pick one out at random or is it hardcoded. was thinking to add more fonts

MPDev 04-21-2005 08:22 PM

It's a little more complicated than that - it uses an array of font names to pick one randomly. The tricky part is some fonts dont repsond well to the same font sizes as others; so there is some conditionals that will set acceptable font sizes based on the font filename.

If your font works in 18, 20 and 22; then you only have to add it to the array. Two of the fonts I have work with 12-22 ranges, so there are more size options for them.

I also pull random angles from an array which can be tweaked.


All times are GMT. The time now is 04:55 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.00995 seconds
  • Memory Usage 1,727KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)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