Staredit Network

Staredit Network -> SEN v5 Alpha -> Eye candy
Report, edit, etc...Posted by IsolatedPurity on 2005-07-04 at 22:46:21
No recent updates, I've been playing around with ideas. I guess I suck for not finishing the scripts I currently have up (so, also, the 2nd group of testers can come in).

blink.gif

Anyways, forum index conceptual layout is up, give opinions:
http://www.staredit.net/1337v5/?p=index
Yes, no links will work. And yes, permission masks to hide the staff lounge aren't up yet (I'm not exactly sure how to accomplish this yet!)

If the javascript for collapse/show doesn't work for you, post any errors you get.

Also, if you wish to browse through old shoutbox comments, you can do it in shoutbox main:
http://www.staredit.net/1337v5/?p=shoutbox
Yes, it looks ugly. I had a vision and it didn't come out as planned. I might have to redo all the avatar work.

I wanted to do more but I got involved in some ex-gf + ex-gf drama, lol, the story is too funny. Having both of my ex-gf's new boyfriends work the same shift together at my work get's a little too interesting sometimes.
Report, edit, etc...Posted by chuiu on 2005-07-04 at 22:59:42
What happened to that original setup you guys had? Where two forums per line were displayed? I really liked that one.
Report, edit, etc...Posted by Shmeeps on 2005-07-04 at 23:14:45
QUOTE
Yes, no links will work. And yes, permission masks to hide the staff lounge aren't up yet (I'm not exactly sure how to accomplish this yet!)


Perhaps, add a column for access in the users table, load it into a permission session variable, then make a field in the forum table that has an access level assigned, then in the loop to show all the forums, make it like

CODE

while($row=mysql_fetch_array($query, MYSQL_ASSOC))
{
       if($_SESSION['Access'] >= $row['Access'])
       {
       echo("<table><tr><td>Stuff</td></tr></table>");
       }
}

Something like that?
Dunno, just going through ideas here. I'd have to see the code to get a good idea on what to do, but I know you wont do that, so hey.
Report, edit, etc...Posted by IsolatedPurity on 2005-07-04 at 23:27:31
A little more complicated than that. Permission masks need to be derived from somewhere, as well as using the better values from each masks. In the simplest idea, 1 mask = see 1 extra forum, so if one person had both masks... I'm also thinking of using permission masks on a more deeper level, like, accessing only certain parts of the dldb cp and such.

Anyways, as far as the 2 per row thing, that'll get messy really fast. It was yoshi's orginal conceptual layout (I hated it) and he also changed it to one per line eventually.

CODE
while($row=mysql_fetch_array($query, MYSQL_ASSOC))


I hope you don't actually code like that... it's so much easier to use an sql abstraction class and just be like while($row=$sql->fetch($query)) smile.gif (and usually simply while($row=$sql->fetch())!)
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-05 at 01:59:42
QUOTE(chuiu_os @ Jul 4 2005, 07:59 PM)
What happened to that original setup you guys had?  Where two forums per line were displayed?  I really liked that one.
[right][snapback]253171[/snapback][/right]


That's ugly... Lazy idiots who don't want to scroll a pixel more than they have to.....
Report, edit, etc...Posted by Shmeeps on 2005-07-05 at 02:08:21
QUOTE(isolatedpurity @ Jul 4 2005, 10:27 PM)
A little more complicated than that.  Permission masks need to be derived from somewhere, as well as using the better values from each masks.  In the simplest idea, 1 mask = see 1 extra forum, so if one person had both masks...  I'm also thinking of using permission masks on a more deeper level, like, accessing only certain parts of the dldb cp and such.

Anyways, as far as the 2 per row thing, that'll get messy really fast.  It was yoshi's orginal conceptual layout (I hated it) and he also changed it to one per line eventually.

CODE
while($row=mysql_fetch_array($query, MYSQL_ASSOC))


I hope you don't actually code like that...  it's so much easier to use an sql abstraction class and just be like while($row=$sql->fetch($query)) smile.gif (and usually simply while($row=$sql->fetch())!)
[right][snapback]253208[/snapback][/right]

Yup, I do happy.gif

I have yet to make any class or function() in any of my scripts. I don't like them. Dunno why.
Report, edit, etc...Posted by IsolatedPurity on 2005-07-05 at 08:22:37
PHP4's class system sucks major cock, but it is still rather useful.

index.php
CODE

require_once ("core/mysql.php");
$sql = new mysql;


Then anywhere in another class, I can call shit like:
CODE

function stupid_insert_function()
{
global $vars, $sql;
$sql->insert('sessions', array(
'id' => $vars->session['id'],
'mid' => $vars->member['id'],
'ip' => $vars->session['ip'],
'browser' => $vars->session['browser'],
'running' => $vars->time,
'cloak' => $c_cloak,
'key' => $vars->session['key']
));
}

-or like previous stated-
CODE

$sql->query("SELECT * FROM members WHERE id={$row['v_mid']}");
$vars->member = $sql->fetch();


The sql class's function for insert() simply takes my variables / arrays and converts it into a real sql insert query. It's a lot more organized and cleaner than a billion sql queries.

I used to do it the same way as you until I started coding inside invision. It is truly time efficent, more organized, and generally just cleaner. It also allows for some wicked stuff if you know what you are doing smile.gif.

As far as using functions, generally, if you ever find yourself copy and pasting the same line(s) of code, it's probably better off in a function of some sort.

Other things:

One of the most useful things EVER that invision taught me about php is <<<
$temp = <<<EOF
I can use any f"!'$%ng characters I want in here without back slashing them!
EOF;

