PDA

View Full Version : Major Additions - [AJAX]Did you know ...? (Tip Management)


Surviver
05-07-2007, 10:00 PM
~ Ajax Tip Management ~


What ist this?

This Hack adds a tip management to your forum. Administrators can add tips, which will be displayed on each page of the forum. Using ajax your members will be able to scroll through tips and hide the tip box.

Installation

Please read the readme.txt

Misc

Screenshots are attached as well.
I will try to give support, but sorry, if i don't reply ;)
A demo is aviable here (http://team.spec-f.org/?langid=2)!
A german Version is aviable here (http://www.my-vb.de/board/hacks-addons-fuer-vbulletin-3-6-x/606-wussten-schon.html)

Support

Show supporting the Hack in klicking install or make a small donation :)

Greetings Surviver

Surviver
05-08-2007, 06:38 PM
Feature Requests


If the last tip is shown up and you click on next, you should jump to the first tip rather a errormessage is shown up. (Added in v1.0.0 A 4)
Auto Template Edit (Added in v1.0.0 A 4)
Welcomeheaders Integration (Added in v1.0.0 A 5)
Deavtivate for Forums (Added in v1.0.0 A 5)
Condition for Posts (Added in v1.0.0 A 5)
Condition for Usergroups (Added in v1.0.0 A 6)

zhabbo
05-08-2007, 06:41 PM
looks fantastic, will try later

you should make it so when last tip is up it goes back to first as the error is annoying

bitdefuser
05-08-2007, 07:37 PM
This should've came with preloaded tips though. :p Like tips for Vbulletin use.

ZomgStuff
05-08-2007, 07:37 PM
Great idea.

Razin
05-08-2007, 07:42 PM
yes, Great idea

Philipaclayton
05-08-2007, 07:48 PM
agreed going to install in a bit :)

Harley77
05-08-2007, 08:14 PM
Fantastic. I was looking for exactly this very thing awhile back. (https://vborg.vbsupport.ru/showpost.php?p=1078418&postcount=5)

I will definitely be checking it out.

Thanks!

Kaleem
05-08-2007, 08:36 PM
And now someone should share tips to use vBulletin ;)

anyways Great Hack will see what we can do with it.

The template Modify options why don't it do it automatically so when we uninstall it we dont have to go back and do the changes again :S

akulion
05-08-2007, 09:14 PM
thanks really cool

InTeNsE-HuMoR
05-08-2007, 09:26 PM
Does this display tips randomly (automatically) or do users have to click next tip?

Edit:

What I mean is, when the user browses throught different threads, can the tip change radomly to a different tip for each page/thread the user is viewing without the user manually changing the tip by clicking the link.

Edit 2:

I can't get it to work.

navbar:

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

<if condition="$show['member']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
<if condition="$newpms"><br />$newpms</if>
</div>
</td>

<else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" nowrap="nowrap"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<td class="vbmenu_control"><a href="misc.php?do=cfrules">Site Rules</a></td>
<!-- v3 Arcade -->
<td class="vbmenu_control"><a href="arcade.php$session[sessionurl_q]">Arcade</a></td>
<!-- /v3 Arcade -->
<if condition="$show['member']">
<td id="usercpoptions" class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a>
<script type="text/javascript"> vbmenu_register("usercpoptions"); </script></td>
</if>
<!-- vBlogetin Edit -->
<if condition="$show['blogmenu']"><td id="blogmenu" class="vbmenu_control"><a href="$show[nojs_link]#blogmenu">$vbphrase[blog_blogging]</a> <script type="text/javascript"> vbmenu_register("blogmenu"); </script></td></if>
<!-- End vBlogetin Edit -->
<td class="vbmenu_control"><a href="http://www.intensehumour.com/gallery/index.php">User Galleries</a></td>

</tr>
</table>
</div>
<!-- / nav buttons bar -->
$GLOBALS[tip]
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border: 1px solid #2C2C2C;">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="menu_search_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="menu_quicklinks_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr>
<if condition="$show['member']">
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="psistats.php$session[sessionurl_q]">$vbphrase[psistats_link]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- vBlogetin Edit -->
<if condition="$show['blogmenu']">
<div class="vbmenu_popup" id="blogmenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[blog_blogging]</td></tr>

