vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - [AJAX]Did you know ...? (Tip Management) (https://vborg.vbsupport.ru/showthread.php?t=146765)

MThornback 05-10-2007 02:11 AM

are_you_sure_to_hide_tip

has a spelling mistake...should be:

Are you sure to want to hide the Tip-Box?

Surviver 05-10-2007 03:30 AM

Quote:

Originally Posted by MThornback (Post 1244739)
are_you_sure_to_hide_tip

has a spelling mistake...should be:

Are you sure to want to hide the Tip-Box?

I will correct it - Sorry, my english is very bad ;)

dizzy100 05-10-2007 06:48 AM

Your english is excellent, you should see my Danish, it consists of JA and erm, well thats it actually :)

BadgerDog 05-10-2007 02:17 PM

I notice that the version posted for download is 1 0 0 A 5.zip, however the version listed in the post as the most current is 1 0 0 A 6.zip (Condition for Usergroups) ?

I downloaded the 1 0 0 A 5.zip and there seems to be two complete sets of files?

Thanks

Regards,
Badger

Surviver 05-10-2007 02:43 PM

The A 6 is not yet released ;)

Quantnet 05-10-2007 03:00 PM

Quote:

Originally Posted by MThornback (Post 1244739)
Are you sure to want to hide the Tip-Box?

still sounds a bit ... :)

Should be " Are you sure you want to hide the Tip-Box ?"

Surviver 05-10-2007 03:23 PM

Quote:

Originally Posted by Quantnet.org (Post 1245006)
still sounds a bit ... :)

Should be " Are you sure you want to hide the Tip-Box ?"

Tganks - changed ;)

dooch 05-10-2007 04:42 PM

Very good, I like it!

I've change the tip icon though as your one doesnt look so sexy on dark backgrounds. Try this one ppl for dark templates.

Many thanks, installed.

InTeNsE-HuMoR 05-10-2007 04:44 PM

Is there a way to edit the tips using vbulletin's wysiwyg editor? It would save alot of time for those who aren't coders. Like adding links, changing the font, sizes, adding images to the tips would take ages for me to do since i'm not a coder. Is it possible to include a way to edit the tips using vbuleltin's editor?

Surviver 05-10-2007 05:24 PM

Quote:

Originally Posted by InTeNsE-HuMoR (Post 1245038)
Is there a way to edit the tips using vbulletin's wysiwyg editor? It would save alot of time for those who aren't coders. Like adding links, changing the font, sizes, adding images to the tips would take ages for me to do since i'm not a coder. Is it possible to include a way to edit the tips using vbuleltin's editor?

No, this is not able.

Reasons:
- The Editor doesen't work in the ACP (Hardcodet Path in the JS Files).
- The Tip-System works with HTML-Code - not bbCode ;)

Greetings Surviver

InTeNsE-HuMoR 05-10-2007 05:35 PM

Well, looks like i'll do it the slow way then :)

Surviver 05-10-2007 05:43 PM

*** Update ***

tschai 05-10-2007 07:13 PM

Is it possible to show these tips in my signature?
I've tried to show it by using $GLOBALS[tip] without any success...

Woul realy love that...
Any...tips? :)

wolfe 05-10-2007 07:43 PM

the hacks not showing nothing under the navbar also i get this error on the options page

Quote:


Warning: Wrong parameter count for min() in /includes/functions_tip.php on line 127

Warning: Wrong parameter count for min() in /includes/functions_tip.php on line 127

Surviver 05-11-2007 03:41 AM

Quote:

Originally Posted by Renes4 (Post 1245140)
Is it possible to show these tips in my signature?
I've tried to show it by using $GLOBALS[tip] without any success...

Woul realy love that...
Any...tips? :)

No, this is not able ;)

Quote:

Originally Posted by wolfe (Post 1245161)
the hacks not showing nothing under the navbar also i get this error on the options page

Open functions_tip.php, search:

PHP Code:

return min($minposts); 

Replace with

PHP Code:

return (sizeof($minposts) ? min($minposts) : 0); 

Or go to the Hackoptions and Set "Enable minimal posts to hide Tip-Box" to No.

Will be fixed in thenext Realease.

Greetings Surviver

Surviver 05-12-2007 05:20 AM

Quote:

Originally Posted by wolfe (Post 1245161)
the hacks not showing nothing under the navbar also i get this error on the options page

Update - this bug is fixed in the Release

imported_predatorkill 05-12-2007 09:11 AM

Excellent hack, great job Surviver!!!

How can i disable it from showing up on my forumhome? I have shoutbox and it looks really bad up there!

Thanks!

Surviver 05-12-2007 09:19 AM

ACP -> vBulletin Options -> vBulletin Options -> Did you know ...? -> Excluded Scripts -> Enter "index".

imported_predatorkill 05-12-2007 10:39 AM

Thanks Surviver!!

TWTCommish 05-12-2007 05:30 PM

Hm, I've installed this (just downloaded 10 minutes ago, so I should be using the newest release), but the tips won't display. The admin side of thing seems to work fine, but $GLOBALS[tip] doesn't produce anything. Am I overlooking something obvious?

Surviver 05-12-2007 07:32 PM

Quote:

Originally Posted by TWTCommish (Post 1246349)
Hm, I've installed this (just downloaded 10 minutes ago, so I should be using the newest release), but the tips won't display. The admin side of thing seems to work fine, but $GLOBALS[tip] doesn't produce anything. Am I overlooking something obvious?

Did you set the Usergroup Permissions?

TWTCommish 05-12-2007 07:49 PM

Hmm, no, I hadn't. I didn't see any mention of it when installing, or when reading the readme, so I didn't realize usergroup permissions were involved.

That certainly fixes the problem, though. Thanks very much! Great hack. I plan to use it for scrolling site updates and news and such, rather than tips. Seems like it could be used for almost anything. :)

TWTCommish 05-12-2007 08:03 PM

Odd: the tips are showing up, but they appear even if I don't add $GLOBALS[tip] to my navbar. What's more, they show up in the middle of the navbar template. Is the hack somehow inserting the variable itself, without the template edit?

Surviver 05-13-2007 03:44 AM

Quote:

Originally Posted by TWTCommish (Post 1246424)
Odd: the tips are showing up, but they appear even if I don't add $GLOBALS[tip] to my navbar. What's more, they show up in the middle of the navbar template. Is the hack somehow inserting the variable itself, without the template edit?


Yes, the Templateedits are Done automaticaly. Go to the Hackoptions and Disable the Setting "Enable "Automatic Templateedits"".

Greetings Surviver

Twinkie 05-13-2007 04:15 AM

Thanks! This is a wonderful code mod. =)

I'm using it for the Hope for Another Day Foundation forum. We're using it differently, not tips, but we are using the Did you know...? header to our advantage with excerts like:

Every minute that ticks by...another life is lost in Darfur, due to a genocide, a genocide that major countries have been ignorant of, and organizations refuse to help.

Every 41 minutes, a wish for a terminally ill child is granted by the Make-A-Wish Foundation. A total of 149,179 wishes have been granted. Truly yours, Nicholas Burrus, Head Chairholder is one of them.

Thanks again!

TWTCommish 05-13-2007 06:44 PM

Quote:

Originally Posted by Surviver (Post 1246616)
Yes, the Templateedits are Done automaticaly. Go to the Hackoptions and Disable the Setting "Enable "Automatic Templateedits"".

Greetings Surviver

That did it. Thanks very much for the support. :) Fantastic hack, with a wide variety of uses.

Quantnet 05-14-2007 11:44 PM

Installed. Use manual template edit. Setup usergroup but nothing shows up.

Where do I add more tips ?

Surviver 05-15-2007 03:26 AM

In the ACP Menu you will finde an new entrie, Tips. Click on Manage Tips -> New Tip ;)

Greetings Surviver

Quantnet 05-15-2007 05:05 AM

Quote:

Originally Posted by Surviver (Post 1247820)
In the ACP Menu you will finde an new entrie, Tips. Click on Manage Tips -> New Tip ;)

Greetings Surviver

Ahh...thanks

How do I change the background color of the tip box or some other color css. I think you should make it configurable in ACP for the font size, type, color, etc

Surviver 05-15-2007 03:19 PM

Quote:

Originally Posted by Quantnet.org (Post 1247850)
Ahh...thanks

How do I change the background color of the tip box or some other color css. I think you should make it configurable in ACP for the font size, type, color, etc


I'LL not add norma?l Options - if i would do so, you could not set the Color for each Style. Please edit the Template tip.

Greetings Surviver

SnickersTK 05-17-2007 07:37 PM

I am getting this error when trying to add the plugin:

Code:

Database error in vBulletin 3.5.3:

Invalid SQL:

                                INSERT INTO productcode
                                        (productid, version, installcode, uninstallcode)
                                VALUES
                                        ('tip',
                                        '*',
                                        'if ($vbulletin->products[\'tms\'])\r\n{\r\n        require_once(DIR . \'/includes/adminfunctions_templateedits.php\');\r\n        install_templateedits($info, $arr, $active);\r\n}',
                                        'if ($vbulletin->products[\'tms\'])\r\n{\r\n        require_once(DIR . \'/includes/adminfunctions_templateedits.php\');\r\n        uninstall_templateedits($vbulletin->GPC[\'productid\']);\r\n}');

MySQL Error  : Duplicate entry '0' for key 1
Error Number : 1062
Date        : Thursday, May 17th 2007 @ 03:35:49 PM
Script      : http://*/forum/admincp/plugin.php
Referrer    : http://*/forum/admincp/plugin.php?do=productadd
IP Address  : *
Username    : TK
Classname    : vb_database


Surviver 05-18-2007 03:29 AM

Quote:

Originally Posted by SnickersTK (Post 1249690)
I am getting this error when trying to add the plugin:

Code:

Database error in vBulletin 3.5.3:

Invalid SQL:

                                INSERT INTO productcode
                                        (productid, version, installcode, uninstallcode)
                                VALUES
                                        ('tip',
                                        '*',
                                        'if ($vbulletin->products[\'tms\'])\r\n{\r\n        require_once(DIR . \'/includes/adminfunctions_templateedits.php\');\r\n        install_templateedits($info, $arr, $active);\r\n}',
                                        'if ($vbulletin->products[\'tms\'])\r\n{\r\n        require_once(DIR . \'/includes/adminfunctions_templateedits.php\');\r\n        uninstall_templateedits($vbulletin->GPC[\'productid\']);\r\n}');

MySQL Error  : Duplicate entry '0' for key 1
Error Number : 1062
Date        : Thursday, May 17th 2007 @ 03:35:49 PM
Script      : http://*/forum/admincp/plugin.php
Referrer    : http://*/forum/admincp/plugin.php?do=productadd
IP Address  : *
Username    : TK
Classname    : vb_database


Seems to be a problem of your prodcucode table ...

SnickersTK 05-18-2007 09:00 PM

It took me a while, but I figured it out myself..

Now, when I try adding a tip, it gives me this error:

Quote:

Database error in vBulletin 3.5.3:

Invalid SQL:

REPLACE INTO phrase
(languageid, varname, text, fieldname, product, username, dateline)
VALUES
(-1,
'tip_4',
'test',
'tips',
'tip',
'TK',
'1179525536');

MySQL Error : Unknown column 'fieldname' in 'field list'
Error Number : 1054
Date : Friday, May 18th 2007 @ 04:58:56 PM
Oh and when adding a tip, why does it ask for a US translation too? :confused::confused::confused:

Surviver 05-19-2007 07:58 AM

Quote:

Originally Posted by SnickersTK (Post 1250447)
It took me a while, but I figured it out myself..

Now, when I try adding a tip, it gives me this error:



Oh and when adding a tip, why does it ask for a US translation too? :confused::confused::confused:

It seems that this hack si not compatible to vBulletin 3.5.x ;)

CoolSwede 05-19-2007 05:11 PM

hi,
thanks for this nice mod.

are there any formatting options for the tips?

Surviver 05-19-2007 06:23 PM

Quote:

Originally Posted by CoolSwede (Post 1250900)
hi,
thanks for this nice mod.

are there any formatting options for the tips?

You can use HTML.

SnickersTK 05-19-2007 09:05 PM

Awwwww :( But I love this hack soo much.

I can not upgrade because I'll loose too many precious hacks that has not been made compitable with the newer version.

Any way I can convince you to make a compitable version for 3.5.x??? pwease?

Surviver 05-20-2007 04:37 AM

Quote:

Originally Posted by SnickersTK (Post 1251003)
Awwwww :( But I love this hack soo much.

I can not upgrade because I'll loose too many precious hacks that has not been made compitable with the newer version.

Any way I can convince you to make a compitable version for 3.5.x??? pwease?

Not at the Moment ... Mayb elater ;)

Panagioths 05-20-2007 02:43 PM

Is there a possibility to integrate this in a vbadvanced box?

Surviver 05-20-2007 06:22 PM

Quote:

Originally Posted by Panagioths (Post 1251445)
Is there a possibility to integrate this in a vbadvanced box?

This owuld be able, but why? Ist is a box, i think an integration in vBA is not necessary ;)


All times are GMT. The time now is 01:58 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
  • Page Generation 0.02726 seconds
  • Memory Usage 1,838KB
  • 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
  • (2)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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