Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Smiles Per Page Default 
 
Hi all.

I guess this will be short one:
where I can change default number of smiles that appear on page "/posting.php?mode=smilies"? So when user click "view all smileys" on posting page, that number of smileys will show up by default. Icy default is 100 smileys per page. Where to change it?

Tnx
 




____________
Omarska online
 
Last edited by omarska on Mon 28 May, 2007 13:17; edited 1 time in total 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Smiles Per Page Default 
 
Just install as many smiles as you want to show!

The "view all smiles" will show all the intalled ones, so there is no point on having 100 installed and limiting it to 50.
 



 
jzSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Smiles Per Page Default 
 
jz, i think that you misunderstood me.

I have over thousand smilies on my site (most of them are from Icy Phoenix, thanx MG ). When user is writing a post, and click "view all smileys" button, only the first 100 are shown (here on Icy it's 320). Then they can select  how many smileys per page to show (up to 5000).

My question is how to change this default value of 100? Some SQL, or maybe some code edit (javascript)?

I hope that this is little more explanatory than my post above.
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Smiles Per Page Default 
 
Got you,

have you had a look a posting_smilies.tpl

Code: [Download] [Hide]
  1. <!-- BEGIN switch_smilies_extra -->  
  2.                  <tr>  
  3.                      <td align="center" colspan="{S_SMILIES_COLSPAN}">  
  4.                          <span class="nav"><a href="{U_MORE_SMILIES}" onclick="open_window('{U_MORE_SMILIES}', 250, 300);return false" target="_smilies" class="nav">{L_MORE_SMILIES}</a></span>  
  5.                      </td>  
  6.                  </tr>  
  7.                  <!-- END switch_smilies_extra -->  


Also: functions_post.php

Code: [Download] [Hide]
  1.              $pagination = generate_pagination('posting.' . $phpEx . '?mode=smilies', $num_smilies, $per_page, $start, false);  
  2.  
  3.              $select_smileys_pp = '<select name="smilies_per_page" onchange="SetSmileysPerPage();" class="gensmall">';  
  4.              $select_smileys_pp .= '<option value="' . ($window_columns * $window_rows) . '"' . (( $smilies_per_page == ($window_columns * $window_rows) ) ? ' selected="selected"' : '') . '>' . ($window_columns * $window_rows) . '</option>';  
  5.              $select_smileys_pp .= '<option value="50"' . (( $smilies_per_page == 50 ) ? ' selected="selected"' : '') . '>50</option>';  
  6.              $select_smileys_pp .= '<option value="100"' . (( $smilies_per_page == 100 ) ? ' selected="selected"' : '') . '>100</option>';  
  7.              $select_smileys_pp .= '<option value="150"' . (( $smilies_per_page == 150 ) ? ' selected="selected"' : '') . '>150</option>';  
  8.              $select_smileys_pp .= '<option value="250"' . (( $smilies_per_page == 250 ) ? ' selected="selected"' : '') . '>250</option>';  
  9.              $select_smileys_pp .= '<option value="500"' . (( $smilies_per_page == 500 ) ? ' selected="selected"' : '') . '>500</option>';  
  10.              $select_smileys_pp .= '<option value="1000"' . (( $smilies_per_page == 1000 ) ? ' selected="selected"' : '') . '>1000</option>';  
  11.              $select_smileys_pp .= '<option value="5000"' . (( $smilies_per_page == 5000 ) ? ' selected="selected"' : '') . '>5000</option>';  
  12.              $select_smileys_pp .= '</select>';  

 



 
jzSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Smiles Per Page Default 
 
Got it.
Default number of smiles per page is defined in functions_post.php at line 1457 (Icy 1.1.0.15):
Code: [Download] [Hide] [Select]
'DEFAULT_SMILEYS_PER_PAGE' => $window_columns * $window_rows,

Knowing that, it can be changed by editing this line, or in ICY config table, by changing 'smilie_window_columns' or 'smilie_window_rows' value.

Thanx for the tip, jz
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: *SOLVED* Smiles Per Page Default 
 
Nice one,

that's the way to go
 



 
jzSend private message  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron