FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Bdesign posts

Feed 343 posts

page's title is can no't use chinese or japanese

Well I think this is a because of the encoding, I’ll have a look at it.

 

Resuscitating FrogCMS

Yep, “it works for small things” is a good way to look at it. What I love about it is the modular approach, it’s almost just a framework. I see the activity is kind of low on the boards… Too bad.

 

Resuscitating FrogCMS

Hello everyone,

I was thinking of trying to take FrogCMS back on the road, trying to continue the project, but first I want to know how many of you are still using FrogCMS, and how many of you could help supporting this initiative.

After I’ll get some answers to this, depending on them, I will try to make a team, and begin the resuscitation.

Thanks,
Bebliuc George

 

BD Gallery Troubles

Please redownload this one : http://www.box.net/shared/4ivxbfomqd

 

Gallery Plugin

Try to download it again Bd Gallery

 

Sessions and php files

Make the script a plugin :P or include the config file, but this is not the best option.

 

A nicer Looking Comments Plugin?

That’s what the script above does.

 

Gallery Plugin

$(ā€.album_pā€).widont is not a function

This means that the js file is not loaded. I’ll check the paths.

 

Gallery Plugin

If you use firebug, please tell me if it gives you any errors in Console ( javascript errors ).

 

A nicer Looking Comments Plugin?

No problem. Hope it works.

 

Gallery Plugin

Agree with most of your proposals, will do.

Oh no! Please make this only optional. The requirement to (re)name photos would be a nightmare when I have to upload more than 500 photos ;) Numbers are simple and clean.

I’ll make a feature like Wordpress permalinks like: %d_%n_%i
Where

%d = upload date
%n = photo name
%i = photo id

 

Gallery Plugin

I will expect reply about the fix :)

 

problem PHP, snippet

Replace with this:

ACTION=\"" . BASE_URL.$this->slug . ".php\"

Now it should (has to) work.

 

problem PHP, snippet

Hello jellepals. It seems you have a problem with $_SERVER[‘PHP_SELF’]. This points you to index because PHP_SELF points to the filename of the currently executing script, relative to the document root, which in your case is index.php .
A simple solution is to replace this :

ACTION=\"" . $_SERVER['PHP_SELF'] . "\"

With:

ACTION=\"" . BASE_URL.$this->slug . ".html\"

I hope I didn’t messed up the quotes.

 

Gallery Plugin

All of them are on the To-do list for the next version. :)

 

installation failed: 500 Internal Server Error

It seems that you have some wrong php code there. Can you make me a admin account for the backend ? Or show me the code from Articles page.

 

installation failed: 500 Internal Server Error

This looks like a .htaccess . Do you have the RewriteBase set how it should ?
If it’s root : RewriteBase /
If it’s in a folder: RewriteBase /folder_name/

 

How to make a custom install package?

You can make a update.php file, which will contain your extra DB stuff. Example:

<?php include("config.php");
$__CONN__ = new PDO(DB_DSN, DB_USER, DB_PASS);
$sql = "INSERT INTO table_name bla bla";
$stmt = $__CONN__->prepare($sql);
$stmt->execute();

But with the raw modified files, you have to copy paste them, because you will mess permissions up on a real server, and that sucks belive me.

 

A nicer Looking Comments Plugin?

Sorry for the double post, but it seems there is a bug with this forum, it cuts my post.
If you want to modify the effect on hide/show you can modify this line :

$("#comment_form").animate({ opacity: 'toggle' });

With:

Accordion effect :

$("#comment_form").animate({ height: 'toggle' }); 

No effect :

$("#comment_form").toggle();

You can do much more flashy things but you will need the easying plugin or jQuery UI. Have fun |:)

 

A nicer Looking Comments Plugin?

You can try this, not tested :) but should work.
Go to Snippets and look for comment-form , click on it so the editor comes up. This is what you should find :

