Search Results for 'code'
-
AuthorSearch Results
-
January 27, 2016 at 8:36 pm #171046
In reply to: vbulletin 3.x import
Stephen Edgar
KeymasterCan try the other one, i.e.
vBulletinplease? Theres a possibility I’ve messed things up here 🙁January 27, 2016 at 5:40 pm #171038In reply to: vbulletin 3.x import
Stephen Edgar
KeymasterBe careful when you post code here on the forums, next time you’ll want to make sure you do not post passwords 😉 (I’ve removed them)
If your using the 2.6 alpha (you should) are you selecting
vBulletinorvBulletin3from the dropdown?January 27, 2016 at 2:04 pm #171030In reply to: vbulletin 3.x import
blandow
ParticipantSo it didn’t work…
(The results I get when I start the import is no topics to import, no threads to import, etc)This is my config.php file:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.7.1 Patch Level 1 – Licence Number REDACTED
|| # —————————————————————- # ||
|| # All PHP code in this file is ©2000-2008 Jelsoft Enterprises Ltd. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # —————- VBULLETIN IS NOT FREE SOFTWARE —————- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*//*——————————————————-*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+———————————————————+
| If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*——————————————————-*/// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
// for slave options just append _slave to your preferred database type.
$config[‘Database’][‘dbtype’] = ‘mysql’;// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config[‘Database’][‘dbname’] = ‘insidestlforums_beta’;// ****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config[‘Database’][‘tableprefix’] = ”;// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address specified here.
// Leave this blank to not send any emails when there is a database error.
$config[‘Database’][‘technicalemail’] = ‘insideSTL_host@insideSTL.com’;// ****** FORCE EMPTY SQL MODE ******
// New versions of MySQL (4.1+) have introduced some behaviors that are
// incompatible with vBulletin. Setting this value to “true” disables those
// behaviors. You only need to modify this value if vBulletin recommends it.
$config[‘Database’][‘force_sql_mode’] = true;// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
// If you are unsure of what to put here, leave the default values.
$config[‘MasterServer’][‘servername’] = ‘localhost’;
$config[‘MasterServer’][‘port’] = 3306;// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config[‘MasterServer’][‘username’] = ‘redacted’;
$config[‘MasterServer’][‘password’] = ‘redacted’;// ****** MASTER DATABASE PERSISTENT CONNECTIONS ******
// This option allows you to turn persistent connections to MySQL on or off.
// The difference in performance is negligible for all but the largest boards.
// If you are unsure what this should be, leave it off. (0 = off; 1 = on)
$config[‘MasterServer’][‘usepconnect’] = 1;// ****** SLAVE DATABASE CONFIGURATION ******
// If you have multiple database backends, this is the information for your slave
// server. If you are not 100% sure you need to fill in this information,
// do not change any of the values here.
$config[‘SlaveServer’][‘servername’] = ”;
$config[‘SlaveServer’][‘port’] = 3306;
$config[‘SlaveServer’][‘username’] = ”;
$config[‘SlaveServer’][‘password’] = ”;
$config[‘SlaveServer’][‘usepconnect’] = 0;// ****** PATH TO ADMIN & MODERATOR CONTROL PANELS ******
// This setting allows you to change the name of the folders that the admin and
// moderator control panels reside in. You may wish to do this for security purposes.
// Please note that if you change the name of the directory here, you will still need
// to manually change the name of the directory on the server.
$config[‘Misc’][‘admincpdir’] = ‘admincp’;
$config[‘Misc’][‘modcpdir’] = ‘modcp’;// Prefix that all vBulletin cookies will have
// Keep this short and only use numbers and letters, i.e. 1-9 and a-Z
$config[‘Misc’][‘cookieprefix’] = ‘bb’;// ******** FULL PATH TO FORUMS DIRECTORY ******
// On a few systems it may be necessary to input the full path to your forums directory
// for vBulletin to function normally. You can ignore this setting unless vBulletin
// tells you to fill this in. Do not include a trailing slash!
// Example Unix:
// $config[‘Misc’][‘forumpath’] = ‘/home/users/public_html/forums’;
// Example Win32:
// $config[‘Misc’][‘forumpath’] = ‘c:\program files\apache group\apache\htdocs\vb3’;
$config[‘Misc’][‘forumpath’] = ”;// ****** USERS WITH ADMIN LOG VIEWING PERMISSIONS ******
// The users specified here will be allowed to view the admin log in the control panel.
// Users must be specified by *ID number* here. To obtain a user’s ID number,
// view their profile via the control panel. If this is a new installation, leave
// the first user created will have a user ID of 1. Seperate each userid with a comma.
$config[‘SpecialUsers’][‘canviewadminlog’] = ‘1’;// ****** USERS WITH ADMIN LOG PRUNING PERMISSIONS ******
// The users specified here will be allowed to remove (“prune”) entries from the admin
// log. See the above entry for more information on the format.
$config[‘SpecialUsers’][‘canpruneadminlog’] = ‘1’;// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You may wish
// to remove all user IDs from this list for security reasons.
$config[‘SpecialUsers’][‘canrunqueries’] = ”;// ****** UNDELETABLE / UNALTERABLE USERS ******
// The users specified here will not be deletable or alterable from the control panel by any users.
// To specify more than one user, separate userids with commas.
$config[‘SpecialUsers’][‘undeletableusers’] = ”;// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the administrator permissions
// page, which controls the permissions of other administrators
$config[‘SpecialUsers’][‘superadministrators’] = ‘1’;// ****** DATASTORE CACHE CONFIGURATION *****
// Here you can configure different methods for caching datastore items.
// vB_Datastore_Filecache – to use includes/datastore/datastore_cache.php
// vB_Datastore_APC – to use APC
// vB_Datastore_XCache – to use XCache
// vB_Datastore_Memcached – to use a Memcache server, more configuration below
// $config[‘Datastore’][‘class’] = ‘vB_Datastore_Filecache’;// ******** DATASTORE PREFIX ******
// If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
// than one set of forums installed on your host, you *may* need to use a prefix
// so that they do not try to use the same variable within the cache.
// This works in a similar manner to the database table prefix.
// $config[‘Datastore’][‘prefix’] = ”;// It is also necessary to specify the hostname or IP address and the port the server is listening on
/*
$config[‘Datastore’][‘class’] = ‘vB_Datastore_Memcached’;
$i = 0;
// First Server
$i++;
$config[‘Misc’][‘memcacheserver’][$i] = ‘127.0.0.1’;
$config[‘Misc’][‘memcacheport’][$i] = 11211;
$config[‘Misc’][‘memcachepersistent’][$i] = true;
$config[‘Misc’][‘memcacheweight’][$i] = 1;
$config[‘Misc’][‘memcachetimeout’][$i] = 1;
$config[‘Misc’][‘memcacheretry_interval’][$i] = 15;
*/// ****** The following options are only needed in special cases ******
// ****** MySQLI OPTIONS *****
// When using MySQL 4.1+, MySQLi should be used to connect to the database.
// If you need to set the default connection charset because your database
// is using a charset other than latin1, you can set the charset here.
// If you don’t set the charset to be the same as your database, you
// may receive collation errors. Ignore this setting unless you
// are sure you need to use it.
// $config[‘Mysqli’][‘charset’] = ‘utf8’;// Optionally, PHP can be instructed to set connection parameters by reading from the
// file named in ‘ini_file’. Please use a full path to the file.
// Example:
// $config[‘Mysqli’][‘ini_file’] = ‘c:\program files\MySQL\MySQL Server 4.1\my.ini’;
$config[‘Mysqli’][‘ini_file’] = ”;// Image Processing Options
// Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings.
$config[‘Misc’][‘maxwidth’] = 2592;
$config[‘Misc’][‘maxheight’] = 1944;/*======================================================================*\
|| ####################################################################
|| # Downloaded: 16:07, Tue Jun 17th 2008
|| # CVS: $RCSfile$ – $Revision: 26534 $
|| ####################################################################
\*======================================================================*/January 27, 2016 at 8:38 am #171024Pascal Casier
ModeratorHi,
Try this in a child theme or functions.php (I didn’t really test it, but this could be a way to do):function casiepa_mention_gravatar() { echo 'Upload a profile picture on <a href="gravatar.com">Gravatar</a>'; } add_action( 'bbp_theme_after_reply_author_details', 'casiepa_mention_gravatar' ); add_action( 'bbp_theme_after_topic_author_details', 'casiepa_mention_gravatar' );Pascal.
January 27, 2016 at 5:28 am #171011In reply to: Latest topics and posts on the homepage
Robin W
Moderatoryou put this code :
[bsp-display-topic-index show=’5′ forum =’10’]
into the content section of your home page
January 26, 2016 at 6:53 pm #171001In reply to: Latest topics and posts on the homepage
ZivotsRS
ParticipantThank you for your response. Plugin looks great.
Only too much for me in English and can not find where to adjust. Thus, the basic settings I can see, but I can not find out where to enter a shortcode to work. It is the most English 🙁January 26, 2016 at 6:13 pm #170998In reply to: Latest topics and posts on the homepage
Robin W
Moderatorlatest topics is in a shortcode in my plugin
https://wordpress.org/plugins/bbp-style-pack/
[bsp-display-topic-index show=’5′ forum =’10’]
January 26, 2016 at 4:14 pm #170995In reply to: BBpress showing date as Jan 1970
Robin W
ModeratorIf you know how to add stuff to css, this should do it
.type-forum .post_info {
display: none;
}If you don’t know how to do that, your theme may allow custom css – have a look in dashboard>appearance and see what theme changes you can see in there, or have a look at
https://codex.bbpress.org/functions-files-and-child-themes-explained/
Do come back if you need further help !
January 26, 2016 at 3:43 pm #170993Topic: Increase Link /Breadcrumb size
in forum TroubleshootingBirchwind
ParticipantHi –
I’m running WordPress 4.4.1
BBpress is the 2.58
Theme is OptimizerI have successfully increased the font size of the forum itself. What I have not been able to do is figure out how to change the text that one sees to get back to the various Forum categories or Forum home – as shown in image below:
https://i.gyazo.com/0882075309c65c8058da2fe97caea9aa.pngI used this info here: https://codex.bbpress.org/bbpress-styling-crib/ and according to that, it is #8 I want to adjust, and on that ‘how-to’ it says that that area is:
8. Breadcrumb and link colors
Inherited from your themeJust wondering where to find this so I can make it larger in size.
January 25, 2016 at 5:13 pm #170962In reply to: Should there be an image?
grungyape
ParticipantSorry, I must have not set myself up to be notified of your reply.
I’m not sure I understand you. The forum is working, as in the links go where they should and what not.
So yes, well it was changed but in short yes, this link does work:
http://fubar-alliance.com/comms/channel/test/The forum software says index is comms, and single forums is channel, but the index looks like it should have an image to represent the forum in question, otherwise the page is hard to read and understand…
If you go here: http://fubar-alliance.com/comms/
Notice the odd blocks that highlight when you find them, and have the mini round broken image.
January 25, 2016 at 4:49 pm #170961In reply to: Forum text colors and theme appearance
vinstyton
ParticipantYes, two colors that I need to change.
The author/date text color and the link colors of the forums.
From the codex reference, I am trying to change the colors of #5 and #8.
I tried the code above but it did not change those two color elements.
Thanks.
January 25, 2016 at 2:09 pm #170958Robin W
Moderatoralthough
`$forum_id = bbp_get_topic_forum_id($post_id);
or$forum_id = bbp_get_topic_forum_id($post_id);
`would be quicker and easier to get the forum id
January 25, 2016 at 11:10 am #170944In reply to: Forums not showing up in forum index
Pascal Casier
ModeratorHi,
1) There is no pagination for the forum archive page.
2) It is not limited to 50 forums, you can create as much as you want. It is just recommended that you use less than 50. You can use a filter to change the number to what you want. I haven’t tested it myself, so try it yourself in your child theme or functions.php:function casiepa_increase-forum-per-page( $args = array() ) { $args['posts_per_page'] = get_option( ‘_bbp_forums_per_page’, 100 ); return $args; } add_filter( ‘bbp_before_has_forums_parse_args’, ‘casiepa_increase-forum-per-page’ );3) To order, Edit your forum (Admin Panels > Forums > All Forums) and on the right you will find ‘Forum attributes’, play with the ‘order’ attribute.
Hope this helps,
Pascal.January 25, 2016 at 11:07 am #170943Aztix
ParticipantHere is my research :
I register the forum parent id with this :
$parents = get_post_ancestors( $post->ID ); $id = ($parents) ? $parents[count($parents)-1]: $post->ID; $parent_id = "forum_parent_".$id;and add it on my body class
<?php body_class($parent_id." ".$style." ....) ?>and then i creat this little function :
if (bbp_is_single_topic($parent_id === ‘forum_parent_11801’)){
wp_nav_menu(array(‘theme_location’ => ‘primary’, ‘menu’=>’my-menu-name’ ));
}It doesn’t work but i think that i’am not so far from what i want !
January 25, 2016 at 7:13 am #170936Topic: Forums not showing up in forum index
in forum ShowcaseSoffiti
ParticipantI have 63 forums located at soffiti.com, but only 50 are present in the forum index, the other 13 are not shown and only can be searched. I wanted to how I could add the 13 forums so that users can discover them just like the other 50 without running into them during search. I’d like to know if there is a plugin or theme that can solve this without me having to add/edit code (if necessary please give me directions on how I should add/edit the code). Also, I’m guessing that the topics and posts are presented in the same way so I’d like to know how to extend them as well.
Note:
1. Extend on the same page
2. Extend to another pageJanuary 25, 2016 at 4:08 am #170933In reply to: Widget with posts from only one forum?
Pascal Casier
ModeratorHi,
Check bbP Stylepack. It has a shortcode bsp-display-topic-index that should help you.
Pascal.January 25, 2016 at 3:57 am #170931In reply to: Forums Page Layout
Pascal Casier
ModeratorHi Brandi,
Seems like you theme goes in conflict with bbPress. What theme do you use and can you confirm that switching theme solves the issue ?
You will have to play with CSS if you want to stay with this theme:.forum { width: 100% !important; }Pascal.
January 25, 2016 at 3:44 am #170930In reply to: how disable, editing, trashing, spaming.
Pascal Casier
ModeratorLimiting the keymaster ? Keymaster should be able to manage the whole system, so I would not touch that one. Think more of creating a new role like ‘myKeymaster’ and give the capabilities that you want: https://codex.bbpress.org/custom-capabilities/
Pascal.January 25, 2016 at 3:38 am #170929In reply to: Resetting Forums Giving 500 Error
Pascal Casier
ModeratorIf it’s really not working anymore, you could delete directly forums, topics and replies from the DB and then run the reset again. This will of course delete all your forum data ! Make sure to backup before !
Change wp_ to your own prefix.
USE WITH CAUTION
DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id) LEFT JOIN wp_postmeta c ON (a.ID=c.post_id) WHERE a.post_type IN ('forum', 'topic', 'reply')USE WITH CAUTION
January 24, 2016 at 7:23 pm #170926Topic: Forums Page Layout
in forum Themesinternetgal
ParticipantHi –
I’m using bbpress for a membership website I created. I’m having issues with the way the theme I’m using is laying out the list of forums.
It looks like this, but I would prefer it to layout the forum in one row instead of columns.
I’m learning CSS and PHP, but I know enough code to be dangerous right now. I’m looking for an easy fix.
Any ideas on how I can fix it appearance of the forum?
January 24, 2016 at 1:05 pm #170924In reply to: Customizing Search Results
DBGrover
ParticipantWordpress 4.4.1, bbPress 2.5.8, draftanimalpower.org
@hotconductor, I found my way to this forum in search of answers to the same questions you’re posing. I found this recent topic which basically says that you may be able to achieve this result by editing the child theme, changing functions, or using an external search functionality like that of Google Custom Search.
@Robkk, could you be more specific about what code we would need to add to the child theme in order to achieve the functionality we’re looking for? I am capable of very basic code but my ability level is low so I’m hopefully looking for something I can copy in.Help please?
January 24, 2016 at 7:52 am #170918In reply to: Resetting Forums Giving 500 Error
Pascal Casier
ModeratorHi,
Did you follow this ? https://codex.bbpress.org/getting-started/installing-bbpress/deleting-bbpress/
Pascal.January 23, 2016 at 1:01 pm #170909In reply to: Close Thread after “x” days with option to Re-Open?
Robin W
ModeratorTypically mods/admins close a topic to prevent more replies, but is users can simply re-open it, then it sort of defeats why it was written, so suspect you’d struggle to find anyone who has or would code this for free.
There are functions
bbp_close_topicandbbp_open_topicwhich could be hooked to a cron function to close and a reply function to reopen, but it would take a little effort to code a plugin to do this.January 23, 2016 at 12:50 pm #170908In reply to: Sidebar issue
Robin W
ModeratorTwo approaches
1. you are using Reden=pro which is a paid theme, so you should get paid support to fix this, quite often it is very simple, but it is theme dependant
2. see this link on getting wordpress to use the template you want
January 22, 2016 at 6:22 pm #170896In reply to: Forum RSS Feed excluding replies
Robkk
ModeratorGroup forum feeds are having issues.
https://bbpress.trac.wordpress.org/ticket/2888
For just topics, you an for now use the original forum structure url and add this to the end.
/feed/?type=topic -
AuthorSearch Results