Page 2 of 3

Re: iCGStation for 140

PostPosted: Thu Apr 06, 2006 8:07 am
Author: vanquish
I addressed the title graphic on the staff page (thanks, i didn't even notice <img> )

Is there anything i missed? I couldn't find a post by helterskelter at that time, am i looking in the wrong place? I also check integramod.com

I'd like to fix the calendar arrows, could you post his post here?

Re: iCGStation for 140

PostPosted: Thu Apr 06, 2006 9:35 am
Author: tmotley
open iCGStation.cfg

Find:
Code: Select all
$images['mini_cal_icon_left_arrow'] = "";$images['mini_cal_icon_right_arrow'] = "";


Replace with]$images['mini_cal_icon_left_arrow'] = "$current_template_images/icon_left.png";$images['mini_cal_icon_right_arrow'] = "$current_template_images/icon_right.png"; [/code]

Re: iCGStation for 140

PostPosted: Wed Apr 12, 2006 9:34 am
Author: vanquish
Sorry it took me so long.

I'm pretty sure this is the procedure for quick reply:

Code: Select all
 #viewtopic.php#search for  $template->assign_vars(array( "TELL_LINK" => append_sid("http].$HTTP_SERVER_VARS['PHP_SELF']."?t=$topic_id", true)));  #After ADD  if ( ( $userdata['session_logged_in'] ) && ( $userdata['user_id'] != ANONYMOUS ) && ( ( $forum_topic_data['topic_status'] != TOPIC_LOCKED ) ? TRUE : ( ( $userdata['user_level'] == ADMIN  ) ? TRUE : FALSE ) )   ){     include($phpbb_root_path . 'quick_reply.'.$phpEx);}


The above was actually included in the icgstation template readme.

After that you need the quick_reply.php in the root folder (also included in the icgstation package):

