vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Vbjokes (https://vborg.vbsupport.ru/showthread.php?t=98248)

Madmp3zz 10-30-2005 10:32 PM

Quote:

Originally Posted by micheal332001
Hi there m8

Im working on that now and hope to have a fix soon


BTW...
Have you thought about a STAR rating system that is listed between the joke ID and the joke name when listing the jokes..
And also have the rating system not allow the user to vote more than once on the same joke.

Doing a great job bro !!

Bounce 10-30-2005 11:28 PM

Quote:

Originally Posted by micheal332001
Only click the yes box if its a upgrade if its a new install you dont click it

DB error when set to no

HTML Code:

Invalid SQL:
ALTER TABLE vbjokes_jokes ADD rating float(10,2) default '0.00' NOT NULL;

MySQL Error  : Table 'mydbr_vb.vbjokes_jokes' doesn't exist
Error Number : 1146




clicked yes and it installed , well never coz getting Invalid SQL:
HTML Code:

SELECT * FROM vbjokes_settins;

MySQL Error  : Table 'mydb_vb.vbjokes_settins' doesn't exist
Error Number : 1146

db error on /vbjokes.php

tortoise 10-31-2005 03:27 AM

Quote:

Originally Posted by hIBEES
DB error when set to no

HTML Code:

Invalid SQL:
ALTER TABLE vbjokes_jokes ADD rating float(10,2) default '0.00' NOT NULL;

MySQL Error  : Table 'mydbr_vb.vbjokes_jokes' doesn't exist
Error Number : 1146




clicked yes and it installed , well never coz getting Invalid SQL:
HTML Code:

SELECT * FROM vbjokes_settins;

MySQL Error  : Table 'mydb_vb.vbjokes_settins' doesn't exist
Error Number : 1146

db error on /vbjokes.php


thats the same problem i had...exactly and i havent found out what was wrong yet :(

micheal332001 10-31-2005 06:58 AM

Quote:

Originally Posted by tortoise
thats the same problem i had...exactly and i havent found out what was wrong yet :(

I have updated the products-vbjokes.xml file as there was a error in there.
This can only be installed as a new install.
So if you want to upgrade to this version you will need to remove the old version and reinstall vbjokes.
This means if you have jokes already there you will lose them sorry for this but im working on a fix to this and some other things too.

micheal332001 10-31-2005 07:51 AM

Quote:

Originally Posted by Madmp3zz
BTW...
Have you thought about a STAR rating system that is listed between the joke ID and the joke name when listing the jokes..
And also have the rating system not allow the user to vote more than once on the same joke.

Doing a great job bro !!

Fixed the quote's that was being put in when adding a joke.
Also added a stars raking insted of just the numbers.

This will have to be installed as a new install not a upgrade.

Bounce 10-31-2005 10:42 AM

Quote:

Originally Posted by micheal332001
I have updated the products-vbjokes.xml file as there was a error in there.
This can only be installed as a new install.
So if you want to upgrade to this version you will need to remove the old version and reinstall vbjokes.
This means if you have jokes already there you will lose them sorry for this but im working on a fix to this and some other things too.

thank you,working now

[high]* Bounce clicks install :nervous:
[/high]

tortoise uninstall the version you had and install the new one,it then adds the tables :)

micheal332001 10-31-2005 10:51 AM

Quote:

Originally Posted by hIBEES
thank you,working now

[high]* hIBEES clicks install :nervous:
[/high]

tortoise uninstall the version you had and install the new one,it then adds the tables :)

Glad its all working for you now :rolleyes: :banana: :cool:

Madmp3zz 10-31-2005 01:32 PM

So the new install removes the quotation marks all together now?

I had added the rating system from earlier.

Do I need to remove any templates or the rating system I added earlier.
The ratings is still coming up as the number system and I can still vote more than once.

micheal332001 10-31-2005 03:53 PM

Quote:

Originally Posted by Madmp3zz
So the new install removes the quotation marks all together now?

I had added the rating system from earlier.

Do I need to remove any templates or the rating system I added earlier.
The ratings is still coming up as the number system and I can still vote more than once.

Sorry m8 you will have to uninstall the vbjokes all together and reinstall.
Then you will have all the updates in this version.
You will not need to put any templates in as the install file for this new version will do it all for you.

DS MrSinister 10-31-2005 06:05 PM

How can I add Top Viewed Jokes and Top Rated Jokes to the main template?

micheal332001 10-31-2005 06:29 PM

Quote:

Originally Posted by DS MrSinister
How can I add Top Viewed Jokes and Top Rated Jokes to the main template?

Hiya m8

Im working on that now and will have a how to ready tomoz for this

DS MrSinister 10-31-2005 08:15 PM

Quote:

Originally Posted by micheal332001
Hiya m8

Im working on that now and will have a how to ready tomoz for this

sweet thxs m8!

micheal332001 10-31-2005 08:36 PM

you want some thing like this added to it.

tortoise 11-01-2005 02:54 AM

Quote:

Originally Posted by hIBEES
thank you,working now

[high]* hIBEES clicks install :nervous:
[/high]

tortoise uninstall the version you had and install the new one,it then adds the tables :)


