Page 2 of 2

PostPosted: Fri Apr 13, 2007 12:20 pm
by scottdallas
okay it was bugging me that it looked too much like urbandictionary.com and also bugging me that everyone was upset about it and stuff.. made me feel guilty.



so.. i redid it:



[url=http://www.dream-library.com]Image

Dream Library[/url]



Now it doesn't resemble any site I've ever seen.

PostPosted: Fri Apr 13, 2007 6:18 pm
by Heya Im Me
Much better, good work. Before it was way too much of a knock off, plus I like your new color scheme and logo better. Urban Dictionary's color scheme doesn't rub me the right way anyway.



-HIM

PostPosted: Fri Apr 13, 2007 11:14 pm
by scottdallas
ha thanks man.. i really like urbandictionary's color scheme though.. i dont know why im the only one lol. no one seems to like it.

PostPosted: Sat Apr 14, 2007 11:41 pm
by Ramon
Nice restyle :)



I see your site already had his fair share of visitors :thumb:

PostPosted: Sun Apr 15, 2007 10:50 am
by astrostart
I really like the site! Great style and a nice subject!

PostPosted: Mon Apr 16, 2007 3:17 am
by scottdallas
lol im glad people still like it.. i severely upset some people on another forum cause of making it so similar to urban dictionary (even though none were affiliated with urban dictionary whatsoever). i just didn't think it would matter that much. oh well.. yeah some girls already playing on it. thanks for all the positive feedback. im glad you guys dont hate me.

PostPosted: Sat Jun 23, 2007 8:18 pm
by scottdallas
Today I had a bizzzzzzzarre dream before I woke up:

http://www.dream-library.com/view.php?m ... dream.html

Then after I wrote that I logged in to the site to see 4 new dream submissions! That's a new record. 4 at once! I realize that a lot of them are from repeat visitors.. so I think next thing this site needs is user memberships so people can add without needing me to approve and stuff. It would look a lot more pro huh?

What do you think guys? I've been working on making all the little code modifications that I've seen around here to make my cutenews.ru into a nice user membership script as well. I see HIM is trying to get his cutenews.ru to work as a user membership script and it must be working out pretty well. FI-DD has all the right answers. FI-DD, you can make the next MySpace. Do it real fast. You'll be rich.

PostPosted: Sat Jun 23, 2007 11:33 pm
by Ramon
and famous 8)

Even before reading this post I checked out how dream-library was doing. I'm still really enthusiastic about the whole concept, but somehow you're site is missing "something", can't put my finger on it whay exactly though :(

I noticed it had grown a bit, yet it's not full of dreams :( Well, maybe you should advertise the site a bit more. Good place to begin is MySpace (Y), just leave girls a message that you have been working on a nice project and you'd love to see them making use of it :P

PostPosted: Sun Jun 24, 2007 6:41 am
by scottdallas
I think the site lacks in communication by members! :( But yes I could/should write girls cause they'll write their sexual fantasies and other weird dreams and guys will be ALL over the site. Wherever girls are, or guys think girls might be.. they will always show up. For example, a bar.

PostPosted: Thu Sep 13, 2007 1:42 am
by Ramon
So what's up with Dream-Library? Are you updating it or something? Cause i'm getting these f*cked up error messages everywhere i go :(

PostPosted: Thu Sep 13, 2007 8:49 am
by scottdallas
Well.. I am updating it.. but I didn't know about those errors. I've been so engrossed in such a large overhaul of so many projects that that problem went unnoticed.. although it seems that cutefields is the focal point of this error.. which is also the focal point of the new thing I've been working on. Thanks for lettin me know though. If it drives me too insane I guess I'll fall back on xfields for that site.

When I fix it.. I was hoping to redo the site too.. not redesign.. just add things like memberships and what-not.. things that seem like obvious additions to a site like this but I didn't know how to do it. I think I got it now.

PostPosted: Fri Sep 14, 2007 10:04 am
by RDM
Ramon wrote:Lol why use it like that?



just use a $_SERVER['PHP_SELF'] to determine what page you are on.



So for instance your menu ->



Code: Select all
<ul>

<li class="<? if($_SERVER['PHP_SELF'] == '/cat1.php'){echo "active;} else { echo "nonactive";} ?>">cat 1</li>

<li class="<? if($_SERVER['PHP_SELF'] == '/cat2.php'){echo "active;} else { echo "nonactive";} ?>">cat 2</li>

