ThreadsDev FusionBB Greeting Cards FusionBBDev.com Measurection.com VertexHost NASCAR Racing MouseFunFacts.com Myrtle Beach Info UBB.Threads Modifications threadsdev.net
FusionBB

Trans-D Tropin
Use Coupon Code '1004' to Save $20 Off Your Initial Order of Trans-D Tropin®
V6 Threads Development >> Modifications

Pages: 1
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Beta-[6.5] Signature Generator
      #127382 - 04/27/05 02:26 AM Attachment (38 downloads)

Mod Name / Version: Signature Generator

Description: Based on the generic page from Josh and the script Fastbanner from Scott Hough I create this litte add-on for UBBthreads. I have the permission from Scott to modify and post it. It need no modification to the board.

It can create banners on the fly with two text inputs. One text is by default the username (pulled from threads). The script will save the banner under the userID as .png file and can be used by the user for a signature.

Example picture:

It can be used on my board under http://www.dragonclan-forum.de/siggen/siggen.php but you have to register first. Thats why I post the picture.







Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites: require GD library with png support installed on the server

Author(s): Zarzal

Date: 04/26/05

Credits: Josh Pet & Scott Hough

Files Altered: none

New Files:

Database Altered: no

Info/Instructions: Installation is easy. Create a directory and upload all files to it include all subdirs. Chmod the directory banners to 777 and the counter.txt file inside the directory to 666. Then edit siggen.php and banner.php and set $threadspath to match your installation. Thats all. To use the script call siggen.php

There are some empty banner included as example and you should create your own templates.

to do:
1) modify the online.php language file to show when some use the generator
2) put a link for siggen above or below the signature edit field in edituser.php
3) add some nice banners
4) try to add a option to change the used font
5) delete the banner file (if exists) when deleting the user from the databse

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Post Extras: Print Post   Remind Me!   Notify Moderator  
AllenAyres
Wizard
****

Reged: 10/12/01
Posts: 5562
Loc: Texas
Re: Beta-[6.5] Signature Generator [Re: Zarzal]
      #127400 - 04/27/05 08:47 PM

nice, thanks

--------------------
- Allen

- Join Team ThreadsDev

- It's not about you.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jest
Lurker


Reged: 02/23/05
Posts: 6
Re: Beta-[6.5] Signature Generator [Re: Zarzal]
      #127453 - 04/30/05 03:31 AM

A little typo in the code...

In siggen.php at line 36 there is no "}"

Code:
  

if(!$user['U_Username']) {
$html = new html;
$html -> not_right("You must be logged in to view this page.",$Cat);

$html = new html;
$html -> send_header($pagetitle,$Cat,0,$user);



change to this

Code:
 

if(!$user['U_Username']) {
$html = new html;
$html -> not_right("You must be logged in to view this page.",$Cat);
}
$html = new html;
$html -> send_header($pagetitle,$Cat,0,$user);



--------------------
br
Thomas
www.mobile.si


Post Extras: Print Post   Remind Me!   Notify Moderator  
DLWebmaestro
Addict
***

Reged: 01/16/03
Posts: 1696
Loc: North Carolina
Re: Beta-[6.5] Signature Generator [Re: Jest]
      #127457 - 04/30/05 03:56 PM

Nice catch!

--------------------
ThreadsDev 2003 Member Spotlight Winner

JoshPet was here.

Miserable Failure


Post Extras: Print Post   Remind Me!   Notify Moderator  
ChAoS
Code Monkey
*****

Reged: 11/15/02
Posts: 565
Loc: Great Northwest
Re: Beta-[6.5] Signature Generator [Re: DLWebmaestro]
      #127470 - 05/01/05 12:40 PM

I am having a problem that when the banner is created it is created with only the permissions of 600 and it cannot be viewed. Once I change the permissions manually on the users first banner then it works

To view in Who's Online do this;

Add to languages/online.php
Code:

$ubbt_lang['siggen'] = "Creating a Signature";
$ubbt_lang['siggenbanner'] = "Viewing a newly created Signature";



Add to banner.php just below
require ("$threadspath/includes/main.inc.php");
Code:
 define('THIS_SCRIPT', 'siggenbanner');



Add to siggen.php just below
require ("$threadspath/includes/main.inc.php");
Code:
 define('THIS_SCRIPT', 'siggen');



Edited by ChAoS (05/01/05 01:27 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Re: Beta-[6.5] Signature Generator [Re: Jest]
      #127471 - 05/01/05 01:51 PM

Quote:

Jest said:
A little typo in the code...

In siggen.php at line 36 there is no "}"




very strange. I dont know where I lost it. It is in my code on my webspce and I copy it from there for the archive file But you are right, there must be a }


Post Extras: Print Post   Remind Me!   Notify Moderator  
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Re: Beta-[6.5] Signature Generator [Re: ChAoS]
      #127472 - 05/01/05 02:00 PM

Quote:


I am having a problem that when the banner is created it is created with only the permissions of 600 and it cannot be viewed. Once I change the permissions manually on the users first banner then it works




Thats made by your server. The png file is created from script by the server. My server set it to 775. Maybe you can change the file permissions in banner.php after the png file is created. Should be easy to do for a php-Pro

Quote:

To view in Who's Online do this



Thanks. The easy way is to setup siggen and banner in the language files without any modification to the scripts. It works for me. My example for online.php:

$ubbt_lang['siggen'] = "generate a signature";
$ubbt_lang['banner'] = "preview a signature";


Post Extras: Print Post   Remind Me!   Notify Moderator  
ChAoS
Code Monkey
*****

Reged: 11/15/02
Posts: 565
Loc: Great Northwest
Re: Beta-[6.5] Signature Generator [Re: Zarzal]
      #127473 - 05/01/05 02:17 PM

PHP pro I am not- Coding by chainsaw is my style

--------------------
ChAoS

Emerald Forest Gaming Servers

Official STFU Thread





Post Extras: Print Post   Remind Me!   Notify Moderator  
DrChaos
Coder
*****

Reged: 09/12/03
Posts: 827
Loc: Hollywood Florida.
Re: Beta-[6.5] Signature Generator [Re: ChAoS]
      #127530 - 05/03/05 01:34 PM

Atleast you use a chainsaw. Im using a dull butter knife :-\

Post Extras: Print Post   Remind Me!   Notify Moderator  
smoknz28
Enthusiast


Reged: 04/10/03
Posts: 401
Loc: Washington, D.C.
Re: Beta-[6.5] Signature Generator [Re: DrChaos]
      #127625 - 05/07/05 10:39 PM

Nice...digging this hack. I have not installed this hack as I want to wait til the bugs are all worked out. Played with it on your site and looks like it will be a great addition for many Threads forums out there.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Zarzal
Enthusiast
*****

Reged: 03/30/03
Posts: 437
Loc: Berlin, Germany
Re: Beta-[6.5] Signature Generator [Re: smoknz28]
      #127632 - 05/08/05 01:32 PM

my Idea for the link inside UBBt:

edit languages/english/editbasic.php and change the key PROF_SIG as follow:

Code:
$ubbt_lang['PROF_SIG']  = 	"Signature (up to {$config['Sig_length']}  characters).<br />You may use <a href=\"{$config['phpurl']}/faq.php#html\" target=\"_new\">UBBCode</a> in your signature.<br />You can use our <a href=\"http://insert your path here/siggen/siggen.php\" target=\"_blank\">Signature Generator</a> to create a signature picture";



Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 22 anonymous users are browsing this forum.

Moderator:  JoshPet, Gardener, Ian_W, Anno 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3888

Rate this topic

Jump to
 
Hot Topic
No posts have caught fire as of yet.

Developers for Hire
Are you looking for custom modifications? Upgrades? Installs?
We have developers who can help!
View Our Services Page for information.

Login
Enter your username and password to login. If you do not have a username you can register one HERE.
username:
password:

Send Password
Remember Me

Online
115 guests have been online with in the last 90 minutes.

ThreadsDev.com
Trans-D Tropin

Current Threads
No current threads found...

Modifications
Recently Added:
· View Private Messages v0.9.3
· Stop Guests from seeing "Who's Online." [6.5.5]
· User List Display Limited by Post Count 1.0
· Paginate PMs 1.0
· Today and Yesterday

Most Downloaded:
· Inline Images 3.1
· Quote Username 1.0
· Games Arcade Deluxe v1.8
· UbbThreads and Photopost Total Integration Version 4
· Tool Tip Body Preview 3.0

Highest Rated:
· Mass Threads Move for 6.3
· Update Last Posts 1.0
· Update B_Parent User 1.0
· Integrated Index Page (IIP) 5.3.1
· IIP SideBarPal 1.1

Recent Stylesheets:
· Mix-Colors_2-0_3D for UBBT v6.3 - 6.5
· Mix-Colors_2-0 for UBBT v6.3 - 6.5
· Dark-Grey_3-0 for UBBT v6.3 - 6.5
· Green-Orange_1-0 for UBBT v6.3 - 6.5
· ebay_1-0 for UBBT v6.3 - 6.5

Recent Template Mods:
· Postlist modification - line separates new topics and replies
· I need some help with my postlist.tmpl file
· Edit, reply, and quote buttons mod for Facelift 6.5
· Google Add Sense add on for Threads 6.5
· Article templates for Thread 6.5

Shout Box

Short Stats
New Members:
4 Last 24 hours
20 Last 7 days
107 Last 31 days

Boards:
11676 Total topics
73324 Total replies

Totals:
5728 Members
85000 Posts

Max Online:
814 Total
(06/01/06 09:46 AM)


Web Hosting Provided by
VertexHost Web Hosting

Content ©2003-2006 ThreadsDev.NET
Powered By UBB.threads™ 6.5.5

 .: IIP 5.5 by David Lozier ©2003 :. 
Distributed by ThreadsDev.net

Visit Our Sister Sites!
JoshuaPettit.com and ThreadsAddons.com
Web Hosting Provided by
VertexHost Web Hosting

Generated in 0.288 seconds in which 0.262 seconds were spent on a total of 26 queries. Zlib compression enabled.


Whiplash Claims - Friendship Bracelets - Jewellery - Whiplash