Quote:

Originally Posted by micheal332001
I have updated the products-vbjokes.xml file as there was a error in there.
This can only be installed as a new install.
So if you want to upgrade to this version you will need to remove the old version and reinstall vbjokes.
This means if you have jokes already there you will lose them sorry for this but im working on a fix to this and some other things too.


works now *clicks install* thanks for the help :)

DS MrSinister 11-01-2005 03:24 AM

Quote:

Originally Posted by micheal332001
you want some thing like this added to it.


yes sir.. i saw that on your site and thiought it was in this update lmao..

Madmp3zz 11-01-2005 11:44 AM

Quote:

Originally Posted by micheal332001
you want some thing like this added to it.

Thats another great addition..

Luv it,

Gizmo5h1t3 11-01-2005 03:23 PM

christ, how many more updates?...lmao.

wouldnt mind, but im losing all the jokes ppl put in, with every update?!?!?

DS MrSinister 11-01-2005 04:15 PM

Quote:

Originally Posted by Gizmo5h1t3
christ, how many more updates?...lmao.

wouldnt mind, but im losing all the jokes ppl put in, with every update?!?!?


thats odd i never lost one yet with all these updates.

micheal332001 11-01-2005 05:32 PM

the updata.xml is a new update script and you should not lose any thing now

mfizzel 11-01-2005 05:42 PM

I've installed it and activated but when I goto vbjokes.php I get this error:

Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT * FROM vb3_vbjokes_jokes WHERE aprove=1 ORDER BY rating/numberOfVotes DESC LIMIT 0 , 3;

MySQL Error : Unknown column 'rating' in 'order clause'
Error Number : 1054

Gizmo5h1t3 11-01-2005 08:13 PM

Quote:

Originally Posted by DS MrSinister
thats odd i never lost one yet with all these updates.

Quote:

Originally Posted by micheal332001
I have updated the products-vbjokes.xml file as there was a error in there.
This can only be installed as a new install.
So if you want to upgrade to this version you will need to remove the old version and reinstall vbjokes.
This means if you have jokes already there you will lose them sorry for this but im working on a fix to this and some other things too.
well i lost mine...and wait for it...THERS ANOTHER UPDATE TODAY?!?!?!?

micheal332001 11-01-2005 09:34 PM

Quote:

Originally Posted by mfizzel
I've installed it and activated but when I goto vbjokes.php I get this error:

If you read up top and look at the install notes it will tell you how to install vbjokes with out any problems.

micheal332001 11-01-2005 09:35 PM

im working on putting user group promissions in so you can stop unwanted people adding new jokes.
This will not be a upgrade just upload a new file and replace a file.

mfizzel 11-01-2005 10:11 PM

Quote:

Originally Posted by micheal332001
If you read up top and look at the install notes it will tell you how to install vbjokes with out any problems.

Ah, I see...I thought step #6 was only for upgrading from a previous version and since this was my first install of it I didn't import the ugprade...anyway, it's working now, thanks for your help :)

Madmp3zz 11-01-2005 11:21 PM

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:
ALTER TABLE vbjokes_jokes ADD rating float(10,2) default '0.00' NOT NULL;

MySQL Error  : Duplicate column name 'rating'
Error Number : 1060

I did all the steps including step 6......
Still getting this error..

What to do, what to do......

mfizzel 11-02-2005 12:35 AM

micheal, how can I remove the 'vbjokes main' box with the simpsons animation? I couldn't find the code...

mfizzel 11-02-2005 02:32 AM

nevermind, I emptied the jokes_home template and that did the trick

micheal332001 11-02-2005 11:50 AM

Quote:

Originally Posted by Madmp3zz
Code:

Database error in vBulletin 3.5.0:
 
Invalid SQL:
ALTER TABLE vbjokes_jokes ADD rating float(10,2) default '0.00' NOT NULL;
 
MySQL Error : Duplicate column name 'rating'
Error Number : 1060

I did all the steps including step 6......
Still getting this error..

What to do, what to do......

If you have these installed already you dont need to use the upgrade script.
But if you look in the upgrade script you will need to change 2 templates to get the pages to look like what i have.

The templates to look for are jokes

jokes_view_joke update this one
JOKES update this one

see if you have these 2 templates installed

jokes_toprating_jokes
jokes_top_jokes

If they are not in your templates look in the upgrade.xml file for these and add them to your templates like so

add new template
Product ---- vbjokes
Title ------- the one you are adding
enter the html code
save

If you want me to put the code up i will do so

mfizzel 11-02-2005 01:56 PM

The templates aren't getting cached for me : Uncached templates: jokes_top_jokes (3)
Uncached templates: jokes_toprating_jokes (3)

btw, we really need the quotation fix, 98% of my jokes have quotations and it can be confusing with them missing.

micheal332001 11-02-2005 04:51 PM

Quote:

Originally Posted by mfizzel
The templates aren't getting cached for me : Uncached templates: jokes_top_jokes (3)
Uncached templates: jokes_toprating_jokes (3)


