Jump to content
image01

WELCOME TO
LIMITCS ROMANIA

This community was created in 2014 as a laid back gaming environment.
We want to give you a place to feel free and make new friends. If you are looking to
learn more about our community please feel free to message or join our Teamspeak
server and speak with one of our staff members for more in depth history. Don't forget
to obey our rules and most importantly, don't forget to have fun.

image01

LIMITCS ROMANIA
Official CS 1.6 Servers

Join our official Counter-Strike 1.6 server CS.LIMITCS.RO
This server is a Classic/CSGO Mode and a fun one aswell. Join now if you
dare and show us that you have skill and enter our top 10 best players.

image01

LIMITCS ROMANIA
Official Steam Group

Join our official Steam Group Page.Here we will post official announcements,
events and future giveaways. We want to have a big family so don't forget
to invite your friends in our big family.

image01

LIMITCS ROMANIA
Official GameTracker

Join our official Gametracker Page.Here we will post official announcements,
events and future giveaways. We want to have a big family so don't forget
to invite your friends in our big family.

Sign in to follow this  
  • entries
    8
  • comments
    0
  • views
    359

[Project][P2] Event System LimitCS - Editare Meniu ACP

D0WN3D

121 views

LimitCS Events --  Part 2

//Pentru side bar ACP

Template Name: "appmenu" - posibil sa nu il gasiti in ACP la edit templates.

Poate fi gasit in Directory: /public_html/themes/1/html/core/admin/global

Poate fi gasit in DB la tabel-ul core_theme_templates sub numele de appmenu

Adaugam dupa {{endforeach}} urmatorul cod:

<!-- Events Edit by D0WN3D [start] -->
  <li class="" data-tab="tab_events">
   <a href="#"><!-- De adaugat link -->
		<span class="acpAppList_icon"><i class="fa fa-calendar" aria-hidden="true"></i></span>
		<span class="acpAppList_app">Events</span>
    </a>
<!--------------------------------->

Codul de mai sus ne v-a afisa in meniul ACP sub "Customization" un icon tip calendar cu numele "Events".

Imagine: https://snag.gy/cgDBWb.jpg (La mine e pus deasupra ca am dat drag & drop).

Dupa codul de mai sus adaugam urmatorul cod:

<ul class="ipsList_reset ipsScrollbar"> <!-- Scroolbar-ul din ACP de la meniu -->
	<li data-menukey="core_customization"><!-- Layout-ul folosit pentru a afisa meniurile in side-bar -->
							<h3>Start Events</h3>
							<ul class="ipsList_reset"> <!-- Aici insiram diferite meniuri pentru sectiunea specifica -->
									<li>
											<a href="#"><!-- De adaugat link -->
												Christmas Event
												<span class="ipsBadge ipsBadge_style1">ON/OFF</span><!-- Poate fi sters eventual. Vreau sa arate daca eventul este ON sau OFF -->
											</a>
											<a href="#"><!-- De adaugat link -->
												Easter Event
												<span class="ipsBadge ipsBadge_style1">ON/OFF</span><!-- Poate fi sters eventual. Vreau sa arate daca eventul este ON sau OFF -->
											</a>
											<a href="#"><!-- De adaugat link -->
												Halloween Event
												<span class="ipsBadge ipsBadge_style1">ON/OFF</span><!-- Poate fi sters eventual. Vreau sa arate daca eventul este ON sau OFF -->
											</a>
									</li>
							</ul>
							<li data-menukey="core_customization"><!-- Layout-ul folosit pentru a afisa meniurile in side-bar -->
							<h3>Event Settings</h3>
							<ul class="ipsList_reset"><!-- Aici insiram diferite meniuri pentru sectiunea specifica -->
									<li>
											<a href="#"><!-- De adaugat link -->
												Christmas Event
											</a><br>
											<a href="#"><!-- De adaugat link -->
												Easter Event
											</a><br>
											<a href="#"><!-- De adaugat link -->
												Halloween Event
											</a>
									</li>
							</ul></li>
							<li data-menukey="core_customization"><!-- Layout-ul folosit pentru a afisa meniurile in side-bar -->
							<h3>Event Items Add</h3>
							<ul class="ipsList_reset"><!-- Aici insiram diferite meniuri pentru sectiunea specifica -->
									<li>
											<a href="#"><!-- De adaugat link -->
												Adauga Globuri
											</a><br>
											<a href="#"><!-- De adaugat link -->
												Adauga Oua
											</a><br>
											<a href="#"><!-- De adaugat link -->
												Adauga Bomboane
											</a>
									</li>
							</ul></li>
						</li>
	</ul>
</li>
  <!-- Events Edit by D0WN3D [end] -->

 Dupa asta un pas crucial este sa resetam cache-urile ACP-ului. Pentru a face asta mergem la Tab-ul Customization > Themes si dam click pe "Enable Designer Mode" si il bifam pe activat. Asteptam 1-2 minute sa intre in designer mode si la final ar trebuiis a vedem schimbarile aduse ACP-ului.

Daca totul este in regula dam click pe "Designer's Mode Enabled" si setam pe dezactivat. Setam "Syncronize Changes" pe active (daca tema este in neregula dezactivam syncronizarea) si bifam themes. "Remove Disk Files" ramane debifat apoi apasam pe NEXT.

Dupa cateva minute tema se v-a syncroniza si salva in DataBase sau IPB Directory in functie de ce metoda cache avem. 

Daca vrei sa testezi ACP-ul te poti loga aici cu Username: TestAccount si Password: testaccount  //Restricted Access.

(Momentan link-urile de la tab-ul "Events" sunt dezactivate, deci nu redirectioneaza spre o pagina atunci cand dam click pe ele.)

// De adaugat pe viitor:

 -> Mod de restrictionare a accesului Administratorilor la tab-ul Events.

 -> Badge-ul ON/OFF in dreptul meniurilor din "Start Events" functional. <!-- Poate o sa bag chiar sa activeze/dezactiveze eventul atunci cand dai click pe ele -->

 -> Rezolvare bug profiluri. Momentan primesc o erroare 500 din cauza ca schema DB-ului nu corespunde cu ce-a salvata in IPB. (Din cauza ca am adaugat Globurile).

 

"Un om destept a spus odata: "Sa refuzi un proiect mai mare decat tine nu e o rusine. Sa critici pe cineva care te ajuta, e o rusine." - Cineva, 2017"



0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×