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)
-   -   vB Jokes Factory v1.0 (https://vborg.vbsupport.ru/showthread.php?t=52731)

wolfe 05-08-2003 10:00 PM

vB Jokes Factory v1.0
 
Here is my first big hack hope you all like it and if you install it please click on the install button

Zip removed because of majour bugs and version 2.0 is nearly ready.... just fixing the bugs and trying to intergrate the nav bar so if anyone can help me out let me know :D

Thanx to hellsatan for the base code

Right what it does:

This hack allows you to set up your own fun area where people can post jokes and edit them if they have a mistake and it only allows people who posted the joke to delete them. It also add a counter to the user table for every joke someone adds it increasus by 1 so you can add that to the profile or postbit saying the person has posted x jokes. But it does not seem to be updating the count so can one of you advanced hackers help me out on that please

remember this is only version 1.0 there will be plenty more updates in version 2.0 which will include:


Rate the Joke,
Store Hack intergration,
Date joke was added,
Age Rating Categories for adult and normal jokes.


NOTE: if anyone can intergrate this hack into the store hack feel free.

Screen Shots In Below Posts

wolfe 05-09-2003 01:17 AM

joke added redirect screen

wolfe 05-09-2003 01:18 AM

add joke screen

wolfe 05-09-2003 01:18 AM

delete joke screen

wolfe 05-09-2003 01:19 AM

joke edited redirect screen

wolfe 05-09-2003 01:19 AM

edit joke screen

wolfe 05-09-2003 01:19 AM

joke removed redirect screen

wolfe 05-09-2003 01:20 AM

view jokes screen

Davey 05-09-2003 08:10 AM

Nice idea, although I won't use it, for I have no use for it.
I'm sure people are looking for this.

Dave.

Dean C 05-09-2003 03:21 PM

Excellent hack buddy :)!

I may have a use for this in my donators system i'm working on for my forums :)

- miSt

Chris M 05-09-2003 03:33 PM

Hmmm...

Is it me, or does this code look almost exactly like my vBaffiliates4 hack?:eek:

Satan

Link14716 05-09-2003 07:11 PM

wolfe, GZIP Level 9 isn't worth it, from what I heard, the best setting is 1 ;)

Looks good. ;)

*Downloads in case it is removed*

I might install it.... might. ;)

wolfe 05-10-2003 10:24 AM

look i originally built it from the ground and it did not work properly as you can see in this file

so i needed a base block to build off can i please keep the hack on because i did all the querys myself. and built the templates.

mx3 05-10-2003 09:13 PM

great idea for the hack!

Chris M 05-10-2003 10:08 PM

Ok - You can keep, just make sure you ask in future;):)

Satan

MindTrix 05-10-2003 11:04 PM

Das nice of ya hellsatan. Most other people would throw a fit etc over it, such a nice guy :) Nice hack aswell yo ima use it

Raven 05-11-2003 11:13 AM

There are a Parse Error in line 35 of jokesquery.php

unexpected T_STRING
:knockedout:

wolfe 05-11-2003 12:06 PM

Quote:

Today at 12:08 AM hellsatan said this in Post #16
Ok - You can keep, just make sure you ask in future;):)

Satan

thanx d00d you da man :D i will try and upgrade it to 2.0 with my own code but if i need little bits of that i will ask.


Quote:

Today at 01:13 PM Raven said this in Post #18
There are a Parse Error in line 35 of jokesquery.php

unexpected T_STRING
:knockedout:


will look at the problem.

wolfe 05-11-2003 12:17 PM

fixed the problem with the jokesquery.php

redownload the zip file

MindTrix 05-11-2003 12:38 PM

I re downloaded the zip file and im still gettin

Parse error: parse error in jokesquery.php on line 35

wolfe 05-11-2003 12:40 PM

d00d try this one

MindTrix 05-11-2003 12:49 PM

yeah worked, thanxs and nice one, now on with teh rest of the installation

wolfe 05-11-2003 12:50 PM

ok np's also 1.5 will be out very soon you will need to run some more querys and replace the jokefactory.php file this one will have Rating on it.

MindTrix 05-11-2003 12:55 PM

sweet should beh nice

Raven 05-12-2003 12:52 PM

it seems to me like there are still some errors some have to go away

when you have instell the the script and call
jokefactory.php

you get this error

Invalid SQL: SELECT * FROM jokes ORDER BY joke_id LIMIT
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

yxboom 05-12-2003 03:03 PM

Raven: It needs a number after the LIMIT.

Wolfe: I managed to get this hack working however when a joke is submitted it just arbiturarily just cuts the joke off about half way into it so the jokes look really dumb.

wolfe 05-12-2003 10:59 PM

