copy articles and structures (patch)

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
deanloh
Posts: 99
Joined: Sat 12. Feb 2005, 05:31
Location: Singapore
Contact:

Post by deanloh »

fbatista

I just only found out the act_structure.php included in the "Copy & Paste Article Content for phpWCMS1.1RC4A+[06/04/2005]" package is actually the version for 1.2, I thought I could work around it by commenting a few lines as shown below:

Code: Select all

session_name('hashID');
session_start();

$ref = $_SESSION['REFERER_URL'];


//require_once ("../../config/phpwcms/conf.inc.php");
require_once ("../inc_conf/conf.inc.php");
require_once ("../inc_lib/default.inc.php");
require_once ("../inc_lib/general.inc.php");
//require_once ('../inc_lib/backend.functions.inc.php');
require_once ("../inc_lib/checklogin.inc.php");
But the paste function will not work anymore.

Also, on another note, just a suggestion: instead of showing content type, would it be better to show content title instead?
Image
Pauli
Posts: 92
Joined: Mon 30. Aug 2004, 11:53

Post by Pauli »

deanloh wrote:Also, on another note, just a suggestion: instead of showing content type, would it be better to show content title instead?
hmm that is, IF you use a content title....
at least the content type is always known
User avatar
Oliver Georgi
Site Admin
Posts: 9920
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

in 1.1-RC4 there is NO session_name line and some other things are also not implemented - I think $_SESSION['REFERER_URL'] too.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
fbatista
Posts: 36
Joined: Tue 2. Nov 2004, 21:53
Location: Portugal
Contact:

Post by fbatista »

deanloh wrote:fbatista

I just only found out the act_structure.php included in the "Copy & Paste Article Content for phpWCMS1.1RC4A+[06/04/2005]" package is actually the version for 1.2, I thought I could work around it by commenting a few lines as shown below:

Code: Select all

session_name('hashID');
session_start();

$ref = $_SESSION['REFERER_URL'];


//require_once ("../../config/phpwcms/conf.inc.php");
require_once ("../inc_conf/conf.inc.php");
require_once ("../inc_lib/default.inc.php");
require_once ("../inc_lib/general.inc.php");
//require_once ('../inc_lib/backend.functions.inc.php');
require_once ("../inc_lib/checklogin.inc.php");
But the paste function will not work anymore.

Also, on another note, just a suggestion: instead of showing content type, would it be better to show content title instead?
Image
Hi all.

Hi Oliver and Deanloh, I think that I decided this problem.
I use de Windows(apache2triad) for 1.1RC4 and Linux for version 1.2.1.

Hi Deanloh and Pauli, I followed yours suggestion "showing content type".
Hi Purnsam, I decided the problem "copy&past article function not working at root level"

link: http://ww2.estg.ipleiria.pt/~fbatista/p ... hp?phpwcms
Fernando Batista
_______________________________________
Department of Mechanical Engineering (DEM)
School of Technology and Management (ESTG)
Polytechnic Institute of Leiria (IPL)
HOME: http://fernandobatista.net
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

deanloh wrote:
Also, on another note, just a suggestion: instead of showing content type, would it be better to show content title instead?
Image
I feel there are some instances where the title is the obvious choice to appear in the list although there are times when the content type has its benefits too. If you are looking to edit all forms it is a benefit to see at glance just where the forms are. etc.etc.
just IMHO
User avatar
Oliver Georgi
Site Admin
Posts: 9920
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

this will be enhanced by "over" effect - when over the line you will get title information

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

now you're just showing off ;)
fbatista
Posts: 36
Joined: Tue 2. Nov 2004, 21:53
Location: Portugal
Contact:

Post by fbatista »

Hi all.

I change file:
admin.functions.inc.php -> function struct_articlecontentlist()

Now showing "content type" or "content title" or "content subtitle".
A prominor was alone.

link: http://ww2.estg.ipleiria.pt/~fbatista/p ... hp?phpwcms

- Copy & Paste Article Content for phpWCMS1.1RC4A+[07/05/2005]
- Copy & Paste Article Content for phpWCMS 1.2 [07/05/2005]

Regards,
Fernando Batista
_______________________________________
Department of Mechanical Engineering (DEM)
School of Technology and Management (ESTG)
Polytechnic Institute of Leiria (IPL)
HOME: http://fernandobatista.net
brans

Post by brans »

Hi fernando,

would you mind adding your hacks to our forum (--...--) so that we can add your hacks to our list?

If you do so, please keep inline with the following guidelines:
--...--/index.php/topic,4.0.html

Thanks in advance

brans
Pappnase

Post by Pappnase »

brans wrote:Hi fernando,

would you mind adding your hacks to our forum (--...--) so that we can add your hacks to our list?

If you do so, please keep inline with the following guidelines:
--...--/index.php/topic,4.0.html

Thanks in advance

brans
hello brans

why should he ;-) cos both important hacks are included to the latest release! :wink:
fbatista
Posts: 36
Joined: Tue 2. Nov 2004, 21:53
Location: Portugal
Contact:

Post by fbatista »

brans wrote:Hi fernando,

would you mind adding your hacks to our forum (--...--) so that we can add your hacks to our list?

If you do so, please keep inline with the following guidelines:
--...--/index.php/topic,4.0.html

Thanks in advance

brans
Hi Brans
Yes, mine hacks has been all incluidos in them varies versions of phpwcms.
They are not mods.

Tkanks for its recommendation.
Fernando Batista
_______________________________________
Department of Mechanical Engineering (DEM)
School of Technology and Management (ESTG)
Polytechnic Institute of Leiria (IPL)
HOME: http://fernandobatista.net
Post Reply