<b>REGISTER</b>

GFX-Sector - PHP, MySQL


 
GFX-Sector » Coding Area » Webentwicklung » PHP, MySQL » Zufallsthema wie hier » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites

PHP, MySQL

Themen rund um die serverseitige Programmierung mit PHP in Verbindung mit der Datenbanksoftware MySQL
Post New Thread Post Reply

Zufallsthema wie hier

     Deutsche Version  English version
Author
Post « Previous Thread | Next Thread »

sPiKe83
Filtertester


Avatar von sPiKe83

Registration Date: 15.04.2008
Posts: 6

Spacer
Zufallsthema wie hier

Zufallsthema wie hier

      

Hallo,

ich wollte mal fragen wo man den 'Hack' oder was auch immer das ist bekommt ^^
oben steht ja

Upload Einstellungen PM Box Benutzerliste F.A.Q. Zufallsthema Termine

Das mit dem Zufallsthema interessiert mich sehr, wie kann ich das bei mir einbauen oder gibts den Hack/Codeschnipsel irgendwo ?

Wenn ich falsch gepostet habe, dann bitte verschieben ^^

Danke


Zufallsthema wie hier 16.04.2008 14:32 sPiKe83 is offline Search for Posts by sPiKe83

masterofnothing
Buntstiftmaler


Avatar von masterofnothing

Registration Date: 14.03.2008
Posts: 85
Location: München
Program: Paint, GIMP, Photoshop

Spacer

RE: Zufallsthema wie hier

      

So ein Plugin ist schneller selbst geschrieben als von irgendwo heruntergeladen...

Aber wenn Du nett fragst und 5€ spendest, gibt Dir Fireball sicher den Code Wink



Werbefreier Freehoster - Kostenloser Webspace ohne Werbung
Zufallsthema wie hier 16.04.2008 15:05 masterofnothing is offline Homepage of masterofnothing Search for Posts by masterofnothing

sPiKe83
Filtertester


Avatar von sPiKe83

Registration Date: 15.04.2008
Posts: 6

Thread Starter Thread Started by sPiKe83
Spacer
      

vielleicht gibt mir fireball den code auch kostenlos ?
5 € wär ja bissl teuer dafür ne ^^



Zufallsthema wie hier 16.04.2008 15:18 sPiKe83 is offline Search for Posts by sPiKe83

Fireball Fireball is a male
Boardchef


Avatar von Fireball

Registration Date: 11.11.2006
Posts: 16,357
Classing-Rank: GFX-Sector
Location: Bremen, Deutschland
Program: Adobe Photoshop CS2
Deviantart: oenismaster
Forums: (alle)

Spacer
      

Da ich heute mal gut gelaunt bin geb ich dir den Code gerne *g*

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:

<?php
require('./global.php');

$res mysql_query("SELECT `threadid` FROM bb".$n."_threads");
if (mysql_num_rows($res)>=1) {
while($row mysql_fetch_assoc($res)) {
$randThread[] = $row["threadid"];
}

$ThreadId $randThread[rand(0,count($randThread)-1)];
header("Location: thread.php?threadid=".$ThreadId);
}
?>



Ganz easy Wink
Musste dir dann halt nur noch ein wenig an dein Script anpassen.

Spenden sind trotzdem gern gesehen *g*



Zufallsthema wie hier 16.04.2008 15:41 Fireball is offline Homepage of Fireball Search for Posts by Fireball

sPiKe83
Filtertester


Avatar von sPiKe83

Registration Date: 15.04.2008
Posts: 6

Thread Starter Thread Started by sPiKe83
Spacer
      

dankeschön fireball *juhuuuu*
und wegen spenden, also wenn ich mal flüssiger bin bin ich natürlich gerne bereit (:



Zufallsthema wie hier 16.04.2008 16:58 sPiKe83 is offline Search for Posts by sPiKe83

izak.stern izak.stern is a male
Ohnefiltergrafiker


izak.stern hat kein Avatar

Registration Date: 18.02.2008
Posts: 478

Spacer
      

aehm gings nich um ein zufalls-layout?

zb:

du nummerierst deine stylesheets einfach durch und uebergibst der funktion den bereich...

code:
1:
2:
3:
4:
5:
6:
7:
8:
public static function randCSS($begin, $end){
	
	$id = rand($begin, $end);
	template::addStylesheet('css/css' . $id . '.css');

}


addStylesheet() ist zb eine funktion einer template engine, die das stylesheet dann einfuegt:

für randCSS(1, 1):

<link href="css/style1.css" type="text/stylesheet" rel="stylesheet" />



Zufallsthema wie hier 16.04.2008 17:37 izak.stern is offline Homepage of izak.stern Search for Posts by izak.stern

sPiKe83
Filtertester


Avatar von sPiKe83

Registration Date: 15.04.2008
Posts: 6

Thread Starter Thread Started by sPiKe83
Spacer
      

nein izak stern, das war schon das richtige ^^

aber danke für den code, kann man sicher auch mal gebrauchen



Zufallsthema wie hier 16.04.2008 17:43 sPiKe83 is offline Search for Posts by sPiKe83
 
Spacer
   
GFX-Sector
unregistered


 hat kein Avatar


Spacer

Have you enjoyed this topic?


If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.

After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.

In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.

Sign up now and enjoy the advantages as a registered member.

(This website will be ad-free after a complete free sign up.)

New Post 16.04.2008 17:43  
Tree Structure | Board Structure
Post New Thread Post Reply
GFX-Sector » Coding Area » Webentwicklung » PHP, MySQL » Zufallsthema wie hier

Similar topics to Zufallsthema wie hier
Thread
[Frage] Nicht gespeichertes Bild - wieder öffnen (Forum: Fragen & Probleme)
-Cruzer* auch hier (Forum: Vorstellungen)
[Anfänger] Wie findet ihrs? (Forum: Signaturen/Avatare)
3 Attachments attached Wieder mal ein paar anfänger sachen von mir^^ (Forum: Signaturen/Avatare)
[Frage] Forendesignen nur wie ? (Forum: Fragen & Probleme)