d00d's sorry about all these errors v1.5 is nearly done and i am fixing bugs and a new layout for the jokes has been made and i am adding extras like page nav if i can figure it out and Rating. but when vertion 2.0 comes out it will have all these plus categories and extras i wil linfom you all when its fully bug free and working...

Holidazed 05-12-2003 11:51 PM

Just a question. Why should somebody install this hack? I have my jokes running in its own forum. What does this give me that the vBulletin forum does not?

wolfe 05-12-2003 11:54 PM

well d00d no one is forcing you to install this hack its just an option addition to vB's great forums but if you do add it then you jokes will have there own area and it will have rating the lot...

note this version still contains bugs which i am currently fixing so if you don't want to install it then don't but if you do then feel free...

Holidazed 05-13-2003 12:42 AM

I did not mean it as an insult. I just want to make sure that this hack has something in it that I would not get from using a forum. I do not see a point in installing something unless I can get hat feature nowhere else.

Can users post jokes using this hack? Or is it admins only?

wolfe 05-13-2003 12:41 PM

yes d00d users can post jokes and they can edit and delete there own if they want but admins can edit/delete all of them but it version 1.5 and 2.0 i will have lots of extras :D...

squawell 05-14-2003 11:03 AM

does this add search function?prevent user post same joke....

thankz~

wolfe 05-14-2003 01:19 PM

i am working on it d00d added a few more features to v1.5 for the moment they are


Admin CP intergration where you will be able to choose how many jokes to display, jokes in one page, if jokes are allowed to be posted, and what user groups can post jokes.

Rate The jokes, built from the threadrate.php file so its professionaly coded, so it checks the ip of the user to the one in the database and if you have already voted it just updates your vote,

Date Joke Was Added,

View Single Joke,

Total Views Of Single Joke,

Shows Avarage Rating Of The Joke, this shows the over all rating,


also i have fixed most of the bugs just finishing off the last few..

but if any coders can help me with 2 things i am stuck on

#1 Page Nav
#2 Hiding of the Rating Drop down box after a user has voted

if any onecan help please let me know

flup 05-14-2003 02:43 PM

Naiiiis

yxboom 05-15-2003 01:22 PM

I know you said Admins can edit or delete jokes but someone on the board posted an inappropriate joke and there is no option to remove it.

Hard_one 05-15-2003 01:54 PM

i got this error when i run jokesquery.php

Quote:

Datenbank Fehler in vBulletin Control Panel 2.3.0g:

Invalid SQL: ALTER TABLE user ADD jokes smallint(6) NOT NULL default '0'
mysql error: Duplicate column name 'jokes'

mysql error number: 1060

Datum: Thursday 15th of May 2003 08:04:36 AM

gmarik 05-17-2003 07:03 AM

Waiting for v2 ...

wolfe 05-17-2003 01:27 PM

Just giving you all an update

v2.0 is currently about 89% done.

current feature @ 89%:

Admin CP Intergration


you will be able to

Add Categories for the jokes,

Add cat title and decription,

pick display order

pick parent category

pick if they are open (visible or not),

pick if people can post jokes in there,

add a age rating to the cat

plus i have added some settig to the options,

i have added,

Jokes Factory Active?, will show custom error if not,

Jokes To List Perpage, you can pick how many jokes to show before spliting over multiple pages,

Joke Factory Not Active Reason?, this is the customable message you can put what you want in here,

User Group Banning, don't allow certain groups to see jokes factory E.G. banned/guest/user awaiting email confermation/(COPPA) user etc,

Pages to show in joke nav, this can be set to only show 5 pages in the navbar or what ever you want so if its 5 and you are on page six it will be something like this... [2] [3] [4] [5] [6]

Plus more to add....


Jokes Factory Main


you can add jokes, edit jokes, delete jokes and view single joke,

you can rate jokes,

there is a a censorship on the jokes if you want it in a category rated under 16 or 18 or 21 up to you,

nav bar for multiple pages (currently stuck on this),

also i am still working on stoping double jokes adding untill a certern amount of time (user pickable),

more to come...


While Adding Jokes


you can pick which category to add it to,

you can add title and text,

you can add its own rating for the individual joke,

more to come....


While Editing Jokes


you can change title and text,

you can change joke age rating,

you can change joke category,


While Deleting Jokes


you can see the jokes info with means age rating, jokeid, title, text, category, add date, and added by,


so for now thats all i done theres more to be done before it release it and it will do new screens

also i would suggest a new install instead of upgrading

i will update you all soon...

Alien 05-17-2003 08:05 PM

Sounds awesome, can't wait! :D

gmarik 05-17-2003 08:41 PM

Me to - GIVE it, GIVe iT!


All times are GMT. The time now is 05:43 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.01253 seconds
  • Memory Usage 1,809KB
  • 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
  • (3)bbcode_quote_printable
  • (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
  • (40)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