Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Well, we have decided to use our UBB for reviews/previews/news/compotitions etc (with MAJOR template modifications) as well as the forums, but I need to know how to add an extra bit; e.g. to have $screenshot1 (already added in the new topic form/edit form) added to the actual post .CGI file. I guess it's something in ubb_lib_posting.cgi, but I'm not sure.

Thanks in advance smile

Just realised I wasn't too clear there tipsy

Well, I'll do a 'flow chart'

NEW TOPIC FORM

Subject
Message Icon
Message
Screenshot1 (already added here)

-->

xxxxxxxxxxx.cgi
(need to know how to store the $screenshot1 stuff in here)

-->

TOPIC (need to know how to retrieve the $screenshot1 stuff).

EDIT 2:
It'll be a UBB 6.3 final... but base it on UBB 6.3 beta tipsy

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
What, exactly, is $screenshot1? What will it contain?


UBB.classic: Love it or hate it, it was mine.
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Just a normal string; all of them would be strings with an specified in the template if needed.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
My first thought would be to divide the message field itself, then split it before you want to use it...


UBB.classic: Love it or hate it, it was mine.
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Aah... So -- basically -- tell ubb_lib_postings.cgi (or whatever it is, it may be ubb_edit_post.cgi or whatever it's called tipsy ) to go:

Code
[/code]Then somewhere in some other file:

[code]
?

(Tho I', probably compmetely wrong -- Perl isn't m forte tipsy )

Sponsored Links
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
You're perfectly correct, actually. smile


UBB.classic: Love it or hate it, it was mine.
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Right, I have now managed to make it look like this:

Code
[/code]Which I somehow think isn't quite right     :p     (I'm using the variable $publisher here). Of course, I may be wrong...

Oh yeah, to get to this point I added:
Code
</pre></div></div>to sub cook_post and<br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
after the local in sub create_topic -- I'm pretty sure that that's wrong... :p

I also tried adding after the local: [code]
but I am now too confused to think properly confused

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
|| is the delimiter for the A and Z lines - if you want to split an entry in the Z line, you'll want to use a different delimiter...


UBB.classic: Love it or hate it, it was mine.
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Aah...

(And what code where would I use? confused )

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
The join is right - the split isn't. Use /|/


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Still in sub create_topic?

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
I believe so.


UBB.classic: Love it or hate it, it was mine.
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Didn't appear to work frown

Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
bump

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
OKay, rip the changes out and start over.

Drop me a PM or mail or something.


UBB.classic: Love it or hate it, it was mine.
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
why all the joins and splits? confused its not that hard just to add another variable. and probably less work for the server than joining and splitting.

Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Erm... Well, that's what CC said tipsy

Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Well, CC now appears to be ignoring me tipsy

Anyone know a way to do this?

Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
BUMP

I have started on this, and put one which doesn't need too many variables up on the site without them (see below) but I really need to know how to do this smirk

http://www.aagames.co.uk/cgi-bin/ultimatebb.cgi?ubb=forum;f=27

Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Bumpity bumpity bump smirk
(I REALLY want this :/)

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Stop creating new topics for this.

https://ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=28;t=000907


UBB.classic: Love it or hate it, it was mine.
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Oops :S

Thought that post was dead :S

Sorry


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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)