<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/$sIDq">$vbphrase[blog_blog_directory]</a></td></tr>

<if condition="$vboptions['blog_top_blogs_limit']">
<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/top.php?$session[sessionurl]do=topblogs">$vbphrase[blog_top_blogs]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/top.php?$session[sessionurl]do=topentries">$vbphrase[blog_top_entries]</a></td></tr>
</if>

<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/search.php$sIDq">$vbphrase[blog_search_blogs]</a></td></tr>

<!-- Blog Manager -->
<if condition="$show['member'] and $show['navbar_blogmanager']">
<tr><td class="thead"><a href="$vboptions[blog_url]/manage.php?$session[sessionurl]userid=$bbuserinfo[userid]">$vbphrase[blog_manager]</a></td></tr>
<if condition="$show['yourblog']"><tr><td class="vbmenu_option"><a href="$bbuserinfo[blogURL]">$vbphrase[blog_view_your_blog]</a></td></tr></if>
<if condition="$show['navbar_createentry']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/entry.php?$session[sessionurl]userid=$bbuserinfo[userid]">$vbphrase[blog_create_new_entry]</a></td></tr></if>
<if condition="$show['navbar_manageentries']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/entry.php?$session[sessionurl]do=entries&amp;userid=$bbuserinfo[userid]">$vbphrase[blog_manage_entries]</a></td></tr></if>
<if condition="$show['navbar_moderatecomments']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/comment.php?$session[sessionurl]do=moderate&amp;userid=$bbuserinfo[userid]">$vbphrase[blog_moderate_comments]</a></td></tr></if>

<if condition="$show['navbar_editblog']">
<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/manage.php?$session[sessionurl]do=settings&amp;userid=$bbuserinfo[userid]">$vbphrase[blog_modify_settings]</a></td></tr>
<if condition="$show['blogblocks']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/manage_blocks.php?$session[sessionurl]do=blocks&amp;userid=$bbuserinfo[userid]">$vbphrase[blog_manage_blocks]</a></td></tr></if>
</if>

<!-- Create Blog -->
<else />
<if condition="$show['navbar_createblog']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/manage.php?$session[sessionurl]do=setup">$vbphrase[blog_setup_your_blog]</a></td></tr></if>
</if>

</table>
</div>
</if>
<!-- End vBlogetin Edit -->
<if condition="$show['popups'] AND $show['member']">
<div class="vbmenu_popup" id="usercpoptions_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead" align="$stylevar[left]"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option" align="$stylevar[left]"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
<tr><td class="thead" align="$stylevar[left]">$vbphrase[miscellaneous]</td></tr>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
</table>
</div>
</if>

<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>


Website: www.intensehumour.com

Any support appreciated.

gg4gg
05-08-2007, 11:40 PM
Thanks for this hack
installed

Surviver
05-09-2007, 03:24 AM
The template Modify options why don't it do it automatically so when we uninstall it we dont have to go back and do the changes again :S

Maybe i'll integrate this ;) (If TMS is released i will use it ;))

Surviver
05-09-2007, 03:27 AM
Does this display tips randomly (automatically) or do users have to click next tip?

Edit:

What I mean is, when the user browses throught different threads, can the tip change radomly to a different tip for each page/thread the user is viewing without the user manually changing the tip by clicking the link.

Edit 2:

I can't get it to work.

navbar:

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

<if condition="$show['member']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
<if condition="$newpms"><br />$newpms</if>
</div>
</td>

<else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" nowrap="nowrap"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<td class="vbmenu_control"><a href="misc.php?do=cfrules">Site Rules</a></td>
<!-- v3 Arcade -->
<td class="vbmenu_control"><a href="arcade.php$session[sessionurl_q]">Arcade</a></td>
<!-- /v3 Arcade -->
<if condition="$show['member']">
<td id="usercpoptions" class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a>
<script type="text/javascript"> vbmenu_register("usercpoptions"); </script></td>
</if>
<!-- vBlogetin Edit -->
<if condition="$show['blogmenu']"><td id="blogmenu" class="vbmenu_control"><a href="$show[nojs_link]#blogmenu">$vbphrase[blog_blogging]</a> <script type="text/javascript"> vbmenu_register("blogmenu"); </script></td></if>
<!-- End vBlogetin Edit -->
<td class="vbmenu_control"><a href="http://www.intensehumour.com/gallery/index.php">User Galleries</a></td>

</tr>
</table>
</div>
<!-- / nav buttons bar -->
$GLOBALS[tip]
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border: 1px solid #2C2C2C;">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="menu_search_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="menu_quicklinks_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr>
<if condition="$show['member']">
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="psistats.php$session[sessionurl_q]">$vbphrase[psistats_link]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- vBlogetin Edit -->
<if condition="$show['blogmenu']">
<div class="vbmenu_popup" id="blogmenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[blog_blogging]</td></tr>

<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/$sIDq">$vbphrase[blog_blog_directory]</a></td></tr>

<if condition="$vboptions['blog_top_blogs_limit']">
<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/top.php?$session[sessionurl]do=topblogs">$vbphrase[blog_top_blogs]</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/top.php?$session[sessionurl]do=topentries">$vbphrase[blog_top_entries]</a></td></tr>
</if>

<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/search.php$sIDq">$vbphrase[blog_search_blogs]</a></td></tr>

<!-- Blog Manager -->
<if condition="$show['member'] and $show['navbar_blogmanager']">
<tr><td class="thead"><a href="$vboptions[blog_url]/manage.php?$session[sessionurl]userid=$bbuserinfo[userid]">$vbphrase[blog_manager]</a></td></tr>
<if condition="$show['yourblog']"><tr><td class="vbmenu_option"><a href="$bbuserinfo[blogURL]">$vbphrase[blog_view_your_blog]</a></td></tr></if>
<if condition="$show['navbar_createentry']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/entry.php?$session[sessionurl]userid=$bbuserinfo[userid]">$vbphrase[blog_create_new_entry]</a></td></tr></if>
<if condition="$show['navbar_manageentries']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/entry.php?$session[sessionurl]do=entries&amp;userid=$bbuserinfo[userid]">$vbphrase[blog_manage_entries]</a></td></tr></if>
<if condition="$show['navbar_moderatecomments']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/comment.php?$session[sessionurl]do=moderate&amp;userid=$bbuserinfo[userid]">$vbphrase[blog_moderate_comments]</a></td></tr></if>

<if condition="$show['navbar_editblog']">
<tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/manage.php?$session[sessionurl]do=settings&amp;userid=$bbuserinfo[userid]">$vbphrase[blog_modify_settings]</a></td></tr>
<if condition="$show['blogblocks']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/manage_blocks.php?$session[sessionurl]do=blocks&amp;userid=$bbuserinfo[userid]">$vbphrase[blog_manage_blocks]</a></td></tr></if>
</if>

<!-- Create Blog -->
<else />
<if condition="$show['navbar_createblog']"><tr><td class="vbmenu_option"><a href="$vboptions[blog_url]/manage.php?$session[sessionurl]do=setup">$vbphrase[blog_setup_your_blog]</a></td></tr></if>
</if>

</table>
</div>
</if>
<!-- End vBlogetin Edit -->
<if condition="$show['popups'] AND $show['member']">
<div class="vbmenu_popup" id="usercpoptions_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead" align="$stylevar[left]"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option" align="$stylevar[left]"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
<tr><td class="thead" align="$stylevar[left]">$vbphrase[miscellaneous]</td></tr>
<tr><td class="vbmenu_option" align="$stylevar[left]"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
</table>
</div>
</if>

<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>


Website: www.intensehumour.com

Any support appreciated.


Does this display tips randomly (automatically) or do users have to click next tip?

Edit:

What I mean is, when the user browses throught different threads, can the tip change radomly to a different tip for each page/thread the user is viewing without the user manually changing the tip by clicking the link.


On ech Page the user will get another tip displayed (random ;))


Edit 2:

I can't get it to work.

navbar:

Is the Box not shown zup? Or whats the problem? ;)

Greetings Surviver

projectego
05-09-2007, 09:46 AM
Very cool idea. I love it. ;)

Triky
05-09-2007, 10:06 AM
Installed. :)

DiSpy
05-09-2007, 11:09 AM
I would like to integrate this with the "welcome headers" hack. So that *after* a user has seen all the appropriate headers (by registering, and subscribing, etc) they get these tips instead.

I'll wok on this tonight and post what I did here, if I can get it working that is.

Thanks Surviver (https://vborg.vbsupport.ru/member.php?u=127997)!

Surviver
05-09-2007, 11:27 AM
I would like to integrate this with the "welcome headers" hack. So that *after* a user has seen all the appropriate headers (by registering, and subscribing, etc) they get these tips instead.

I'll wok on this tonight and post what I did here, if I can get it working that is.

Thanks Surviver (https://vborg.vbsupport.ru/member.php?u=127997)!

This is a nice Idea :) - If you dont get it work - i will try to integrate it ;)

beduino
05-09-2007, 11:37 AM
Hi Surviver,
tks for your work ... again!
Using vBCMS I need another routine of import/install?
All the best
Joao Barroca
beduino

Surviver
05-09-2007, 12:49 PM
Hi Surviver,
tks for your work ... again!
Using vBCMS I need another routine of import/install?
All the best
Joao Barroca
beduino

No, you neednt :) Just Import the Product via ACP ;)

Surviver
05-09-2007, 01:01 PM
*** Update ***

dizzy100
05-09-2007, 01:09 PM
This is a nice Idea :) - If you dont get it work - i will try to integrate it ;)

Now that would be awesome. I'll wait to see if this gets developed.

beduino
05-09-2007, 02:17 PM
Great news, Surviver :)
It's possible the readme of templates is in english too ?

Another ideias:
1. maybe the 'tips' can be show only in some forums [forumID x, y, z]
2. a option [following 1.] - show in forumhome [yes] [no]
3. a cron turn on/off - example: only on mondays turn ON. etc.

But thks to excelent work
All the best
Joao Barroca
aka beduino

InTeNsE-HuMoR
05-09-2007, 03:56 PM
Is the Box not shown zup? Or whats the problem? ;)

Greetings Surviver

The box wont show up. Any fix for this?

Calash
05-09-2007, 03:57 PM
Great mod....got it working real quick on all areas of my site (CMPS, eFiction, Forum,)

I think for the welcome header suggestion that could be integrated into a template edit

ie (and forgive me for being general here...I do not know the variables off the top of my head)

if (guest}
$welcome header
Else
$global[tips]

Just a thought...

MThornback
05-09-2007, 04:22 PM
Thats probably the most common sense hack that VB doesn't have....well done...i'll definatly be using this! :D

dilbert
05-09-2007, 04:30 PM
Can members select to not have this show up at all?

Surviver
05-09-2007, 04:36 PM
Great news, Surviver :)
It's possible the readme of templates is in english too ?

Another ideias:
1. maybe the 'tips' can be show only in some forums [forumID x, y, z]
2. a option [following 1.] - show in forumhome [yes] [no]
3. a cron turn on/off - example: only on mondays turn ON. etc.

But thks to excelent work
All the best
Joao Barroca
aka beduino

Hehe, Sorry - i will tranlate the Template Readme :)

1.) Yes, i willl integrate this Feature ;)
2.) Its possible, too ;)
3.) I think this is too special ;)

Surviver
05-09-2007, 04:37 PM
The box wont show up. Any fix for this?

Did you create any tips?
Did you the Templateedits?
Product activated?

Surviver
05-09-2007, 04:37 PM
Can members select to not have this show up at all?

Yes.

InTeNsE-HuMoR
05-09-2007, 04:40 PM
Can members select to not have this show up at all?

They can hide it I think.

InTeNsE-HuMoR
05-09-2007, 04:48 PM
Did you create any tips?
Did you the Templateedits?
Product activated?

Didn't create any tips.. how do I do this?
Template edits are done but its a customised style so I am not sure if I put the edits in the right place. Product is active and everything is in place.

MThornback
05-09-2007, 04:58 PM
Feature Idea: Tips only appear to users with less than x posts, or in x,y,z usergroups...I could do it with a conditional....but if you build it in I don't have to :p

MThornback
05-09-2007, 05:00 PM
Didn't create any tips.. how do I do this?
Template edits are done but its a customised style so I am not sure if I put the edits in the right place. Product is active and everything is in place.

