php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#275628 - 06/30/04 07:44 AM Surely... SURELY!!!
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
Surely somewhere in this world, there simply must be some documentation for these templates... I can find absolutely nothing to indicate what any of the stuff in any of these templates does.<br />The damn things aren't even commented! It's just poor!<br /><br />Now, I'm not totally retarded... I can search through a billion different templates and eventually find the tiny little bit of code I'm looking for, and through a process of trial and error, I can eventually get the effect I'm looking for... but it's taking me forever.<br />The CSS map is incredibly helpful. Tell me... PLEASE tell me there's something similar for templates.<br /><br />If not... Why not???
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#275629 - 06/30/04 08:51 AM Re: Surely... SURELY!!! [Re: sonolum]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
What are you trying to find? The php scripts use the templates that match the name of the script (the showflat.php script uses the showflat.tmpl template, for example).
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#275630 - 07/01/04 09:58 AM Re: Surely... SURELY!!! [Re: jacksonm99]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
I'm trying to find something similar to the CSS map...<br /><br />I wanna see a picture of the entire forum, with little arrows that say 'This bit comes from template xxxxx.tmpl'.<br />See what I mean?
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#275631 - 07/01/04 10:24 AM Re: Surely... SURELY!!! [Re: sonolum]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Did you find anything like it in infopop's documentation on ubbcentral? If not it's possible we could do it <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#275632 - 07/01/04 12:28 PM Re: Surely... SURELY!!! [Re: SurfMinister]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
I didn't find anything, and I did look, but who knows? My forum trawling skills are severely limited by my total lack of patience!<br /><br />I would have thought it was an obvious thing to do... I mean, I use phpBB as well, and that's just SO much easier to skin, it's unreal.<br /><br />I'll probably have finished with my shoddy 'trial and error' method of skinning by the time you've finished doing it, but I'd definitely suggest that someone come up with some kind of guide as to what template controls what element on each page of the forum... if it doesn't help me, it'll certainly help someone else.<br /><br /><br />While I'm here, can anyone tell me what's going wrong in my forum? It's at: http://www.EveryoneDoesIT.com/cannabis_forum/<br /><br />I've just managed to put a boring green table around everything, and it works perfectly apart from in two places.<br /><br />Firstly on a 'showflat' page underneath my 'quick reply' (I love mods... I absolutely LOVE mods!) box, it all kind of buggers up a piece...<br /><br />Secondly, in my IIP page, it works on every pal apart from the news? Any ideas?<br /><br />Example URLs:<br />http://www.everyonedoesit.com/cannabis_f...;o=&fpart=1<br /><br />and<br /><br />http://www.everyonedoesit.com/cannabis_forum/iip/index.php?Cat=0
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#275633 - 07/02/04 01:39 AM Re: Surely... SURELY!!! [Re: sonolum]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I can't see a lot of it because I'm not logged in... you might want to start with http://validator.w3.org - you've probably got some errors in your html. Validating your code makes it much easier to find the errors.<br /><br />http://validator.w3.org/check?uri=http://www.everyonedoesit.com/cannabis_forum/ubbthreads.php
_________________________
- Allen wavey
- What Drives You?

Top
#275634 - 07/02/04 03:38 AM Re: Surely... SURELY!!! [Re: SurfMinister]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
Well, here's where the problem with templates come in to effect!<br />I have absolutely no idea which template every line of code comes from! The ubbthreads.php is largely a mystery to me... (because of lack of tmpl documentation!)<br /><br />I looked at the w3 page, it came up with a couple of hundred errors... none of which I understand... kept telling me that I hadn't closed off tags, followed by examples of my code, that clearly showed that I had closed off those tags... I don't get it.
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#275635 - 07/02/04 03:49 AM Re: Surely... SURELY!!! [Re: sonolum]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Try the ubbthreads.tmpl file...
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#275636 - 07/02/04 09:27 AM Re: Surely... SURELY!!! [Re: jacksonm99]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
Every php file has a corresponding tmpl file. It only calls that file. It doesn't call multiple tmpl files for each page. Well, technically I suppose it does because every page calls the ubb_registerednav.tmpl(or ubb_unregisterednav.tmpl if you're not logged in), but the unique elements for each page are called from the php scripts corresponding tmpl file.

Top
#275637 - 07/02/04 11:18 AM Re: Surely... SURELY!!! [Re: BrokenToy]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
AND the tbopen and tbclose templates provide the main structure for every main table.<br /><br />For some generally excellent info on how to do (x)html properly, go here:<br />http://www.alistapart.com/topics/html/<br /><br />This one especially is a great referral piece that explains why xhtml is good for your site and the basics for getting it right:<br /><br />http://www.alistapart.com/articles/betterliving/
_________________________
- Allen wavey
- What Drives You?

Top
#275638 - 07/05/04 07:40 AM Re: Surely... SURELY!!! [Re: SurfMinister]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
Ok, maybe what I actually need is documentation on the variables then... <br />Because the templates are rather confusing... <br /><br />*Whimper* I just want rounded corners!!!<br /><br />(I'm getting there though, CSS is rather powerful 'twould appear.)
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#275639 - 07/05/04 07:59 AM Re: Surely... SURELY!!! [Re: sonolum]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
Ok, how's about this one:<br />Where do I find the phrase 'Post Extras:' in the templates? I can't seem to find it anywhere...<br /><br />Oh, and while I'm thinking of it... changing the 'previous', 'next', 'index', 'threaded' links SHOULD be easier... Damnit. (I know you guys don't develop the software, but just lemmie vent, man!)
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#275640 - 07/05/04 11:08 AM Re: Surely... SURELY!!! [Re: sonolum]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
If all you wanted was rounded corners you only need to edit the tbopen and tbclose templates <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#275641 - 07/05/04 03:55 PM Re: Surely... SURELY!!! [Re: sonolum]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[]Gary said:<br />Ok, how's about this one:<br />Where do I find the phrase 'Post Extras:' in the templates? I can't seem to find it anywhere...<br />[/]<br />Test strings aren't in the templates. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> They are in the language files. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#275642 - 07/06/04 06:09 AM Re: Surely... SURELY!!! [Re: Daine]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
Nope, I've already done the tbopen and close templates... I've got rounded tables... BUT... all the tables inside those tables... I wanna make those nice and rounded too... It doesn't really matter anymore, I've settled for the fact that it's not gonna happen... but still... <br />Ideally, I'd like to forget about the templates entirely, create my own pages using a nicely documented, commented set of variables and whatnot....<br /><br />Now, as for the 'post extras' text, I understand all text is stored in language files, but I don't wanna have anything at all in that spot... Where in the templates, is it referencing the language file? (see? complicated!!!) <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#275643 - 07/06/04 07:52 AM Re: Surely... SURELY!!! [Re: sonolum]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
find the string in the language file and then take the caler $ubbt['?????'] and search for that in the php and the template
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#275644 - 07/07/04 05:18 PM Re: Surely... SURELY!!! [Re: sonolum]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Not complicated at all. <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" /> You're making it way more complicated. <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" /> <br />Maybe Everyone Shouldn't do "it" or at least while they are editing their scripts. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />Example - the ubbthreads.php script uses the ubbthreads.php language file. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> And it also uses the ubbthreads.tmpl template. <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" /> <br /> <br />Sometimes If the language string appears on multiple pages (multiple scripts) (like the manu bar etc...) then it's located in the generic.php language file. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />The words "Post Extras" is the $ubbt_lang['POST_OPT'] language string, and it's in showflat and showthreaded language files, since it appears on those pages. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />And don't call me Shirley. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#275645 - 07/08/04 09:31 AM Re: Surely... SURELY!!! [Re: Daine]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
Shirley is right.<img src="http://www.ubbdev.com/forum/images/graemlins/evil.gif" alt="" /> It is pretty striaght forward, once you understand how it is structured. Using the "containing text" search in your local Threads folder is an easy way to track down language strings and varibles.

Top
#275646 - 07/09/04 06:24 AM Re: Surely... SURELY!!! [Re: BrokenToy]
Gary_dup1 Offline
User

Registered: 06/25/02
Posts: 38
You know what?<br />I take it ALL back... Threads is difficult to skin... there's no doubt about that, it's fiddly and I could never hope to get it looking as nice as it does in my head, but it works ok...<br /><br />Now Photopost however...<br /><br />Fuckin' Christ! I've never seen such a mess of variables and templates in all my life!<br /><br />*Sigh*<br /><br />I've been on this stuff for almost three weeks now... I'm lookin' to smash my monitor with my head.
_________________________
The world's best online headshop and cannabis resource: EveryoneDoesIT.com

Top
#275647 - 07/09/04 08:10 AM Re: Surely... SURELY!!! [Re: sonolum]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I think Rick will be gald to hear that <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks