http://clkuk.tradedoubler.com/click?p=4286&a=390051&g=63955
Main Menu
Latest Articles
Popular Articles

Browsing this Thread:   1 Anonymous Users





how to add "preview" in user submit ?
Just popping in
Joined:
2006/3/17 3:51
Group:
Registered Users
Posts: 2
Level : 1; EXP : 2
HP : 0 / 0
MP : 0 / 36
Offline
Ok i'm useing artices1.01 and xoops 2.2x. I've found that there has no "preview" button on the user submit side but on the admin side it has. I found also that in submit.ini it do have 4 code-lines which being remaked and seems to be used as enable the preview funktion.
But i really don't konw how to activate this funktion, by simply remove the // of the remaked 4 code-lines, the button "preview" do appear beside the "submit"and "reset" button , but when i click the preview button , the articel just being submitted! oop~~
would u please so kind to help that?

submit.ini , start at line 161
//$button_pre = new XoopsFormButton('', 'but_preview', _MD_ART_PREVIEW, 'submit');
    //$button_pre->setExtra('onclick="return checkfields();"');

    
$tray = new XoopsFormElementTray('');
    
$tray->addElement($button_sub);
    
$tray->addElement($button_can);
    
//$tray->addElement($button_pre);
    
$submitform->addElement($tray);
    unset(
$button_sub);
    unset(
$button_can);
    
//unset($button_pre);

Posted on: 2006/3/17 7:26
Transfer the post to other applications Transfer


Re: how to add "preview" in user submit ?
Webmaster
Joined:
2003/11/7 20:56
Group:
Webmasters
Registered Users
Posts: 137
Level : 10; EXP : 75
HP : 0 / 243
MP : 45 / 14615
Offline
There is no preview for the user submit area, yet.

That code was copied over from the admin form to save having to type it out from scratch, but was left there and commented out for if/when preview is added.

Posted on: 2006/3/17 23:02
_________________
Andy Mills
E-mail: Open in new window
Transfer the post to other applications Transfer


Re: how to add "preview" in user submit ?
Just popping in
Joined:
2006/3/17 3:51
Group:
Registered Users
Posts: 2
Level : 1; EXP : 2
HP : 0 / 0
MP : 0 / 36
Offline
O, bad news~
As the authors can not edit there articels after they had been submitted, why not give the preview funktion to prevent articel's format problems? Is there anything i can do simply for that?
hopes that can be added in the next release~
thanks all the same:)

Posted on: 2006/3/18 6:52
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
Donate!
Please consider donating to help continued development of my XOOPs modules. Read more here.

Search
Advertisements
Copyright © 2001-2009 sirium.net