News - Features - Downloads - Forum - Team - Support - Switch View: Screen
Login - Registrierung - Passwort vergessen

Antworten: 3
Seite [1]
MajorHitSquad


Beginner




Beiträge: 9
# Thema - 05.05.2013 um 18:35 Uhr
Hi, I am redeveloping ClanSphere and adding mods like Instant Messenger (Live version). I will resubmit my version here on the forums when i am done, as I plan to change a lot of features. Anyway here is my issue:

I want to create some custom pages accessible from the main root of the domain. I.e. yoursite.com/activity.php
So what I done was, I created activity.php, and inserted the following code:

<?php
// ClanSphere 2010 - www.clansphere.net
// $Id$

# Overwrite global settings by using the following array
$cs_main = array('init_sql' => true, 'init_tpl' => true, 'tpl_file' => 'activity.htm');

require_once 'system/core/functions.php';

cs_init($cs_main);

?>

I then created a activity.htm template file in my templates/themes folder and I embed the stuff I want to show like:
{shoutbox:navlist}

Displays the shoutbox

{users:navbirth}

Showing a user DOB etc...

However, I am trying to embed stuff like the latest gallery pictures and stuff. But I don't know what code to use to call the gallery's latest submissions. Can anyone tell me how to call other modules features, just like {shoutbox:navlist} calls the shoutbox and its posts. I really need to embed the "gallery" and "replays". Is there a topic with a list of call functions?

Thanks.


Zuletzt editiert von MajorHitSquad am 05.05.2013 um 18:36 Uhr (1x Editiert)
Inaktiv
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 1 - 05.05.2013 um 19:17 Uhr
you can add nearly all php files of modules starting with nav* in their name, for some modules there are just no or very few navlist elements to include. you may want to fork our github repository to have it easier to share your changes if you plan to make them opensource, too.


------------------
ClanSphere - professional clan care starts here

Zuletzt editiert von hajo ClanSphere Team am 05.05.2013 um 19:49 Uhr (1x Editiert)
Inaktiv
|
MajorHitSquad
Thread-Ersteller


Beginner




Beiträge: 9
# Antwort: 2 - 05.05.2013 um 19:29 Uhr
https://github.com/ClanSphere/ClanSphere/blob/master/docs/English/templates.txt

I have seen this but it only covers a hand full. How else can I get the latest gallery submissions and replays on the the activity page?

And yes, I plan to keep it open source. I'll submit my final project when done.


Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 3 - 05.05.2013 um 19:56 Uhr
the readme files are outdated, but cover just a few possibilities as you said. the navdebug placeholder of the clansphere mod should contain nearly all nav files that can be used and provides a simple way to select and test their content. the list is not automated, so changes and additions made by you won't be covered as long as you don't edit the navdebug.php file, too.

if the desired functionality is not part of clansphere you have to add it yourself. if you get stuck you may ask here, but i can't promise to respond every time.


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
Antworten: 3
Seite [1]


Sie müssen sich registrieren, um zu antworten.


ClanSphere Project - Mailus - Imprint - Disclaimer - Scriptinfo