Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - CerealGuy
211
First, $context['user']['is_logged'] isnt good, better use we::$is_guest.
Second, write a plugin :D

Dont worry, did that for you.
http://wedge.org/pub/plugins/8717/plugin-no-print-for-guests/msg296572/#msg296572
212
Plugins / [Plugin] No Print for Guests
« on October 19th, 2014, 01:47 PM »
No Print For Guests

Simple plugin which disables print function for Guests. Nothing more.

Installation

Drop nopluginforguests folder into /wedge/plugins and activate it via ACP.

https://github.com/C3realGuy/we_NoPrintForGuests
213
Archived fixes / Re: PrintPage parsebbc doesnt know postid
« on October 19th, 2014, 01:05 PM »
Thanks for implementing, but you missed adding 'id_msg' to selected fields.
Created a Pull Request for this, but i dont know how to only select one commit, therefore theres another fix in it.
But important too.
https://github.com/Wedge/wedge/pull/22
214
Archived fixes / PrintPage parsebbc doesnt know postid
« on October 16th, 2014, 10:43 AM »
In PrintPage parsebbc gets no info about the processed post id.
$context['posts'] = array();
while ($row wesql::fetch_assoc($request))
{
// Censor the subject and message.
censorText($row['subject']);
censorText($row['body']);

$context['posts'][] = array(
'subject' => $row['subject'],
'member' => $row['poster_name'],
'on_time' => on_timeformat($row['poster_time'], false),
'timestamp' => $row['poster_time'],
'body' => parse_bbc($row['body'], 'post', array('print' => true)),
);

if (!isset($context['topic_subject']))
$context['topic_subject'] = $row['subject'];
}
Add id_msg to selected fields in query and
'body' => parse_bbc($row['body'], 'post', array('print' => true'cache' => $row['id_msg'])),
215
Support / Re: How to make custom bbc?
« on October 13th, 2014, 06:49 PM »
Quote from BurkeKnight on October 13th, 2014, 06:47 PM
I keep seeing stuff about the custom bbc integration...
However, I have not seen anything about it in admin, so I guess it's still not in there at all?
Sorry i dont get it, perhaps fix your plugin-info?!
And does it appear in your plugin list? And have you activated it?
Quote
So, how do I fix this plugin, so it works, and has the bbc button?
See my edit on my last post.
216
Support / Re: How to make custom bbc?
« on October 13th, 2014, 06:41 PM »
I don't think that language strings are supported in plugin-info.xml.
Also your hook integration is wrong.
1. Theres no direct link to a specific language, would make the complete thing useless, because you could directly use english ^^
2. Theres no language hook
3. normally its <hooks><function point="hookname" function="your_function" file="$plugindir/your_file" /><hooks>

And i dont know why this would be important, because "Off-Topic" is a globally used term. And if you really would like to do that language stuff, do something with 'post_bbc_parse'.

But i agree with you, the code bcc tag is really not that good and needs some improvement. Also the custom bbc integration needs some improvement. Thats some stuff for the next wedge version :whistle:.

EDIT: The button for the bbc thing should be added via 'post_form_pre' (not 100% sure). Some add_js stuff or i dont know. Have a look at the source code, that should help.
217
Features / [Hook] Re: Custom Fields
« on October 13th, 2014, 04:05 PM »
*Bump*
I really would need this hook, because it would replace multiple additional hooks for my plugins.
First im able to add the invitekey field without an additional hook, and second, also profile fields could be added without some add_js workaround.
218
Support / Re: How to make custom bbc?
« on October 13th, 2014, 03:17 PM »
Easiest way is probably via plugin.
Code: (plugin-info.xml) [Select]
<?xml version="1.0" standalone="yes" ?>
<plugin id="BurkeKnight:TestBBC">
<name>TestBBC</name>
<author>BurkeKnight</author>
<description>Example test.</description>
<version>1.0</version>
<bbcodes>
<bbcode tag="examplebbc" type="parsed" block-level="yes">
<before-code><![CDATA[<div class="windowbg2 wrc">]]></before-code>
<after-code><![CDATA[</div>]]></after-code>
</bbcode>
</bbcodes>
</plugin>

[examplebbc]Test[/examplebbc] => <div class="windowbg2 wrc">Test</div>
219
Archived fixes / Re: Member's List Custom Fields do not line up
« on October 12th, 2014, 02:02 PM »
Quote from Freñçh on October 12th, 2014, 01:56 PM
I'm sorry but without using your creation (had to login as a regulier member) i get an completely different members list then what's being showing by you in the first place.So i still do not get your point.
Look at your screenshot, the Titles/values are in the wrong order. Title is github, but field is online.
220
Archived fixes / Re: Skin Selector in Main Menu
« on October 11th, 2014, 09:06 PM »
By default you dont have a skin selector in the sidebar.
221
Features: Posts & Topics / Re: Likes
« on October 8th, 2014, 10:13 PM »
Hmm i get the point for more buttons, something like "helpful", or "approve" etc can be useful. But something like "sad" or "love", i dont know if they really make sense, because they are quite similar to like or thanks. Perhaps less buttons and more specific opinions per default?! How i understood, admins can change those buttons?!.

Also I feel a bit uncomfortable with the idea of having smileys to "rate" a post. Additional icons would be better i think.

I recently saw that thing on a xenforo forum, where you could rate a post (i dont know a better word for this) as "helpful", "non-helpful", "approve", "disapprove", "like", "dislike" and "get well".  For example if someone posted something stupid and offending, people pressed the "get well" button and it showed the general position of the community.

All in all i think its a good thing for big communities where you want to integrate peoples opinion who dont post alot or to minimize "thanks", "agree on your position..." posts which dont really add any new information to the discussion to keep them clear.

BTW: I dont like xenforo, too much of everything and it is often really ugly. But first saw a notification system on a xenforo forum, they are "modern" in a way. But never installed it or informed myself about it. In general i dont like commercial forum softwares.
222
Plugin Support / Re: Wedge way to add Profile Field
« on October 7th, 2014, 07:21 PM »
In the moment i have it at the end of the loadCustomFields function in Profile.php.
Code: [Select]
call_hook('custom_fields', array($memID, $area, &$context['custom_fields']));

It's working, but needs a check for $area, otherwise it gets displayed in modify profile and on registration?! which would cause trouble. Also i didnt got fixed the privacy stuff for those fields. Privacy doesnt know those fields and throws errors.

Thanks for the FIY, helps me alot :cool:
223
Archived fixes / Re: Hacking attempt...
« on October 6th, 2014, 07:18 PM »
You didnt set the correct file permissions. I dont know if you have a webspace or "real" access, but change the permissions so that the webserver user can read (and sometimes write) to those files.
224
Archived fixes / Re: Hacking attempt...
« on October 6th, 2014, 02:16 PM »
First it's enough to open /index.php, if there is no configuration.php, installation starts automatically. And i think thats the problem, delete configuration.php (or better, rename it) and try again.
225
Plugin Support / Re: Plugin Request: Code Highlighting
« on October 5th, 2014, 03:06 PM »
<?php
/**
 * Welcome to Wedge.
 *
 * Wedge (http&#58;//wedge.org)
 * Copyright © 2010 René-Gilles Deberdt, wedge.org
 * Portions are © 2011 Simple Machines.
 * License: http&#58;//wedge.org/license/
 */

if (defined('WEDGE'))
return;

define('WEDGE_VERSION''1.0-beta');
define('WEDGE'4); // Internal snapshot number.

// Get everything started up...
if (version_compare(PHP_VERSION'5.3') < 0)
exit('Wedge requires PHP 5.3 or better to be installed on your server.');
if (
version_compare(PHP_VERSION'5.4') < && function_exists('set_magic_quotes_runtime'))
@set_magic_quotes_runtime(0);

error_reporting(E_ALL E_STRICT);
@
ini_set('memory_limit''128M');
$time_start microtime(true);

// Makes sure that headers can be sent!
ob_start();

define('ROOT_DIR'str_replace('\\''/'dirname(__FILE__)));
define('APP_DIR'ROOT_DIR '/core/app');

// Is it our first run..?
if (!file_exists(ROOT_DIR '/Settings.php'))
{
require_once(ROOT_DIR '/core/app/OriginalFiles.php');
create_settings_file();
create_generic_folders();
create_main_htaccess();
}

// Load our settings...
require_once(ROOT_DIR '/Settings.php');

// And important files.
loadSource(array(
'Class-System',
'QueryString',
'Subs',
'Errors',
'Load',
'Security',
));

// Are we installing, or doing something that needs the forum to be down?
if (!empty($maintenance) && $maintenance 1)
{
if ($maintenance == 2// Installing
require_once(ROOT_DIR '/install/install.php');
else // Downtime
show_db_error();
return;
}

// Load paths.
loadConstants();

// Initiate the database connection.
loadDatabase();
[php][/php] is what you're looking for.