Very, very useful when dealing with html...

as well as...
$temp = "My string containing {$my_variable} = a little string";

It's a hell of a lot easier than doing...
$temp = "My string containing" . $my_variable . " = a little string";
when you have a lot of different variables.
Report, edit, etc...Posted by LegacyWeapon on 2005-07-05 at 11:10:11
Sexy layout but make cooler minimize buttons biggrin.gif
Report, edit, etc...Posted by chuiu on 2005-07-05 at 11:10:16
QUOTE(DT_Battlekruser @ Jul 5 2005, 12:59 AM)
That's ugly... Lazy idiots who don't want to scroll a pixel more than they have to.....
[right][snapback]253317[/snapback][/right]

Screw you bitch, SEN has too many censored.gif ing forums.
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-05 at 13:48:32
Did you notice he made the clan forums not linkable from front page in forum form? At least i think they should only be linked by the pictures at the bottom.
Report, edit, etc...Posted by chuiu on 2005-07-05 at 13:53:30
Yeah I thought that was nice. I still would prefer to arrange what order I view forums. Though that might be a little too much to ask.
Report, edit, etc...Posted by IsolatedPurity on 2005-07-05 at 16:50:16
That's actually doable and I almost wouldn't mind doing it...
But if you're gonig to arrange the order the the forums, custom headers are only logical.
And if that, I just can't think of a way to throw this all in an input script in the personal settings. As far as displaying it, that'll be easy. I could just do some type of array join between the forum array with your array. It'll all be easy if I could trust people to write out something like this:

My Favorite Forums
3
59
30
Mapping Forums
4
50
30
20
30

Where the numbers are the forum IDs. A small javascript thingy might be helpful too...



Yeah, the clan forums don't have their links in there yet.
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-05 at 17:24:33
yeah, that would work well, save for the tens of threads in the Feeback forum saying 'wtfage! it doesn't work!'
Report, edit, etc...Posted by IsolatedPurity on 2005-07-05 at 21:55:14
http://www.staredit.net/1337v5/?forum=3

More "conceptual."

In defense of the "information" column... invision's table system for topic listing looks really censored.gif ing gay on 800x600. I dunno though, give opinions.

(and yes, all images are temporary)
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-06 at 02:44:45
The title column should be given more, say 50/25/25 (title/info/last post)
Report, edit, etc...Posted by LegacyWeapon on 2005-07-08 at 09:29:17
I think in the 'Forums' dropdown menu the portal should be first. That way it's just like SEN v4 tongue.gif
Report, edit, etc...Posted by IsolatedPurity on 2005-07-08 at 15:34:14
Omgz0rz... you killed the forums LegacyWeapon.



Just kidding. Anyways, seriously now, the forum index and forum layout is looking alright (excluding images)?


As far as portal being first, it arranges it self alphabetically. I might do something else later.
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-08 at 16:22:18
QUOTE(DT_Battlekruser @ Jul 5 2005, 11:44 PM)
The title column should be given more, say 50/25/25 (title/info/last post)
[right][snapback]254423[/snapback][/right]


That and would you add a timestamp for when the topic was started to the topic view?
Report, edit, etc...Posted by LegacyWeapon on 2005-07-08 at 16:39:12
Link r broked
QUOTE
Today, 9:24 am
By: isolatedadmin
On this page: http://www.staredit.net/1337v5/?forum=3
Column 3.
Report, edit, etc...Posted by IsolatedPurity on 2005-07-08 at 16:54:53
what makes you think I'm anywhere near to the point of listening to bugs?

dt_bk, i wanted to somehow throw it in forum view... but yeah, it'll be somewhere.
Report, edit, etc...Posted by LegacyWeapon on 2005-07-08 at 16:56:05
Oh sorry tongue.gif
Report, edit, etc...Posted by RexyRex on 2005-07-25 at 23:35:38
I don't think 'Mark forum as read' deserves a button, seeing as that function is hardly used anyways.
Report, edit, etc...Posted by DT_Battlekruser on 2005-07-26 at 02:15:40
Hardly used? Says who???
Report, edit, etc...Posted by IsolatedPurity on 2005-07-26 at 10:12:44
Mark as read is like... godly. I just don't think you use it enough (either that or actually read all the topics... maybe that's why you use 1 gig+ of bandwidth?! smile.gif). My current thoughts is not to be like invision and probably most other boards when they use a new session and/or signing on as a "mark all as read." Let's say you sign on for only a few minutes and then sign off... why mark all posts as read? You didn't actively state you wanted them read. And, if you did, you can just push thee button. I also hope to have a little piece of code that quickly and efficiently checks if all topics in a current forum up to like 2 pages away have been read by either by a previous mark as read or actively reading the topic. Some forums don't move tht fast and if there is onl 5 new topics and you actually read them all, it should mark the forum read for you.


Anyways, I had another question of doing something a little different, but now I forgot.


Oh well, I'll remember sooner or later. Another pressing issue is to kill the "activity: " stat. What difference does that make? Perhaps replace it with a "X viewing" like most boards or something else I had in mind but now forgot. Damn it.
Report, edit, etc...Posted by RexyRex on 2005-07-26 at 15:31:23
Okay, maybe I have never used the Mark Forum as Read button, but I'm fairly confident that there are lots of other users who don't know it exists. blushing.gif

Anyways, I think you should have X viewing and maybe even a little dropdown with the users that are viewing it. That'd be nifty. smile.gif
Next Page (1)