Jump to content
DevFuse Forums

AndyF

Customers
  • Content Count

    89
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by AndyF

  1. AndyF

    Logo Blanks

    Version

    83 downloads

    These are two simple 'blank' images I made from the branding background, expanded out to the correct sizes for the logo (358x64) and meta image (208x70) They are provided simply as a quick very easy alternative to use to edit for a logo for those who do not have any software capable of editing a .psd file, ie from the IP.Board GDK. Although using these instead of the .psd will not provide as nicer result, as they do not have the central highlighted effect given they are basic .png's they can be easily edited by nearly every paint package available and may be quite sufficient, even if for a temporary logo. Instructions on their use are provided in a readme.
  2. This is for iPoints 241, it *may* work with other versions but has not been tested. This is a simple change so that any 'Lotto' winnings are paid into the winners iPoints 'Bank' account instead of just into their 'points' , useful as that way they will not need to manually bank their winnings to gain any interest. 1. Open /sources/tasks/lotto.php - Take a backup of this file before editing it! Around line 155, find... $members_current_points = $get['points']; Change to... $members_current_points = $get['deposited_points']; 2. Around line 161, find... $this->ipsclass->DB->do_update( 'members', array( 'points' => $points ), "id=".$row['m_id'] ); Change to.. $this->ipsclass->DB->do_update( 'members', array( 'deposited_points' => $points ), "id=".$row['m_id'] ); 3. Around line 193, find... $message = "{$this->ipsclass->lang['msg_content']}<strong>{$total_points}</strong>"; Change to... $message = "{$this->ipsclass->lang['msg_content']}<strong>{$total_points}</strong><br /><br />These have been deposited into your iPoints bank account."; Save / upload lotto.php Test it by purchasing a ticket, making a note of your iPoints points / bank account points then running the lotto task via the task manager to force it to pick a winner. Examine your account and the PM (if enabled)
  3. Tested with iPoints 241, may work on other versions.   This small change gives iPoints bank account points to the account you may use for RSS importing of topics.     1. Decide how many points you are going to award the 'rss' member for each topic. 2. Open /sources/action_admin/rssimport.php - Take a backup of this file before editing it! Around line 859, find... $this->ipsclass->DB->simple_update( 'members', 'posts=posts+'.intval($inc), 'id='.intval($mid) ); $this->ipsclass->DB->simple_exec();Add below... // // Update the RSS Bot's points... //                           $this->ipsclass->DB->simple_update( 'members', 'deposited_points=deposited_points+'.intval($inc)*5, 'id='.intval($mid) ); $this->ipsclass->DB->simple_exec(); // EndReplace the *5 with the number of points.   3. Save /upload rssimport.php   4. If you wanted them gain normal points rather than their bank account points, simply change deposited_points to points twice in the code like this:   $this->ipsclass->DB->simple_update( 'members', 'points=points+'.intval($inc)*5, 'id='.intval($mid) ); $this->ipsclass->DB->simple_exec(); 5. Test it by setting up a temporary feed or emptying the imported data and reimporting and confirm the rss poster member gains points as indicated. Note due to the way the topics are imported it may not always add the correct number, although it should not be too far off in 99% cases.
  4. The Universal Mod installer will not function on php5.4 correctly, the usual symptoms are it falling over with invalid sql / syntax errors when attempting to install a modification with it.   The following changes will rectify this and have been tested with php5.4.3 with mysql 5.5.24. :)   Open /sources/components_acp/umi.php - Take a backup of this file before editing it! 1. Around line 350, find... TYPE=MyISAM" ) ); Change to... ENGINE=MyISAM" ) ); 2. Around line 605, find... // Remove the MySQL table types $query = str_ireplace( 'TYPE=MyISAM', '', $query ); $query = str_ireplace( 'TYPE=INNODB', '', $query ); $query = str_ireplace( 'TYPE=HEAP'  , '', $query ); Change to... // Remove the MySQL table types $query = str_ireplace( 'ENGINE=MyISAM', '', $query ); $query = str_ireplace( 'ENGINE=INNODB', '', $query ); $query = str_ireplace( 'ENGINE=HEAP'  , '', $query ); 3. Around line 1659, find... $this->ipsclass->DB->query( $this->fix_create_table( "CREATE TABLE IF NOT EXISTS ".SQL_PREFIX.$v['name']['VALUE']." (".$v['data']['VALUE'].") TYPE=".$v['type']['VALUE'] ) ); Change to... $this->ipsclass->DB->query( $this->fix_create_table( "CREATE TABLE IF NOT EXISTS ".SQL_PREFIX.$v['name']['VALUE']." (".$v['data']['VALUE'].") ENGINE=".$v['type']['VALUE'] ) );   Save / re-upload umi.php.
  5. AndyF

    Logo Blanks

    File Name: Logo Blanks File Submitter: AndyF File Submitted: 10 Apr 2013 File Category: IP.Board Modifications These are two simple 'blank' images I made from the branding background, expanded out to the correct sizes for the logo (358x64) and meta image (208x70) They are provided simply as a quick very easy alternative to use to edit for a logo for those who do not have any software capable of editing a .psd file, ie from the IP.Board GDK. Although using these instead of the .psd will not provide as nicer result, as they do not have the central highlighted effect given they are basic .png's they can be easily edited by nearly every paint package available and may be quite sufficient, even if for a temporary logo. Instructions on their use are provided in a readme. Click here to download this file
  6. AndyF

    Install a hook

    A very quick article to help those new to IPBoard on how to install a hook, by their nature they are easy to install. Hopefully this short guide should answer any immediate questions.   For the purpose of this, I've chosen a simple hook only example "Members Online Today" as its very easy to install and a popular choice for a lot of communities.     1. Having downloaded the file, extract the .zip:       2. Lets take a look at the contents:     We can see the hook xml file itself and some instructions. I won't duplicate the text from those here but its recommended to check the instructions provided by the author regarding the hooks settings (if applicable) and any other features.     3. We need to upload the hook xml now. Go to your ACP. Click the System tab, then on the left Manage Hooks:       4. On the Manage Hooks page, click the "Install Hook" button:       5. A popup will appear. Browse for and upload the hook xml in the .zip you extracted earlier:     Don't forget to click "Install"     6. The hook may take a few moments to install. Once it has finished you'll see a message similar to this, indicating what it has done:       Scroll down a bit to the list of hooks, and you'll see the hook you just chose has been installed:       7. Having already read the instructions included in the hook (you did read them yes ?) you'll know it has some settings, so on the System tab, click System Settings on the left, then the Hooks tab in the settings list and you'll see the settings for this hook:       8.Lets take a quick look at this hooks settings, they are self explanatory and just adjust as required not forgetting to save them:     Remember not all hooks have settings, always refer to the instructions that accompany a hook or if in doubt ask in its support topic.     9. Now we've set it as we wanted to, we know this hook displays on the board index in the stats (as per the instructions) so lets check our board to see what its done:     As you can see its working. You can return to Manage Hooks to disable and / or install any hook at a future point.
  7. Here's a quick article on how to restore the Member Number to topic view. ACP > Look / Feel > (choose skin) > Manage Templates / CSS > Global Templates > UserInfoPane. Find... [code] <li class='post_count desc lighter'> {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']} </li> </if> </ul>[/code] Add this line [i]just before[/i] the final </ul> tag: [code]<span class='group_title'>Member: </span> <span class='post_count desc lighter'>{$author['member_id']}</span>[/code] You should now hopefully have something like this: [code] <li class='post_count desc lighter'> {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']} </li> </if> <span class='group_title'>Member Number:</span> <span class='post_count desc lighter'>{$author['member_id']}</span> </ul>[/code] Save. Quick pic: [IMG]http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/member_id_topic_view.png[/IMG]
  8. AndyF

    Disable Fast Reply

    A few people have expressed an interest in removing the fast reply from topic view. Here is a simple skin edit to do that. Its in two parts as part 1 involves removing the fast reply window and part 2 adds the 'post reply' button to the end of the page, otherwise you'd have to scroll to the top to add a reply. ACP > Look / Feel > Skin Manager > (choose skin) > Templates / CSS > Topic View > TopicViewTemplate [b]Part One[/b], remove the fast reply box: Find... [code]<if test="fastReply:|:$displayData['fast_reply'] && $displayData['reply_button']['url']"> <hr> <div class="ipsBox" id="fast_reply_wrapper"> <div class="ipsBox_container ipsPad"> <h1 class="ipsType_subtitle">{$this->lang->words['topic_add_reply']}</h1> <if test="isLockedFR:|:$topic['state'] == 'closed'"><span class="error">{$this->lang->words['locked_reply_fr']}</span> </if> <if test="isMember:|:$this->memberData['member_id']"> <a href="%7Bparse%20url=" showuser="{$this-">memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}' class='ipsUserPhotoLink left'><img src="%7B$this-%3EmemberData[" pp_small_photo']}'="" alt="{parse expression=" sprintf($this-="">lang->words['users_photo'],$this->memberData['members_display_name'])"}" class='ipsUserPhoto ipsUserPhoto_medium' /></a> <else> <div class="left">{IPSMember::buildNoPhoto(0, 'small' )}</div> </else></if> <div class="ipsBox_withphoto clearfix"> <form action="{parse url=" "="" base="public" }"="" method="post" id="ips_fastReplyForm"> <input name="app" value="forums" type="hidden"> <input name="module" value="post" type="hidden"> <input name="section" value="post" type="hidden"> <input name="do" value="reply_post_do" type="hidden"> <input name="f" value="{$forum['id']}" type="hidden"> <input name="t" value="{$topic['tid']}" type="hidden"> <input name="st" value="{$this->request['st']}" type="hidden"> <input name="auth_key" value="{$this->member->form_hash}" type="hidden"> <input name="fast_reply_used" value="1" type="hidden"> <input name="enableemo" value="yes" type="hidden"> <input name="enablesig" value="yes" type="hidden"> <if test="$this->memberData['auto_track']"> <input name="enabletrack" value="1" type="hidden"> </if> <if test="is_array($topic['_fastReplyStatusMessage']) AND count($topic['_fastReplyStatusMessage']) AND strlen($topic['_fastReplyStatusMessage'][0])"> <div class="message">{parse expression="implode( ' ', $topic['_fastReplyStatusMessage'] )"}</div> </if> {parse editor="Post" options="array( 'type' => 'full', 'minimize' => 1, 'isTypingCallBack' => 'ipb.topic.isTypingCallBack', 'height' => 180, 'autoSaveKey' => 'reply-' . $topic[tid] )"} <fieldset class="right" id="fast_reply_controls"> <input name="submit" class="input_submit" value="{$this->lang->words[" qr_post']}'="" tabindex="0" accesskey="s" id="submit_post" type="submit">&nbsp;&nbsp;<input name="preview" class="input_submit alt" value="{$this->lang->words[" qr_more_opts']}'="" tabindex="0" id="full_compose" type="submit"> </fieldset> </form> </div> <div id="ips_HasReplies"></div> </div> </div> <else> <if test="loadJsManually:|:$displayData['load_editor_js']"> {parse template="editorLoadJs" group="editors" params="$displayData['smilies']"} </if> </else></if>[/code] Comment it out by adding a <!-- to the start and a --> to the end (do not remove the code) [b]Part two[/b], add 'post reply' to the end of the page. Immediately after the code you have removed, you'll see this line: [code]<!-- Close topic -->[/code] Add the following code just above that 'close topic' line but after the code you commented out: [code] <ul class="topic_buttons"> <if test="closedButton:|:$displayData['reply_button']['image'] == 'locked'"> <li class="important"> <if test="pollOnly:|:isset($displayData['poll_data']['poll']['poll_only']) && $displayData['poll_data']['poll']['poll_only']"> <if test="closedButtonLink:|:$displayData['reply_button']['url']"> <a href="%7B$displayData[" reply_button']['url']}'="" accesskey="r">{parse replacement="lock_icon"} {$this->lang->words['top_poll_only_reply']}</a> <else> <span>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only']}</span> </else></if> <else> <if test="closedButtonLink:|:$displayData['reply_button']['url']"> <a href="%7B$displayData[" reply_button']['url']}'="" accesskey="r">{parse replacement="lock_icon"} {$this->lang->words['top_locked_reply']}</a> <else> <span>{parse replacement="lock_icon"} {$this->lang->words['top_locked']}</span> </else></if> </else></if> </li> <else> <if test="replyButton:|:$displayData['reply_button']['image']"> <if test="replyButtonLink:|:$displayData['reply_button']['url']"> <li><a href="%7B$displayData[" reply_button']['url']}'="" title="{$this->lang->words[" topic_add_reply']}'="" accesskey="r">{$this->lang->words['topic_add_reply']}</a></li> <else> <li class="disabled"><span>{$this->lang->words['top_cannot_reply']}</span></li> </else></if> </if> </else></if> </ul>[/code] Save. Quick pic: [img]http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/disable_fast_reply_323.png[/img]
  9. AndyF

    Hilight BBCodes

    File Name: Hilight BBCodes File Submitter: AndyF File Submitted: 13 Feb 2012 File Category: IP.Board Modifications A pack of nine very simple highlight bbcodes comprising of the following colours: Black, Blue, Cyan, Green, Magenta, Orange, Red, White, Yellow Instructions for their installation, usage and un-installation can be found in each appropriate folder along with a preview screenshot. :) Click here to download this file
  10. AndyF

    Hilight BBCodes

    Version

    128 downloads

    A pack of nine very simple highlight bbcodes comprising of the following colours: Black, Blue, Cyan, Green, Magenta, Orange, Red, White, Yellow Instructions for their installation, usage and un-installation can be found in each appropriate folder along with a preview screenshot. :)
  11. IP.Board provides options (System Settings > Advanced > Log Pruning) to enable / disable pruning various logs such as spider logs, database error logs, spam logs etc. The only issue some administrators may have is that thirty days may be too long, or in some rare cases not enough but again not enough to justify not pruning them. A simple tweak is possible to adjust the pruning schedule. Connect via FTP or your hosts file manager and open admin/applications/core/tasks/logprune.php Around line 34, find... [code]protected $deleteTime = 2592000;[/code] Replace that line with one of the following, depending on what you require. [b]14 days[/b] [code]protected $deleteTime = 1209600;[/code] [b]7 days[/b] [code]protected $deleteTime = 604800;[/code] [b]3 days[/b] [code]protected $deleteTime = 259200;[/code] Save the change. The settings description will still indicate 30 days but the actual pruning will take place at the days interval you have specified. , remember this change will effect them all so you may wish to disable any pruning you do not want to occur at that interval.
  12. Here is a quick, simple tutorial on how to have "Make votes public?" checked by default. This may eliminate the problem of members who do wish to have a public poll but are unable to change it after submitting it. A small skin edit is required. ACP > Look / Feel > Skin Manager > (choose skin) > Manage Templates / CSS > Post Screen > Poll Box > Find... [code]<span class='ipsType_small' id='check_public_poll' data-tooltip="{$this->lang->words['poll_public_warning']}"> <input type='checkbox' class='input_check' name='poll_view_voters' id='poll_view_voters' value='1' <if test="viewPollVoters:|:$data['poll_view_voters']">checked='checked'</if> /> <label for='poll_view_voters'>{$this->lang->words['poll_fs_public']}</label> </span>[/code] Change to... [code]<span class='ipsType_small' id='check_public_poll' data-tooltip="{$this->lang->words['poll_public_warning']}"> <input type='checkbox' checked ='checked' class='input_check' name='poll_view_voters' id='poll_view_voters' value='1' <if test="viewPollVoters:|:$data['poll_view_voters']">checked='checked'</if> /> <label for='poll_view_voters'>{$this->lang->words['poll_fs_public']}</label> </span>[/code] Save the change. Repeat for other skins if required. Quick pic: [IMG]http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/default_public_poll.png[/IMG]
  13. Its very easy with a small skin edit to add the joined date back to topic view on 3.2 if you require it. ACP > Look / Feel > Skin Manager > (choose skin) > Manage Templates / CSS > Global Templates > UserInfoPane Find... [code] <li class='post_count desc lighter'> {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']} </li> </if> </ul>[/code] Add this [i]after[/i] the </if> tag but before the </ul> tag... [code]<span class='group_title'>{$this->lang->words['m_joined']}</span> <span class='post_count desc lighter'>{parse date="$author['joined']" format="joined"}</span>[/code] So you end up with this: [code] <li class='post_count desc lighter'> {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']} </li> </if> <span class='group_title'>{$this->lang->words['m_joined']}</span> <span class='post_count desc lighter'>{parse date="$author['joined']" format="joined"}</span> </ul>[/code] Save. Quick pic: [img]http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/joined_date_topic_view.png[/img] You might want to add a <br /> tag or suchlike to space it out, but that's essentially it.
  14. Mike's not updated Tutorials here yet. :) You only need this if you're using Gallery 4.0.x 4.1.x should already be set at 100.
×