wiki code

Página 1 de 2. 1, 2  Siguiente

Ver el tema anterior Ver el tema siguiente Ir abajo

wiki code Empty wiki code

Mensaje  Marceline Saga Miér Jun 03, 2015 8:51 am

hello.
Is there a code to add newly-added files to the main page (in wiki)? I really need such thingy for Hunterpedia

thanks in advance :floraWinx:
Marceline Saga

Marceline Saga

Messages : 252
Data de inscrição : 29/01/2014

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  Marceline Saga Mar Jun 09, 2015 8:50 am

so,no suggestion ? :alguem?:
Marceline Saga

Marceline Saga

Messages : 252
Data de inscrição : 29/01/2014

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  juleic1123 Mar Jun 09, 2015 8:53 am

IHi. Sorry, ibut I dont know any conde for that. I'm sorry. Maybe other members can help. :floraWinx: :floraWinx:
juleic1123

juleic1123

Messages : 5219
Data de inscrição : 15/12/2012

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  Marceline Saga Mar Jun 09, 2015 8:59 am

no problem and thank you Smile
Marceline Saga

Marceline Saga

Messages : 252
Data de inscrição : 29/01/2014

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  Verax Mar Jun 09, 2015 10:02 pm

Marceline Saga escribió:hello.
Is there a code to add newly-added files to the main page (in wiki)? I really need such thingy for Hunterpedia

thanks in advance  :floraWinx:  

Could you please explain what language the code should be in and what you want code for more clearly?
Because I don't really understand what you want code for, and what language you want the code in.

If you provide more details, I may be able to help you.
Verax

Verax

Messages : 1139
Data de inscrição : 27/06/2014

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  Marceline Saga Miér Jun 10, 2015 2:13 am

Verax escribió:
Marceline Saga escribió:hello.
Is there a code to add newly-added files to the main page (in wiki)? I really need such thingy for Hunterpedia

thanks in advance  :floraWinx:  

Could you please explain what language the code should be in and what you want code for more clearly?
Because I don't really understand what you want code for, and what language you want the code in.

If you provide more details, I may be able to help you.

It's "Wiki Markup" , "Wikitext Language" or "Wikicode" ... It's LML (lightweight markup language) .
And the code I'm looking for,well,I'm not sure if there is such code BUT I'm sure that there was a special section on the right of every Wiki front page's top that shows the last 3 newest files (didn't anyone visit winx wiki? Don't u remember such thing ?)

(Newly-added files:those are images were uploaded by that wiki users . )
Marceline Saga

Marceline Saga

Messages : 252
Data de inscrição : 29/01/2014

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  Verax Jue Jun 11, 2015 10:23 pm

Marceline Saga escribió:
It's "Wiki Markup" , "Wikitext Language" or "Wikicode" ... It's LML (lightweight markup language) .
And the code I'm looking for,well,I'm not sure if there is such code BUT I'm sure that there was a special section on the right of every Wiki front page's top that shows  the last 3 newest files (didn't anyone visit winx wiki? Don't u remember such thing ?)

(Newly-added files:those are images were uploaded by that wiki users . )

"Wiki Markup" and "Lightweight Markup Language" is pretty vague, but if I provided the code in Creole, would that be sufficient?

Could you fetch a picture of what you want? I think I partly understands what you want, but just to be sure.
Verax

Verax

Messages : 1139
Data de inscrição : 27/06/2014

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  Marceline Saga Vie Jun 12, 2015 5:07 pm

Yes, I will accept anything thankfully  :floraWinx:
Here are some pictures: 1 ~ 2
If you check Hunterpedia you won't find such frame.All wikis had it in the past ,I left Hunterpedia for long time because of school and when I backed,I noticed that something has changed  😕 .I checked Winx Wiki and realized that it's not just Hunterpedia,but all wiki websites
Marceline Saga

Marceline Saga

Messages : 252
Data de inscrição : 29/01/2014

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  Verax Vie Jun 12, 2015 9:11 pm

Marceline Saga escribió:Yes, I will accept anything thankfully  :floraWinx:
Here are some pictures: 1 ~ 2
If you check Hunterpedia you won't find such frame.All wikis had it in the past ,I left Hunterpedia for long time because of school and when I backed,I noticed that something has changed  😕 .I checked Winx Wiki and realized that it's not just Hunterpedia,but all wiki websites

Ah, I see.

So, the thing is, you can't really code in Creole (or any wiki language, really), since it's a markup language. A markup language is simply a language that provides structure, and Creole basically provides the structure of a document for a wiki engine to parse. Because of this, you can't get code that show the three latest pictures with the use of Creole (or any wiki language).

However, you can use PHP to achieve what you want. PHP is basically code that lies in your source documents which interacts with the server the website is hosted on. If you are doing it from scratch, you would have to create a database holding all uploaded pictures, hash the pictures, connect your database up with PHP, and retrieve the three latest entries in your database. If you can't do that, I hope the framework you use for the wiki has an admin panel that allows you to create what you need.

I can't really provide the exact code you need, but it would be something along these lines:

Código:
<?php
//$db is your database object.
//$row is your query result.

$db->prepare(´SELECT img_src FROM table ORDER BY id DESC LIMIT 3´);
$db->execute();

while ($row = $db->fetch()) {
    //Do whatever you want with the pictures here. I choose to echo them as images via html5 code.
    echo ´<img src="´.$row[´img_src´].´" />´;
}
?>

Note that you would need a database containing a table which hold img_src for this to work. You would also need to connect to the database via a config.php file or something along these lines.
Verax

Verax

Messages : 1139
Data de inscrição : 27/06/2014

Volver arriba Ir abajo

wiki code Empty Re: wiki code

Mensaje  Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Página 1 de 2. 1, 2  Siguiente

Ver el tema anterior Ver el tema siguiente Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.