Code: Select all
 <php>set_filenames(array(         'quick_reply_output' => 'quick_reply.tpl'));$template->assign_vars(array(    'L_MORE_SMILIES' => $lang['More_emoticons'],                     'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies"),                             'L_EMOTICONS' => $lang['Emoticons'],                             'L_CLOSE_WINDOW' => $lang['Close_window'],                             'S_SMILIES_COLSPAN' => $s_colspan));$template->assign_block_vars('smilies_row.smilies_col', array(                     'SMILEY_CODE' => $data['code'],                     'SMILEY_IMG' => $board_config['smilies_path'] . '/' . $smile_url,                     'SMILEY_DESC' => $data['emoticon'])                 );       //     // Taken from Quick reply with quote by Smartor - Begin     //             $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("]" . $last_msg . '[/quote]';     $attach_sig = (( $userdata['session_logged_in'] ) ? $userdata['user_attachsig'] : 0)?"checked='checked'":'';     $notify_user = (( $userdata['session_logged_in'] ) ? $userdata['user_notify'] : 0)?"checked='checked'":'';       $template->assign_block_vars('quick_reply', array(         'POST_ACTION' => append_sid("posting.$phpEx"),         'TOPIC_ID' => $topic_id,         'SID' => $userdata['session_id'],         'LAST_MESSAGE' => $last_msg)     );       if( $userdata['session_logged_in'] )     {         $template->assign_block_vars('quick_reply.user_logged_in', array(             'ATTACH_SIGNATURE' => $attach_sig,             'NOTIFY_ON_REPLY' => $notify_user)         );     }     else     {         $template->assign_block_vars('quick_reply.user_logged_out', array());     }     //     // Taken from Quick reply with quote by Smartor - End     //         //     // Show smiles or not     //     if ( ( $userdata['user_viewquickreply'] == 2 ) && ( $board_config['allow_smilies'] == 1 ) && ( $userdata['user_allowsmile'] == 1 ) )     {         $template->assign_block_vars('quick_reply.switch_show_smiles', array());         generate_smilies('inline', PAGE_POSTING, true);     }         if ( ( $board_config['allow_smilies'] == 1 ) && ( $userdata['user_allowsmile'] == 1 ) )     {         $template->assign_block_vars('quick_reply.switch_show_all_smiles', array(             'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies"),             'L_ALL_SMILIES' => $lang['Quick_Reply_smilies'])         );     }       //     // Show a line with BBCode buttons or not     //     if ( ( $board_config['allow_bbcode'] == 1 ) && ( $userdata['user_allowbbcode'] == 1 ) )     {         $template->assign_block_vars('quick_reply.switch_show_bbcode', array());     }     $template->assign_vars(array(         'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'],         'L_USERNAME' => $lang['Username'],         'L_NOTIFY_ON_REPLY' => $lang['Notify'],         'L_ATTACH_SIGNATURE' => $lang['Attach_signature'],         'L_EMPTY_MESSAGE' => $lang['Empty_message'],         'L_QUOTE_LAST_MESSAGE' => $lang['Quick_quote'],         'L_QUICK_REPLY' => $lang['Quick_Reply'],         'L_PREVIEW' => $lang['Preview'],         'L_SUBMIT' => $lang['Submit'])     );  $template->assign_var_from_handle('QUICKREPLY_OUTPUT', 'quick_reply_output');  ?>  
which again goes in your forum root folder.

Finally, you need the quickreply.tpl in the /templates/iCGstation/ folder (your icgstation template root folder) which also should have been included in your icgstation package.

Code: Select all
 <BEGIN><script><!--// bbCode control by// subBlue design// [url=http]http://www.subBlue.com[/url]  // Startup variablesvar imageTag = false;var theSelection = false;  // Check for Browser & Platform for PC & IE specific bits// More details from: [url=http://www.mozilla.org/docs/web-developer/sniffer/browser_type.htmlvar]http://www.mozilla.org/docs/web-develop ... pe.htmlvar[/url] clientPC = navigator.userAgent.toLowerCase(); // Get client infovar clientVer = parseInt(navigator.appVersion); // Get browser version  var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)                 && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)                 && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));var is_moz = 0;  var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));var is_mac = (clientPC.indexOf("mac")!=-1);  // Define the bbCode tagsbbcode = new Array();bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list type=]','[/list]','[flash=,]','[/flash:12i3mevk]','[url]','[/url]');imageTag = false;  // Replacement for arrayname.length propertyfunction getarraysize(thearray) {     for (i = 0; i < thearray.length; i++) {         if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null))             return i;         }     return thearray.length;}  // Replacement for arrayname.push(value) not implemented in IE until version 5.5// Appends element to the arrayfunction arraypush(thearray,value) {     thearray[ getarraysize(thearray) ] = value;}  // Replacement for arrayname.pop() not implemented in IE until version 5.5// Removes and returns the last element of an arrayfunction arraypop(thearray) {     thearraysize = getarraysize(thearray);     retval = thearray[thearraysize - 1];     delete thearray[thearraysize - 1];     return retval;}var is_submit = false;var hilf;         function checkForm() {             formErrors = false;             hilf = document.post.message.value;             if (document.post.message.value.length < 2) {                 formErrors = "{L_EMPTY_MESSAGE}";             }             if (formErrors) {                 alert(formErrors);                 return false;             } else if (is_submit) {                 alert('Your post is already submitted');                 return false;             } else {                 is_submit = true;             }             if (document.post.quick_quote.checked) {                 document.post.message.value = document.post.last_msg.value + hilf;             }             document.post.message.value = document.post.message.value;             return true;         }  function emoticon(text) {     var txtarea = document.post.message;     text = ' ' + text + ' ';     if (txtarea.createTextRange && txtarea.caretPos) {         var caretPos = txtarea.caretPos;         caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;         txtarea.focus();     } else {         txtarea.value  += text;         txtarea.focus();     }}  function bbstyle(bbnumber) {     var txtarea = document.post.message;       txtarea.focus();     donotinsert = false;     theSelection = false;     bblast = 0;       if (bbnumber == -1) { // Close all open tags & default button names         while (bbcode[0]) {             butnumber = arraypop(bbcode) - 1;             txtarea.value += bbtags[butnumber + 1];             buttext = eval('document.post.addbbcode' + butnumber + '.value');             eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');         }         imageTag = false; // All tags are closed including image tags <img>         txtarea.focus();         return;     }       if ((clientVer >= 4) && is_ie && is_win)     {         theSelection = document.selection.createRange().text; // Get text selection         if (theSelection) {             // Add tags around selection             document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];             txtarea.focus();             theSelection = '';             return;         }     }     else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))     {         mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]);         return;     }         // Find last occurance of an open tag the same as the one just clicked     for (i = 0; i <bbcode></script>  <form><input><span><b>{L_QUICK_REPLY}:</b><br><BEGIN>{L_USERNAME}: <input><br><END><table>     <tr>         <td>             <table>                 <tr>                     <td>                         <textarea></textarea><br>                     </td>                 </tr>             </table>         </td>         <BEGIN>         <td></td>         <td>             <table>                 <tr>                   <td><b>{L_EMOTICONS}</b></td>                 </tr>                 <BEGIN>                 <tr> <BEGIN><td>ALOEE<img></a></td><END>                 </tr>                 <END>             </table>         </td>         <END>     </tr>     <BEGIN>     <tr>             <td><span>                 <input>                 <input>                 <input>                 <input>                 <input>                 <input>                 <input>             </span></td>     </tr>     <END></table>  <a>Smilies!</a><br><input>{L_QUOTE_LAST_MESSAGE}<br><input>{L_ATTACH_SIGNATURE}<br><input>[color=red]Benachrichtigen bei Antworten?[/color]<br><input><input><input><input> <input><input></span></form><END>  


Note: the "notify on reply" option is in German in there for some reason, just edit the tpl file to english or go through the bother of creating a language tag,etc.

PostPosted: Thu Apr 13, 2006 5:37 pm
Author: bluecubbies4me
"tmotley";p="538" wrote:Anybody want to give me some tips to find the Quick Reply issue in iCGStation? <img>


Check out the download section in the old site and download the ICGstation from there, that one has a quick reply fix.

PostPosted: Thu Apr 13, 2006 7:14 pm
Author: tmotley
Sweet action... I got it working despite having a few too many MGD's... (Miller Genuine Draft)

Thank you vanquish and bluecubbies4me!

PostPosted: Fri Apr 14, 2006 6:54 am
Author: tmotley
Issues Remaining:

A. Poll page messed up until you vote.
B. Center Portal blocks have content cutoff on right side.
C. Bottom of my forum shoutbox isn't normal looking.
D. My portal mini-cal give errors if I try to use it.

PostPosted: Sun Apr 16, 2006 7:51 am
Author: bluecubbies4me
"tmotley";p="1520" wrote:Issues Remaining:

A. Poll page messed up until you vote.
B. Center Portal blocks have content cutoff on right side.
C. Bottom of my forum shoutbox isn't normal looking.
D. My portal mini-cal give errors if I try to use it.


A. Don't know how to fix it either
B. Does this happen with a particular browser?
C. I don't quite get this, can you provide a screenshot?
D. Is this the one that you replace with the one from fisbice? Or the one that came with ICGstation?

Re: iCGStation for 140

PostPosted: Sun Apr 16, 2006 8:48 am
Author: tmotley
A. Then you feel my pain? <img>
B. Just in IE. Here's a screenshot.
[flash=,:1eomlgfn]http://motleyville.com/icfixes/IE_centerblock.jpg[/flash:1eomlgfn]
C. Sure, here's another screenshot.
[flash=,:1eomlgfn]http://motleyville.com/icfixes/shout_bottom.jpg[/flash:1eomlgfn]
D. I used the one from fisubice but it seemed too large. Maybe I could try again...

PostPosted: Sun Apr 16, 2006 6:50 pm
Author: tmotley
D. Using fisubice's minicalbody2.tpl seems to look okay now.

Re: iCGStation for 140

PostPosted: Sun Apr 16, 2006 7:31 pm
Author: Helter
I dont remember which file I edited to fix it. Be sure to save your index.tpl, before overwriting it

PostPosted: Mon Apr 17, 2006 3:04 am
Author: tmotley
Hey, that worked out pretty well. Thanks! Now I'm down to two issues.

A. Poll page messed up until you vote.
B. IE cuts off right side of center portal blocks.

PostPosted: Mon Apr 17, 2006 7:46 pm
Author: bluecubbies4me
Yeah that poll page is really annoying, let's hope someone can find a fix for it.

Re: iCGStation for 140

PostPosted: Mon Apr 17, 2006 8:35 pm
Author: Helter
got a screenie?

Re: iCGStation for 140

PostPosted: Tue Apr 18, 2006 5:20 am
Author: tmotley
Before you vote in a poll, here's what the poll looks like:

[flash=,:1plasjpu]http://motleyville.com/icfixes/prepoll1.jpg[/flash:1plasjpu]

Scrolling down, you see that the center block is being attached to the bottom of the left column:

[flash=,:1plasjpu]http://motleyville.com/icfixes/prepoll2.jpg[/flash:1plasjpu]

After voting on the poll, the regular page shows:

[flash=,:1plasjpu]http://motleyville.com/icfixes/postpoll.jpg[/flash:1plasjpu]

Any help would be appreciated!

trm

PostPosted: Thu Apr 20, 2006 6:30 pm
Author: Michaelo
Just a note re Minical problem... We are looking into it (and it's very dark <img>)...
Mike