Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
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 smile


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
Quote
quote:
Originally posted by AllenAyres:
Thanks Charles, I added a call to cp2_backup but am getting the same error message. smile

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.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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 smile

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'

tipsy

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 smile

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.


- Allen wavey
- What Drives You?
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.
Sponsored Links
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 smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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

Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
*hopes for backup hack*

Have I told you guys just how much you roxxor lately?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
*happy dance*

I figured out the cp! I've got an expandyheader and everything laugh

Joined: Jun 2001
Posts: 2,848
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,848
hopes once again for the backup hack.

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I'll take a look into it next Thursday. Swamped with work right now frown

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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?

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. smile 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.
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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

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.
Joined: Nov 2001
Posts: 1,703
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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. tipsy

Thanks for making our lives hell! wink

Joined: Nov 2001
Posts: 1,703
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,703
One question though:

Code
	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... frown

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.
Joined: Nov 2001
Posts: 1,703
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,703
EDIT: Figured it out. Didn't use that lovely thing known as MakeComponentHTML. laugh

Page 2 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 7368
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 7
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)