btw, we really need the quotation fix, 98% of my jokes have quotations and it can be confusing with them missing.

Hi there m8

To fix this you need to edit the vbjokes.php file

find
PHP Code:

 'jokes_view_jokesinthiscat',
 
'jokes_categorys',
 
'jokes_categorys_bit',
 
'jokes_home' 

replace with
PHP Code:

'jokes_view_jokesinthiscat',
 
'jokes_categorys',
 
'jokes_categorys_bit',
 
'jokes_home',
 
'jokes_toprating_jokes',
 
'jokes_top_jokes' 

That will fix that problem

micheal332001 11-02-2005 04:52 PM

Quote:

Originally Posted by mfizzel
btw, we really need the quotation fix, 98% of my jokes have quotations and it can be confusing with them missing.

I have fixed the quotes out but it will only work on new jokes that are added.
You will have to go and edit the old jokes you have and take them out.

mfizzel 11-02-2005 05:43 PM

Thanks for the fix for the uncached templates!

About the quotations, I don't mind adding the jokes again, when do you plan on releasing the fix?

Also, I changed the name of the script to 'jokes' from 'vbjokes' , but then these functions don't work : Jokes Main | Categories | Search Joke | Add A Joke , because it still calls 'vbjokes.....' and doesn't update the name of the script.

Great support Micheal, thanks for the help!

mfizzel 11-02-2005 07:02 PM

1 more issue I've come across, when you turn the jokes system off and click the jokes link it just reloads the index instead of taking you to an offline message.

micheal332001 11-03-2005 07:23 AM

Quote:

Originally Posted by mfizzel
1 more issue I've come across, when you turn the jokes system off and click the jokes link it just reloads the index instead of taking you to an offline message.

Ill look into that m8

Madmp3zz 11-03-2005 12:23 PM

A Few issues...

1. How can I l set the jokes to be alligned to the left instead of centered...
They get all jumbled when they are centerd, and looks awful..

2. When someone links an image, the image gets all streched out, can U make it viewable as the original size..

3. and....

Quote:

Originally Posted by micheal332001
As for your members still getting the



Your joke has beed added to the database and is waiting to be approved!

Needs to be changed in the template called

jokes_madeconfirm

And find

PHP Code:

 Your joke has beed added to the database and is waiting to be approved

Replace it with what you want init


Since I did the update there is no
PHP Code:

 Your joke has beed added to the database and is waiting to be approved

in the template anymore.
How do I change it now?

micheal332001 11-03-2005 05:33 PM

Quote:

Originally Posted by Madmp3zz
A Few issues...

1. How can I l set the jokes to be alligned to the left instead of centered...
They get all jumbled when they are centerd, and looks awful..

2. When someone links an image, the image gets all streched out, can U make it viewable as the original size..

3. and....




Since I did the update there is no
PHP Code:

 Your joke has beed added to the database and is waiting to be approved

in the template anymore.
How do I change it now?

All the text is in the phrases now so you need to look there.
Goto your phases and do a search for vbjokes that will list all the vbjokes phrases.
Then edit the one you want to change

Extreme John 11-03-2005 11:39 PM

Just installed, install went nice and easy but Im getting the following error message when I click VbJokes from the Navbar.

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT * FROM vbjokes_jokes WHERE aprove=1 ORDER BY rating/numberOfVotes DESC LIMIT 0 , 3;

MySQL Error : Unknown column 'rating' in 'order clause'
Error Number : 1054
Date : Thursday, November 3rd 2005 @ 08:36:24 PM
Script : http://www.thetanforum.com/vbjokes.php
Referrer : http://www.thetanforum.com/forumdisplay.php?f=3
IP Address : 65.32.128.150
Username : Extreme John
Classname : vb_database

ronoxQ 11-04-2005 07:24 PM

Do you have a version for 3.0? Inquiring minds want to know...

micheal332001 11-04-2005 09:57 PM

Quote:

Originally Posted by Extreme John
Just installed, install went nice and easy but Im getting the following error message when I click VbJokes from the Navbar.

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT * FROM vbjokes_jokes WHERE aprove=1 ORDER BY rating/numberOfVotes DESC LIMIT 0 , 3;

MySQL Error : Unknown column 'rating' in 'order clause'
Error Number : 1054
Date : Thursday, November 3rd 2005 @ 08:36:24 PM
Script : http://www.thetanforum.com/vbjokes.php
Referrer : http://www.thetanforum.com/forumdisplay.php?f=3
IP Address : 65.32.128.150
Username : Extreme John
Classname : vb_database

Hi there m8

Have you run the upgrade.xml file as well like this

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

micheal332001 11-04-2005 09:58 PM

Quote:

Originally Posted by ronoxQ
Do you have a version for 3.0? Inquiring minds want to know...

There is a version for vb 3.0.7 i have not tryed it on older versions


All times are GMT. The time now is 10:38 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.01559 seconds
  • Memory Usage 1,859KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (5)bbcode_php_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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