Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MPDev's Graffiti Wall Details »»
MPDev's Graffiti Wall
Version: 1.00, by MPDev MPDev is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-11-2005 Last Update: 02-03-2006 Installs: 77
Additional Files  
No support by the author.

The Graffiti Wall is a simple script where people can "paint" text onto a brick wall. You can see an example of the vB3 integration on ExtremeFitness.Com.

I also use an img src with half sized dimensions to preview the wall on my Summary page which can be seen on ViperAlley.Com; this could also be added to your portal pages for greater exposure.

Features
. Fully integrated with vB3 for styles/users
. Admin/Mods can "wipe board"
. Optional logging of paints to log file

This is a very simple mod to install; there is one self contained .php script, a few fonts and a bricks.jpg file to upload.

Requirements
. Your server must have GD2 support (GD1 support may work, but not tested) for PNG files including TTF support.

This is the updated mod from the 3.0x version located here.

Be kind and click INSTALL if you use this mod.

1.0.1 - 2/3/2006
. Fixed painttext issue in ZIP file

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 11-04-2005, 03:31 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by javo
Can someone please verify that the wall.php file in that package is the correct file.
Loukrhtia said mine looks drastically different than his and the readme mpdev put in there says the pathto edit is on line 38 except my file it's on 45. This may be why I cant get it to work. I may be running the wrong version of the wall.php file. I've downloaded the package several times in the last few days and had the same results.

Thanks..

Of if someone can just pm me the wall.php file I would appreciate it..
Firstly, it's hers, not his (Gosh, I hate that!)

Secondly the first lines are drasctically diefferent in mine, not the whole file
Reply With Quote
  #93  
Old 11-05-2005, 03:11 PM
javo javo is offline
 
Join Date: May 2004
Location: DFW Texas
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loukrhtia
Firstly, it's hers, not his (Gosh, I hate that!)

Secondly the first lines are drasctically diefferent in mine, not the whole file

My bad I'm sorry. :bunny:

Has anyone verified that the file in the current zip is the newest wall.php ?
Reply With Quote
  #94  
Old 11-18-2005, 11:23 AM
murrtex murrtex is offline
 
Join Date: May 2002
Location: izmir
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it works great on my site..but otherwise i have another subdomain..and it does not wrok on it...why?

my subdomain wall.php

HTML Code:
<?
//////////////////////////// COPYRIGHT NOTICE //////////////////////////////
// This script is a software application written by Michael Pierce.       //
// You are free to use this script on your site, but you may not claim    //
// the product as your own or redistribute the contents of this ZIP file  //
// without express written permission.                                    //
//                                                                        //
//             http://www.mpdev.net   packetjunkie@gmail.com              //
//                                                                        //
//               GraffitiWall ? 2003-2005, Michael Pierce                 //
//                                                                        //
//   We are not resposible for any use of this script on your servers.    //
////////////////////////////////////////////////////////////////////////////

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'graffiti');
define('NO_REGISTER_GLOBALS', 1);

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();

// pre-cache templates used by specific actions
$actiontemplates = array();

require("global.php");

$vbulletin->input->clean_array_gpc('p', array(
        'painttext'     => TYPE_STR,
        'adminreset'    => TYPE_UINT,
));

if ( isset($vbulletin->GPC['painttext']) ) $painttext = $vbulletin->GPC['painttext'];
if ( isset($vbulletin->GPC['adminreset']) ) $adminreset = $vbulletin->GPC['adminreset'];

$pathto = "D:/home/vhosts/4umturk.com/subdomains/18/httpdocs/forum";


if ($painttext != '') {
    $string = stripslashes("$painttext");
    
    // You can keep a log of text sent to your wall by uncommenting this section
    //$ip = IPADDRESS;
    //$fd = fopen("$pathto/efgraffiti.txt","a");
    //$debugtext = "$string | $ip | ".$bbuserinfo['username']."\n";
    //fwrite($fd, $debugtext);
    //fclose($fd);                   
    
    //$string = ereg_replace( "[^a-zA-Z0-9.!]", "", $string );
    $string = strtolower($string);
    
    # feel free to add your own censored words, or put in your own replacements

$string = str_replace( "www", "", $string );
    
    $fonts = array( "skate.ttf", "grand.ttf", "say.ttf", "tagster.ttf", "graffiti.ttf", "inthcity.ttf" );
    $pickfont = $fonts[array_rand( $fonts )];
    $fontfile = "$pathto/fonts/$pickfont";
    
    $graffitifile = "$pathto/graffiti.png";
    
    if ( $pickfont == "grand.ttf" ) $sizes = array( "16", "18", "20", "22" );
    elseif ( $pickfont == "skate.ttf" ) $sizes = array( "12", "14", "16", "18" );
    else
        $sizes = array( "18", "20", "22" );
    
    $fontsize = $sizes[array_rand( $sizes )];
        
    $angles = array( "0", "5", "15", "20", "30", "-5", "-15", "-20", "-30" );
    $textangle = $angles[array_rand( $angles )];
    
    $picwidth = 1024;
    $picheight = 600;
    
    if ( !file_exists($graffitifile) || ($adminreset == 1 && can_moderate()) ) {
        $myimage = ImageCreate($picwidth, $picheight);
        $newimage = 1;
    }
    else {
        $myimage = ImageCreateFromPng($graffitifile);
        $newimage = 0;
    }
    
    $black = ImageColorAllocate($myimage, 0, 0, 0);
    $red   = ImageColorAllocate($myimage, 255, 0, 0);
    
    $randcolor = rand(1,9);
    if ( $randcolor == 1 ) $color = ImageColorAllocate($myimage, 255, 255, 0);
    elseif ( $randcolor == 2 ) $color = ImageColorAllocate($myimage, 255, 165, 0);
    elseif ( $randcolor == 3 ) $color = ImageColorAllocate($myimage, 255, 20, 147);
    elseif ( $randcolor == 4 ) $color = ImageColorAllocate($myimage, 255, 0, 0);    
    elseif ( $randcolor == 5 ) $color = ImageColorAllocate($myimage, 255, 255, 255);            
    elseif ( $randcolor == 6 ) $color = ImageColorAllocate($myimage, 0, 255, 255);            
    elseif ( $randcolor == 7 ) $color = ImageColorAllocate($myimage, 255, 0, 255);            
    else $color = ImageColorAllocate($myimage, 0, 255, 0);

    if ( $newimage == 1 ) {
        ImageFilledRectangle($myimage, 0, 0, $picwidth, $picheight, $black);
        ImageColorTransparent($myimage, $black);
        $string = "18.4umTurk.com";
    }
    
    list($pos_blx, $pos_bly, $pos_brx, $pos_bry, $pos_trx, $pos_try, $pos_tlx, $pos_tly) = imagettfbbox($fontsize, $textangle, $fontfile, $string);
    $textwidth = $pos_brx - $pos_blx;
    $textheight = $pos_bry - $pos_bly;

    do {
        $randw = rand(0,($picwidth-20));
    } while( (($randw+$textwidth) > $picwidth) );
    $start_x = $randw;
    
    do {
        $randh = rand(0,($picheight-20));
    } while( (($randh+$textheight) > $picheight) || (($randh-$textheight) < 0) );
    $start_y = $randh;
    
    imagettftext($myimage, $fontsize, $textangle, $start_x, $start_y, $color, $fontfile, $string);
    
    ImagePng($myimage, $graffitifile);
    ImageDestroy($myimage);
    
    header("Location: http://18.4umturk.com/forum/wall.php");
    exit;
}

