show content in other then the main table

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
ryanpratt
Posts: 74
Joined: Fri 5. Mar 2004, 16:59
Location: Hilton Head Island, SC

Spirou

Post by ryanpratt »

Spirou i cant find

content.article.inc.php
article.edit.tmpl.php
article.readform.inc.php

or

content.func.inc.php

any idea what im missing, i am running the latest V. could that be the issue.

thanks in advance im looking forward to implimenting your new toy, its just what i needed.

:?:
cmslover
Posts: 86
Joined: Wed 18. Feb 2004, 16:17
Location: USA, Georgia, Atlanta
Contact:

Post by cmslover »

Hi,

Look in folder include/inc_tmpl and include/inc_lib, include/inc_front :D
ryanpratt
Posts: 74
Joined: Fri 5. Mar 2004, 16:59
Location: Hilton Head Island, SC

thanks for your help cmslover

Post by ryanpratt »

thanks for the help sir, much apreciated..

good day to you Sir. :D
ryanpratt
Posts: 74
Joined: Fri 5. Mar 2004, 16:59
Location: Hilton Head Island, SC

Sorry got to excited!!

Post by ryanpratt »

any ideas on "content.func.inc.php" :?:
cmslover
Posts: 86
Joined: Wed 18. Feb 2004, 16:17
Location: USA, Georgia, Atlanta
Contact:

Re: Sorry got to excited!!

Post by cmslover »

ryanpratt wrote:any ideas on "content.func.inc.php" :?:
It's in include/inc_front 8)
ryanpratt wrote:good day to you Sir :P
Uhm... I'm not a "Sir" :roll: nor a "Madam" but a "Girl" whom loves "Spicy food" and ofcourse "phpwcms" :o
ryanpratt
Posts: 74
Joined: Fri 5. Mar 2004, 16:59
Location: Hilton Head Island, SC

error using

Post by ryanpratt »

i get this error after i instal ?

Not Found
The requested URL /include/inc_tmpl/phpwcms.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.29 Server at http://www.atruehost.com Port 80 :roll:
Spirou
Posts: 22
Joined: Fri 2. Jan 2004, 17:07
Location: Finland

Post by Spirou »

Hi CMSlover!
1/Here is what I did: STEP 1
STEP 1 & 2 is OK!
Question:
-each article has maximum only 5 pos?
-pos can be placed anywhere WITHIN the article PAGE which THEY BELONG TO ?
Yes, my hack has only 5 sql-switches. position switch is only intended for article PARTS(!). Not articles.
- pos which added and BELONG to article 1 CAN NOT be displayed on article 2,3,...'s page? Even though they are using the same template and page layout. ( this happened in my case )
See previous answer. Each content part you create always belong to a specific article. Remember that all content-parts are connected to a specific article-id. This is how phpwcms originally was built and has nothing to do with my hack. Therefore I suggest you put any content that would be displayed on all pages in the template or create a separate {PHP:..} Example: Suppose you would like to put meta-tags that is supposed to be in every page - put them in the template.
-If I have Category 1 with article 1 has content 1 checked as {FIELD5}
and article 2 has content 2 checked as {FIELD5} , in template RIGHT SITE I would input {FIELD5} ( for content 1) and in FOOTER I put another {FIELD5} ( for content 2) , what would happen? Will it know that they are two different contents even they are the same name?
See previous answers. Articles have unique id's. Create a separate template if you intend to use different layouts.

Good luck!
cmslover
Posts: 86
Joined: Wed 18. Feb 2004, 16:17
Location: USA, Georgia, Atlanta
Contact:

Post by cmslover »

Thank you so much Spirou! I understand it better now. Thank you! :D


Note for ryanpratt: if you have error file not found, you should check the path. The way I did was comparing those files's path with the original files's path, I opened those files- side by side and looked through their path, then I changed the new ones ( files from Spirou ) to match the original ones. Hope it helps!
hidiho
Posts: 38
Joined: Wed 3. Dec 2003, 23:44

Changes in position not saved

Post by hidiho »

Hi Spirou

First: neat hack, does it quite well. But... whatever i try to change in the article content part, nothing changes: it allways stays on checked: 1
So when i check 4 and click save, then the saved page shows 1 checked again.

When creating a new article, then the selection is saved and kept. But changing it to say 3 again, makes the script stores it as 1 in the database. And manually changing my db is not my favorite ;-)

Do you have any ideas?

Regards

hidiho
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

