0 Members and 1 Guest are viewing this topic.

*

Pharg

  • *****
  • 3,153
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Hi Members,

Here is a nice little tips on how to get your site nice and even with the preview pics on the pages etc.

1: In the admin, go to the Site Global Settings and find all the display pics that have 5 change to 6, there is a few in Global Configurations > Profile Images and Thumbnails also.

2: In all these tpl files below, find this:
Code: [Select]
{if $ccount==4}
<div style="clear:both;"></div>
</div>
{/if}
{math equation="$ccount+1" assign="ccount"}
{math equation="$ccount%5" assign="ccount"}
{/foreach}

Change to this:
Code: [Select]
{if $ccount==5}
<div style="clear:both;"></div>
</div>
{/if}
{math equation="$ccount+1" assign="ccount"}
{math equation="$ccount%6" assign="ccount"}
{/foreach}

Tpl files to change this in are:
featured_profiles_display.tpl
newest_profiles_display.tpl
newuserlist_display.tpl
random_profiles_display.tpl
recent_active_profiles_display.tpl
newest_profpics_display.tpl
luckySpin_gender.tpl
iplocation_profiles_display.tpl

3: In the template folder go to the CSS folder and open the style.css file.
Find the line 1029
Code: [Select]
.user-box.small-set {
    width: 20%;
    float: left;
    height: auto;
    overflow: hidden;
}
Change to this:
Code: [Select]
.user-box.small-set {
    width: 16%;
    float: left;
    height: auto;
    overflow: hidden;
}

Save and that should be it.

Now you will have 6 profiles boxes not 5, so it now will look even on your dating website.

Now for the Members online looking uneven, you can fix this also.
Go to the admin, then to the Global Configurations > Page and Table Layout

Find this:
Number of results to show on a page: 10
Change the 10 to 9 or 6 which ever your happy with.

Now there is one more setting to change.

Go to you selected language file, open the lang_main.php and find about line 377 this:
Code: [Select]
$lang['search_results_per_page'] = array( 2 => 2, 5 => 5 , 10 => 10, 20 => 20, 50 => 50, 100 => 100 );
Change to this:
$lang['search_results_per_page'] = array( 3 => 3, 6 => 6 , 9 => 9, 12 => 12, 18 => 18, 36 => 36, 99 => 99 );

Save the changes.

Now go to the admin and then go to the Manage Languages Select your Language and click Load Language so these changes are not changed in the database also.

That's it, all done :)

Hope this helps you all.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35