Search Results for 'code'
-
AuthorSearch Results
-
December 4, 2006 at 4:00 pm #51738
In reply to: Guest user
steven19
Member*bump*
December 4, 2006 at 3:58 pm #51171In reply to: Private Forum script
topiq
Memberi installed the site_opitons plugin. but i get some kinds of errors.
in the “private forum management” i get this errors:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/private-forums.php on line 29
value="2" > News
and if i want to change the message a user gets if he is not allowed to access a private forum:
Fatal error: Call to undefined function is_serialized() in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/site-options.php on line 190
thanks for your help!
PS: in the SITE OPTIONS tab i get nothing but a submit button…
December 4, 2006 at 1:09 pm #50962In reply to: Plugin for points system?
anotherbrick
MemberAlright
I’d like to follow the progress, and contribute if possible. I have a need for such a thing in an ongoing project, so I have time to give for this(I’m new-ish to PHP, but not to programming in general – C/C#/Ruby). Lemme know if you make a start!
December 4, 2006 at 12:51 pm #50961In reply to: Plugin for points system?
thomasklaiber
MemberAh … this isn’t implemented yet. But would be a nice idea for a plugin, I think I’ll give it a try
December 4, 2006 at 11:33 am #50950In reply to: How do I create new themes (not topics)?
spencerp
Member@talkaboutdesign, wow, that’s nice! Thanks for doing that! Can’t wait until ya release it.

spencerp
December 4, 2006 at 9:55 am #51169In reply to: Private Forum script
topiq
Memberit does not work for me. when i want to access the private forum plugin in the admin panel i get this error:
Fatal error: Call to undefined function get_option() in /srv/www/httpd/phost/c/com/pytalhost/cessi/web/bbpress/my-plugins/private-forums.php on line 22
December 4, 2006 at 8:28 am #50643In reply to: rawurlencode() Error
plognark
MemberOk, I lied, that actually doesn’t fix the problem.
However, what does seem to work is error supression:
$this->query_string .= $wpvar . ‘=’ . @rawurlencode($this->query_vars[$wpvar]);
Just throw an @ sign in front of the offending rawurlencode function and it seems to clean things up.
December 4, 2006 at 7:14 am #51846In reply to: To display [Resolved], by the thread’s title
spencerp
MemberIn your forum’s root directory.. you have to make a folder called: my-plugins and then upload the file there.. Call a blank file: my_resolve_ title.php and add the above codes into it.. make sure there isn’t white space before the: <?php and after the last: ?>
Save it, and upload it to your my-plugins folder.. Good luck!
spencerp
December 4, 2006 at 6:22 am #51845In reply to: To display [Resolved], by the thread’s title
suleiman
Memberwhere does this plugin code get dropped exactly?
December 4, 2006 at 4:27 am #50840In reply to: Error for tags.php
chrishajer
Participant@richardjeananders: this addition to the .htaccess absolutely fixed this exact problem for me. I was seeing the same error in Firefox when I clicked on the Tag link in the breadcrumb navigation. PHP scripts were being interpreted by PHP 4.4.4 on the server until I created an .htaccess file with this one line. Now, PHP scripts are being interpreted by PHP 5.1.6. I can’t believe that fixed it. Thank you very much.
.htaccess
AddType x-mapp-php5 .phpDecember 4, 2006 at 12:19 am #52117In reply to: Private Forums Plugin
Trent Adams
MemberThanks! The plugins work now with the latest code!
Cheers,
Trent
December 4, 2006 at 12:04 am #52114In reply to: Private Forums Plugin
so1o
Participantsorry about the mis communication..
the latest code for bbpress..
coz the is_serialized function is in the latest code but not in blix i think…
December 4, 2006 at 12:01 am #52113In reply to: Private Forums Plugin
Trent Adams
MemberI just redownloaded both site options and private forum plugins and reinstalled them.
Still get the error:
Fatal error: Call to undefined function: is_serialized() in /var/www/html/blog/forum/my-plugins/site-options.php on line 179Should I just give up and get lastest code?
Trent
December 3, 2006 at 11:49 pm #52112In reply to: Private Forums Plugin
so1o
ParticipantThe plugin currently works on the latest code.. let me check if i can fix the code to work with blix..
Trent:
can you check with the latest code and let know..
December 3, 2006 at 10:49 pm #52111In reply to: Private Forums Plugin
ardentfrost
MemberWay to keep the bar raised for developing plugins s101

Thanks for the plugin, one less thing I gotta make
December 3, 2006 at 10:43 pm #52110In reply to: Private Forums Plugin
Trent Adams
MemberIf I submit anything in that page, it gives me the following error:
Fatal error: Call to undefined function: is_serialized() in /var/www/html/blog/forum/my-plugins/site-options.php on line 179Trent
December 3, 2006 at 10:39 pm #52109In reply to: Private Forums Plugin
Trent Adams
MemberI am getting this beside each item in the private forum list in the admin:
Warning: array_key_exists(): The second argument should be either an array or an object in /var/www/html/blog/forum/my-plugins/private-forums.php on line 29value="1" > Terms of Service
Any ideas?
December 3, 2006 at 9:42 pm #50642In reply to: rawurlencode() Error
plognark
MemberWell, I came up with an ugly fix, especially since I don’t actually know what I’m doing.
I’ve been trying to integrate the BBpress forum right inside my WP theme, which is what I imagine you were trying to do.
To fix it I added this switch right at the top of my bbpress template header:
$bbpressswitch = 1;
unset($_SERVER);
Then I went into classes.php for wordpress and put an if/else ‘switch’, basically:
The first line there is 1645 in my file
function build_query_string() {
$this->query_string = ”;
foreach ($this->public_query_vars as $wpvar) {
if (isset($this->query_vars[$wpvar]) && ” != $this->query_vars[$wpvar]) {
$this->query_string .= (strlen($this->query_string) < 1) ? ” : ‘&’;
// bug fix for BBpress integration
if ($bbpressswitch == 1) {
// $this->query_string .= $wpvar . ‘=’ . rawurlencode($this->query_vars[$wpvar]);
// if the url is being accessed from a page outside of WP that is using the header
// or other data, turn off this URL encoding.
} else {
$this->query_string .= $wpvar . ‘=’ . rawurlencode($this->query_vars[$wpvar]);
}
// end of bug fix
}
}
It’s ugly, and I’m a n00b at this stuff, but it does seem to have cleaned up my error. I guess the bbpress URL’s don’t work so good when sent through the WP URLencode setup, so turning them off when going into a BBpress page seemed like it might work.
I don’t know if there are any other repurcussions from this change, but again, it turned off the error, and I haven’t seen any fallout…yet.
There are other sites online that seem to offer a fix for the same issue, like this:
But the fix they suggest kills all of your static pages or category links and always sends you to the main blog page.
December 3, 2006 at 9:29 pm #52061In reply to: Simply doesn’t work
lejovit
MemberWow, that worked, thanks a lot.
December 3, 2006 at 6:18 pm #52089In reply to: Hide a section from the ddl when adding a new topic
ardentfrost
MemberUntil a plugin is made, I think you’d have to pseudo-hardcode it. I was able to limit what admins and regular users could see in my memberlist by adding the following code:
<?php if (bb_current_user_can('edit_users')) : ?>*some code here*
<?php endif; ?>
There are other options you can test on, that’s just the one I found to use.
For you, in the *some code here* part, you’ll need to find a way to pull out what forums you got, and put an if statement to say only to show the Announcements one to admins.
Looking at the files, I found a function called “forum_dropdown” in template functions. If you go there and within the foreach section, below the $selection part, put the following:
if ( $forum->forum_name == 'Announcements' && !bb_current_user_can('edit_users') ) { }else
That will do nothing when it gets to listing your “Announcements” section unless the user is an admin. The else is for the echo line below where I told you to put the previous line.
Of course, this is a change to a core file, but sometimes that’s just what you gotta do until a plugin is made
Furthermore, there is no filter to be added there, so writing a plugin would mean rewriting that function, dropping it in a plugin file, and calling the replacement function from post-form.php
December 3, 2006 at 3:35 pm #52012In reply to: What does this line of code do in front-page.php?
Null
Memberkk thx
December 3, 2006 at 2:22 pm #52011In reply to: What does this line of code do in front-page.php?
thomasklaiber
MemberIf you have no forums … then this will be displayed instead. (Try removing all forums and i think you’ll see it.)
December 3, 2006 at 1:26 pm #1049Topic: What does this line of code do in front-page.php?
in forum TroubleshootingNull
MemberWell this is the line near the bottom of front-page.php:
<h3 class="bbcrumb"><a href="<?php option('uri'); ?>"><?php option('name'); ?></a></h3>But what does it do? Deleting this line doesn’t change anything….
December 3, 2006 at 12:29 pm #50205In reply to: About Freshness
thegecko
MemberI hope there is a solution/workaround soon…
My server is in Dallas, I am in London right now, and my users are all over Asia in 3 different time zones
December 3, 2006 at 12:09 pm #52082spencerp
Memberpeiqinglong means a “folder” in your forum’s root directory, called: my-plugins

spencerp
-
AuthorSearch Results