same problem here...
I installed the script but when i check POS3 and click on the save button, the checked radio button is POS1 again :(

This hack is what i was looking for a long time... and now it doesn't work :(
pls help! :!:
dpi72
Posts: 5
Joined: Mon 22. Mar 2004, 00:40

Post by dpi72 »

Any idea when the "any kind of content can be placed anywhere" feature a la Spirou will be integrated in the official phpwcms release?
DusX
Posts: 99
Joined: Thu 1. Apr 2004, 16:00
Location: Canada

Post by DusX »

Pappnase wrote:as i wrote this i have an idea what you think about an repacement tag browser with an short description like the image browser!? think could be useful for new users!?
I would love a replacement tag browser...
but mods should have instructions on how to add this info to the browser..

:)
======
DX
======
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

I am going to bring up Spirou's 'content everywhere' AGAIN..Because I can't figure this out and I thought that this would be in the new release(some other great goodies though :lol: ) so I stopped trying to fix it...I still think it is such an essential thing for creating a dynamic website..Both for the admins and the creators...

Does anyone have an idee how to fix this problem? So it will work for the new release or are maybe something coming with this function in the future?

Now I am going to change the new guestbook so it will be neat news-section instead...Great with new things to play with! :D

Take care / Martin
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Can't get the original topic (right panel) to work

Post by jsw_nz »

I am wondering why I cannot get Pappnase's original topic of creating content for the right section of a given page to work. Spent a considerable amount of time and likely it is something I am overlooking. BTW, I gave Spirou's hack a go, but found, like others, the upgrade (I think it was RC2 to RC3) confounded it. So I thought the original post by Pappnase based on his method might work. I believe I have done everything to prescripion:

"Create a blank pagelayout size all blocks 150 and the main block also 150. all others set to 0" //two parameters inputed: all blocks: 172, main 172, all others 0 in my case

"create an template leave all exept the main block put there the {content} replacement tag inside." simple ...did this {CONTENT}

"create a hidden sitestructure set it to visible and public. also give an alias and choose for this the "blank" template." //did this, in my case community

"get in your template where you wanna show these content an place in the "right" {PHP:http://www.domain.com/index.php?alias}

//did this within my index page template with right section at a width of 172, there i put this code:

version 1: {PHP:http://localhost/phpwcms2/index.php?community}
version 2: {PHP:index.php?community}

Neither work as called from within the template. I am working off my local box, thus the localhost prefix.

BTW: entering this in my browser:
****//localhost/phpwcms2/index.php?community
works like a charm
also have run other {PHP:script.php} instances successfully
I also created a custom page community_1.php
and run {PHP:community_1.php} successfully

I am wondering why this is not working and wanted to ask if others (including Pappanase himself) if they have gotten this elegant gem to work in RC4. I am wondering if header info generated by the template by default does not get truncated. I think Oliver's code takes care of this. The source code of the standalone page **** (see above) includes header info, with a call to frontend.css, and default <body tags> At the end of the day, what would be compatible, it would seem, would be the <table><tr><td> content only.

Code: Select all

<td valign="top"></td>
<td valign="top" width="172"><a name="jump7"></a><br><img src="img/leer.gif" width="1" height="5" alt="" /><br /><div class="articleSummary">Part of the really new initiatives of the Sport Otago web site will be a new community profile section that will highlight how sports life in the region has been enhanced and enriched</div><br><img src="img/leer.gif" width="1" height="8" alt="" /></td>
<td valign="top"></td>


Would love to get this running....as a reasonable way to populate the right area on a given page. Any suggestions/pointers would be apreciated.

cheers,
jsw
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Read the new change log

Post by jsw_nz »

Hi Oliver,

I just read the new changelog and noticed the new External Content feature dated 10-05-2004. It reads:

With the same functionality as the {PHP...} replacement tag. It can do the following: - include file from "content/pages" and all subdirs there
- include custom file or URL (Cool). While processing it checks for the <body> HTML tag - if <body></body> is found everything between <body>...</body> will be returned.

I wanted to ask if you plan to support this feature for the instance I am trying to get to work, namely in a template definition for the right column. I suspect (although I am not sure) that stripping everything out except what is inside the body tags would get this to work. I ran the external content in the main area index.php?0,0,2,...etc (also with alias) and it was successful. Great new feature. Being able to do this in the right column (or other areas) would be great as well.


Cheers,
jsw
Last edited by jsw_nz on Fri 4. Jun 2004, 18:18, edited 1 time in total.
Post Reply