$navbits = array();
$navbits[$parent] = 'Graffiti Wall';

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');

$styleinclude = process_replacement_vars($styleinclude);
$headinclude = process_replacement_vars($headinclude);
$header = process_replacement_vars($header);
$navbar = process_replacement_vars($navbar);
    
$vbheader = "$stylevar[htmldoctype]
<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">
<head>
<title>18.4umTurk Graffiti Wall - Duvar Yazıları</title>
$styleinclude
$headinclude
</head>
<body>
$header
$navbar";

print $vbheader;


?>
<form method="post" action="wall.php">
<table border="0" cellspacing="0" cellpadding="0"  align="center" background="images/bricks.jpg">
    <tr>
    <td align="left"> 
       <img src="graffiti.png?<? echo rand(10000,99999); ?>">
    </td>
  </tr>
<?php

if ( $vbulletin->userinfo['userid'] ) {
echo<<<INPUTTEXT
  <tr>
  <td align="center" class="alt1">
      <input type="text" name="painttext" style="font-size: 8pt;" size="25" maxlength="25" value="" />&nbsp;
      <input type="submit" value="Paint It!" style="font-size: 8pt;" />
INPUTTEXT;

    if ( can_moderate() ) {
echo<<<INPUTTEXT
      <br /><input type="checkbox" name="adminreset" value="1" />&nbsp;Wipe Wall</font>
INPUTTEXT;
    }
    
echo<<<INPUTTEXT
   </td>
   </tr>
INPUTTEXT;
}
?>
</table>
<br />

</form>

<?php
eval('$vbfooter = "' . fetch_template('footer') . '";');
$vbfooter = process_replacement_vars($vbfooter);
$vbfooter = "</div>$vbfooter";

print $vbfooter;
?>

and when i want to write something i get following error;

Warning: imagepng(): Unable to open 'D:/home/vhosts/4umturk.com/subdomains/18/httpdocs/forum/graffiti.png' for writing in \wall.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at D:\home\vhosts\4umturk.com\subdomains\18\httpdocs\ forum\includes\class_core.php:2948) in \wall.php on line 131

and my graffiti.png chmod is 777
Reply With Quote
  #95  
Old 11-25-2005, 02:13 AM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great feature would be once the wall fills up with text, instead of wipeing it take a snapshot of the wall (save image or whatever) and have as a clickable thumb within a wall-archive

-b6
Reply With Quote
  #96  
Old 12-06-2005, 02:09 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made a CMPS module for this: https://vborg.vbsupport.ru/showthread.php?t=102343
Hope you like it
Reply With Quote
  #97  
Old 12-06-2005, 08:16 PM
dan35's Avatar
dan35 dan35 is offline
 
Join Date: Jul 2004
Location: California
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I limit painting to admin usergroup only?

I just wanna put it as the Wall of Shame for cheaters or Wall of Contributors.
Reply With Quote
  #98  
Old 12-07-2005, 12:00 AM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Parse error: parse error, unexpected $ in /home/nitronci/public_html/forum/wall.php on line 150

any ideas?
Reply With Quote
  #99  
Old 12-28-2005, 06:33 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"redirection limit for this url exceeded. Unable to load requested page. This may be caused by cookies that are blocked"

Any ideas??
Reply With Quote
  #100  
Old 01-07-2006, 01:15 AM
XtremeOffroad XtremeOffroad is offline
 
Join Date: Jul 2005
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesnt work for me, Page just hangs.

Edit: The fix posted worked Great, Working now.
This needs to be corrected in the zip file.
Clicks Install.

How can we make the wall Smaller?
Reply With Quote
  #101  
Old 01-08-2006, 01:53 PM
TheProphet TheProphet is offline
 
Join Date: Apr 2004
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack sucks, too many complications and no support from the author as well, he did not reply a single time here....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08557 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete