#56171
09/29/2003 9:21 AM
|
Joined: Mar 2000
Posts: 21,080 Likes: 3
I type like Navaho
|
|
I type like Navaho
Joined: Mar 2000
Posts: 21,080 Likes: 3 |
I'm headed to work, will look at it again tonight if someone else has time today 
|
|
|
#56172
09/29/2003 10:24 AM
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,848 |
quote: Originally posted by AllenAyres: Thanks Charles, I added a call to cp2_backup but am getting the same error message.
Randy, each sub in the original had a submit in it, it still refreshed with one page?Yeah, it did everything by itself once the choice was made. All you had to do was click on save when the window popped up and give it the path on your hard drive, then click on the delete backup button.
|
|
|
#56173
09/30/2003 6:36 PM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Allen. any word on the fix? That's the error I get while porting the newsfader hack, so it'd be nice to know 
|
|
|
#56174
09/30/2003 9:28 PM
|
Joined: Mar 2000
Posts: 21,080 Likes: 3
I type like Navaho
|
|
I type like Navaho
Joined: Mar 2000
Posts: 21,080 Likes: 3 |
No, no definitive answer other than 'nut loose behind the keyboard' I've been swamped at my day/night job the last few days, I've got a couple small projects to work on tonight then I'll get back on this Hey Charles, would the 'autosequence' command be useful for auto-refreshing from one sub to another? Apparently calling &Submit in earlier versions could do that.
|
|
|
#56175
09/30/2003 10:06 PM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
AutoSequence just generates unique IDs for radio buttons and the like...
The only real refreshing action is done via the refreshing routines themselves... though you might be able to add on to StandardHTML and put a meta tag up there.
&Transition may be available in the control panel in 6.7....
If you want to go from a submit on one page to another page/tab, you can just reset $in{page} and $in{tab}, then call the proper subs...
UBB.classic: Love it or hate it, it was mine.
|
|
|
#56176
10/01/2003 10:59 PM
|
Joined: Mar 2000
Posts: 21,080 Likes: 3
I type like Navaho
|
|
I type like Navaho
Joined: Mar 2000
Posts: 21,080 Likes: 3 |
hmmm... ok. thank you, I'll work on that 
|
|
|
#56177
11/06/2003 10:21 PM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
hey Allen, call me dense, but where did you declare sub cp2_page_backup?
if I'm not dense, maybe that's why it won't work
|
|
|
#56178
11/06/2003 10:31 PM
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,848 |
*hopes for backup hack*
Have I told you guys just how much you roxxor lately?
|
|
|
#56179
11/17/2003 10:30 PM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
*happy dance* I figured out the cp! I've got an expandyheader and everything 
|
|
|
#56180
11/18/2003 12:38 AM
|
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
|
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,848 |
hopes once again for the backup hack.
|
|
|
#56181
11/18/2003 10:29 AM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I'll take a look into it next Thursday. Swamped with work right now 
|
|
|
#56182
12/17/2003 4:30 PM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Charles, is it possible to have the run, lib, inits for 3 different pages in one template?
|
|
|
#56183
12/17/2003 4:44 PM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
No. Well, not really. It's possible but you shouldn't.  If they're different pages, then they should have different templates. You can still call LoadCPTemplate from inside the init if you need to call on some common routines, of course. You might want to look at the standalonenotab tab type as an alternative, if possible.
UBB.classic: Love it or hate it, it was mine.
|
|
|
#56184
12/17/2003 6:54 PM
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
great, I'll give that a shot. I've just got to get that and the meta refresh to work. I've got no clue where to start on that one though
|
|
|
#56185
12/17/2003 10:11 PM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
There are two options for refreshing actions... the first is sub refreshing. It's big and ugly and complex, but it allows for actions to be constructed that can be run later on without needing to be refreshed... i.e. for cron jobs. Not that anyone's done that yet.
The second is to use the redirect_url and redirect_title arguments to StandardHTML...
UBB.classic: Love it or hate it, it was mine.
|
|
|
#56186
02/12/2004 3:49 PM
|
Joined: Nov 2001
Posts: 1,703
Moderator / Da Masta
|
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,703 |
After three whole nights of reading your first post, Charles, I'm beginning to grasp the basics of this new-fangled CP thing. Thanks for making our lives hell! 
|
|
|
#56187
02/12/2004 3:57 PM
|
Joined: Nov 2001
Posts: 1,703
Moderator / Da Masta
|
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,703 |
One question though: print &WrapContent( &WrapTabSet( {}, [$tab1, $tab2], "", "", [&cp2_ann_bottomtabs], ) ); Why doesn't that work? It keeps returning array references with ARRAY() in place of the tab content... 
|
|
|
#56188
02/12/2004 4:21 PM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Take what it's providing and pass it through Data::Dumper... i.e. use Data::Dumper; print " " . Dumper(&WrapContent(...)) . " "; That'll give you a better idea of what the code thinks it needs to do. BTW... pass through undef expressly rather than "".
UBB.classic: Love it or hate it, it was mine.
|
|
|
#56189
02/12/2004 4:32 PM
|
Joined: Nov 2001
Posts: 1,703
Moderator / Da Masta
|
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,703 |
EDIT: Figured it out. Didn't use that lovely thing known as MakeComponentHTML. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 7368
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 7
|
|
|
|