![]() |
Vbjokes
Downloads for this modification have been removed according to Official Policy: When Security Vulnerabilities in Hacks are Found
VBjokes what is it. Well vbjokes is a jokes database system for holding all your jokes in one place. with vbjokes the user can search for a joke or just look around in the categorys. All members of the site will be able to add a joke to the database but the admin will have to approve the joke before anyone on your site can see it. The user has the option to view the jokes in a popup and by clicking the image if the joke has one to see the larger picture. The users can now rate a joke out of 5 this now uses images to show the rating. The admin can do The admin can add new categorys edit or delete them. View edit delete jokes. Approve new jokes. Turn vbjokes on or off. Phrases Fixed Have fixed the phrases and added a rate system for the jokes. Fixed the upgrade xml file as you can see there is a product-vbjokes-upgrade.xml file This is to upgrade all versions of vbjokes to 1.0.3 When you view this in the manage products it will say version 1.0.2 but if you click edit it will show that 1.0.3 has been installed. Also fixed when viewing whos online it will say viewing vbjokes with a link to the jokes. some template changes too where it only showed the newest jokes it now shows newest top hit and top rated jokes at the bottom of every page. Install notes Installation 1. Upload files as-is to board but not the product-vbjokes.xml file. 2. Log into admincp, Goto Plugin System then manage pruducts click [Add/Import Product] then inport the product-vbjokes.xml file. 3. navigate back into admincp, (might need a refresh to get nav options) 4. click vbjokes, then vbjokes settings, activate vbjokes 5. Edit navbar in navigation / breadcrumb templates ************************************************** ************ Find ************************************************** ************ <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td> ************************************************** ************ Add under ************************************************** ************ <td class="vbmenu_control"><a href="vbjokes.php">VBjokes</a></td> ************************************************** ************ 6. login to admincp goto Plugin System Manage Products [Add/Import Product] EITHER upload the XML file from your computer product-vbjokes-upgrade.xml Allow Overwrite yes click inport 7. All done enjoy your vbjokes hack. Please donate to my work Click Here |
Just install verynice. Great job m8!..
Keeping them coming.! :) :banana: |
your welcome m8
|
getting an error when i try to activate the vb jokes in the admin cp.
"could not find phrase vbjokes_cp_redirect" any ideas?? installed as instructed the vbjokes show up when u click in the navbar tho??? also, it says the phrase is missing when u add a category?????? yet the category gets added?? WEIRD!! EDIT..*YAWN* MYSQL DB ERROR when adding a joke..... Quote:
that might explain why it aint working...:( |
Quote:
So there is nothing to worry about |
there is mate, i cant add jokes
i get a database error?? |
cab you post the database error and i will tell you why.
|
Quote:
there's needs to be changed to there''s This might be why you are getting a error you have to put 2 of ( ' ) in |
Wow this one looks awesome !!!
|
Quote:
|
Oh, that's just excellent! There's on thing stopping me using it though....no ability to rate jokes?
|
U will get the a error when u aprove the joke when u have one of these in a joke. ' or " one of things i figure out so far.. I just removed them and NO more errror. ONly time i got a error.. the missing Phrases dont bug me too much :)!
|
altho its a top hack, big up to ya for that, its a bit of a pain not having any quote marks in jokes aint it????
|
this is the same joke you have posted but look at it closly.
Dear God: Why do humans smell the flowers, but seldom, if ever, smell one another? Dear God: When we get to heaven, can we sit on your couch? Or is it still the same old story? Dear God: Why are there cars named after the jaguar, the cougar, the mustang, the colt, the stingray, and the rabbit, but not ONE named for a dog? How often do you see a cougar riding around? We do love a nice ride! Would it be so hard to rename the "Chrysler Eagle" the "Chrysler Beagle"? Dear God: If a dog barks his head off in the forest and no human hears him, is he still a bad dog? Dear God: We dogs can understand human verbal instructions, hand signals, whistles, horns, clickers, beepers, scent IDs, electromagnetic energy fields, and Frisbee flight paths. What do humans understand? Dear God: More meatballs and less spaghetti, please. Dear God: Are there mailmen in Heaven? If there are, will I have to apologize? Dear God: Let me give you a list of just some of the things I must remember to be a good dog. 1. I will not eat the cats food before they eat it or after they throw it up. 2. I will not roll on dead seagulls, fish, crabs, etc., just because I like the way they smell. 3. I will not munch on "leftovers" in the kitty litter box, although they are tasty. 4. The diaper pail is not a cookie jar. 5. The sofa is not a face towel. Neither are Mom and Dad''s laps. 6. The garbage collector is not stealing our stuff. 7. My head does not belong in the refrigerator. 8. I will not bite the officer''s hand when he reaches in for Mom''s driver''s license and registration. 9. I will not play tug-of-war with Dads underwear when hes on the toilet. 10. Sticking my nose into someones crotch is an unacceptable way of saying hello. 11. I dont need to suddenly stand straight up when Im under the coffee table. 12. I must shake the rainwater out of my fur before entering the house -- not after. 13. I will not throw up in the car. 14. I will not come in from outside and immediately drag my butt. 15. I will not sit in the middle of the living room and lick my crotch when we have company. 16. The cat is not a squeaky toy -- so when I play with him and he makes that noise, its usually not a good thing. And, finally, My last two questions... Dear God: Why do humans only have 10 Commandments and dogs have 16? Try adding this joke now and it will work |
Quote:
you will see in the joke i have just put up |
look at this
8. I will not bite the officer''s hand when he reaches in for Mom''s driver''s license and registration. you will see its got 2 quote marks not the one you put in When this has been added to your database it will only show one when your members view the joke so that line will look like this to your users 8. I will not bite the officer's hand when he reaches in for Mom's driver's license and registration. you see what i mean |
Quote:
|
worked fine using that method mate...
|
Quote:
When on the add a joke screen it does tell you about that and how to put a joke in. Sorry if i did not make it clear on that screen. |
what a great hack for the vbulletin .... i was searching on it all the time....
thanks for sharing it ... |
Quote:
Your very welcome glad it can be of use to you all. |
Isn't there a way to change that to html marks like the & or whatever that the database uses for apostrophes?
Ideas for future versions - Usergroup permissions to view jokes. |
hey you can use this i dunno how but maybe some code in the vbjokes.php file that finds all
Code:
' Code:
´ |
So does this allow HTML?
I see abuse possibilities. |
Quote:
All jokes have to be approved be for any joke is viewable by the members. The joke is only inputted as text to the database. So you are limited on the tags you can use. |
Quote:
|
Hi all i have found a fix for the inputting of a joke.
Find this in vbjokes.php PHP Code:
PHP Code:
I will upload the fixed files in about 10 mins |
fixed files uploaded
|
I would have used the addslashes function myself.
Also what are you doing with this lol. Code:
$areyouamember = $db->query("SELECT userid FROM " . TABLE_PREFIX . "user WHERE userid = '" . $userid . "'"); Looks to me like its some kind of reminents of the league hack. Also this allows users to add jokes and then admin approval. Only problem is it looks to me like you let them use html which is a bad thing. I also am not seeing any data validation here. Meaning I could easily take over any site using this hack. Please use data validation. If you need help with it please contact me. This hack has potential but it needs work. Please contact me so I can help you get this all cleaned up. ;) |
its checking to see if the user is logged in / registered :P
|
Quote:
So we could use Code:
if(!$vbulletin->userinfo['userid']) |
huh well then i dunno (is a programming noob)
|
dude, i really love it,,,,thx soo much
|
This looks awesome.
HOTM! |
Oh wait....does moderation of jokes HAVE to be enabled?
|
there is probably a way to bypass it, ill make it a setting tomorrow.
|
Quote:
I talked with the creator. We are planning to spend some time any redo this hack and get it all cleaned up. ;) Fixing the html problem plus adding in security checks and cleaning it up and adding more to it. ;) |
we will be adding alot more to this and like eXtremeTim said he is going to help me work on this and make it a lot better.
So watch this space for new updates. eXtremeTim its very nice of you to help as i do need it to better understand the coding involved in vb. With the info he will be teaching me we weill come out with better hacks for you to use. Many thanks eXtremeTim |
No problem. :)
|
I love this hack i gotta give it up to you!
now 2 things when i add a joke do i HAVE to put <br> for it to appear normaly? lemme show u a screen shot and 2. i still get a database error when i have " or ' how can i fix that? Thanks in advance! |
All times are GMT. The time now is 08:04 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|