Author Topic: WordPress topics on the index page of 4images?  (Read 18825 times)

0 Members and 1 Guest are viewing this topic.

Offline soopafly134

  • Newbie
  • *
  • Posts: 19
    • View Profile
WordPress topics on the index page of 4images?
« 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??

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: WordPress topics on the index page of 4images?
« Reply #1 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline soopafly134

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: WordPress topics on the index page of 4images?
« Reply #2 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:

Offline kyzer

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: WordPress topics on the index page of 4images?
« Reply #3 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:

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: WordPress topics on the index page of 4images?
« Reply #4 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?
As long as I can finish my site before I die.

Offline troopers

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • weltimperator.de
Re: WordPress topics on the index page of 4images?
« Reply #5 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ß
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
weltimperator.de

rinaldos

  • Guest
Re: WordPress topics on the index page of 4images?
« Reply #6 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 (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

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: WordPress topics on the index page of 4images?
« Reply #7 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

rinaldos

  • Guest
Re: WordPress topics on the index page of 4images?
« Reply #8 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

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: WordPress topics on the index page of 4images?
« Reply #9 on: March 19, 2008, 09:08:12 PM »
Ja, klar. Ich Denke mal das Du es hinbekommen wirst. Gut Ding will weile haben....  :wink:

rinaldos

  • Guest
Re: WordPress topics on the index page of 4images?
« Reply #10 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

Offline osnapicture

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: WordPress topics on the index page of 4images?
« Reply #11 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?

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: WordPress topics on the index page of 4images?
« Reply #12 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

Offline osnapicture

  • Full Member
  • ***
  • Posts: 152
    • View Profile
Re: WordPress topics on the index page of 4images?
« Reply #13 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?

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: WordPress topics on the index page of 4images?
« Reply #14 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  :|