You create tips in the ACP mate, if you uploaded the cpnav in to the XML folder then it should appear on the left.

InTeNsE-HuMoR
05-09-2007, 05:20 PM
You create tips in the ACP mate, if you uploaded the cpnav in to the XML folder then it should appear on the left.

Thanks mate, didn't notice the menu on the left lol. :)

Surviver
05-09-2007, 05:23 PM
Feature Idea: Tips only appear to users with less than x posts, or in x,y,z usergroups...I could do it with a conditional....but if you build it in I don't have to :p

I think, i will integrate this :)

beduino
05-09-2007, 07:21 PM
hi Surviver!
what's new in 0.5 version?
Tks!
Beduino

Kaleem
05-09-2007, 08:23 PM
hi Surviver!
what's new in 0.5 version?
Tks!
Beduino

https://vborg.vbsupport.ru/showpost.php?p=1243865&postcount=2

beduino
05-09-2007, 09:18 PM
Tks LightInClouds!
All the best
B.

MThornback
05-09-2007, 11:51 PM
I think, i will integrate this :)


Thank you muchly! :D

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
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
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
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
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



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
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 ;)

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

Open functions_tip.php, search:

return min($minposts);

Replace with

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
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
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
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
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
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
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:

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
I am getting this error when trying to add the plugin:

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:

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
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
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
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
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 ;)

Panagioths
05-20-2007, 06:46 PM
Yes it is in a box but I would like to have it in a side column not in the top of the page;) Could you tell me how I can do that plz?

Philipaclayton
05-20-2007, 09:18 PM
god this is such a good mod, but the instructions are poor.

i am completely lost. I have installed and changed the permission fo my members added a tip yet they arent showing.

http://www.ffsynthesis.net/Forum

Shouldnt they be under the welcome header?

help :)

Panagioths
05-20-2007, 09:22 PM
Try to do this

Search in Template navbar the following Text
--------------------------------------------------------------------------------
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
--------------------------------------------------------------------------------

Add below
--------------------------------------------------------------------------------
$GLOBALS[tip]
--------------------------------------------------------------------------------

Philipaclayton
05-20-2007, 09:30 PM
got it working thanks

only problem is the images are not loading

Surviver
05-21-2007, 03:44 AM
got it working thanks

only problem is the images are not loading

Upload the mages in the dir of any style you use on your board ;)

Philipaclayton
05-22-2007, 11:35 AM
yup cheers dude got it working works perfectly :)

BadgerDog
05-22-2007, 11:38 AM
Does this mod have an "ON" and "OFF" switch, so it can be hidden while all of tips are being created?

Thanks

Regards,
Badger

Surviver
05-22-2007, 11:44 AM
Does this mod have an "ON" and "OFF" switch, so it can be hidden while all of tips are being created?

Thanks

Regards,
Badger

I will not add an switch for on/off - this is not necessary. Deactivate the Product in the Product Management and you have the Same Effect ...

Quantnet
06-11-2007, 04:41 AM
I have vba. How would I display it on Forum Home only, not on Home.
thanks

Surviver
06-12-2007, 05:13 PM
Add adv_index to excluded scripts ;)

Panagioths
06-12-2007, 05:40 PM
Where is that? I use the v3 of vbadvanced

Surviver
06-13-2007, 03:26 AM
Where is that? I use the v3 of vbadvanced

Add it in the options of THIS hack - this has nnothing to do with vBAfvanced ;)

Carlos2
06-14-2007, 04:10 PM
Can you put with this that you only see this in one subforum?

HaCaoChien
06-22-2007, 09:16 AM
I change the layout of tip template and then the link of Previous Tip, Random Tip and Next Tip did not work. Please help

Below is the code after changed
<script type="text/javascript" src="clientscript/vbulletin_ajax_tip.js?v=$vboptions[simpleversion]"></script>
$autohtml
<table cellpadding="0" background="$stylevar[imgdir_misc]/tipbg.gif" cellspacing="0" id="tiptable" style="margin-top:20px;" border="0" align="center">
<tr>
<td style="background: url($stylevar[imgdir_misc]/tip_top_left.gif) no-repeat;" width="33" height="36"></td>
<td style="background: url($stylevar[imgdir_misc]/tip_top.gif) repeat-x"><if condition="$show['hidebutton']"><span style="float:right;">[<a title="$vbphrase[close_tip_windown]" href="" onclick="return send_hide_tip();">X</a>]</span></if><strong>$vbphrase[did_you_know]</strong></td>
<td style="background: url($stylevar[imgdir_misc]/tip_top_right.gif) no-repeat;" width="55"></td>
</tr>
<tr>
<td style="background: url($stylevar[imgdir_misc]/tip_left.gif) repeat-y"></td>
<td>$tip[text]</td>
<td style="background: url($stylevar[imgdir_misc]/tip_right.gif) repeat-y"></td>
</tr>
<if condition="$show['scrollbuttons']">
<tr>
<td style="background: url($stylevar[imgdir_misc]/tip_bottom_left.gif) no-repeat;" width="33" height="39"></td>
<td style="background: url($stylevar[imgdir_misc]/tip_bottom.gif) repeat-x;" align="center"><img style="display:none;" id="tipprocimg" src="$stylevar[imgdir_statusicon]/processing_tipps.gif" alt="" /> <input type="hidden" name="tipid" id="tipid" value="$tip[tipid]" />
<span class="smallfont">&lt;&lt; <a href="" onclick="return send_tip_request('prev', 'tipid');">$vbphrase[prev_tip]</a> - <a href="" onclick="return send_tip_request('rand', 'tipid');">$vbphrase[random_tip]</a> - <a href="" onclick="return send_tip_request('next', 'tipid');">$vbphrase[next_tip]</a> &gt;&gt;</span></td>
<td style="background: url($stylevar[imgdir_misc]/tip_bottom_right.gif) no-repeat;"></td>
</tr>
</if>
</table>

HaCaoChien
07-04-2007, 02:05 AM
Does this mod mark as supported???

Surviver
07-07-2007, 12:51 PM
Does this mod mark as supported???
Yes this mod is supported, but your problem is not a problem of the mod, but a problem of your modifucation of your mod.

To get it working:

You haveto give the Table or whatever the id, which it has in the original mod.

FireFish
07-13-2007, 03:15 AM
Where do you edit or add your Did You Know tips?

Install went fine; I couldn't find the place to add the tips, though.

I checked the Options, nothing there.

Please advise.

Surviver
07-14-2007, 03:07 PM
Refresh your ACP --> There's an entry in the navigationbar ;)

FireFish
07-15-2007, 07:30 PM
Refresh your ACP --> There's an entry in the navigationbar ;)
Got it. For the record, it is titled Tips

dbirosel
07-19-2007, 08:55 PM
this is a nice mod..thx

Carlos2
07-26-2007, 06:57 AM
Hi, i have add some subforums to exclude this tip, and works for the subforum, but when you enter inside a thread of that subforum, the tip is again there. How can i do? I dont want to see tips in threads.

dimopoulos
07-26-2007, 04:01 PM
Does anyone else get 2 tip boxes and 2 options (in the User CP)?

I followed the instructions to the letter and this is what I got :confused:

Fungsten
07-28-2007, 08:47 PM
Does anyone else get 2 tip boxes and 2 options (in the User CP)?

I followed the instructions to the letter and this is what I got :confused:

If you manually edited the the Templates you will get two; if you had chosen auto edit in the Options settings.

Carlos2
07-29-2007, 03:35 PM
Isnt it better if you can choose where do you want to appear this addon?? I dont want to see in all threads. Anybody knows how can i do it??

Gottcha
07-29-2007, 04:29 PM
how do members hide the tips box ... i have it setin the usergroups but dont see how they can do it

Carlos2
07-29-2007, 11:28 PM
how do members hide the tips box ... i have it setin the usergroups but dont see how they can do it
In the right cross.

Isnt it better if you can choose where do you want to appear this addon?? I dont want to see in all threads. Anybody knows how can i do it??

??

TheBlackPoet
07-29-2007, 11:35 PM
i installed this.... it works fine..... but it killed my MGC CHATBOX... I uninstalled it.. and had to re-import the chat product file....

Surviver
07-30-2007, 08:15 AM
Isnt it better if you can choose where do you want to appear this addon?? I dont want to see in all threads. Anybody knows how can i do it??

In the ACP you can enter scripts to exclude ;)

Carlos2
07-30-2007, 12:13 PM
In the ACP you can enter scripts to exclude ;)

Sure friend, but it appears in all threads. And i dont want to see it in all threads. I cant put all the threads manually in the scripts to exclude. Is any way to dont see it in threads??

Surviver
08-04-2007, 11:04 AM
Sure friend, but it appears in all threads. And i dont want to see it in all threads. I cant put all the threads manually in the scripts to exclude. Is any way to dont see it in threads??
I dont understand?

If you want to hide the tip-box in thread, just enter showthread in the box ;)

Carlos2
08-04-2007, 09:42 PM
I dont understand?

If you want to hide the tip-box in thread, just enter showthread in the box ;)

Thankssss, thats what i wanted it!!

kafi
08-08-2007, 08:17 AM
I love this add-on!!!
I like reset hidden status option :) I was just looking for post that will ask for it (i didnt see the option in admin menu :( untill know )... very good I do not need to run querry in phpMyAdmin :) :) :)

I wish that there is also "DISABLE" option for each tip. Sometimes you need to stress on only one TIP and need to hide the rest... disable will come handy (instead of deleting the rest...)

cmiller1014
08-29-2007, 01:25 PM
Doesn't show. All instructions followed, all mods made, product installed. :(

trulylowcarb
08-29-2007, 04:42 PM
anyone know - does this work in 3.6? Sounds great!!

Totti
09-16-2007, 10:44 AM
Doesn't show. All instructions followed, all mods made, product installed. :(

doesn't work for me either ... i'm wondering, cause the TemplateManagingSystem says it was integrated int he templates.

Cannot find any option in my userCP anyway :-/

3.6 is runnin


edit:
haha, you have to set the permissions for every usergroup in addition :D
but what for is the setting in vb settings then?

inciarco
10-25-2007, 01:21 PM
Great Hack, Surviver!! :up:

One Little Bug: When You Press The Random Tip Button the Number Of Tips That You Have Plus One, The Tip Window Displays Blank Information!! :(

It shall simply Restart the Tips Again Randomly!! (Reset the Variable Table Where You're Controlling the Tips that Have Already Been Randomly Displayed) (Or Perhaps Restart It When Pressing the Previous or the Next Tip Scroll Link) ;)

My Best Regards!! :up:

:)

viper357
11-18-2007, 01:24 PM
Nice hack

Can you please help me to put it in a module on vBa CMPS

Thank You.

viper357
12-05-2007, 11:21 AM
Nice hack

Can you please help me to put it in a module on vBa CMPS

Thank You.

Anyone :confused:

Alien
12-05-2007, 08:04 PM
Hey, this is really terrific...

Does this support the ability to only show them on the top of the forumhome?

Would I have to exclude every other scriptname on a site EXCEPT forumhome to get that to work?

Thanks!

basketmen
12-07-2007, 08:29 AM
what do you think if guest can view it

can it affect to our rank in google and others search engine?

Allan
01-29-2008, 09:15 PM
This hack work with vB 3.7.x ?

Allan
03-27-2008, 08:55 PM
French language in file attach ;)

Dragons76
03-28-2008, 06:12 AM
Is it possible to use the bbcode [url]?

I tried with the bbcode [url] and here is what it gives

Allan
03-28-2008, 07:09 AM
Use: <a href=" your url">your title</a>

Check on vBr ;)

Dragons76
03-28-2008, 08:43 AM
Many thank's allan

codershark
04-02-2008, 05:11 PM
this hack dont work with 3.7 and makes alot of faults..

vithorius
08-18-2008, 01:14 PM
this hack dont work with 3.7 and makes alot of faults..
Is this true...?!? :confused:

