Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Oct 2018, 13:40
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Announcements
Forum tweaks
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
JohnMurga
Site Admin


Joined: 04 May 2005
Posts: 594
Location: Far to the east

PostPosted: Thu 02 Feb 2006, 01:48    Post subject:  Forum tweaks  

Hi,

Although I am not having any problems with response times in the US I have just tweaked a couple of things in the forum software that should make it run a little faster ...

Let me know if you think you are adversely affected.

Cheers
JohnM
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Thu 02 Feb 2006, 02:08    Post subject:  

today it worked very good here, different to some other days before.
Thanks for your efforts, John Smile
Mark
Back to top
View user's profile Send private message Visit poster's website 
J_Rey


Joined: 04 May 2005
Posts: 274
Location: Northwest Florida, U.S.A.

PostPosted: Fri 03 Feb 2006, 00:13    Post subject:  

Well, now that you bring it up.... I noticed in the source code of the pages generated at this site this message:
Quote:
NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth.

Also, there are other things you could do to tweak the performance of this forum. Such as disable the new post icons or disable searching this forum. Shocked OK, j/k!

While you're at it, please change the Puppy Linux home page link to http://www.puppylinux.com/. FYI, goosee.com/puppy/ is a mirror of puppylinux.com/.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger 
Guest
Guest


PostPosted: Sat 04 Feb 2006, 02:55    Post subject:  

can you please add quick reply box!
Code:

##############################################################
## MOD Title: Quick Reply with Quote
## MOD Author: Smartor < smartor_xp@hotmail.com > (Hoang Ngoc Tu) http://smartor.is-root.com
## MOD Description: This will add a quick-reply form below every topics
##         It will only display when user has the Reply access
##         User have a option to quote the last message
## MOD Version: 1.1.3
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit: 3
##   viewtopic.php
##   language/lang_XX/lang_main.php
##   templates/template_XX/viewtopic_body.tpl
## Included Files: N/A
##############################################################
## Author Notes:
##
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

#
#-----[ BEFORE, ADD ]------------------------------------
#
//
// Quick Reply Mod
//
if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) )
{
   $quick_reply_form = "";
}
else
{
   if ( $can_watch_topic && $is_watching_topic )
   {
      $notify = 1;
   }
   else
   {
      $notify = $userdata['user_notify'];
   }
   $bbcode_uid = $postrow[$total_posts - 1]['bbcode_uid'];
   $last_poster = $postrow[$total_posts - 1]['username'];
   $last_msg = $postrow[$total_posts - 1]['post_text'];
   $last_msg = str_replace(":1:$bbcode_uid", "", $last_msg);
   $last_msg = str_replace(":u:$bbcode_uid", "", $last_msg);
   $last_msg = str_replace(":o:$bbcode_uid", "", $last_msg);
   $last_msg = str_replace(":$bbcode_uid", "", $last_msg);
   $last_msg = str_replace("'", "'", $last_msg);
   $last_msg = "[QUOTE=\"$last_poster\"]" . $last_msg . "[/QUOTE]";
   $quick_reply_form = "
   <script language='JavaScript' type='text/javascript'>
      function checkForm() {
         formErrors = false;
         document.post.message.value = '';
         if (document.post.input.value.length < 2) {
            formErrors = '" . $lang['Empty_message'] . "';
         }
         if (formErrors) {
            alert(formErrors);
            return false;
         } else {
            if (document.post.quick_quote.checked) {
               document.post.message.value = document.post.last_msg.value;
            }
            document.post.message.value += document.post.input.value;
            return true;
         }
      }
   </script>
   <form action='".append_sid("posting.$phpEx")."' method='post' name='post' onsubmit='return checkForm(this)'>
   <span class='genmed'><b>".$lang["Quick_Reply"].":</b><br />";

   if (!$userdata['session_logged_in'])
   {
      $quick_reply_form .= $lang['Username'] . ":&nbsp;<input class='post' type='text' name='username' size='25' maxlength='25' value='' /><br />";
   }

   $quick_reply_form .= "<textarea name='input' rows='10' cols='50' wrap='virtual' class='post''></textarea><br />
   <input type='checkbox' name='quick_quote' />".$lang["Quick_quote"]."<br />
   <input type='checkbox' name='attach_sig' checked='checked' />".$lang["Attach_signature"]."<br />
   <input type='hidden' name='mode' value='reply' />
   <input type='hidden' name='sid' value='" . $userdata['session_id'] . "' />
   <input type='hidden' name='t' value='" . $topic_id . "' />
   <input type='hidden' name='message' value='' />
   <input type='hidden' name='notify' value=" . $notify  . " />
   <input type='hidden' name='last_msg' value='" . $last_msg  . "' />
   <input type='submit' name='preview' class='liteoption' value='".$lang['Preview']."' />&nbsp;
   <input type='submit' name='post' class='mainoption' value='".$lang["Submit"]."' />
   </form></span>";
}

$template->assign_vars(array(
   'QUICK_REPLY_FORM' => $quick_reply_form)
);
//
// END Quick Reply Mod
//

#
#-----[ OPEN ]------------------------------------------
#
lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------
#
// Quick Reply Mod
$lang['Quick_Reply'] = 'Quick Reply';
$lang['Quick_quote'] = 'Quote the last message';

#
#-----[ OPEN ]------------------------------------------
#
viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{S_TOPIC_ADMIN}

#
#-----[ AFTER, ADD ]------------------------------------
#
{QUICK_REPLY_FORM}


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Thanks
Back to top
Guest
Guest


PostPosted: Sun 05 Feb 2006, 03:02    Post subject: Show Today Posts  

Hello John.

I would like to see for the Puppy Linux Forum the very user friendly and intellegent function "Show Today Posts".

If you go for example to the Ubuntu Forums you will see there at the top the Button with the Label "Today Posts".
http://www.ubuntuforums.org/

By Clicking on this Button you will see a quick overview of the Last Posts in this forum.

By implementig this function in the Puppy Linux Forum you will not only give the Visitors of the Forum a easy fast and intellegent possibility to browse the Puppy Linux Forum.

You will also save a lot of bandwith.

Imagine only how much Bandwith you will save only if the visitors of the forum no more have to go from one Sub forum to the other Subforum to view there the newset Posts.

This is especially very usefull for people how are visiting the forum every day as a guest and want to have a easy and fast possibility to read the new things in the forum.
Back to top
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15239
Location: Paradox Realm

PostPosted: Sun 05 Feb 2006, 03:15    Post subject:  

Cool

seems to have speeded up again

we have a lot more users
and a lot more posts

for about a week it was slow
(maybe too slow for modem?)

Thanks as always to John Murga Smile

_________________
YinYana AI Buddhism
Back to top
View user's profile Send private message Visit poster's website 
Mathiasdm

Joined: 05 May 2005
Posts: 100

PostPosted: Sun 05 Feb 2006, 05:34    Post subject:  

Response times seem good Smile

I would however advise not to install mods (or at least not much). I think this forum might turn out to be very large eventually. Mods (not the moderator type Razz ) might make migrating to the next phpBB version more difficult!
Back to top
View user's profile Send private message 
Ted-not-logged-in-Dog
Guest


PostPosted: Mon 06 Feb 2006, 14:04    Post subject: Speed improved, thanks  

John, Your changes have smoothed things out. Waiting to see what happens on the weekend of the 11th Razz
Back to top
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Announcements
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0705s ][ Queries: 11 (0.0231s) ][ GZIP on ]