4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: soopafly134 on August 11, 2006, 05:44:19 AM

Title: WordPress topics on the index page of 4images?
Post by: soopafly134 on August 11, 2006, 05:44:19 AM
Hello all,
I'm hopping on this blog bandwagon and want to know if it's possible to have topics from WordPress go on the homepage of my gallery.

If you look at v@no's site http://gallery.vano.org/en/ the bottom has an area for "Latest Comments".  I want something like that, but topics from my WordPress.

Is this possible??
Title: Re: WordPress topics on the index page of 4images?
Post by: V@no on August 11, 2006, 06:41:09 AM
I think this question is more appropriate to ask at wordpress support center, since there people should know how their system works and such...if they give you some code, then we'll try help you integrate it to 4images.
Title: Re: WordPress topics on the index page of 4images?
Post by: soopafly134 on August 11, 2006, 08:25:54 AM
I think this question is more appropriate to ask at wordpress support center, since there people should know how their system works and such...if they give you some code, then we'll try help you integrate it to 4images.

Thanks!  I'll post there and keep you guys...uh...posted  :lol:
Title: Re: WordPress topics on the index page of 4images?
Post by: kyzer on February 21, 2007, 09:05:40 PM
Yes it's possible...
In fact I'm using it... what I did... was just find an ajax based code to read RSS and then I placed the RSS reader in a iframe on my homepage...
it works perfectly... :mrgreen:
Title: Re: WordPress topics on the index page of 4images?
Post by: AntiNSA2 on July 21, 2007, 12:57:48 PM
can you please see this thread http://www.4homepages.de/forum/index.php?topic=17998.0 and offer us insiteto how you did this?
Title: Re: WordPress topics on the index page of 4images?
Post by: troopers on July 22, 2007, 08:39:48 PM
here. perhaps it isnt the fine art of any coding rule...  but it works fine on my site.

on index.php insert:
in der index.php datei folgendes hinzufügen:

Code: [Select]
### BLOG Einträge
$wordpress_sql_statement = "SELECT id,post_title,guid FROM wp_posts WHERE post_status='publish' ORDER BY id DESC LIMIT 8";
$wordpress_sql1 = $site_db->query($wordpress_sql_statement);
$wp ="<ul class=\"bullet\">";
  while ($row_wordpress = $site_db->fetch_array($wordpress_sql1)){
 
$wp .= "<li class=\"bullet\"></li><li><a href=\"".$site_sess->url($row_wordpress['guid'])."\" target=\"_blank\">".$row_wordpress['post_title']."</a></li><br>";
}
$wp .="</ul>";

$site_template->register_vars("wordpress", $wp);
unset($wp);

### BLOG Einträge Ende 

on your home.html template insert anywhere follwing:
in dem home.html template irgendwo wo ihr wollt dann dies einfügen:

Code: [Select]
<h2>Neuste Blogs / Newest Blogs</h2>{wordpress}
and at the end, create an html template: wordpress.html
zu guter letzt, erstellt ein html template: wordpress.html

in wordpress.html insert follwing:
in wordpress.html folgendes einfügen:

Code: [Select]
{wp_title}


ready/fertig & gruß
Title: Re: WordPress topics on the index page of 4images?
Post by: rinaldos on March 19, 2008, 08:49:27 PM
Auch wenn dieser POST nun sehr alt ist, wollte nur mitteilen, das es mit 1.7.4 und Wordpress 2.3.3 DE Edition einwandfrei funktioniert. (Habe meine Wordpress Datenbank innerhalb der 4images Datenbank)

Habe in der index.php folgendes über
Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
eingefügt:
Code: [Select]
// BLOG Einträge
$wordpress_sql_statement = "SELECT id,post_title,guid FROM wp_posts WHERE post_status='publish' ORDER BY id DESC LIMIT 10";
$wordpress_sql1 = $site_db->query($wordpress_sql_statement);
$wp ="<class=\"bullet\">";
while ($row_wordpress = $site_db->fetch_array($wordpress_sql1)){
 
$wp .= "<class=\"bullet\"><li><a href=\"".$site_sess->url($row_wordpress['guid'])."\" target=\"_self\">".$row_wordpress['post_title']."</a></li>";
}

$site_template->register_vars("wordpress", $wp);
unset($wp);

// BLOG Einträge Ende

und in den Dateien categories.php / details.php jeweils vor

Code: [Select]
//-----------------------------------------------------
//---Clickstream---------------------------------------
//-----------------------------------------------------

Da ich den MOD  http://www.4homepages.de/forum/index.php?topic=18926.0 (http://www.4homepages.de/forum/index.php?topic=18926.0) (Universal Layout) verwende, brauchte ich nur in der Datei ste_layout_left.html folgendes einzufügen:
Code: [Select]
<h2>Neuste Blogs.html</h2>
{wordpress}


Nun das template wordpress.html erstellen mit {wordpress}

und voila, nun habe ich in meiner linken Seitenleiste die Einträge im Blog :-)

Gruß
Ingo
Title: Re: WordPress topics on the index page of 4images?
Post by: nobby on March 19, 2008, 08:59:09 PM
@rinaldos

Endlich hast Du mal eine Freundliche Homepage, Hochachtung. Da fühlt man sich gleich wohler! Klasse gemacht  :)

Die alte war für die Augen schädlich.

nobby
Title: Re: WordPress topics on the index page of 4images?
Post by: rinaldos on March 19, 2008, 09:03:48 PM
Danke :-) Habe auch lange am Design rumgewurschtelt und musste vieles innerhalb von 4images verschieben. Nun geht es an die für mich sinnvolle integration von wordpress :-)
Mal sehen was sich da noch machen lässt :-)

Gruß
Ingo
Title: Re: WordPress topics on the index page of 4images?
Post by: nobby on March 19, 2008, 09:08:12 PM
Ja, klar. Ich Denke mal das Du es hinbekommen wirst. Gut Ding will weile haben....  :wink:
Title: Re: WordPress topics on the index page of 4images?
Post by: rinaldos on April 24, 2008, 03:02:16 PM
Hallo zusammen,
ich habe mal eine Verständnisfrage:
Was spricht eigentlich dagegen den "Codeschnippsel"

Code: [Select]
// BLOG Einträge
$wordpress_sql_statement = "SELECT id,post_title,guid FROM wp_posts WHERE post_status='publish' ORDER BY id DESC LIMIT 10";
$wordpress_sql1 = $site_db->query($wordpress_sql_statement);
$wp ="<class=\"z3\">";
while ($row_wordpress = $site_db->fetch_array($wordpress_sql1)){
 
$wp .= "<class=\"z3\"><a href=\"".$site_sess->url($row_wordpress['guid'])."\" target=\"_self\">".$row_wordpress['post_title']."</a></br>";
}

$site_template->register_vars("wordpress", $wp);
unset($wp);

// BLOG Einträge Ende

in die page_header.php einzutragen?

ich habe dieses über
Code: [Select]
//-----------------------------------------------------
//--- Set Paging Vars ---------------------------------
//-----------------------------------------------------
eingetragen.
Dann muss man dieses ja nicht überall eintragen (search.php categories.php usw). Kann es zu Konflikten kommen, oder hat es einen tieferen Sinn. Ich habe auf meinem Testsystem mal den Schnipsel in die page_header eingetragen und nun überall (search.html categories.html home.html usw) das template {wordpress} zur Verfügung.

LG
Ingo
Title: Re: WordPress topics on the index page of 4images?
Post by: osnapicture on June 06, 2009, 08:09:46 PM
wo muss ich denn den Link zu meiner Wordpress-Seite im Quellcode angeben?

where do I have to add the link to my wordpress-page?
Title: Re: WordPress topics on the index page of 4images?
Post by: nobby on June 06, 2009, 08:23:22 PM
wo muss ich denn den Link zu meiner Wordpress-Seite im Quellcode angeben?

where do I have to add the link to my wordpress-page?

Hallo,

ich denke mal dort wo Platz ist und Du es gerne hinhaben möchtest! Einfach mal Ausprobieren.

nobby
Title: Re: WordPress topics on the index page of 4images?
Post by: osnapicture on June 06, 2009, 08:26:31 PM
nein, das meinte ich nicht. Ich habe mein wordpress auf einem anderen Server installiert. Irgendwo muss ich ja im Quellcode, den ich bei 4images einfüge definieren wo mein wordpress zu finden ist, oder?
Title: Re: WordPress topics on the index page of 4images?
Post by: nobby on June 06, 2009, 08:37:23 PM
Ja, das ist richtig. Du willst doch nur einen Link zu WordPress setzen.

Das soll vom Menü aus Anklickbar sein, korrekt?

Wenn ja, fängst Du bei der Index.html an und setzt in allen Templates die das Menü bilden den Link!

Hoffendlich ist das nun richtig  :|
Title: Re: WordPress topics on the index page of 4images?
Post by: osnapicture on June 06, 2009, 08:42:17 PM
Vielen Dank für die Mühe, aber ganz richtig ist das leider immer noch nicht!

Ich würde gerne den oben genannten Code auf meiner 4images Startseite einbauen, damit unmittelbar dort auf der Startseite direkt die neuesten Einträge von Wordpress gezeigt werden.

Nur der Code, der hier genannt ist, kann dafür ja nicht genügen. Irgendwo muss ich darin doch definieren, wo mein Wordpress zu finden ist. Und wo 4images sich die Daten holen muss, um diese auf der eigenen Startseite zu zeigen
Title: Re: WordPress topics on the index page of 4images?
Post by: nobby on June 06, 2009, 08:56:00 PM
Nun habe ich es verstanden  :wink:

Antwort #6 enthält doch die Beschreibung.

Allerdings sieht es so aus das WordPress mit der URL im gleichen System läuft.

Denn die URL ist dort ja Angegeben.

Quote
$wp .= "<class=\"bullet\"><li><a href=\"".$site_sess->url($row_wordpress['guid'])."\" target=\"_self\">".$row_wordpress['post_title']."</a></li>";
}
Title: Re: WordPress topics on the index page of 4images?
Post by: osnapicture on June 06, 2009, 09:04:57 PM
ich glaube, ich stehe selbst etwas auf dem schlauch. wie müsste denn dann der code aussehen, wenn mein wordpress unter www.beispiel.de zu finden wäre?
Title: Re: WordPress topics on the index page of 4images?
Post by: nobby on June 06, 2009, 09:16:16 PM
ich bin in PHP ja auch keine große Leuchte.

Ich bin schon in SELFPHP am schauen.


edit: ich habe da nichts gefunden
Title: Re: WordPress topics on the index page of 4images?
Post by: osnapicture on June 06, 2009, 09:33:00 PM
schade, vielleicht kann ja wer anders helfen?!
Title: Re: WordPress topics on the index page of 4images?
Post by: nobby on June 06, 2009, 09:44:52 PM
schade, vielleicht kann ja wer anders helfen?!

Ich habe per Google ein Befehl gefunden.

Code: [Select]
// Datei über HTTP aufrufen
$url = 'http://www.ftmedia.de/test/test/go.htm';
$old = implode('', file($url));

weiss aber nicht ob er korrekt ist.
Title: Re: WordPress topics on the index page of 4images?
Post by: osnapicture on June 06, 2009, 09:47:04 PM
werde ich morgen mal probieren
Title: Re: WordPress topics on the index page of 4images?
Post by: nobby on June 06, 2009, 09:49:10 PM
werde ich morgen mal probieren

drücke die Daumen  :thumbup:  :thumbup:
Title: Re: WordPress topics on the index page of 4images?
Post by: osnapicture on June 06, 2009, 09:53:50 PM
danke