Panagioths
08-18-2008, 01:33 PM
Works perfectly in 3.7.2. See (http://www.world.gr/forum/) for yourself (It's called "Μεγάλες Αλήθειες" - Greek Forum:P)

vithorius
08-21-2008, 03:26 PM
Works perfectly in 3.7.2. See (http://www.world.gr/forum/) for yourself (It's called "Μεγάλες Αλήθειες" - Greek Forum:P)
Thank you very much Panagioths! Precious information! :up: :up: :up:

inciarco
09-06-2008, 02:13 AM
Would be Nice an Update for 3.7.3; it Displays the Tips but the Scrolling, the Close "X", and other Functions don't Work; without that is Not Usable on 3.7.3. :confused:

I Hope there could be an Update Soon, this Mod is Very Useful for New Users.

My Best Regards.

:)

Coleccromos
02-18-2009, 10:06 PM
I do not get it to work gives me database error in version 3.7.5 on my forum

Any idea?

MySQL Error : Unknown column 'hidetip' in 'field list'

trulylowcarb
02-22-2009, 09:12 PM
Thanks for this great mod!
I have this working fine on 3.8 except or the fact that I can't seem to exclude it on the index. Every other page I added to that list, it stopped displaying there, but index displays it every time, it's pretty strange.
I couldn't figure out how to get it confined to a cmps module either, as Viper had requested earlier.
Any thoughts on either issue would be appreciated. :)

trulylowcarb
03-06-2009, 03:30 PM
Well, I finally got it to display in an existing CMPS module by just adding $GLOBALS[tip] to the bottom of my who's online box (adding it to the adv_portal_onlineusers template and removing it from the navbar). It's not optimal, but I like it better than the navbar location, and it resolves my strange index problem. If I ever get it to work in its own box, I will update again.

trulylowcarb
03-06-2009, 10:43 PM
Eureka! I learned something today with my dog-with-a-bone mentality, LOL. To display this in a CMPS module, you need to go to the vbaCMPS Main Options, and in the Portal Output Global Variables box, enter
$global_tip
Then create a module - call it whatever you want - create a new template, again name it whatever you want, and for the content just use
$GLOBALS[tip]<br />
(You can use the br in your template or not, I thought it looked better with. And I have swapped out the included image to my own FYI, FYI...):o
*Be sure NOT to use the module wrapper template.
That's it! (Besides removing the reference in the navbar.)

joshskeety
01-02-2010, 05:51 AM
How come this doesn't work with 3 .8.3? I followed all the necessary steps and never get a tip box.

viper357
06-18-2010, 07:47 PM
I'm trying to get this working on 3.8.5 but I'm getting the following error when I change and try to save the settings in the usergroups...

Any idea what the problem could be? Thanks.
Database error in vBulletin 3.8.5:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = '<!-- Order=\"1\" -->Administrators',
`description` = '',
`usertitle` = '<img src=\"/images/newranks/top.gif\">',
`opentag` = '<strong>',
`closetag` = '</strong>',
`passwordexpires` = '0',
`passwordhistory` = '0',
`automediaembed_edit_permissions` = '126',
`automediaembed_view_permissions` = '126',
`tipperms` = '1',
`tipminhideposts` = '-1',
`ecdownloadpermissions` = '16383',
`ecexcludecatlist` = '',
`ecdownloadsmaxuploadtotal` = '-1',
`ecdownloadsmaxdailydl` = '-1',
`ecdownloadsmaxdailyfiles` = '-1',
`ecdownloaddelaygrp` = '-1',
`vbimghost` = '3',
`vbimghost_upslots` = '5',
`vbimghost_files` = '5000',
`videodirectorypermissions` = '511',
`ms_search_all_unanswered_permissions` = '1',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483583',
`attachlimit` = '0',
`pmquota` = '400',
`pmpermissions` = '7',
`pmsendmax` = '10',
`pmthrottlequantity` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '63',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '120',
`avatarmaxheight` = '120',
`avatarmaxsize` = '32768',
`signaturepermissions` = '245759',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '20000',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '5',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '65535',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535'
WHERE usergroupid=6;

MySQL Error : Unknown column 'tipperms' in 'field list'
Error Number : 1054
Request Date : Friday, June 18th 2010 @ 10:44:26 PM
Error Date : Friday, June 18th 2010 @ 10:44:26 PM
Script : http://www.******.com/*****/usergroup.php?do=update
Referrer : http://www.*****.com/****/usergroup.php?do=edit&usergroupid=6
IP Address : *****
Username : *****
Classname : vB_Database
MySQL Version : 5.0.90-community