<form action="<?php echo $this->url(); ?>" method="post" id="comment_form"> 
<p>
	<input class="comment-form-name" type="text" name="comment[author_name]" id="comment_form_name" value="" size="22" /> 
	<label for="comment_form_name"> name (require)</label>
</p>
<p>
	<input class="comment-form-email" type="text" name="comment[author_email]" id="comment_form_email" value="" size="22" /> 
	<label for="comment_form_email"> email (will not be published) (required)</label>
</p>
<p>
	<input class="comment-form-link" type="text" name="comment[author_link]" id="comment_form_link" value="" size="22" /> 
	<label for="comment_form_link"> website</label>
</p>
<p>
	<?php captcha(); ?>
</p>
<p>
	<textarea class="comment-form-body" id="comment_form_body" name="comment[body]" cols="100%" rows="10"></textarea>
</p>
<p>
	<input class="comment-form-submit" type="submit" name="commit-comment" id="comment_form_submit" value="Submit comment" />
</p>
</form>

The first step is to get the jQuery (my choice) library. Here’s a online hosted one :

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

Now you have to write the hide/show code for your comment form.

<script type="text/javascript">
	//<![CDATA[
		$(function() {
			$("#comment_form").hide();
			$("#add_comment").click(function() {
				$("#comment_form").animate({ opacity: 'toggle' });
			});
		});
	//]]>
</script>

The thing is I hide the comment form through javascript, so if a user has JS disabled, he will see the form. If you will hide it from css with display:none and JS is off, the user is unable to use the form. You get the idea.

Now we have to add a button to display the form on click event. It has to match the id : #add_comment ( if you need another id please replace it in the JS provided ).

<a href="#comment_form" id="add_comment" title="Add a new comment">Add comment</a>

And here is the full code, at last :

<a href="#comment_form" id="add_comment" title="Add a new comment">Add comment</a>
<form action="<?php echo $this->url(); ?>" method="post" id="comment_form"> 
<p>
	<input class="comment-form-name" type="text" name="comment[author_name]" id="comment_form_name" value="" size="22" /> 
	<label for="comment_form_name"> name (require)</label>
</p>
<p>
	<input class="comment-form-email" type="text" name="comment[author_email]" id="comment_form_email" value="" size="22" /> 
	<label for="comment_form_email"> email (will not be published) (required)</label>
</p>
<p>
	<input class="comment-form-link" type="text" name="comment[author_link]" id="comment_form_link" value="" size="22" /> 
	<label for="comment_form_link"> website</label>
</p>
<p>
	<?php captcha(); ?>
</p>
<p>
	<textarea class="comment-form-body" id="comment_form_body" name="comment[body]" cols="100%" rows="10"></textarea>
</p>
<p>
	<input class="comment-form-submit" type="submit" name="commit-comment" id="comment_form_submit" value="Submit comment" />
</p>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript">
	//<![CDATA[
		$(function() {
			$("#comment_form").hide();
			$("#add_comment").click(function() {
				$("#comment_form").animate({ opacity: 'toggle' });
			});
		});
	//]]>
</script>

I hope this helps, have a nice day.

 

Gallery Plugin

Hello. Sorry for the late(very late) reply. Here is a modified version which should fix your bug. Bd gallery . Now it’s compatible with Wolf too.

 

Gallery Plugin

Hello Lilly,

I will take a look and release a fix for this. Thanks for notifying me about this bug.

 

Automatically create a page

You have to modify BD Gallery for this. If you wait for the next Frog release, Bd Gallery will have support for frontend with nice URLs for SEO ( and other things like watermark ).

 

Changing 'public' folder functionality

This is more related to your theme I think. You can always use this the <base> tag to overcome this. Example for your question :

<head>
<base href="/public/" />
<link href="css...>
</head>
<body>
<img src="example.jpg" />
</body>

Where the css… and example.jpg files are in the public folder.

 

How to set a home subpage as default homepage

As far as I know, you cannot change the default home page without a redirection. But I’ll check it out.