<li class="<? if($_SERVER['PHP_SELF'] == '/cat3.php'){echo "active;} else { echo "nonactive";} ?>">cat 3</li>

<li class="<? if($_SERVER['PHP_SELF'] == '/cat4.php'){echo "active;} else { echo "nonactive";} ?>">cat 4</li>

<li class="<? if($_SERVER['PHP_SELF'] == '/cat5.php'){echo "active;} else { echo "nonactive";} ?>">cat 5</li>

</ul>



much more simple ;)


And how u implement that in cn_categories?

Code: Select all
function cn_category($prefix = '&nbsp;', $tpl = '<li><a href="[php]cute_get_link($row, category)[/php]" class="??" >{name}</a></li>', $no_prefix = true, $level = 0)

PostPosted: Fri Sep 14, 2007 11:32 am
by FI-DD
In inc/functions.inc.php change this:
Code: Select all
function category_get_tree($prefix = '', $tpl = '{name}', $no_prefix = true, $id = 0, $level = 0){
global $sql, $PHP_SELF;
static $johnny_left_teat;

   $level++;

   foreach ($sql->select(array('table' => 'categories', 'where' => array("parent = $id"), 'orderby' => array('id', 'ASC'))) as $row){
      $find = array('/{id}/i', '/{name}/i', '/{url}/i', '/{icon}/i', '/{template}/i', '/{prefix}/i', '/\[php\](.*?)\[\/php\]/ie');
      $repl = array($row['id'], $row['name'], $row['url'], ($row['icon'] ? '<img src="'.$row['icon'].'" alt="'.$row['icon'].'" border="0" align="absmiddle">' : ''), $row['template'], (($row['parent'] or !$no_prefix) ? $prefix : ''), '\\1');
      $johnny_left_teat .= ($no_prefix ? preg_replace('/('.$prefix.'{1})$/i', '', str_repeat($prefix, $level)) : str_repeat($prefix, $level));
      $johnny_left_teat .= preg_replace($find, $repl, $tpl);
      category_get_tree($prefix, $tpl, $no_prefix, $row['id'], $level);
   }

return $johnny_left_teat;
}


to this:
Code: Select all
function category_get_tree($prefix = '', $tpl = '{name}', $no_prefix = true, $id = 0, $level = 0){
global $sql, $PHP_SELF;
static $johnny_left_teat;

   $level++;
   $get_cat = end($blah = explode("/", $_GET['category']));

   foreach ($sql->select(array('table' => 'categories', 'where' => array("parent = $id"), 'orderby' => array('id', 'ASC'))) as $row){
      $find = array('/{id}/i', '/{name}/i', '/{url}/i', '/{icon}/i', '/{template}/i', '/{prefix}/i', '/\[php\](.*?)\[\/php\]/ie', '/{class}/i');
      $repl = array($row['id'], $row['name'], $row['url'], ($row['icon'] ? '<img src="'.$row['icon'].'" alt="'.$row['icon'].'" border="0" align="absmiddle">' : ''), $row['template'], (($row['parent'] or !$no_prefix) ? $prefix : ''), '\\1', $get_cat == $row['url'] ? 'active' : 'nonactive');
      $johnny_left_teat .= ($no_prefix ? preg_replace('/('.$prefix.'{1})$/i', '', str_repeat($prefix, $level)) : str_repeat($prefix, $level));
      $johnny_left_teat .= preg_replace($find, $repl, $tpl);
      category_get_tree($prefix, $tpl, $no_prefix, $row['id'], $level);
   }

return $johnny_left_teat;
}


Then change this:
Code: Select all
function cn_category($prefix = '&nbsp;', $tpl = '<li><a href="[php]cute_get_link($row, category)[/php]" class="??" >{name}</a></li>', $no_prefix = true, $level = 0)


to this:
Code: Select all
function cn_category($prefix = '&nbsp;', $tpl = '<li><a href="[php]cute_get_link($row, category)[/php]" class="{class}" >{name}</a></li>', $no_prefix = true, $level = 0)

PostPosted: Thu Sep 27, 2007 11:58 am
by scottdallas
[url=http://www.dream-library.com]Image
Dream Library two point oooooooooooooh[/url]

I just spent 3 billion hours redoing the whole site. Members can sign up. Guests and members can write dreams. People 'not logged in' get a Anonymous dream form.. People 'logged in' get a 'guest can add news' form that has a readonly input box that puts their username in place so when they add their dream they are forced to use their username. Auto short story is activated so when users write their dream it is truncated to 200 characters on all pages until the {full-story} is clicked. Short story is set to 'display: none' (making it disappear) since it's not to be written in. Only members can leave comments.

It went from kinda plain.. to very interactive. It was very over due. I hope some people sign up :)

I did, however, lose all previous comments.. well I just dumped them cause I want to kinda start fresh with the new system. Plus, all dreams are marked as 'anonymous' until people start signing up. I kept all the usernames from the previous dreams.. so as soon as those people sign up on the site.. I'll use the 'multiple author' hack and put their username on their old dreams. Until then, they stay anonymous. I thought really hard and figured this was the best method for future growth of the site.

PostPosted: Tue Oct 23, 2007 11:11 pm
by RDM
FI-DD wrote:In inc/functions.inc.php change this:
Code: Select all
function category_get_tree($prefix = '', $tpl = '{name}', $no_prefix = true, $id = 0, $level = 0){
global $sql, $PHP_SELF;
static $johnny_left_teat;

   $level++;

   foreach ($sql->select(array('table' => 'categories', 'where' => array("parent = $id"), 'orderby' => array('id', 'ASC'))) as $row){
      $find = array('/{id}/i', '/{name}/i', '/{url}/i', '/{icon}/i', '/{template}/i', '/{prefix}/i', '/\[php\](.*?)\[\/php\]/ie');
      $repl = array($row['id'], $row['name'], $row['url'], ($row['icon'] ? '<img src="'.$row['icon'].'" alt="'.$row['icon'].'" border="0" align="absmiddle">' : ''), $row['template'], (($row['parent'] or !$no_prefix) ? $prefix : ''), '\\1');
      $johnny_left_teat .= ($no_prefix ? preg_replace('/('.$prefix.'{1})$/i', '', str_repeat($prefix, $level)) : str_repeat($prefix, $level));
      $johnny_left_teat .= preg_replace($find, $repl, $tpl);
      category_get_tree($prefix, $tpl, $no_prefix, $row['id'], $level);
   }

return $johnny_left_teat;
}


to this:
Code: Select all
function category_get_tree($prefix = '', $tpl = '{name}', $no_prefix = true, $id = 0, $level = 0){
global $sql, $PHP_SELF;
static $johnny_left_teat;

   $level++;
   $get_cat = end($blah = explode("/", $_GET['category']));

   foreach ($sql->select(array('table' => 'categories', 'where' => array("parent = $id"), 'orderby' => array('id', 'ASC'))) as $row){
      $find = array('/{id}/i', '/{name}/i', '/{url}/i', '/{icon}/i', '/{template}/i', '/{prefix}/i', '/\[php\](.*?)\[\/php\]/ie', '/{class}/i');
      $repl = array($row['id'], $row['name'], $row['url'], ($row['icon'] ? '<img src="'.$row['icon'].'" alt="'.$row['icon'].'" border="0" align="absmiddle">' : ''), $row['template'], (($row['parent'] or !$no_prefix) ? $prefix : ''), '\\1', $get_cat == $row['url'] ? 'active' : 'nonactive');
      $johnny_left_teat .= ($no_prefix ? preg_replace('/('.$prefix.'{1})$/i', '', str_repeat($prefix, $level)) : str_repeat($prefix, $level));
      $johnny_left_teat .= preg_replace($find, $repl, $tpl);
      category_get_tree($prefix, $tpl, $no_prefix, $row['id'], $level);
   }

return $johnny_left_teat;
}


Then change this:
Code: Select all
function cn_category($prefix = '&nbsp;', $tpl = '<li><a href="[php]cute_get_link($row, category)[/php]" class="??" >{name}</a></li>', $no_prefix = true, $level = 0)


to this:
Code: Select all
function cn_category($prefix = '&nbsp;', $tpl = '<li><a href="[php]cute_get_link($row, category)[/php]" class="{class}" >{name}</a></li>', $no_prefix = true, $level = 0)


It works but it shows the same category with "active" no matter in which category you are ..