Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Random Tips - Simple Random System Details »»
Random Tips - Simple Random System
Version: 1.00, by tackebong tackebong is offline
Developer Last Online: Jul 2008 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.0 Beta 4 Rating:
Released: 02-08-2008 Last Update: Never Installs: 46
 
No support by the author.

Show tips on your forum by random method (random at load page)

Easy to use
-20 slot available to enter text
-Support More text

Note: if you want use HTML in each slot, you must use ' to replace "
ex: <img src="http://imglink.net/img.jpg"> => <img src='http://imglink.net/img.jpg'>

INTALL
1.Import via product
2.Edit template navbar (or other where you want to show random tips)
add at bottom oftemplate
PHP Code:
$randomtips 

Supporters / CoAuthors

    Show Your Support

    • This modification may not be copied, reproduced or published elsewhere without author's permission.

    Comments
      #12  
    Old 05-21-2008, 05:03 AM
    mgurain's Avatar
    mgurain mgurain is offline
     
    Join Date: Apr 2005
    Location: KSA - Qatif - Al-Jarodiah
    Posts: 345
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    hi,
    could the template edit be auto (by hook) ?

    Thanks,,
    Reply With Quote
      #13  
    Old 06-21-2008, 02:19 PM
    pcoskat pcoskat is offline
     
    Join Date: Apr 2002
    Location: atlanta
    Posts: 423
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by rolandogomez View Post
    Can you incorporate this with vBAdvanced as a home page module? Thanks, rg.
    I'm wondering the same thing...
    Reply With Quote
      #14  
    Old 06-21-2008, 02:45 PM
    Legende Legende is offline
     
    Join Date: Jan 2006
    Posts: 62
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Would be nice if the tips could be enabled/disabled by the user itself
    Reply With Quote
      #15  
    Old 06-21-2008, 11:44 PM
    Scarface Claw Scarface Claw is offline
     
    Join Date: May 2008
    Posts: 33
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    ^exactaly.

    Long time members are going to get sick of it.
    Reply With Quote
      #16  
    Old 06-22-2008, 09:13 AM
    Zacarias Zacarias is offline
     
    Join Date: Jan 2005
    Posts: 56
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I don't think I'm gonna use this for tips. A randomizer. Just what I was looking for. Thanks for this useful mod!
    Reply With Quote
      #17  
    Old 06-29-2008, 12:35 AM
    PoetJA-1975's Avatar
    PoetJA-1975 PoetJA-1975 is offline
     
    Join Date: Sep 2006
    Location: Meh...
    Posts: 1,218
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Great mod = Thanx

    Jacquii.
    Reply With Quote
      #18  
    Old 06-29-2008, 12:36 AM
    PoetJA-1975's Avatar
    PoetJA-1975 PoetJA-1975 is offline
     
    Join Date: Sep 2006
    Location: Meh...
    Posts: 1,218
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by Scarface Claw View Post
    ^exactaly.

    Long time members are going to get sick of it.
    Um - the secret of message board success. Updating with FRESH CONTENT

    Jacquii.
    Reply With Quote
      #19  
    Old 10-28-2008, 01:37 PM
    robwestpdx robwestpdx is offline
     
    Join Date: Oct 2008
    Posts: 12
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    can we change the word "Tips" to something else? I couldn't find it bin the search phrase
    Reply With Quote
      #20  
    Old 04-10-2012, 02:06 AM
    blind-eddie's Avatar
    blind-eddie blind-eddie is offline
     
    Join Date: Apr 2006
    Location: Michigan
    Posts: 2,310
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Random Tips Revisited

    Demo link in my sig. Updated Random Tips show on every page below navbar but vbacmps page, I added it as a module. Either refresh page or surf the site.

    I can not release an updated version of this modification due to the fact it is not marked as re-useable code. The author can not be reached, I have tried.

    I can however show you what edits I made to this modification and you will have to edit it yourself. Has been tested up to version 3.8.4, but should work up to 3.8.7.

    Lets begin.

    First you will need to download this modification, import product (ALLOW OVERWRITE)to see what it looks like now.
    Then edit it with the following edits & import product again.

    Open Product, TDT - Random Tips, using wordpad.

    Search for:
    =========================================
    Code:
    <if condition="$vboptions[tip_turn]">
    Add before:

    Code:
    <if condition="is_member_of($bbuserinfo, 1,2,3,4,5,6,7)"><!-- Remove or add usergroups here -->
    <if condition="$bbuserinfo[userid]">
    <if condition="$vbulletin->userinfo['fieldxx'] == Hide">
    <else />
    <!--[if lte IE 6]>
    <![endif]-->
    This will allow you to set usergroup permissions & will also allow members to turn it off via usercp. This will be discussed later.
    You will be able to edit this at any time via Random Tips template.
    =========================================

    Search for:

    Code:
    <tr>
    <td class="alt1">
    <strong>Tips: </strong>
    Replace with:

    Code:
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('random_tips')"><img id="collapseimg_random_tips" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_random_tips].gif" alt="" border="0" /></a> Random Tips
    							</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_random_tips" style="$vbcollapse[collapseobj_random_tips]">
    	<tr>
    		<td class="alt2"><img src="$stylevar[imgdir_misc]/tips.png" alt="While browsing our site, many useful tips will appear here."/></td>
    		<td class="alt1" width="100%">
    Tips Image added below as attachment, upload it to your images/misc folrder

    =========================================
    Search for:


    Code:
    </SCRIPT>
    </td>
    </tr>
    </table>
    <br />
    </if>
    Replace with:

    Code:
    </SCRIPT>
    </td>
    	</tr>
    </tbody>
    </table>
    <br />
    </if>
    </if> 
    </if>
    =========================================
    Search for:

    Quote:
    <phrase name="setting_more_tips_desc" date="1156526990" username="Chang" version="0.1"><![CDATA[<b>EN:</b> If you want have more tips, you can type code with grammar here<br><i>tips[number++] = "<font color="green">content_of_tip</font>"</i><br><br><b>VN:</b> Neu ban muon co them nhieu loi nhan nua, ban co the them code vao o ben phai voi cau truc<br><i>tips[number++] = "<font color="green">Noi_dung_loi_nhan</font>"</i>]]></phrase>
    Replace with:


    Quote:
    <phrase name="setting_more_tips_desc" date="1156526990" username="Chang" version="0.1"><![CDATA[ If you would like to add more tips, simply copy line below then paste it in text area.<br>tips[number++] = 'Add your tip info here'<br> Add new tips on seperate lines]]></phrase>
    =========================================
    Search for:

    Quote:
    <phrase name="setting_tip1_title" date="1156526990" username="Chang" version="0.1"><![CDATA[Type tip into textboxs (support HTML) - Ban nhap cac loi nhan vao cac o (co the dung HTML)]]></phrase>
    Replace with:

    Quote:
    <phrase name="setting_tip1_title" date="1156526990" username="Chang" version="0.1"><![CDATA[Type Tip Information into textboxs (Supports HTML) - <b>When adding html to tips, replace all " with ' or no tips will show</b>&nbsp; &nbsp;<b>(DOES NOT SUPPORT BBCODES)</b>]]></phrase>
    =========================================
    Search for:

    Quote:
    <phrase name="setting_tip_turn_title" date="1156526990" username="Chang" version="0.1"><![CDATA[Turn Tips On/Off (Add <b>$randomtips</b> in place you want to show tips)]]></phrase>
    Replace with:

    Quote:
    <phrase name="setting_tip_turn_title" date="1156526990" username="Chang" version="0.1"><![CDATA[Turn Tips On/Off &nbsp;&nbsp; (REMEMBER to add <b>$randomtips</b> in the template you want to show tips)&nbsp;&nbsp;Example Templates: navbar, forumhome, ect..]]></phrase>
    =========================================
    Saerch for:

    Code:
    			<setting varname="tip_turn" displayorder="10">
    				<datatype>free</datatype>
    Replace with:

    Code:
    			<setting varname="tip_turn" displayorder="10">
    You are only removing <datatype>free</datatype>
    =========================================

    Find and replace all instances of:

    Code:
    				<datatype>free</datatype>
    Replace with:

    Code:
    				<optioncode>textarea</optioncode>

    Thats about it. It looks a whole lot better with my edits.

    README

    Quote:
    Description
    ---------------------------------------------------------------
    Displays random tips on most pages of your board when $randomtips is added to templates

    Installation
    ---------------------------------------------------------------
    1) Go to ACP / Plugins & Products / Manage Products and import product-tips.xml

    2) Again, in admincp/vbulletin options/Random Tips
    Once there its really self explanatory. Follow intructions on how to add HTML tips at top of page & adding extra tips at bottom of page.

    3) To get the tips to show on your pages.
    If you would rather not show tips below navbar on vba pages, skip the following navbar edit;
    Add $randomtips to the template you wish to show tips on.
    Example: navbar(paste $randomtips all the way at the bottom to show tips below navbar) this will show tips on every page on your board.

    ----------------------------------------------------------------

    If you are using vba CMPS, you will need to add randomtips without the $ to vba CMPS/Default Settings/Main Options/ Portal Output Global Variables Section- Failure to do so will result in no tips showing on any vba CMPS pages.
    Product needs to be installed as normal for this to work.
    Tips show on vba pages are the same tips as shown on other pages.

    ----------------------------------------------------------------

    If you would like to show a vba module for random tips, download & install the randomtips module.
    To install module for vba CMPS,
    vbacmps/download upload modules/ click browse, select the module you downloaded, select style you wish to add module to, set permissions & click submit.. Center column is best location.

    ----------------------------------------------------------------
    I wrote in the template to allow members to show/hide tips. You will need to create a new profile field. (Remember the profile field number, you will need it later.)

    Again, in admincp/User Profile Fields/Add New User Profile Field

    Profile field Type: Single-Selection Radio Buttons

    Title: Random Tips

    Description:If you wish not to see the random tips below navbar select Hide. ( Add whatever you want)

    Options: Type in Show , hit your enter key & type in Hide (Each option needs to be on seperate lines.)

    Field Required: I set mine to no, but you do what you will.

    Field Editable by User: Again, I set mine to yes, but you set it the way you want.

    Private Field, Field Searchable on Members List & Show on Members List, all set to no.

    In the Display Page Section, click the drop down & select Options: other
    Click save.
    ----------------------------------------------------------------

    Now you need to add the profile field number to the randomtips template at the top of the template. You will see <if condition="$vbulletin->userinfo['fieldxx'] == Show"> change the xx to your newly created profile field number & click save.

    Inform your members to go into their usercp/edit option, on bottom of page to set it to hide if they wish not to see tips. Default is set to show.
    Thats it...Enjoy
    Enjoy!

    If you use this modification with the edits I provided please click the to the left. Thank You!

    Demo link in my sig. Updated Random Tips show on every page below navbar but vbacmps page, I added it as a module. Either refresh page or surf the site.
    Reply With Quote
    3 благодарности(ей) от:
    JacquiiDesigns, socialteenz, viper357
      #21  
    Old 05-15-2012, 02:50 PM
    viper357's Avatar
    viper357 viper357 is offline
     
    Join Date: Dec 2006
    Location: Worthing, UK
    Posts: 563
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Killer post Eddie, thanks, will implement your changes soon. But quick question, that thread preview on your board, the one where it pops up a box when you hover your mouse over the thread link, how'd you do that?
    Reply With Quote
    Reply


    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT. The time now is 12:59 PM.


    Powered by vBulletin® Version 3.8.12 by vBS
    Copyright ©2000 - 2024, vBulletin Solutions Inc.
    X vBulletin 3.8.12 by vBS Debug Information
    • Page Generation 0.05568 seconds
    • Memory Usage 2,335KB
    • Queries Executed 26 (?)
    More Information
    Template Usage:
    • (1)SHOWTHREAD
    • (1)ad_footer_end
    • (1)ad_footer_start
    • (1)ad_header_end
    • (1)ad_header_logo
    • (1)ad_navbar_below
    • (1)ad_showthread_beforeqr
    • (10)bbcode_code
    • (1)bbcode_php
    • (9)bbcode_quote
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (6)navbar_link
    • (120)option
    • (1)pagenav
    • (1)pagenav_curpage
    • (2)pagenav_pagelink
    • (11)post_thanks_box
    • (3)post_thanks_box_bit
    • (11)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (1)post_thanks_postbit
    • (11)post_thanks_postbit_info
    • (10)postbit
    • (11)postbit_onlinestatus
    • (11)postbit_wrapper
    • (1)spacer_close
    • (1)spacer_open
    • (1)tagbit_wrapper 

    Phrase Groups Available:
    • global
    • inlinemod
    • postbit
    • posting
    • reputationlevel
    • showthread
    Included Files:
    • ./showthread.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/functions_bigthree.php
    • ./includes/class_postbit.php
    • ./includes/class_bbcode.php
    • ./includes/functions_reputation.php
    • ./includes/functions_post_thanks.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
    • showthread_start
    • showthread_getinfo
    • forumjump
    • showthread_post_start
    • showthread_query_postids
    • showthread_query
    • bbcode_fetch_tags
    • bbcode_create
    • showthread_postbit_create
    • postbit_factory
    • postbit_display_start
    • post_thanks_function_post_thanks_off_start
    • post_thanks_function_post_thanks_off_end
    • post_thanks_function_fetch_thanks_start
    • fetch_musername
    • post_thanks_function_fetch_thanks_end
    • post_thanks_function_thanked_already_start
    • post_thanks_function_thanked_already_end
    • postbit_imicons
    • bbcode_parse_start
    • bbcode_parse_complete_precache
    • bbcode_parse_complete
    • postbit_display_complete
    • post_thanks_function_can_thank_this_post_start
    • post_thanks_function_fetch_thanks_bit_start
    • post_thanks_function_show_thanks_date_start
    • post_thanks_function_show_thanks_date_end
    • post_thanks_function_fetch_thanks_bit_end
    • post_thanks_function_fetch_post_thanks_template_start
    • post_thanks_function_fetch_post_thanks_template_end
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete