wiki code
Página 1 de 2. • Comparte
Página 1 de 2. • 1, 2
wiki code
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
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
Marceline Saga- Messages : 252
Data de inscrição : 29/01/2014
Re: wiki code
IHi. Sorry, ibut I dont know any conde for that. I'm sorry. Maybe other members can help.
juleic1123- Messages : 5219
Data de inscrição : 15/12/2012
Re: wiki code
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
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- Messages : 1139
Data de inscrição : 27/06/2014
Re: wiki code
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
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- Messages : 252
Data de inscrição : 29/01/2014
Re: wiki code
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- Messages : 1139
Data de inscrição : 27/06/2014
Re: wiki code
Yes, I will accept anything thankfully
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
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- Messages : 252
Data de inscrição : 29/01/2014
Re: wiki code
Marceline Saga escribió:Yes, I will accept anything thankfully
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- Messages : 1139
Data de inscrição : 27/06/2014
Página 1 de 2. • 1, 2
Temas similares
» Meichi's Book of things -_-_- No Posting
» Luna's RP Storage:
» Code Lyoko RPG (Start! You can still join!)
» Code: Melody -Besties Only!- {Open}
» The Warrior Code for Warrior Cats - 1X1 with MortemOynx
» Luna's RP Storage:
» Code Lyoko RPG (Start! You can still join!)
» Code: Melody -Besties Only!- {Open}
» The Warrior Code for Warrior Cats - 1X1 with MortemOynx
Página 1 de 2.
Permisos de este foro:
No puedes responder a temas en este foro.
|
|