wiki code

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

wiki code

Post  Marceline Saga on Wed 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:
avatar

Marceline Saga

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

Back to top Go down

Re: wiki code

Post  Marceline Saga on Tue Jun 09, 2015 8:50 am

so,no suggestion ? :alguem?:
avatar

Marceline Saga

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

Back to top Go down

Re: wiki code

Post  juleic1123 on Tue 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:

_______________________________________________________________________________________________________________________________________________________
avatar

juleic1123

Messages : 5218
Data de inscrição : 2012-12-15

Back to top Go down

Re: wiki code

Post  Marceline Saga on Tue Jun 09, 2015 8:59 am

no problem and thank you Smile
avatar

Marceline Saga

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

Back to top Go down

Re: wiki code

Post  Verax on Tue Jun 09, 2015 10:02 pm

@Marceline Saga wrote: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.
avatar

Verax

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

Back to top Go down

Re: wiki code

Post  Marceline Saga on Wed Jun 10, 2015 2:13 am

@Verax wrote:
@Marceline Saga wrote: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 . )
avatar

Marceline Saga

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

Back to top Go down

Re: wiki code

Post  Verax on Thu Jun 11, 2015 10:23 pm

@Marceline Saga wrote:
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.
avatar

Verax

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

Back to top Go down

Re: wiki code

Post  Marceline Saga on Fri 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
avatar

Marceline Saga

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

Back to top Go down

Re: wiki code

Post  Verax on Fri Jun 12, 2015 9:11 pm

@Marceline Saga wrote: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:

Code:
<?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.
avatar

Verax

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

Back to top Go down

Re: wiki code

Post  Sponsored content


Sponsored content


Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum