Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 4
Seite [1]
Nextel


Wannabe poster




Beiträge: 27
# Thema - 17.04.2011 um 07:09 Uhr
Anyone knows how put country flag in Clan names in navtop ?

tks
Inaktiv
palle ClanSphere Team

Supporter
Supporter




Beiträge: 3073
# Antwort: 1 - 17.04.2011 um 11:25 Uhr
hello, I have removed the answer because they do not respect the rules.
please read and follow it, thanks.
General:
The blacklist is an internal list, where you can add, in the linked form at the end of the site, websites which doesn't meet the criteria. We won't see any fun entries, because they only take time from our developement.

Placement of the link: (Change 18.11.2008)
There have to be an optical, correctly identified and naming matched Hyperlink on every reachable index-site, which forwarding to the About page of the Clansphere Script. The link have to be visible/viewable/reachable without any interaction of the visitor

Naming of link:
- Allowed are names, which meaning give information to the script. (e.g. About, Scriptinfo)
- Not allowed are names, which give no information to the script and point to something else. (e.g. We about us, imprint)

The hyperlink
- (with mod_rewrite): /index/clansphere/about
- (without mod_rewrite): index.php?mod=clansphere&action=about
- (for both from version 2008.1): { url:clansphere_about }

The About:
- We look forward to what is reported here.
- Please no gbook, news or board entries on the sites, which you reporting about.
- What kind of penalties will be used, set by us and no one else. By first entry in the blacklist, we'll use to find an acceptable solution, then following serious discussions or legal action.



mods/wars/navtop.php
 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
1. / 2. / ... 
<?php
// ClanSphere 2010 - www.clansphere.net
// $Id: $
$cs_lang cs_translate('wars');
$cs_get cs_get('catid');
$data = array();

$select 'war.wars_date AS wars_date, sqd.squads_name AS squads_name, sqd.squads_id AS squads_id, sqd.squads_picture AS squads_picture, cln.clans_country AS clans_country, cln.clans_name AS clans_name, owncln.clans_picture AS squad_picture, owncln.clans_country AS squad_country, cln.clans_picture AS clans_picture, cln.clans_id AS clans_id, war.wars_id AS wars_id';
$from 'wars war INNER JOIN {pre}_squads sqd ON war.squads_id = sqd.squads_id INNER JOIN {pre}_clans cln ON war.clans_id = cln.clans_id INNER JOIN {pre}_clans owncln ON owncln.clans_id = sqd.clans_id';
$where 'war.wars_date > ' cs_time() . ' AND war.wars_status = \'upcoming\' AND war.wars_topmatch = 1';
if(!empty(
$cs_get['catid'])) {
  
$where .= ' AND war.categories_id = ' $cs_get['catid'];
}
$data['wars'] = cs_sql_select(__FILE__,$from,$select,$where,'{random}',0,1);

if(empty(
$data['wars'])) {
  echo 
$cs_lang['no_data'];
} else {
  
$data['wars']['squads_name'] = cs_link(cs_secure($data['wars']['squads_name']),'squads','view','id=' $data['wars']['squads_id']);
  
$data['wars']['clans_name'] = cs_link(cs_secure($data['wars']['clans_name']),'clans','view','id=' $data['wars']['clans_id']);
  
$data['wars']['ownlogo'] = ! empty($data['wars']['squad_picture']) ? cs_html_img('uploads/clans/' $data['wars']['squad_picture']) : $cs_lang['no_logo'];
  
$data['wars']['enemylogo'] = ! empty($data['wars']['clans_picture']) ? cs_html_img('uploads/clans/' $data['wars']['clans_picture']) : $cs_lang['no_logo'];
  
$data['wars']['date'] = cs_date('unix',$data['wars']['wars_date'],1,1);
  
$data['wars']['ownflag'] = ! empty($data['wars']['squad_country']) ? cs_html_img('symbols/countries/' $data['wars']['squad_country'] . '.png',11,16) : '';
  
$data['wars']['enemyflag'] = ! empty($data['wars']['clans_country']) ? cs_html_img('symbols/countries/' $data['wars']['clans_country'] . '.png',11,16) : ''
  
  echo 
cs_subtemplate(__FILE__,$data,'wars','navtop');
}



themes/yourset/wars/navtop.tpl
 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
1. / 2. / ... 
 <table style="width:100%; overflow:hidden" cellspacing="0" cellpadding="2" border="0">
  <
tr>
    <
td align="center">{wars:ownflag} {wars:squads_name}</td>    
    <
td align="center">{wars:enemyflag} {wars:clans_name}</td>
  </
tr>
  <
tr>
    <
td align="center">{wars:ownlogo}</td>
    <
td align="center">{wars:enemylogo}</td>
  </
tr>
  <
tr>
    <
td colspan="2" align="center">{wars:date}</td>
  </
tr>
  <
tr>
    <
td colspan="2" align="center"><a href="{url:wars_view:id={wars:wars_id}}">{lang:details}</a></td>
  </
tr>
</
table>


Hi, i have the


------------------
I like the part where it says 'nyan'



Zuletzt editiert von palle ClanSphere Team am 18.04.2011 um 06:19 Uhr (4x Editiert)
Inaktiv
|
Nextel
Thread-Ersteller


Wannabe poster




Beiträge: 27
# Antwort: 2 - 18.04.2011 um 05:53 Uhr
Palle, i put ABOUT in site..

can you help me now ?


Inaktiv
|
palle ClanSphere Team

Supporter
Supporter




Beiträge: 3073
# Antwort: 3 - 18.04.2011 um 06:18 Uhr
Olhe para cima / look up


------------------
I like the part where it says 'nyan'



Inaktiv
|
Nextel
Thread-Ersteller


Wannabe poster




Beiträge: 27
# Antwort: 4 - 18.04.2011 um 06:40 Uhr
Hey Thanks, i will make some tests..

Ps: excelente portuguese.


Inaktiv
|
Antworten: 4
Seite [1]


Sie müssen sich registrieren, um zu antworten.